@@ -124,17 +124,23 @@ export const setupVideoTag = () => {
124
124
return videoEls [ 0 ]
125
125
} else {
126
126
const videoEl = document . createElement ( 'video' )
127
+ const platformSettingsWidth = Settings . get ( 'platform' , 'width' )
128
+ ? Settings . get ( 'platform' , 'width' )
129
+ : 1920
130
+ const platformSettingsHeight = Settings . get ( 'platform' , 'height' )
131
+ ? Settings . get ( 'platform' , 'height' )
132
+ : 1080
127
133
videoEl . setAttribute ( 'id' , 'video-player' )
128
- videoEl . setAttribute ( 'width' , withPrecision ( 1920 ) )
129
- videoEl . setAttribute ( 'height' , withPrecision ( 1080 ) )
134
+ videoEl . setAttribute ( 'width' , withPrecision ( platformSettingsWidth ) )
135
+ videoEl . setAttribute ( 'height' , withPrecision ( platformSettingsHeight ) )
130
136
videoEl . style . position = 'absolute'
131
137
videoEl . style . zIndex = '1'
132
138
videoEl . style . display = 'none'
133
139
videoEl . style . visibility = 'hidden'
134
140
videoEl . style . top = withPrecision ( 0 )
135
141
videoEl . style . left = withPrecision ( 0 )
136
- videoEl . style . width = withPrecision ( 1920 )
137
- videoEl . style . height = withPrecision ( 1080 )
142
+ videoEl . style . width = withPrecision ( platformSettingsWidth )
143
+ videoEl . style . height = withPrecision ( platformSettingsHeight )
138
144
document . body . appendChild ( videoEl )
139
145
return videoEl
140
146
}
0 commit comments