Novage / p2p-media-loader

An open-source engine for P2P streaming of live and on demand video directly in a web browser HTML page
https://novage.com.ua/p2p-media-loader/demo.html
Apache License 2.0
1.44k stars 315 forks source link

How to integrate with some third party player #91

Closed quanghuy1288 closed 8 months ago

quanghuy1288 commented 5 years ago

Our company using a DRM player from https://castlabs.com/ They using videojs and shaka player for web version And using an SDK for Android and iOS.

How to integrate p2p-media-loader with their player?

mrlika commented 5 years ago

We integrate with video.js using one of hls.js plugins:

Here you can find implementations of functions for both plugins ( initVideoJsContribHlsJsPlayer and initVideoJsHlsJsPlugin) that do the integration: https://github.com/Novage/p2p-media-loader/blob/b33a214df3b5ed54b49d81e4513bd62e3c42c298/p2p-media-loader-hlsjs/lib/index.ts#L46

quanghuy1288 commented 5 years ago

@mrlika How can i use p2p-media-loader on some platform like: Android, Webos LG smartTV, Samsung Tizen smartTV?

mrlika commented 5 years ago

@quanghuy1288, currently only in a WebView component or similar - running an HTML5 player with P2P script there.

Currently no native implementation for Android and iOS that require using native WebRTC without JavaScript at all like: