use random backdrop image in video player
This commit is contained in:
@@ -1664,7 +1664,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