mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
修复 Hls 视频不能播放的问题
This commit is contained in:
parent
fed65a10b2
commit
9b189bd273
@ -336,7 +336,7 @@ export class HlsSource extends React.Component<HlsSourceProps, any> {
|
||||
|
||||
initHls({video, manager, src, autoPlay, actions}: any) {
|
||||
// @ts-ignore
|
||||
import('hls.js').then((Hls: any) => {
|
||||
import('hls.js').then(({default: Hls}: any) => {
|
||||
// load hls video source base on hls.js
|
||||
if (Hls.isSupported()) {
|
||||
video = video || (manager.video && manager.video.video);
|
||||
|
Loading…
Reference in New Issue
Block a user