{"id":26802416,"url":"https://github.com/red5pro/red5pro-jwplayer-provider","last_synced_at":"2026-02-25T03:41:51.563Z","repository":{"id":39542845,"uuid":"187187918","full_name":"red5pro/red5pro-jwplayer-provider","owner":"red5pro","description":"Custom Provider for JWPlayer to integrate Red5 Pro Live Streaming","archived":false,"fork":false,"pushed_at":"2023-01-03T21:59:31.000Z","size":1703,"stargazers_count":2,"open_issues_count":21,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T02:39:38.263Z","etag":null,"topics":["jwplayer","live-streaming","red5pro"],"latest_commit_sha":null,"homepage":"https://red5pro.github.io/red5pro-jwplayer-provider/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/red5pro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-17T09:29:05.000Z","updated_at":"2021-08-16T08:20:46.000Z","dependencies_parsed_at":"2023-02-01T11:02:20.852Z","dependency_job_id":null,"html_url":"https://github.com/red5pro/red5pro-jwplayer-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/red5pro/red5pro-jwplayer-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red5pro%2Fred5pro-jwplayer-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red5pro%2Fred5pro-jwplayer-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red5pro%2Fred5pro-jwplayer-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red5pro%2Fred5pro-jwplayer-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/red5pro","download_url":"https://codeload.github.com/red5pro/red5pro-jwplayer-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red5pro%2Fred5pro-jwplayer-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29810069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T03:30:18.102Z","status":"ssl_error","status_checked_at":"2026-02-25T03:30:17.799Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jwplayer","live-streaming","red5pro"],"created_at":"2025-03-29T21:18:01.081Z","updated_at":"2026-02-25T03:41:51.550Z","avatar_url":"https://github.com/red5pro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# red5pro-jwplayer-provider\n\nCustom Provider for [JWPlayer](https://www.jwplayer.com/) to integrate [Red5 Pro](https://red5pro.com) Live Streaming.\n\n# Demo\n\nYou can view the demo at [https://red5pro.github.io/red5pro-jwplayer-provider/](https://red5pro.github.io/red5pro-jwplayer-provider/)\n\n\u003e The source for the demo can be found in the [docs](docs) directory of this repository.\n\n# Custom JWPlayer Provider\n\nThe example demonstrates how to create a custom [JWPlayer](https://www.jwplayer.com/) Provider in order to integrate live stream playback using the [Red5 Pro](https://red5pro.com) HTML SDK.\n\n\u003e The [red5pro-jwplayer-provider.js](red5pro-jwplayer-provider.js) is the custom provider source.\n\n## Configuration\n\n_The following is declared in [docs/index.html](docs/index.html)._\n\nAn initialization configuration required for the Red5 Pro HTML SDK when instantiating a Subscriber. For the purposes of this demo, that configuration is passed in as a custom property (named `red5pro`) through the **setup** configuration of a **jwplayer**:\n\n```js\nconst player = jwplayer('video-container')\n                .setup({\n                  file: `${streamName}.red5pro`, // will stripe extension and use name as streamName\n                  red5pro: {\n                    protocol: protocol,\n                    host: host,\n                    port: port,\n                    app: 'live',\n                    mediaElementId: 'red5pro-subscriber'\n                  }\n              })\n\n```\n\nThe `file` propery provides a filename with the `red5pro` extension. This will be used by the custom provider to determine if it can support playback using Red5 Pro. The `${streamName}` filename will be the target stream name you wish to subscribe to.\n\n\u003e To see the full list of initialization configuration properties for a Red5 Pro Subscriber, visit the documentation at [https://red5pro.com/docs/streaming/subscriber.html](https://red5pro.com/docs/streaming/subscriber.html)\n\n## Custom Provider\n\n_The following is declared in [red5pro-jwplayer-provider.js](red5pro-jwplayer-provider.js)._\n\nThe request to instantiate a new Red5 Pro Subscriber instance (in this example as a WebRTC-based subscriber) is offloaded to the `load` event invocation from the **jwplayer**:\n\n```js\n...\n      load: () =\u003e {\n      \n        this.duration = NaN\n        this.setState('buffering')\n\n        new red5pro.RTCSubscriber()\n          .init(this.initConfiguration)\n          .then(subscriberImpl =\u003e {\n            this.subscriber = subscriberImpl\n            this.subscriber.on('*', this.onSubscribeEvent)\n            return this.subscriber.subscribe()\n          })\n          .then(() =\u003e {\n            this.trigger('bufferFull')\n            if (this.initPlaybackSettings.autostart) {\n              this.play()\n            }\n          })\n          .catch(error =\u003e {\n            console.error(error)\n          })\n          \n      },\n...\n```\n\nFrom there, instructions for playback and volume/mute setting are simply hooks into calls onto the `RTCSubscriber` instance that is established.\n\n# Build\n\nThe [red5pro-jwplayer-provider.js](red5pro-jwplayer-provider.js) custom provider code is written using **ES6/ES2015**. If you know you are targeting modern browsers with such support, you can simply load it as a resource for your page.\n\nSeeing as it is not a perfect world, this project also uses the [babel](https://babeljs.io/) compiler and [webpack](https://webpack.js.org/) bundler to distribute a \"build\" of the source for browsers without **ES6/2015** support.\n\n## Commands\n\nThe following commands are available. They require [NodeJS](https://nodejs.org/en/) and `NPM` to be installed on the machine you have checked this repository out on (if you intend to modify and build yourself).\n\n\u003e More information: [https://docs.npmjs.com/downloading-and-installing-node-js-and-npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)\n\n### install\n\nBefre you can run any commands, you will first need to install the `npm` packages:\n\n```sh\nnpm install\n```\n\n### build\n\n```sh\nnpm run build\n```\n\nThis command will simply compile and bundle the `red5pro-jwplayer-provider.js` file and place it into [docs/script](docs/script) as `red5pro-jwplayer-provider.bundle.js`.\n\n### watch\n\n```sh\nnpm run watch\n```\n\nThis command will run a watch on the source files and execute a `build` command on change.\n\n### start\n\n```sh\nnpm run start\n```\n\nThis command will start a watch on source and launch a local server at [http://localhost:3000](http://localhost:3000) from the [docs](docs) directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred5pro%2Fred5pro-jwplayer-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred5pro%2Fred5pro-jwplayer-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred5pro%2Fred5pro-jwplayer-provider/lists"}