Skip to content

Commit

Permalink
fix(xgplayer-hls.js): play m3u8 with native video in mobile device
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxin92 committed Oct 10, 2018
1 parent e5565f0 commit b99a2ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/xgplayer-hls.js/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer-hls.js/dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/xgplayer-hls.js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class HlsJsPlayer extends Player {
this.hlsOpts = options.hlsOpts || {}
let util = Player.util
let player = this
if (Player.sniffer.device === 'mobile') {
return
}
let hls
hls = new Hls(this.hlsOpts)
this.hls = hls
Expand Down

0 comments on commit b99a2ac

Please sign in to comment.