mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
parent
a0b44ff5e7
commit
85b424464a
Notes:
github-actions[bot]
2025-01-21 16:49:39 +00:00
Author: https://github.com/trflynn89
Commit: 85b424464a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3335
191 changed files with 574 additions and 574 deletions
|
@ -35,7 +35,7 @@ VideoTrack::VideoTrack(JS::Realm& realm, GC::Ref<HTMLMediaElement> media_element
|
|||
auto playback_position = static_cast<double>(position().to_milliseconds()) / 1000.0;
|
||||
|
||||
if (is<HTMLVideoElement>(*m_media_element))
|
||||
verify_cast<HTMLVideoElement>(*m_media_element).set_current_frame({}, move(frame), playback_position);
|
||||
as<HTMLVideoElement>(*m_media_element).set_current_frame({}, move(frame), playback_position);
|
||||
|
||||
m_media_element->set_current_playback_position(playback_position);
|
||||
};
|
||||
|
@ -169,7 +169,7 @@ void VideoTrack::set_selected(bool selected)
|
|||
|
||||
// AD-HOC: Inform the video element node that we have (un)selected a video track for layout.
|
||||
if (is<HTMLVideoElement>(*m_media_element)) {
|
||||
auto& video_element = verify_cast<HTMLVideoElement>(*m_media_element);
|
||||
auto& video_element = as<HTMLVideoElement>(*m_media_element);
|
||||
video_element.set_video_track(m_selected ? this : nullptr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue