Merge pull request #4706 from TheMelmacian/feature/random_backdrop_image
Use a random backdrop image for video osd
This commit is contained in:
@@ -1665,7 +1665,13 @@ export class HtmlVideoPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
return Promise.resolve(dlg.querySelector('video'));
|
||||
const videoElement = dlg.querySelector('video');
|
||||
if (options.backdropUrl) {
|
||||
// update backdrop image
|
||||
videoElement.poster = options.backdropUrl;
|
||||
}
|
||||
|
||||
return Promise.resolve(videoElement);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user