mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
Add posterUrl to MEDIA_DATA global object
Introduces a new optional 'posterUrl' property to the MEDIA_DATA object on the window, updating both the runtime initialization and TypeScript type declaration.
This commit is contained in:
parent
1de914ec02
commit
0fac57ee9b
@ -5,7 +5,8 @@ import "./index.css";
|
||||
if (typeof window !== "undefined") {
|
||||
window.MEDIA_DATA = {
|
||||
videoUrl: "",
|
||||
mediaId: ""
|
||||
mediaId: "",
|
||||
posterUrl: ""
|
||||
};
|
||||
window.lastSeekedPosition = 0;
|
||||
}
|
||||
@ -15,6 +16,7 @@ declare global {
|
||||
MEDIA_DATA: {
|
||||
videoUrl: string;
|
||||
mediaId: string;
|
||||
posterUrl?: string;
|
||||
};
|
||||
seekToFunction?: (time: number) => void;
|
||||
lastSeekedPosition: number;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user