AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://OvenMediaEngine.com/ovenplayer
MIT License
508 stars 124 forks source link

Switch Protocol #5

Closed getroot closed 5 years ago

getroot commented 5 years ago

Does the OvenPlayer provide a method to switch from WebRTC to HLS or MPEG-DASH automatically or manually when the network environment is bad?

ghost commented 5 years ago

OvenPlayer automatically plays the next protocol (source) that is already registered, when an error occurs in the currently playing protocol (source) by default. But I may add, if your network connection is unstable during play with WebRTC protocol (source), it's automatically changed to play with the next protocol (source).

like this let player = OvenPlayer.create("elementID", { sources: [ {type: "webrtc", file: "xxx", label: "WEBRTC LIVE"}, {type: "mpd", file: "xxx", label: "DASH LIVE"}, {type: "rtmp", file: "xxx", label: "RTMP LIVE"} ] });

ghost commented 5 years ago

@JehoenHan Can I close this issue?