Closed myhu closed 7 years ago
Any error/warning logcat in Console?
no, any error on Console
and, forget to mention it was a live flv stream
var element = document.getElementsByName('videoElement')[0]; <------><------>var mediaDataSource = { <------><------><------><------><------>"type" : "flv", <------><------><------><------><------>"isLive" : true, <------><------><------><------><------>"url" : "http://uri:1935/origin/Pubteszt02.flv" <------><------><------><------><------>} <------><------>player = flvjs.createPlayer(mediaDataSource, { enableWorker: false, lazyLoadMaxDuration: 3 * 60, seekType: 'range', }); player.attachMediaElement(element); player.load();
wow. Because of the missing of fetch+stream API, http flv live stream playback is currently unavailable on Safari.
See https://github.com/Bilibili/flv.js/blob/master/docs/livestream.md
oooo, sorry, totally forget
is it possible to use fetch library import to flv.js? https://github.com/github/fetch
No. polyfill cannot emulate stream I/O without browser support. See https://github.com/Bilibili/flv.js/blob/master/src/io/fetch-stream-loader.js
If some feature can be implemented through polyfill, it can be implemented directly by the underlying API. But unfortunately fetch+stream CAN NOT.
ooo, what a pity...
Your stuff is amazing, by the way...go on I appreciate of your quick answer, and help...thx really
hey,
By using flv.min.js released version I have an issue only on Safari Version 10.0 (12602.1.50.0.10)
Resources type: XHR and the initiator is es6-promise.js:2, where the issue is born
evry other browser is ok, Chrome, Firefox, doing the job, like a charm, but safari...
what gonna be the pitfall...
thx, in advance,