1 public videoJsConfigObj = {
2 preload: "metadata",
3 controls: true,
4 autoplay: true,
5 overrideNative: true,
6 responsive:true,
7 techOrder: ["html5", "flash"],
8 html5: {
9 nativeVideoTracks: false,
10 nativeAudioTracks: false,
11 nativeTextTracks: false,
12 hls: {
13 withCredentials: false,
14 overrideNative: true,
15 debug: true
16 }
17 }
18 };
19
20
21
22
23
24 ngOnInit() {
25 this.player = videojs('my-video', this.videoJsConfigObj);
26 this.player.src(this.videoUrl);
27 this.player.qualityLevels();
28 this.player.httpSourceSelector();
29 }