我正在使用角度版本8中的video.js库,并出现错误
TypeError:video_js__WEBPACK_IMPORTED_MODULE_1__不是函数
@ViewChild('myplayer', {static: false}) videoElement:ElementRef ;
import * as videojs from 'video.js';
ngAfterViewInit(){
this.initPlayer();
}
initPlayer(){
const video = videojs(this.videoElement.nativeElement);
}
import * as videojs from 'video.js';
to
import videojs from 'video.js';