Class MediaStream
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class MediaStream : Object, IObject, INotifyPropertyChanged, IDisposable, Paintable, IHandle, GTypeProvider
- Inheritance
-
MediaStream
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
protected MediaStream(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
protected MediaStream(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
public static readonly Property<long, MediaStream> DurationPropertyDefinition
Field Value
- Property<long, MediaStream>
public static readonly Property<bool, MediaStream> EndedPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<Error, MediaStream> ErrorPropertyDefinition
Field Value
- Property<Error, MediaStream>
public static readonly Property<bool, MediaStream> HasAudioPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> HasVideoPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> LoopPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> MutedPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> PlayingPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> PreparedPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> SeekablePropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<bool, MediaStream> SeekingPropertyDefinition
Field Value
- Property<bool, MediaStream>
public static readonly Property<long, MediaStream> TimestampPropertyDefinition
Field Value
- Property<long, MediaStream>
public static readonly Property<double, MediaStream> VolumePropertyDefinition
Field Value
- Property<double, MediaStream>
Properties
public long Duration { get; }
Property Value
- long
public bool Ended { get; }
Property Value
- bool
public Error Error { get; }
Property Value
- Error
public bool HasAudio { get; }
Property Value
- bool
public bool HasVideo { get; }
Property Value
- bool
public bool Loop { get; set; }
Property Value
- bool
public bool Muted { get; set; }
Property Value
- bool
public bool Playing { get; set; }
Property Value
- bool
public bool Prepared { get; set; }
Property Value
- bool
public bool Seekable { get; }
Property Value
- bool
public bool Seeking { get; }
Property Value
- bool
public long Timestamp { get; }
Property Value
- long
public double Volume { get; set; }
Property Value
- double
Methods
public void ComputeConcreteSize(double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, out double concreteWidth, out double concreteHeight)
Parameters
specifiedWidth
double
specifiedHeight
double
defaultWidth
double
defaultHeight
double
concreteWidth
double
concreteHeight
double
public void ErrorValist(Quark domain, int code, string format, IntPtr args)
Parameters
domain
Quark
code
int
format
string
args
IntPtr
public void Gerror(Error error)
Parameters
error
Error
public Paintable GetCurrentImage()
Returns
- Paintable
public long GetDuration()
Returns
- long
Returns
- bool
Returns
- Error
public PaintableFlags GetFlags()
Returns
- PaintableFlags
public static Type GetGType()
Returns
- Type
public bool GetHasAudio()
Returns
- bool
public bool GetHasVideo()
Returns
- bool
public double GetIntrinsicAspectRatio()
Returns
- double
public int GetIntrinsicHeight()
Returns
- int
public int GetIntrinsicWidth()
Returns
- int
Returns
- bool
Returns
- bool
Returns
- bool
public long GetTimestamp()
Returns
- long
public double GetVolume()
Returns
- double
InvalidateContents()
public void InvalidateContents()
public void InvalidateSize()
Returns
- bool
Returns
- bool
Returns
- bool
public void Realize(Surface surface)
Parameters
surface
Surface
public void Seek(long timestamp)
Parameters
timestamp
long
public void SeekSuccess()
public void SetLoop(bool loop)
Parameters
loop
bool
public void SetMuted(bool muted)
Parameters
muted
bool
public void SetPlaying(bool playing)
Parameters
playing
bool
public void SetVolume(double volume)
Parameters
volume
double
public void Snapshot(Snapshot snapshot, double width, double height)
Parameters
snapshot
Snapshot
width
double
height
double
[Version("4.4")]
public void StreamEnded()
[Version("4.4")]
public void StreamPrepared(bool hasAudio, bool hasVideo, bool seekable, long duration)
Parameters
hasAudio
bool
hasVideo
bool
seekable
bool
duration
long
[Version("4.4")]
public void StreamUnprepared()
public void Unrealize(Surface surface)
Parameters
surface
Surface
public void Update(long timestamp)
Parameters
timestamp
long