1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

VideoPlayer: Use LibFileSystemAccessClient

This commit is contained in:
Caoimhe 2023-05-11 12:28:05 +01:00 committed by Andrew Kaster
parent 465fa3460f
commit 8bcf5b72eb
3 changed files with 31 additions and 13 deletions

View file

@ -8,6 +8,7 @@
#include <AK/FixedArray.h>
#include <AK/NonnullRefPtr.h>
#include <LibFileSystemAccessClient/Client.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/Forward.h>
#include <LibGUI/Widget.h>
@ -26,7 +27,7 @@ public:
static ErrorOr<NonnullRefPtr<VideoPlayerWidget>> try_create();
virtual ~VideoPlayerWidget() override = default;
void close_file();
void open_file(StringView filename);
void open_file(FileSystemAccessClient::File filename);
void resume_playback();
void pause_playback();
void toggle_pause();
@ -55,7 +56,7 @@ private:
virtual void drop_event(GUI::DropEvent&) override;
DeprecatedString m_path;
String m_path;
RefPtr<VideoFrameWidget> m_video_display;
RefPtr<GUI::HorizontalSlider> m_seek_slider;