Packagede.spring.sensors
Interfacepublic interface StreamAdapter
Implementors NetStreamAdapter



Public Methods
 MethodDefined By
  
Returns the duration of the stream in seconds.
StreamAdapter
  
getHeight():int
Returns the height of the video.
StreamAdapter
  
Returns the meta information about the adapted player.
StreamAdapter
  
Returns the current position on the stream in seconds.
StreamAdapter
  
getWidth():int
Returns the width of the video.
StreamAdapter
Method Detail
getDuration()method
public function getDuration():int

Returns the duration of the stream in seconds. If a live stream is playing, in most cases it's not possible to deliver a valid stream length. In this case, the value 0 is to be delivered.

Returns
int — The stream length in seconds.
getHeight()method 
public function getHeight():int

Returns the height of the video. If the content is not a movie the value 0 is to be delivered.

Returns
int — the height
getMeta()method 
public function getMeta():Meta

Returns the meta information about the adapted player.

Returns
Meta — The meta object

See also

getPosition()method 
public function getPosition():int

Returns the current position on the stream in seconds.

Returns
int — The stream position in seconds.
getWidth()method 
public function getWidth():int

Returns the width of the video. If the content is not a movie the value 0 is to be delivered.

Returns
int — the width