{"id":16889803,"url":"https://github.com/t-mullen/hypercast-browser","last_synced_at":"2025-07-16T09:40:25.054Z","repository":{"id":137583658,"uuid":"118968786","full_name":"t-mullen/hypercast-browser","owner":"t-mullen","description":"p2p video broadcasting for dat:// enabled web browsers","archived":false,"fork":false,"pushed_at":"2018-08-27T22:23:29.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T07:39:56.603Z","etag":null,"topics":["dat","p2p","streaming"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t-mullen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-25T21:17:30.000Z","updated_at":"2019-03-14T13:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"00cf8408-07ec-40ef-95ec-34ace1dab84a","html_url":"https://github.com/t-mullen/hypercast-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/t-mullen/hypercast-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fhypercast-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fhypercast-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fhypercast-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fhypercast-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t-mullen","download_url":"https://codeload.github.com/t-mullen/hypercast-browser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fhypercast-browser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265500611,"owners_count":23777518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dat","p2p","streaming"],"created_at":"2024-10-13T16:59:05.353Z","updated_at":"2025-07-16T09:40:25.019Z","avatar_url":"https://github.com/t-mullen.png","language":"JavaScript","readme":"# hypercast-browser\n\n[louiscenter/hypercast](https://github.com/louiscenter/hypercast) refactored as a standalone browser-only module (no Electron!).\n\nBoth broadcasting and viewing requires [Beaker Browser](https://beakerbrowser.com/).\n\n## Demo\n[Try it now in Beaker Browser!](https://t-mullen.github.io/hypercast-browser/demo/demo.html)\n\n1. Allow webcam access.\n2. Click the link to view the stream across the Dat protocol!\n3. Share the link and stream to others! :smiley:\n\n## Install\nWith Browserify:\n\n```bash\nnpm install --save hypercast-browser\n```\n\n```javascript\nvar Hypercast = require('hypercast-browser')\n```\n\nOr without it:\n\n```html\n\u003cscript src=\"dist/hypercast.js\"\u003e\u003c/script\u003e\n```\n\n## API\n### `Hypercast.broadcast(mediaStream, opts)`\nBroadcasts a new MediaStream over the Dat protocol. Returns a Dat URL of the stream archive.\n\n`mediaStream` - A WebRTC MediaStream.\n\n`opts` - Options object. Defaults are:\n\n```javascript\n{\n    interval: 10\n    mimeType: 'video/webm; codecs=\"opus,vp8\"'\n}\n```\n\n### `Hypercast.view(url, opts)`\nViews a Hypercast stream via the Dat protocol. Returns a video element that will play the stream.\n\n`url` - Dat URL of stream archive. (Get this from `broadcast`!)\n\n`opts` - Options object. Defaults are:\n\n```javascript\n{\n    videoElement: null // Specify this to provide your own video element\n    mimeType: 'video/webm; codecs=\"opus,vp8\"'\n}\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-mullen%2Fhypercast-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft-mullen%2Fhypercast-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-mullen%2Fhypercast-browser/lists"}