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
22pub trait VideoUriSourceExt: IsA<VideoUriSource> + 'static {
23 fn uri(&self) -> Option<glib::GString> {
24 ObjectExt::property(self.as_ref(), "uri")
25 }
26}
27
28impl<O: IsA<VideoUriSource>> VideoUriSourceExt for O {}