nareix / mama-hd

妈妈再也不用担心我的 MacBook 发热了计划之 1080P
MIT License
763 stars 36 forks source link

请问支持Safari吗 #1

Open griffinqiu opened 8 years ago

griffinqiu commented 8 years ago

如题

nareix commented 8 years ago

目前不支持。以后可以试试看,有点担心 Safari 的 js 速度。

roshanca commented 8 years ago

@nareix Safari Technology Preview 的 js 运行速度杠杠的,不用担心。

griffinqiu commented 8 years ago

既然是解决Mac上的问题, 希望能支持Safari ;)

nareix commented 8 years ago

@griffinqiu 我尽力😄

Artoria2e5 commented 8 years ago

WebKit JS 科技树不错的。fmp4 显然也有支持:https://github.com/WebKit/webkit/blob/master/LayoutTests/media/media-source/content/test-fragmented-manifest.json

nareix commented 8 years ago

@Arthur2e5 不错!另外这个测试用例挺好。

typcn commented 8 years ago

小心 Safari 的 MSE 有坑 参见这个问题 https://github.com/dailymotion/hls.js/issues/9

友谊的 fmp4 说炸就炸

nareix commented 8 years ago

@typcn 😂 看上去是Safari对fmp4的sample的最后一个duration理解不大一样

typcn commented 8 years ago

问题在于:

  1. 第一个分片的 pts 开始于 42ms 之后会导致浏览器卡住(如果没有像 YouTube 这类视频网站一样做严格的处理,很大一部分都是超过这个值的)
  2. 不同分片之间 pts 间隔超过 42ms ,则不会继续播放

On Mon, May 9, 2016 at 08:05 nareix notifications@github.com wrote:

@typcn https://github.com/typcn 😂 看上去是Safari对fmp4的sample的最后一个duration理解不大一样

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/nareix/mama-hd/issues/1#issuecomment-217754266

nareix commented 8 years ago

@typcn 国内的flv的h264包经常搞个200ms+的间隔出来,都不知道是缺了几帧还是咋的。。问题2已经手动处理了不然chrome都没法播。问题1就是safari比较挑了,符合safari的一贯作风,其本身的hls也一样,只要pts不大对那就各种诡异问题,播一半没声之类。。

nareix commented 8 years ago

@typcn 多谢分析啊👍