Skip to content

Commit

Permalink
fix:增加exitFullScreen的实现,适配不同的webkit (NervJS#14459)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcq-code authored Aug 31, 2023
1 parent 60f92ad commit ab4f87c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/taro-components/src/components/video/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class Video implements ComponentInterface {
}

@Method()
async getHlsObject() {
async getHlsObject () {
// Note: H5 端专属方法,获取 HLS 实例 fix #11894
return this.hls
}
Expand Down Expand Up @@ -547,6 +547,8 @@ export class Video implements ComponentInterface {
setTimeout(() => {
this.videoRef[screenFn.requestFullscreen]({ navigationUI: 'auto' })
}, 0)
} else {
document[screenFn.exitFullscreen]()
}
}

Expand Down

0 comments on commit ab4f87c

Please sign in to comment.