2021-09-19 08:07:33 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use crate::Extractable;
|
|
|
|
use crate::MetaContainer;
|
|
|
|
use crate::Source;
|
|
|
|
use crate::TimelineElement;
|
|
|
|
use crate::TrackElement;
|
|
|
|
use crate::VideoSource;
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
use glib::StaticType;
|
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
#[doc(alias = "GESVideoUriSource")]
|
|
|
|
pub struct VideoUriSource(Object<ffi::GESVideoUriSource, ffi::GESVideoUriSourceClass>) @extends VideoSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
|
|
|
|
|
|
|
|
match fn {
|
|
|
|
type_ => || ffi::ges_video_uri_source_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-03 17:28:46 +00:00
|
|
|
impl VideoUriSource {
|
|
|
|
pub const NONE: Option<&'static VideoUriSource> = None;
|
|
|
|
}
|
2021-09-19 08:07:33 +00:00
|
|
|
|
|
|
|
pub trait VideoUriSourceExt: 'static {
|
|
|
|
fn uri(&self) -> Option<glib::GString>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<VideoUriSource>> VideoUriSourceExt for O {
|
|
|
|
fn uri(&self) -> Option<glib::GString> {
|
2021-11-06 17:31:52 +00:00
|
|
|
glib::ObjectExt::property(self.as_ref(), "uri")
|
2021-09-19 08:07:33 +00:00
|
|
|
}
|
|
|
|
}
|