public abstract class

VideoPlayer

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.sharing.video.VideoPlayer

Class Overview

Video player offers an interface to manage the video player instance independently of the RCS service. The video player is implemented in the application side.
In the originating side, the video player captures the video from the device camera, encodes the video into the selected format and streams the encoded video frames over the network in RTP.
In the terminating side, the video renderer is implemented in the application side. The video renderer receives the video streaming over the network in RTP, decodes the video frames and displays the decoded picture on the device screen.

Summary

Public Constructors
VideoPlayer()
Constructor
Public Methods
abstract VideoCodec getCodec()
Returns the current codec
abstract int getLocalRtpPort()
Returns the local RTP port used to stream video
abstract VideoCodec[] getSupportedCodecs()
Returns the list of codecs supported by the player
abstract void setRemoteInfo(VideoCodec codec, String remoteHost, int remotePort, int orientationHeaderId)
Set the remote info
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public VideoPlayer ()

Since: API Level 1.5

Constructor

Public Methods

public abstract VideoCodec getCodec ()

Since: API Level 1.5

Returns the current codec

Returns
  • Codec

public abstract int getLocalRtpPort ()

Since: API Level 1.5

Returns the local RTP port used to stream video

Returns
  • Port number

public abstract VideoCodec[] getSupportedCodecs ()

Since: API Level 1.5

Returns the list of codecs supported by the player

Returns
  • List of codecs

public abstract void setRemoteInfo (VideoCodec codec, String remoteHost, int remotePort, int orientationHeaderId)

Since: API Level 1.5

Set the remote info

Parameters
codec Video codec
remoteHost Remote RTP host
remotePort Remote RTP port
orientationHeaderId Orientation header extension ID. The extension ID is a value between 1 and 15 arbitrarily chosen by the sender, as defined in RFC5285