src dynamic in video.js example
public videoJsConfigObj = {
preload: "metadata",
controls: true,
autoplay: true,
overrideNative: true,
responsive:true,
techOrder: ["html5", "flash"],
html5: {
nativeVideoTracks: false,
nativeAudioTracks: false,
nativeTextTracks: false,
hls: {
withCredentials: false,
overrideNative: true,
debug: true
}
}
};
ngOnInit() {
this.player = videojs('my-video', this.videoJsConfigObj);
this.player.src(this.videoUrl);
this.player.qualityLevels();
this.player.httpSourceSelector();
}