bilibili / flv.js

HTML5 FLV Player
Apache License 2.0
22.94k stars 3.38k forks source link

safari - Version 10.0 (12602.1.50.0.10) - #36

Closed myhu closed 7 years ago

myhu commented 7 years ago

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,

safari fly js1

xqq commented 7 years ago

Any error/warning logcat in Console?

myhu commented 7 years ago

no, any error on Console

myhu commented 7 years ago

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();

xqq commented 7 years ago

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

myhu commented 7 years ago

oooo, sorry, totally forget

is it possible to use fetch library import to flv.js? https://github.com/github/fetch

xqq commented 7 years ago

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.

myhu commented 7 years ago

ooo, what a pity...

Your stuff is amazing, by the way...go on I appreciate of your quick answer, and help...thx really