|
VNMediaClientNET
|
Managed wrapper for VideoNEXT media player. More...
#include <MediaReciever.h>
Public Member Functions | |
| MediaReciever (DecoderType decoderType, Int32 cacheSizeMegabytes, RtpTransport rtpTransport, PixelFormat pixelFormat, Int32 bufferLength) | |
| Constructor. More... | |
| ~MediaReciever () | |
| void | Play (String^ url) |
| Starts video playing. More... | |
| void | Pause () |
| Pauses playback. | |
| void | Resume (PlaybackDirection direction) |
| Resumes paused playback. More... | |
| void | SetPlaybackSpeed (Double speed) |
| Sets playback speed. More... | |
| void | GotoTime (DateTime time) |
| Sets position in a video. More... | |
| bool | StartRecording (String^ filename, Dictionary< String^, String^>^ metadata) |
| Starts video recording to a QuickTime Movie (MOV) file on a hard drive. More... | |
| bool | EndRecording () |
| Ends video recording started by StartRecording call. More... | |
Static Public Member Functions | |
| static bool | IsPlayingState (StreamState state) |
| Returns true if given state is a playing state. More... | |
Public Attributes | |
| property StreamState | State |
| Media player state. More... | |
| property bool | IsPaused |
| True if playback is paused. | |
| property bool | IsPlaying |
| True if media player is in a playing state. | |
| event EventHandler< VideoFrameEventArgs^> | OnVideoFrame |
| Event is invoked on new video frame arrived. More... | |
| event EventHandler< StreamStateEventArgs^> | OnStreamState |
| Event is invoked when a player state changed. More... | |
| event EventHandler< CacheBoundariesEventArgs^> | OnBufferBoundaries |
| Event is invoked when player cache boundaries changed. More... | |
| event EventHandler< MessageLogEventArgs^> | OnMessageLog |
| Event is invoked on a new information message arrived from the player. More... | |
| event EventHandler< StreamEventArgs^> | OnStreamAdded |
| Event is invoked when a video stream added. Can be used to get video info for any type of source and metadata in case of file playback. More... | |
| event EventHandler< StreamEventArgs^> | OnStreamDeleted |
| Event is invoked when a video stream removed. More... | |
| event EventHandler< RecordingStatusEventArgs^> | OnRecordingStatusChange |
| Event is invoked when recording to a file status changed. More... | |
Managed wrapper for VideoNEXT media player.
| VideoNext::MediaReciever::MediaReciever | ( | DecoderType | decoderType, |
| Int32 | cacheSizeMegabytes, | ||
| RtpTransport | rtpTransport, | ||
| PixelFormat | pixelFormat, | ||
| Int32 | bufferLength | ||
| ) |
Constructor.
| decoderType | preferable choice is SoftwareMT. |
| cacheSizeMegabytes | cache size in MB. |
| rtpTransport | RTP transport, preferable choice is TCP. |
| pixelFormat | preferable choice is RGB32. |
| bufferLength | jitter buffer length in milliseconds. |
| VideoNext::MediaReciever::~MediaReciever | ( | ) |
Destructor.
| bool VideoNext::MediaReciever::EndRecording | ( | ) |
Ends video recording started by StartRecording call.
| void VideoNext::MediaReciever::GotoTime | ( | DateTime | time | ) |
Sets position in a video.
| time | time to set position to. OnVideoFrame event can be used to get frame times. |
|
static |
Returns true if given state is a playing state.
| state | state to get information for. |
| void VideoNext::MediaReciever::Play | ( | String^ | url | ) |
Starts video playing.
| url | video source URL. For live or archive SkmXmlApi.Camera.GetLiveUrl or SkmXmlApi.Camera.GetArchiveUrl should be used to get URL, for file playback URL should be in format file://full_path_to_file. |
| void VideoNext::MediaReciever::Resume | ( | PlaybackDirection | direction | ) |
Resumes paused playback.
| direction | playback direction - forward or backward. |
| void VideoNext::MediaReciever::SetPlaybackSpeed | ( | Double | speed | ) |
Sets playback speed.
| speed | 1 for normal speed, greater than 1 for fast play, less than 1 for slow play. |
| bool VideoNext::MediaReciever::StartRecording | ( | String^ | filename, |
| Dictionary< String^, String^>^ | metadata | ||
| ) |
Starts video recording to a QuickTime Movie (MOV) file on a hard drive.
| filename | full path and name of file to write to. |
| metadata | video clip metadata dictionary. SkmXmlApi.Camera.CameraData dictionary can be used to populate metadata. |
| event EventHandler<CacheBoundariesEventArgs^> VideoNext::MediaReciever::OnBufferBoundaries |
Event is invoked when player cache boundaries changed.
| event EventHandler<MessageLogEventArgs^> VideoNext::MediaReciever::OnMessageLog |
Event is invoked on a new information message arrived from the player.
| event EventHandler<RecordingStatusEventArgs^> VideoNext::MediaReciever::OnRecordingStatusChange |
Event is invoked when recording to a file status changed.
| event EventHandler<StreamEventArgs^> VideoNext::MediaReciever::OnStreamAdded |
Event is invoked when a video stream added. Can be used to get video info for any type of source and metadata in case of file playback.
| event EventHandler<StreamEventArgs^> VideoNext::MediaReciever::OnStreamDeleted |
Event is invoked when a video stream removed.
| event EventHandler<StreamStateEventArgs^> VideoNext::MediaReciever::OnStreamState |
Event is invoked when a player state changed.
| event EventHandler<VideoFrameEventArgs^> VideoNext::MediaReciever::OnVideoFrame |
Event is invoked on new video frame arrived.
| property StreamState VideoNext::MediaReciever::State |
Media player state.