Click or drag to resize

IMediaPlayer Interface

Represents an interface, that provides access to the media player.
Media player is responsible for playback functionality.

Namespace: Bosch.Vms.CameoSdk
Assembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
Syntax
C#
public interface IMediaPlayer : IDisposable

The IMediaPlayer type exposes the following members.

Properties
 NameDescription
Public propertyCurrentPosition Current position time in UTC.
Public propertyDirection Configure playback direction.
Public propertyIsPlaying True if media player is in the play mode now (readonly).
Public propertySpeed Configure playback speed.
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodPause Pause playback.
Public methodPlay Start play.
Public methodCode exampleStep Go to the next/previous frame.
Top
Events
 NameDescription
Public eventPlaybackTimeChanged Raised when playback time was changed.
Public eventPlayerStateChanged Raised when one of the properties (Speed, Direction, IsPlaying) was changed.
Top
Remarks
A single media player can be created and associated with several IVideoCameoControl, in this case all associated controls will be synchronized (by CurrentPosition).
To release the allocated resources the Dispose method of the IMediaPlayer must be called as soon as the application has finished using the IMediaPlayer. For example when all Control instances of the IVideoCameoControl, which were created by the CreatePlaybackCameoControl(IMediaPlayer) method, get disposed then the associated IMediaPlayer instance must be disposed. Otherwise it can lead to a memory leak or other unexpected behavior.
See Also