Click or drag to resize

IMediaPlayerFactoryGetMediaPlayer Method

Creates media player (playback control).

Namespace: Bosch.Vms.CameoSdk
Assembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
Syntax
C#
IMediaPlayer GetMediaPlayer(
	DateTime seekPosition
)

Parameters

seekPosition  DateTime
Initial position.

Return Value

IMediaPlayer
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