Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

各款手机的流媒体兼容性记录 #58

Closed
Dream4ever opened this issue Feb 22, 2019 · 0 comments
Closed

各款手机的流媒体兼容性记录 #58

Dream4ever opened this issue Feb 22, 2019 · 0 comments
Labels
Front-end Everything you see and experience

Comments

@Dream4ever
Copy link
Owner

Dream4ever commented Feb 22, 2019

说明

在这里记录 iOS 和 Android 各版本对于流媒体的支持情况,以便在编写流媒体播放的相关代码时,提供更全面可靠的播放效果。

记录

iOS(只支持 MPEG)

  • 12:MPEG 自己
  • 11:MPEG 自己
  • 9:MPEG 老刘
    ...
  • 7:MPEG iPhone 4

Android(MPEG 和 HLS 都有支持的情况)

  • 9:MPEG 腾阳
  • 9:HLS 王仲,杨学,礼晨
  • 9:HLS 杨海(QQ,其余微信)
  • 7:MPEG 李岳
  • 7:HLS 胡潇
    ...
  • 4.4.2:HLS 三星平板(MPEG?)

总结

iOS 由于天生不支持 MediaSource API,所以如果要播放 m3u8+ts 格式的流媒体,那么把 audio/video 的 src 属性值设置为 m3u8 的 URL 即可。

但是到了 Android 这里,它的表现就跟官方文档上说的不一样了。同样都是微信,在相同的 Android 系统版本下,都会有不同的结果。

不过不管是 iOS 还是 Android,不管是哪个版本的系统,即使不支持 HLS,至少也是支持 MPEG 的,那就没什么问题了。

参考资料

@Dream4ever Dream4ever changed the title 流媒体兼容性记录 各款手机的流媒体兼容性记录 Mar 20, 2019
@Dream4ever Dream4ever added the Front-end Everything you see and experience label Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Front-end Everything you see and experience
Projects
None yet
Development

No branches or pull requests

1 participant