IStream

public interface IStream

An IStream object represents a single audio/video stream object. You can obtain a new IStream object by calling the method StreamingLib.createStream(java.util.HashMap,android.os.Handler).

Methods

commitProperties

public boolean commitProperties(StreamProperties properties)

Commit the stream properties values specified as argument

Parameters:
  • properties – the stream properties to update
Returns:

true if no error occurred during the update request; False otherwise

destroy

public void destroy()

Destroy this stream

getErrorMsg

public String getErrorMsg()

Get detailed informations about a stream error (return an empty stream if the stream is not in Stream.ERROR state)

Returns:infomrations about the type of stream error

getName

public String getName()
Returns:the name of this stream

getProperty

public Object getProperty(StreamProperty property)

Reads the current value of the specified stream property

Parameters:
  • property
Returns:

the value of the property

getState

public StreamState getState()
Returns:the current state of this stream

getVideoSize

public Size getVideoSize()
Returns:the current size of the video stream

loadStillImage

public boolean loadStillImage(String uri)

Load a still image from the remote camera, provided the uri

Parameters:
  • uri – the uri pointing to the image to load
Returns:

true if no error occurred during the operation, false otherwise

pause

public void pause()

pause the stream

play

public void play()

Play the stream

prepare

public void prepare(SurfaceView surface)

Prepare the stream by providing a video surface

Parameters:
  • surfaceView – the Surface where to render the stream