Interface IMediaPlayerControls
Media Player controls interface.
Inherited Members
Namespace: VisioForge.Core.Types
Assembly: VisioForge.Core.dll
Syntax
public interface IMediaPlayerControls : IVideoEffectsControls
Properties
State
Gets the state.
Declaration
PlaybackState State { get; }
Property Value
Type | Description |
---|---|
PlaybackState | The state. |
Methods
Duration()
Gets the duration.
Declaration
TimeSpan Duration()
Returns
Type | Description |
---|---|
TimeSpan | TimeSpan. |
DurationAsync()
Gets the duration (async.).
Declaration
Task<TimeSpan> DurationAsync()
Returns
Type | Description |
---|---|
Task<TimeSpan> | Task<TimeSpan>. |
GetFileThumbnail(string)
Gets the file thumbnail.
Declaration
SKBitmap GetFileThumbnail(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The filename. |
Returns
Type | Description |
---|---|
SKBitmap | SKBitmap. |
NextFrame()
Plays the next frame.
Declaration
bool NextFrame()
Returns
Type | Description |
---|---|
bool |
|
OpenAsync(string)
Opens the specified file (async.).
Declaration
Task<bool> OpenAsync(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Returns
Type | Description |
---|---|
Task<bool> | Task<System.Boolean>. |
Pause()
Pauses.
Declaration
bool Pause()
Returns
Type | Description |
---|---|
bool |
|
PauseAsync()
Pauses (async.).
Declaration
Task<bool> PauseAsync()
Returns
Type | Description |
---|---|
Task<bool> | Task. |
Play()
Plays.
Declaration
bool Play()
Returns
Type | Description |
---|---|
bool |
|
PlayAsync()
Plays (async.).
Declaration
Task<bool> PlayAsync()
Returns
Type | Description |
---|---|
Task<bool> | Task<System.Boolean>. |
Position_Get()
Gets the position.
Declaration
TimeSpan Position_Get()
Returns
Type | Description |
---|---|
TimeSpan | TimeSpan. |
Position_GetAsync()
Gets the position (async.).
Declaration
Task<TimeSpan> Position_GetAsync()
Returns
Type | Description |
---|---|
Task<TimeSpan> | Task<TimeSpan>. |
Position_Set(TimeSpan, bool)
Sets the position.
Declaration
void Position_Set(TimeSpan position, bool seekToKeyframe = false)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | position | The position. |
bool | seekToKeyframe | if set to |
Position_SetAsync(TimeSpan, bool)
Sets the position (async.).
Declaration
Task Position_SetAsync(TimeSpan position, bool seekToKeyframe = false)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | position | The position. |
bool | seekToKeyframe | if set to |
Returns
Type | Description |
---|---|
Task | Task. |
PrevFrame()
Plays the previous frame.
Declaration
bool PrevFrame()
Returns
Type | Description |
---|---|
bool |
|
Resume()
Resumes.
Declaration
bool Resume()
Returns
Type | Description |
---|---|
bool |
|
ResumeAsync()
Resumes (async.).
Declaration
Task<bool> ResumeAsync()
Returns
Type | Description |
---|---|
Task<bool> | Task. |
SetSpeed(double)
Sets the speed.
Declaration
bool SetSpeed(double speed)
Parameters
Type | Name | Description |
---|---|---|
double | speed | The speed. |
Returns
Type | Description |
---|---|
bool |
|
SetSpeedAsync(double)
Sets the speed (async.).
Declaration
Task<bool> SetSpeedAsync(double speed)
Parameters
Type | Name | Description |
---|---|---|
double | speed | The speed. |
Returns
Type | Description |
---|---|
Task<bool> | Task<System.Boolean>. |
Stop()
Stops.
Declaration
void Stop()
StopAsync()
Stops (async.).
Declaration
Task StopAsync()
Returns
Type | Description |
---|---|
Task | Task. |
Volume_Get()
Gets the volume.
Declaration
double Volume_Get()
Returns
Type | Description |
---|---|
double | System.Double. |
Volume_Set(double)
Sets the volume.
Declaration
void Volume_Set(double volume)
Parameters
Type | Name | Description |
---|---|---|
double | volume | The volume. |