bilibili / flv.js

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

flv.js 在safari浏览器中无法播放 #491

Open Erik5169 opened 5 years ago

Erik5169 commented 5 years ago

safari版本号: 12.1.2 (14607.3.9) 视频直播流 getFeatureList(): mseFlvPlayback: true mseLiveFlvPlayback: true nativeMP4H264Playback: true nativeWebmVP8Playback: false nativeWebmVP9Playback: false networkLoaderName: "fetch-stream-loader" networkStreamIO: true 现象: 在chorm浏览器中直播正常, 但是在safari浏览器中不能播放, 有时候多刷新几次,又能播放了

代码: startVideo() { this.flvPlayer = this.flvjs.createPlayer( { type: 'flv', isLive: true, hasAudio: false, hasVideo: true, enableStashBuffer: true, url: 'http://hlsplay.bd666.cn/hdzb002/5d71fc4823c34.flv?k=93625501388e901be3c710622ad45c2a&t=1568106304 }, { autoCleanupSourceBuffer: true } ) this.flvPlayer.attachMediaElement(this.$refs.flvPlayer) this.flvPlayer.load() this.flvPlayer.play() }

实在看不出问题在哪? 请作者大大帮帮忙

屏幕快照 2019-09-12 下午4 31 18
allayli commented 5 years ago

This project relies on Media Source Extensions to work.

Safari 不支持 Media Source Extensions

bruce6771 commented 2 years ago

https://github.com/cylyl/ya_video_player/issues/1 也存在同样问题,请问后来是怎么解决的