Hints:
CameraStreamer(String rtspUrlString, CameraStreamerDelegate delegate);
Constructs CameraStreamer instance.
play();
Resumes streaming: footage from pause point, live from current timestamp.
pause();
Pauses streaming (both live and footage).
seekToTime(float time);
Jumps to concrete time in [0 ... duration] range and starts playing (even if footage was paused). In milliseconds. Wouldn't affect live streaming.
boolean isPlaying();
Returns true if the playback has been started.
boolean isLiveStreaming();
Returns true if streaming is not footage.
float getStartTime();
returns start time of footage stream (0 for live stream), in milliseconds till 1970.
float getEndTime();
returns end time of footage stream (0 for live stream), in milliseconds till 1970.
float getDuration();
returns duration of footage stream (0 for live stream), in milliseconds.
float getPosition();
returns current position in [0 ... duration] range for footage stream or current timestamp for live stream, in milliseconds.
boolean muteAudio;
mutes audio by ignoring the audio stream altogether.
byte[] takeSnapshot();
iOS specific: returns last decoded frame.
@optional onStarted();
Will get called when the playback has been effectively resumed/started.
@optional onPaused();
Will get called when the playback has been paused.
@optional onSoughtToTime(float time);
Will get called when the playback has been sought to given time.
@optional onEnded();
Will get called when the playback has been ended. Will be called only for footage stream as live stream can't end.
@required onFrameDataReceived(UIImage frame, Double timestamp);
iOS specific: When a new frame arrives, this method will be called.
@required onError(MobileSDKError error);
Will be called if there is an error in the streaming process.