Class MediaStream
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class MediaStream : Object, Paintable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
MediaStream
- Implements
- Derived
- Inherited Members
Constructors
MediaStream(params ConstructArgument[])
public MediaStream(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
MediaStream(MediaStreamHandle)
public MediaStream(MediaStreamHandle handle)
Parameters
handleMediaStreamHandle
Fields
DurationPropertyDefinition
public static readonly Property<long, MediaStream> DurationPropertyDefinition
Field Value
EndedPropertyDefinition
public static readonly Property<bool, MediaStream> EndedPropertyDefinition
Field Value
ErrorPropertyDefinition
public static readonly Property<Error, MediaStream> ErrorPropertyDefinition
Field Value
HasAudioPropertyDefinition
public static readonly Property<bool, MediaStream> HasAudioPropertyDefinition
Field Value
HasVideoPropertyDefinition
public static readonly Property<bool, MediaStream> HasVideoPropertyDefinition
Field Value
InvalidateContentsSignal
Signal Descriptor for OnInvalidateContents.
public static readonly Signal<Paintable> InvalidateContentsSignal
Field Value
InvalidateSizeSignal
Signal Descriptor for OnInvalidateSize.
public static readonly Signal<Paintable> InvalidateSizeSignal
Field Value
LoopPropertyDefinition
public static readonly Property<bool, MediaStream> LoopPropertyDefinition
Field Value
MutedPropertyDefinition
public static readonly Property<bool, MediaStream> MutedPropertyDefinition
Field Value
PlayingPropertyDefinition
public static readonly Property<bool, MediaStream> PlayingPropertyDefinition
Field Value
PreparedPropertyDefinition
public static readonly Property<bool, MediaStream> PreparedPropertyDefinition
Field Value
SeekablePropertyDefinition
public static readonly Property<bool, MediaStream> SeekablePropertyDefinition
Field Value
SeekingPropertyDefinition
public static readonly Property<bool, MediaStream> SeekingPropertyDefinition
Field Value
TimestampPropertyDefinition
public static readonly Property<long, MediaStream> TimestampPropertyDefinition
Field Value
VolumePropertyDefinition
public static readonly Property<double, MediaStream> VolumePropertyDefinition
Field Value
Properties
Duration
public long Duration { get; }
Property Value
Ended
public bool Ended { get; }
Property Value
Error
public Error Error { get; }
Property Value
HasAudio
public bool HasAudio { get; }
Property Value
HasVideo
public bool HasVideo { get; }
Property Value
Loop
public bool Loop { get; set; }
Property Value
Muted
public bool Muted { get; set; }
Property Value
Playing
public bool Playing { get; set; }
Property Value
Prepared
public bool Prepared { get; }
Property Value
Seekable
public bool Seekable { get; }
Property Value
Seeking
public bool Seeking { get; }
Property Value
Timestamp
public long Timestamp { get; }
Property Value
Volume
public double Volume { get; set; }
Property Value
Methods
ComputeConcreteSize(double, double, double, double, out double, out double)
public void ComputeConcreteSize(double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, out double concreteWidth, out double concreteHeight)
Parameters
specifiedWidthdoublespecifiedHeightdoubledefaultWidthdoubledefaultHeightdoubleconcreteWidthdoubleconcreteHeightdouble
ErrorValist(Quark, int, string, nint)
public void ErrorValist(Quark domain, int code, string format, nint args)
Parameters
Gerror(Error)
public void Gerror(Error error)
Parameters
errorError
GetCurrentImage()
public Paintable GetCurrentImage()
Returns
GetDuration()
public long GetDuration()
Returns
GetEnded()
public bool GetEnded()
Returns
GetError()
public Error? GetError()
Returns
GetFlags()
public PaintableFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasAudio()
public bool GetHasAudio()
Returns
GetHasVideo()
public bool GetHasVideo()
Returns
GetIntrinsicAspectRatio()
public double GetIntrinsicAspectRatio()
Returns
GetIntrinsicHeight()
public int GetIntrinsicHeight()
Returns
GetIntrinsicWidth()
public int GetIntrinsicWidth()
Returns
GetLoop()
public bool GetLoop()
Returns
GetMuted()
public bool GetMuted()
Returns
GetPlaying()
public bool GetPlaying()
Returns
GetTimestamp()
public long GetTimestamp()
Returns
GetVolume()
public double GetVolume()
Returns
InvalidateContents()
public void InvalidateContents()
InvalidateSize()
public void InvalidateSize()
IsPrepared()
public bool IsPrepared()
Returns
IsSeekable()
public bool IsSeekable()
Returns
IsSeeking()
public bool IsSeeking()
Returns
Pause()
public void Pause()
Play()
public void Play()
Realize(Surface)
public void Realize(Surface surface)
Parameters
surfaceSurface
Seek(long)
public void Seek(long timestamp)
Parameters
timestamplong
SeekFailed()
public void SeekFailed()
SeekSuccess()
public void SeekSuccess()
SetLoop(bool)
public void SetLoop(bool loop)
Parameters
loopbool
SetMuted(bool)
public void SetMuted(bool muted)
Parameters
mutedbool
SetPlaying(bool)
public void SetPlaying(bool playing)
Parameters
playingbool
SetVolume(double)
public void SetVolume(double volume)
Parameters
volumedouble
Snapshot(Snapshot, double, double)
public void Snapshot(Snapshot snapshot, double width, double height)
Parameters
StreamEnded()
[Version("4.4")]
public void StreamEnded()
StreamPrepared(bool, bool, bool, long)
[Version("4.4")]
public void StreamPrepared(bool hasAudio, bool hasVideo, bool seekable, long duration)
Parameters
StreamUnprepared()
[Version("4.4")]
public void StreamUnprepared()
Unprepared()
public void Unprepared()
Unrealize(Surface)
public void Unrealize(Surface surface)
Parameters
surfaceSurface
Update(long)
public void Update(long timestamp)
Parameters
timestamplong
Events
OnInvalidateContents
public event SignalHandler<Paintable> OnInvalidateContents
Event Type
OnInvalidateSize
public event SignalHandler<Paintable> OnInvalidateSize