gstreamer_editing_services/auto/
video_uri_source.rs1use crate::{ffi, Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GESVideoUriSource")]
11 pub struct VideoUriSource(Object<ffi::GESVideoUriSource, ffi::GESVideoUriSourceClass>) @extends VideoSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
12
13 match fn {
14 type_ => || ffi::ges_video_uri_source_get_type(),
15 }
16}
17
18impl VideoUriSource {
19 pub const NONE: Option<&'static VideoUriSource> = None;
20}
21
22mod sealed {
23 pub trait Sealed {}
24 impl<T: super::IsA<super::VideoUriSource>> Sealed for T {}
25}
26
27pub trait VideoUriSourceExt: IsA<VideoUriSource> + sealed::Sealed + 'static {
28 fn uri(&self) -> Option<glib::GString> {
29 ObjectExt::property(self.as_ref(), "uri")
30 }
31}
32
33impl<O: IsA<VideoUriSource>> VideoUriSourceExt for O {}