Finished bugfixing new layout, fixed mobile support(still not perfect, will fix in either hotfix or next

update) and user tooltip
menu positioning.
This commit is contained in:
rainbownapkin 2022-07-10 22:03:03 +00:00
parent 37980669d5
commit a16da4c3f1
8 changed files with 87 additions and 50 deletions

View file

@ -67,11 +67,6 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player
setMini();
)
@player.on('canplay', =>
handleVideoResize()
console.log(@player.children)
)
# Once the video stops, the internal state of the player
# becomes unusable and attempting to load() will corrupt it and
# crash the player with an error. As a shortmedium term
@ -82,7 +77,7 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player
)
@dm.addEventListener('playback_ready', =>
@dmReady = true
handleVideoResize()
handleWindowResize()
if @playbackReadyCb
@playbackReadyCb()
@ -101,7 +96,7 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player
# TODO: Player::load() needs to be made asynchronous in the future
console.log('Warning: load() called before DM is ready, queueing callback')
@playbackReadyCb = () =>
handleVideoResize()
handleWindowResize()
@dm.load(data.id)
@dm.seek(data.currentTime)

View file

@ -171,7 +171,7 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
@player.on('canplay', =>
handleVideoResize()
handleWindowResize()
console.log(@player.children)
)

View file

@ -44,7 +44,7 @@ window.VimeoPlayer = class VimeoPlayer extends Player
@vimeo.on('play', =>
@paused = false
setMini();
handleVideoResize()
handleWindowResize()
if CLIENT.leader
sendVideoUpdate()
)