MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ choose_video()

MAYAFLUX_API std::shared_ptr< Kakshya::VideoFileContainer > MayaFlux::choose_video ( )

Present a native open-file dialog filtered to video formats and load the chosen file via IOManager::load_video().

Blocks until the user confirms or cancels. Returns nullptr on cancellation, backend error, or if Portal::System is not initialized.

Definition at line 133 of file Depot.cpp.

134{
135 if (!require_portal("choose_video"))
136 return nullptr;
137
138 return Portal::System::Dialog::open_file<std::shared_ptr<Kakshya::VideoFileContainer>>(
139 [](const fs::path& p) { return get_io_manager()->load_video(p.string()); },
140 [](Core::SystemDialogError) { },
141 k_video_filters);
142}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:256

References get_io_manager().

+ Here is the call graph for this function: