this.videoCategories = this.serverService.getVideoCategories()
this.videoLicences = this.serverService.getVideoLicences()
this.videoLanguages = this.serverService.getVideoLanguages()
- console.log(this.videoLanguages)
setTimeout(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute
}
function useVideostream () {
prepareElem()
- preparedElem.addEventListener('error', function onError () {
+ preparedElem.addEventListener('error', function onError (err) {
preparedElem.removeEventListener('error', onError)
- return fallbackToMediaSource()
+ return callback(err)
})
preparedElem.addEventListener('loadstart', onLoadStart)
return videostream(file, preparedElem)