|
STANAG 4609 Streamer .Net SDK
Version 1.09
|
Contains an interface definition for Streaming session. More...
Public Member Functions | |
| bool | Activate (string appName, string licPath, string Key) |
| Activate StreamingSession license. More... | |
| void | SetMode (STREAMING_MODE mode) |
| SetMode sets streaming mode. More... | |
| void | AddSourceSegment (string path, TimeSpan start, TimeSpan stop, int bitrate=0, int avgBitrate=0) |
| AddSourceSegment. More... | |
| void | AddTarget (string nic, string ip, int port, int pcktSize, short ttl) |
| AddTarget. More... | |
| void | Init () |
| Init. More... | |
| void | Start (TimeSpan? offset=null) |
| Start. More... | |
| void | Stop () |
| Stop. More... | |
| void | Pause () |
| Pause. More... | |
| bool | Seek (TimeSpan offset) |
| Seek. More... | |
| bool | Move (Int32 i) |
| Move. More... | |
| void | Reset () |
| Reset. More... | |
| bool | SetStreamingRate (double rate) |
| Set Streaming Rate. More... | |
| double | GetStreamingRate () |
| Init. More... | |
| MediaParams | DetectMediaParams (string path) |
| Detect Media Params. More... | |
Properties | |
| bool | Loop [get, set] |
| Loop. More... | |
| object | Id [get, set] |
| Streamer identificator. | |
| STREAMER_SESSION_STATE | State [get] |
| Streamer state. | |
| TimeSpan | SegmentPosition [get] |
| A position inside the current segment. | |
| TimeSpan | Position [get] |
| A position inside the playlist. | |
| TimeSpan | Duration [get] |
| Total playlist duration. | |
| Int64 | BytesSent [get] |
| Total bytes sent. | |
| long | CurrentBitrate [get] |
| Current streaming bitrate. | |
| Int32 | CurrentSegment [get] |
| Current segment number. | |
| string | Path [get] |
| Current segment pathr. | |
| List< StreamerSource > | GetSourceList [get] |
| Returns a list of source segments. | |
| List< StreamerTarget > | GetTargetList [get] |
| Returns a list of streaming targets. | |
Events | |
| SessionStatusChangeEventHandler | SessionStatusChangedEvent |
| Session Status Changed Event. More... | |
| SessionSegmentChangeEventHandler | SessionSegmentChangedEvent |
| Session Segment Changed Event. More... | |
| SessionErrorEventHandler | SessionErrorEvent |
| Session Error Event. More... | |
Contains an interface definition for Streaming session
| bool StreamerLib.IStreamingSession.Activate | ( | string | appName, |
| string | licPath, | ||
| string | Key | ||
| ) |
Activates StreamingSession features according to the license
| appName | a string. Application name. |
| licPath | a string. License file path. |
| licPath | a string. License Key. |
| void StreamerLib.IStreamingSession.AddSourceSegment | ( | string | path, |
| TimeSpan | start, | ||
| TimeSpan | stop, | ||
| int | bitrate = 0, |
||
| int | avgBitrate = 0 |
||
| ) |
Add Source Segment ( file ) to the streamer's play list.
| path | a string. File path. |
| start | a TimeSpan. Start offset. |
| stop | a TimeSpan. End offset. |
| bitrate | an int. File bitrate. Note, if bitrate (or duration ) = 0, they will be calculated during the initialization.As bitrate detection takes time, it is better to provide it (if available). It is also possible |
| average | bitrate an int. File average bitrate. to have it detected for the first time, and then read it back, so it could be stored at the application level and reused later. |
| void StreamerLib.IStreamingSession.AddTarget | ( | string | nic, |
| string | ip, | ||
| int | port, | ||
| int | pcktSize, | ||
| short | ttl | ||
| ) |
Add streaming target. This method allows streaming toward more than one destination.
| nic | a string. Metwork interface. |
| ip | a string. IP. |
| port | an int. Port. |
| pcktSize | an int. Packet size. |
| ttl | a short. Ttl. |
| MediaParams StreamerLib.IStreamingSession.DetectMediaParams | ( | string | path | ) |
Detects / Calculates TS Media params
| path | a string. File path. |
| double StreamerLib.IStreamingSession.GetStreamingRate | ( | ) |
Initialize a streaming session
| void StreamerLib.IStreamingSession.Init | ( | ) |
Initialize streaming session. If no bitrate (or duration) info provided while adding the source segements (set to 0), it is calculated during the initialization. As bitrate detection takes time, it is better to provide it (if available). It is also possible to have it detected for the first time, and then read it back, so it could be stored at the application level and reused later.
| bool StreamerLib.IStreamingSession.Move | ( | Int32 | i | ) |
go to a specific segment in the list
| i | an int. Segment to move to. |
| void StreamerLib.IStreamingSession.Pause | ( | ) |
Pauses streaming session
| void StreamerLib.IStreamingSession.Reset | ( | ) |
Resets a streamer
| bool StreamerLib.IStreamingSession.Seek | ( | TimeSpan | offset | ) |
Seek to a specific point in the list
| offset | a TimeSpan. Time offset |
| void StreamerLib.IStreamingSession.SetMode | ( | STREAMING_MODE | mode | ) |
| bool StreamerLib.IStreamingSession.SetStreamingRate | ( | double | rate | ) |
Sets streaming rate
| rate | a double. Streaming rate (x realtime) |
| void StreamerLib.IStreamingSession.Start | ( | TimeSpan? | offset = null | ) |
Starts a streaming session
| offset | a TimeSpan?. An offset to the specific point in the segment list to start a stream. |
| void StreamerLib.IStreamingSession.Stop | ( | ) |
Stops streaming session
|
getset |
Repeat streaming session.
| SessionErrorEventHandler StreamerLib.IStreamingSession.SessionErrorEvent |
SessionErrorEvent. Raised when error occurs.
| SessionSegmentChangeEventHandler StreamerLib.IStreamingSession.SessionSegmentChangedEvent |
Session Segment Changed Event. Raised when current segment is changed.
| SessionStatusChangeEventHandler StreamerLib.IStreamingSession.SessionStatusChangedEvent |
Session Status Changed Event. Raised when streamer status is changed.