Table of Contents

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

MediaStream(bool, params ConstructArgument[])

protected MediaStream(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

MediaStream(IntPtr, bool)

protected MediaStream(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

DurationPropertyDefinition

public static readonly Property<long, MediaStream> DurationPropertyDefinition

Field Value

Property<long, MediaStream>

EndedPropertyDefinition

public static readonly Property<bool, MediaStream> EndedPropertyDefinition

Field Value

Property<bool, MediaStream>

ErrorPropertyDefinition

public static readonly Property<Error, MediaStream> ErrorPropertyDefinition

Field Value

Property<Error, MediaStream>

HasAudioPropertyDefinition

public static readonly Property<bool, MediaStream> HasAudioPropertyDefinition

Field Value

Property<bool, MediaStream>

HasVideoPropertyDefinition

public static readonly Property<bool, MediaStream> HasVideoPropertyDefinition

Field Value

Property<bool, MediaStream>

LoopPropertyDefinition

public static readonly Property<bool, MediaStream> LoopPropertyDefinition

Field Value

Property<bool, MediaStream>

MutedPropertyDefinition

public static readonly Property<bool, MediaStream> MutedPropertyDefinition

Field Value

Property<bool, MediaStream>

PlayingPropertyDefinition

public static readonly Property<bool, MediaStream> PlayingPropertyDefinition

Field Value

Property<bool, MediaStream>

PreparedPropertyDefinition

public static readonly Property<bool, MediaStream> PreparedPropertyDefinition

Field Value

Property<bool, MediaStream>

SeekablePropertyDefinition

public static readonly Property<bool, MediaStream> SeekablePropertyDefinition

Field Value

Property<bool, MediaStream>

SeekingPropertyDefinition

public static readonly Property<bool, MediaStream> SeekingPropertyDefinition

Field Value

Property<bool, MediaStream>

TimestampPropertyDefinition

public static readonly Property<long, MediaStream> TimestampPropertyDefinition

Field Value

Property<long, MediaStream>

VolumePropertyDefinition

public static readonly Property<double, MediaStream> VolumePropertyDefinition

Field Value

Property<double, MediaStream>

Properties

Duration

public long Duration { get; }

Property Value

long

Ended

public bool Ended { get; }

Property Value

bool

Error

public Error Error { get; }

Property Value

Error

HasAudio

public bool HasAudio { get; }

Property Value

bool

HasVideo

public bool HasVideo { get; }

Property Value

bool

Loop

public bool Loop { get; set; }

Property Value

bool

Muted

public bool Muted { get; set; }

Property Value

bool

Playing

public bool Playing { get; set; }

Property Value

bool

Prepared

public bool Prepared { get; set; }

Property Value

bool

Seekable

public bool Seekable { get; }

Property Value

bool

Seeking

public bool Seeking { get; }

Property Value

bool

Timestamp

public long Timestamp { get; }

Property Value

long

Volume

public double Volume { get; set; }

Property Value

double

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

specifiedWidth double
specifiedHeight double
defaultWidth double
defaultHeight double
concreteWidth double
concreteHeight double

ErrorValist(Quark, int, string, IntPtr)

public void ErrorValist(Quark domain, int code, string format, IntPtr args)

Parameters

domain Quark
code int
format string
args IntPtr

Gerror(Error)

public void Gerror(Error error)

Parameters

error Error

GetCurrentImage()

public Paintable GetCurrentImage()

Returns

Paintable

GetDuration()

public long GetDuration()

Returns

long

GetEnded()

public bool GetEnded()

Returns

bool

GetError()

public Error? GetError()

Returns

Error

GetFlags()

public PaintableFlags GetFlags()

Returns

PaintableFlags

GetGType()

public static Type GetGType()

Returns

Type

GetHasAudio()

public bool GetHasAudio()

Returns

bool

GetHasVideo()

public bool GetHasVideo()

Returns

bool

GetIntrinsicAspectRatio()

public double GetIntrinsicAspectRatio()

Returns

double

GetIntrinsicHeight()

public int GetIntrinsicHeight()

Returns

int

GetIntrinsicWidth()

public int GetIntrinsicWidth()

Returns

int

GetLoop()

public bool GetLoop()

Returns

bool

GetMuted()

public bool GetMuted()

Returns

bool

GetPlaying()

public bool GetPlaying()

Returns

bool

GetTimestamp()

public long GetTimestamp()

Returns

long

GetVolume()

public double GetVolume()

Returns

double

InvalidateContents()

public void InvalidateContents()

InvalidateSize()

public void InvalidateSize()

IsPrepared()

public bool IsPrepared()

Returns

bool

IsSeekable()

public bool IsSeekable()

Returns

bool

IsSeeking()

public bool IsSeeking()

Returns

bool

Pause()

public void Pause()

Play()

public void Play()

Realize(Surface)

public void Realize(Surface surface)

Parameters

surface Surface

Seek(long)

public void Seek(long timestamp)

Parameters

timestamp long

SeekFailed()

public void SeekFailed()

SeekSuccess()

public void SeekSuccess()

SetLoop(bool)

public void SetLoop(bool loop)

Parameters

loop bool

SetMuted(bool)

public void SetMuted(bool muted)

Parameters

muted bool

SetPlaying(bool)

public void SetPlaying(bool playing)

Parameters

playing bool

SetVolume(double)

public void SetVolume(double volume)

Parameters

volume double

Snapshot(Snapshot, double, double)

public void Snapshot(Snapshot snapshot, double width, double height)

Parameters

snapshot Snapshot
width double
height double

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

hasAudio bool
hasVideo bool
seekable bool
duration long

StreamUnprepared()

[Version("4.4")]
public void StreamUnprepared()

Unprepared()

public void Unprepared()

Unrealize(Surface)

public void Unrealize(Surface surface)

Parameters

surface Surface

Update(long)

public void Update(long timestamp)

Parameters

timestamp long