src dynamic in video js example

Solutions on MaxInterview for src dynamic in video js example by the best coders in the world

showing results for - "src dynamic in video js example"
Leonie
13 Aug 2019
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  }