Hints:
CameraStreamer(CameraStreamerDelegate delegate);
Constructs CameraStreamer instance.
String rtspUrlString;
String which represents RTSP URL to be streamed. Streamer will start streaming after variable set.
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.
float getBufferTime();
returns buffer time of footage stream (0 for live stream), in milliseconds.
boolean muteAudio;
mutes audio by ignoring the audio stream altogether.
byte[] takeSnapshot();
iOS specific: returns last decoded frame.
FrameDataType outputContentType;
iOS specific: frame's output content type.
@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.
@optional onDurationChanged(float duration);
Will be called when footage stream duration has been changed.
@optional onBufferTimeChanged(float bufferTime);
Will be called when footage stream buffer time has been changed.
@required onFrameDataReceived(FrameData frameData);
iOS specific: When a new frame arrives, this method will be called with frame data instance.
@required onError(MobileSDKError error);
Will be called if there is an error in the streaming process.
case UIImage
case CIImage
FrameDataType getType();
iOS specific: Returns type of frame's data.
byte[] getData();
Returns data associated with frame.
float getTimestamp();
Returns timestamp associated with frame.