videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 792 forks source link

how can i event error and end at ios and android? #1388

Closed ZhangDewei closed 6 years ago

ZhangDewei commented 6 years ago

hello , I use videojs-contrib-hls at ios and android. when i use it at pc, it has tech.hls.masterPlaylistController.tech_. but it not none at ios and android. i want to event error at ios and android. so how can i event error and end at ios and android? thank you

hirbod commented 6 years ago

I would also appreciate a clean communication on this. Catching Errorevents on HLS its a pain..

gkatsev commented 6 years ago

by default, contrib-hls only runs on browsers that don't support HLS natively. Also, it cannot run on browsers that do not support MSE which will be iOS. For other browsers like Android or desktop safari (which we don't officially support yet) you'd want to set the overrideNative option.

hirbod commented 6 years ago

@gkatsev thanks for your answer. Do I have to set this option inside { html: hls{} } ?

forbesjo commented 6 years ago

Here's a snippet for setting up overrideNative https://github.com/videojs/http-streaming#overridenative