public class

VideoPlayerViewSoftware

extends GLSurfaceView
implements AMPFeedLoader.AMPFeedLoaderListener VideoPlayerView
java.lang.Object
   ↳ GLSurfaceView
     ↳ com.akamai.media.VideoPlayerViewSoftware

Class Overview

Video player user control that uses software decoding

Summary

[Expand]
Inherited Constants
From interface com.akamai.media.VideoPlayerView
Public Constructors
VideoPlayerViewSoftware(Context context)
Constructor
VideoPlayerViewSoftware(Context context, AttributeSet attrs)
Constructor
Public Methods
String about()
Get the about text.
Bitmap captureFrame(int iInCaptureWidth, int iInCaptureHeight)
Capture the current frame during the playback
void clearRenderBuffer()
Clears the screen render buffer.
void feedLoaded(AMPFeed feed)
long getAvgFPS()
For the current playback, get the average FPS (Frames per Second)
int getBitrateByIndex(int index)
Return the bitrate (bps) for the variant indicated in the index parameter
int getBitratesCount()
Get the number of available bitrate indexes for the loaded stream
int getBitratesSwitchesDown()
For multibirate streams, get the number of times the control has switched down
int getBitratesSwitchesUp()
For multibirate streams, get the number of times the control has switched up
int getBufferingPercentage()
Get the rebuffering percentage
long getBytesLoaded()
For the current playback, get the number of bytes loaded
long getCurrentBitrate()
Get the current bitrate of the video
String getCurrentSegmentUrl()
long getDVRLength()
Get the lenght, in seconds, of the DVR
int getDuration()
Get the duration of the video.
double getEncodedFPS()
Get the encoded frames per second for the loaded stream
long getFPS()
Get the current FPS (Frames per Second)
AMPFeed getFeed()
Returns the feed of the loaded stream (in case playback was launched providing a json feed)
int getFullScreenMode()
Return the fullscreen mode
int getIndexByBitrate(int bitrate)
Return the index for the bitrate indicated in the bitrate parameter (bps)
int getLastErrorCode()
Returns the last error code that happens during the playback
int getLastHttpErrorCode()
Get error code of the last http request
int getLastMeasuredBandwidth()
Returns the last measured bandwidth
long getLastPTS()
Get the PTS of the last packet read by the decoder
Date getLicenseExpirationDate()
Returns the expiration date of the set license
String getLicensePackageName()
Returns the package name for which the set license is valid
int[] getLocationOnScreen()
Computes the coordinates of this view on the screen
int getPositionInDVR()
Return the current playback position in the DVR
View getProgressBarControl()
Gets the progress bar control that is shown whenever the player is doing a buffering/loading operation
String getProtocol()
Get the protocol of the current loaded stream
double getRebufferingTime()
Get the total time the player has been rebuffering
int getRebuffers()
Get the rebuffering times
String getServerIp()
Get the Server Ip of the current loaded stream
int getServerPort()
Get the Server port for the current loaded stream
String getStreamUrl()
Returns the url of the loaded stream
String getStreamsInfo()
Return information about the streams
int getTimePosition()
Return the current playback position
Date getTimePositionAsDate()
Return the current playback position
long getTimePositionMS()
Return the current playback position in milliseconds
String getVersionDescription()
Get extended information about the SDK version
int getVideoHeight()
Get the height of the video
int getVideoWidth()
Get the width of the video
boolean isAudioOnly()
Return true if the current bitrate is an audio only stream
Boolean isBitrateSupported(int iBitrateIndex)
Method used for knowing if a specific bitrate of the stream that is being played is compatible with the device.
boolean isError()
Check whether there was an error
boolean isFinished()
Check whether the current playback has finished
boolean isFullScreen()
Return true if the player is in fullscreenmode
boolean isLicenseExpired()
Get information about the status of the SDK license
boolean isLive()
Return true when playing a live stream
boolean isPaused()
Check whether VideoPlayerView control is in pause
boolean isPlaybackProcessInterrupted()
Return true if playback was interrupted by any of the Android SDK plugins
boolean isPlaying()
Check whether VideoPlayerView control is playing
boolean isResumingAfterActivityResume()
Return true if playback is being automatically restarted after an activity resume.
boolean isSeeking()
Check whether VideoPlayerView control is doing a seeking operation
void onDestroy()
void onPause()
void onResume()
void onSegmentProgress(String segmentUrl, int segmentOffset)
void pause()
Pause playback
void playAudioUrl(String sInUrl)
Play an audio only stream given the stream Url
void playAudioUrl(String sInUrl, int position)
Play an audio only stream given the stream URL, starting at the specified position in seconds
void playFeedFromJson(String sJsonData)
Play a stream given a JSON feed string.
void playFeedFromUrl(String sInUrl)
Play a stream given a feed url.
void playUrl(String sInUrl)
Play a stream given the stream Url
void playUrl(String sInUrl, int position)
Play a stream given the stream URL, starting at the specified position in seconds
void resume()
Resume playback
void seek(int iInNewPos, int iInRelPos)
Seek to the specified time position
void seekToLive()
Seek to the live position.
void setAdjustTimestamps(boolean adjust)
Enable/disable the adjustment of timestamps in case of misalignment detected
void setAkamaiAlgorithmValue(int bitrate)
Combined with setHLSStartingAlgorithm(VideoPlayerView.HLS_STARTING_ALGORITHM_AKAMAI) this methods allow setting a custom value for the maximum starting bitrate (default is 300000bps)
void setAutoResume(boolean enable)
Enable/disable auto resume feature.
void setAvoidAudioOnlyStreams(boolean bInValue)
When multibitrate, deactivate/activate the use of audio only streams
void setAvoidIncompatibleVideoProfiles(boolean bInValue)
This method is deprecated. Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose profile is not compatible with the H.264 hardware decoder. This method doesn't make sense for software decoding.
void setAvoidIncompatibleVideoResolutions(boolean bInValue)
This method is deprecated. Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose video resolution higher than the device screen resolution. This method doesn't make sense for software decoding.
void setBitrateToPlay(int bitrate)
In manual switching mode, set the maximum bitrate to be used during the playback.
void setDebugUrl(String value)
When debugging mode is active, each time the player finish playing a stream it sends a report to the url defined using this method.
void setDebugingActive(Boolean value)
Activate/deactivate the debug mode
void setDefaultAudioConfig(int sample_rate, int channels)
Set default audio configuration parameters.
void setDisableDynamicAudioFeature(boolean disable)
Disable dynamic audio feature in stream (bitrates with different audio settings: channels, sample rate).
void setDropFrames(boolean value)
Configure the player to drop frames when needed for improving audio/video sync.
void setDropWrongTimestampPacketsMode(int mode)
Set how to manage packets that don't include timestamp For not well encoded streams is possible that timestamp values are not correctly set.
void setEventsListener(IPlayerEventsListener oInPlayer)
Register a callback to be invoked when any player event happens
void setForceFormatChange(boolean value)
When set to true, the format change flag is set to true for the initial segment after a seeking operation.
void setForceOMXdecoding(boolean value)
When set to true, the decoding engine will use the direct OMX approach instead of the newest MediaCodec approach.
void setFullScreen(boolean bInFullScreen)
Set fullscreen mode.
void setFullScreenMode(int mode)
Set fullscreen mode.
void setHLSStartingAlgorithm(int mode)
Set the starting algorithm used for playing HLS streams
void setHardwareSeekingProtection(boolean value)
When set to true, multiple seeks in a row are blocked by the SDK to protect from a hardware interface crash failure occurring for specific streams Default value: false Note: only for Hardware Advanced decoding mode
void setInitialSeekingPosition(int iInNewPos)
Set the video starting position
void setLicense(String license)
Set the Android SDK license.
void setLogEnabled(boolean value)
Enable/Disable log traces
void setManualSwitching(boolean bInValue)
Sets the manual switching mode
void setMaxBitrate(int bitrate)
Limit the maximum bitrate that can be played
void setMediaAnalyticsConfigUrl(String configUrl)
Set the Media Analytics config url To use Media Analytics the application must enabled the following permissions - android.permission.INTERNET - android.permission.ACCESS_NETWORK_STATE - android.permission.READ_PHONE_STATE - android.permission.ACCESS_WIFI_STATE
void setMediaAnalyticsData(String key, String value)
Report Media Analytics custom dimension in the player
void setMediaAnalyticsViewerDiagnosticsId(String viewerId)
Set Media Analytics Diagnostics Viewer Id.
void setMediaAnalyticsViewerId(String viewerId)
Set Media Analytics Viewer Id
void setNetSessionMode(int mode)
Enable/Disable client side delivery
void setProgressBarControl(View progressBar)
Sets the progress bar control that should be shown whenever the player is doing a buffering/loading operation
void setRebufferingMode(int iInMode)
Set the rebuffering mode.
void setRebufferingSize(int iInRebufferSize)
Set the rebuffering buffer size
void setSegmentInfoListener(ISegmentInfoListener listener)
void setStartingBitrateIndex(int iIndex)
Set index of the bitrate to be used when playback start
void setUseBufferingWhenStarting(boolean value)
Enable/Disable the use of an initial buffer used for starting playback If enabled, playback won't start until the initial buffer is full.
void setUseMultiThread(boolean value)
Enable/disable the use of multi threading decoding
void setVideoQuality(int iInQuality)
Set the video quality.
void stop()
Stop playback
void switchBitrateDown()
Ask the player to switch to the lower bitrate
void switchBitrateUp()
Ask the player to switch to the upper bitrate
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.akamai.media.AMPFeedLoader.AMPFeedLoaderListener
From interface com.akamai.media.VideoPlayerView

Public Constructors

public VideoPlayerViewSoftware (Context context)

Constructor

Parameters
context Activity context

public VideoPlayerViewSoftware (Context context, AttributeSet attrs)

Constructor

Parameters
context Activity context
attrs Attributes

Public Methods

public String about ()

Get the about text. You have to include this text in the About option of your application

Returns
  • About text

public Bitmap captureFrame (int iInCaptureWidth, int iInCaptureHeight)

Capture the current frame during the playback

Parameters
iInCaptureWidth Width to use for the captured bitmap
iInCaptureHeight Height to use for the captured bitmap
Returns
  • Bitmap with the captured frame

public void clearRenderBuffer ()

Clears the screen render buffer. Only compatible with software decoding

Returns
  • void

public void feedLoaded (AMPFeed feed)

public long getAvgFPS ()

For the current playback, get the average FPS (Frames per Second)

Returns
  • Average FPS

public int getBitrateByIndex (int index)

Return the bitrate (bps) for the variant indicated in the index parameter

Parameters
index of the bitrate
Returns
  • bitrate of the variant

public int getBitratesCount ()

Get the number of available bitrate indexes for the loaded stream

Returns
  • Number of bitrates

public int getBitratesSwitchesDown ()

For multibirate streams, get the number of times the control has switched down

Returns
  • Bitrate switch down times

public int getBitratesSwitchesUp ()

For multibirate streams, get the number of times the control has switched up

Returns
  • Bitrate switch up times

public int getBufferingPercentage ()

Get the rebuffering percentage

Returns
  • Percentage of rebuffering

public long getBytesLoaded ()

For the current playback, get the number of bytes loaded

Returns
  • Bytes loaded

public long getCurrentBitrate ()

Get the current bitrate of the video

Returns
  • Current bitrate in bps

public String getCurrentSegmentUrl ()

public long getDVRLength ()

Get the lenght, in seconds, of the DVR

Returns
  • In case the stream is a live stream, returns the length of the DVR in seconds. Otherwise, returns 0

public int getDuration ()

Get the duration of the video. For a live stream the duration will be 0. This value can be assumed as valid once the player has received the event PLAYER_EVENT_TYPE_START_PLAYING.

Returns
  • Duration of the video in seconds

public double getEncodedFPS ()

Get the encoded frames per second for the loaded stream

Returns
  • Encoded Frames Per Second

public long getFPS ()

Get the current FPS (Frames per Second)

Returns
  • FPS

public AMPFeed getFeed ()

Returns the feed of the loaded stream (in case playback was launched providing a json feed)

Returns
  • Feed object

public int getFullScreenMode ()

Return the fullscreen mode

public int getIndexByBitrate (int bitrate)

Return the index for the bitrate indicated in the bitrate parameter (bps)

Returns
  • 0 starting index of the bitrate in the list of bitrates.

public int getLastErrorCode ()

Returns the last error code that happens during the playback

Returns
  • Error code

public int getLastHttpErrorCode ()

Get error code of the last http request

Returns
  • Error code of the last http request

public int getLastMeasuredBandwidth ()

Returns the last measured bandwidth

Returns
  • Bandwidth in bytes per second

public long getLastPTS ()

Get the PTS of the last packet read by the decoder

Returns
  • PTS of the last packet read by the decoder

public Date getLicenseExpirationDate ()

Returns the expiration date of the set license

Returns
  • Expiration date of the license.

public String getLicensePackageName ()

Returns the package name for which the set license is valid

Returns
  • Package name of the license.

public int[] getLocationOnScreen ()

Computes the coordinates of this view on the screen

Returns
  • Coordinates of this view on the screen

public int getPositionInDVR ()

Return the current playback position in the DVR

Returns
  • Current playback position in the DVR in seconds

public View getProgressBarControl ()

Gets the progress bar control that is shown whenever the player is doing a buffering/loading operation

Returns
  • Progress bar control. It will be null in case no progress bar control was set

public String getProtocol ()

Get the protocol of the current loaded stream

Returns
  • Protocol

public double getRebufferingTime ()

Get the total time the player has been rebuffering

Returns
  • Rebuffering time in seconds

public int getRebuffers ()

Get the rebuffering times

Returns
  • Rebuffering times

public String getServerIp ()

Get the Server Ip of the current loaded stream

Returns
  • Server Ip address

public int getServerPort ()

Get the Server port for the current loaded stream

Returns
  • Transport protocol port

public String getStreamUrl ()

Returns the url of the loaded stream

Returns
  • Url of the loaded stream

public String getStreamsInfo ()

Return information about the streams

Returns
  • String with the streams description

public int getTimePosition ()

Return the current playback position

Returns
  • Current playback position in seconds

public Date getTimePositionAsDate ()

Return the current playback position

Returns
  • Current playback position as Date (locale time)

public long getTimePositionMS ()

Return the current playback position in milliseconds

Returns
  • Current playback position in seconds

public String getVersionDescription ()

Get extended information about the SDK version

Returns
  • SDK Version full description

public int getVideoHeight ()

Get the height of the video

Returns
  • Height of the video in pixels

public int getVideoWidth ()

Get the width of the video

Returns
  • Width of the video in pixels

public boolean isAudioOnly ()

Return true if the current bitrate is an audio only stream

Returns
  • true if it is audio only, false otherwise

public Boolean isBitrateSupported (int iBitrateIndex)

Method used for knowing if a specific bitrate of the stream that is being played is compatible with the device.

Parameters
iBitrateIndex Zero based index of the bitrate to check.
Returns
  • True if the bitrate is supported, otherwise returns false.

public boolean isError ()

Check whether there was an error

Returns
  • true if the control is in error state, false otherwise

public boolean isFinished ()

Check whether the current playback has finished

Returns
  • true if the playback has finished, false otherwise

public boolean isFullScreen ()

Return true if the player is in fullscreenmode

Returns
  • true if the player is in fullscreenmode, false otherwise

public boolean isLicenseExpired ()

Get information about the status of the SDK license

Returns
  • true if the license has expired, false otherwise

public boolean isLive ()

Return true when playing a live stream

Returns
  • true if playing a live stream, false otherwise

public boolean isPaused ()

Check whether VideoPlayerView control is in pause

Returns
  • true if currently in pause, false otherwise

public boolean isPlaybackProcessInterrupted ()

Return true if playback was interrupted by any of the Android SDK plugins

Returns
  • true if playback is interrupted, false otherwise

public boolean isPlaying ()

Check whether VideoPlayerView control is playing

Returns
  • true if currently playing, false otherwise

public boolean isResumingAfterActivityResume ()

Return true if playback is being automatically restarted after an activity resume. This property is set to false once the event PLAYER_EVENT_TYPE_LOAD_REQUESTED is launched

Returns
  • true if playback is being automatically resumed after an activity resume

public boolean isSeeking ()

Check whether VideoPlayerView control is doing a seeking operation

Returns
  • true if currently seeking, false otherwise

public void onDestroy ()

public void onPause ()

public void onResume ()

public void onSegmentProgress (String segmentUrl, int segmentOffset)

public void pause ()

Pause playback

public void playAudioUrl (String sInUrl)

Play an audio only stream given the stream Url

Parameters
sInUrl Url of the stream to play

public void playAudioUrl (String sInUrl, int position)

Play an audio only stream given the stream URL, starting at the specified position in seconds

Parameters
sInUrl Url of the stream to play
position Start position in seconds

public void playFeedFromJson (String sJsonData)

Play a stream given a JSON feed string. Feed format supported is JSON type data with the format defined by Akamai Media Player. Example: http://projects.mediadev.edgesuite.net/customers/akamai/mdt-html5-core/premier/1.0.0008/resources/feeds/vod-feed.json

Parameters
sJsonData JSON string

public void playFeedFromUrl (String sInUrl)

Play a stream given a feed url. Feed format supported is JSON type data with the format defined by Akamai Media Player. Example: http://projects.mediadev.edgesuite.net/customers/akamai/mdt-html5-core/premier/1.0.0008/resources/feeds/vod-feed.json

Parameters
sInUrl URL of the feed to play

public void playUrl (String sInUrl)

Play a stream given the stream Url

Parameters
sInUrl Url of the stream to play

public void playUrl (String sInUrl, int position)

Play a stream given the stream URL, starting at the specified position in seconds

Parameters
sInUrl URL of the stream to play
position Start position in seconds

public void resume ()

Resume playback

public void seek (int iInNewPos, int iInRelPos)

Seek to the specified time position

Parameters
iInNewPos The offset in seconds from the start to seek to. It can be 0 to do a relative seek
iInRelPos The offset in seconds from the current position to seek to. It can be 0 to do an absolute seek

public void seekToLive ()

Seek to the live position. Onlu valid for live streams

public void setAdjustTimestamps (boolean adjust)

Enable/disable the adjustment of timestamps in case of misalignment detected

public void setAkamaiAlgorithmValue (int bitrate)

Combined with setHLSStartingAlgorithm(VideoPlayerView.HLS_STARTING_ALGORITHM_AKAMAI) this methods allow setting a custom value for the maximum starting bitrate (default is 300000bps)

Parameters
bitrate in bps

public void setAutoResume (boolean enable)

Enable/disable auto resume feature. Auto resume is evaluated when playback was interrupted, in the loading phase, by a plugin. In case auto-resume is set to true, playbac will start automatically once the plugin that interrupted the loading has finishing its work.

Parameters
enable If true, auto-resume is enabled.

public void setAvoidAudioOnlyStreams (boolean bInValue)

When multibitrate, deactivate/activate the use of audio only streams

Parameters
bInValue If true, audio only streams will not be used for mbr streams

public void setAvoidIncompatibleVideoProfiles (boolean bInValue)

This method is deprecated.
Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose profile is not compatible with the H.264 hardware decoder. This method doesn't make sense for software decoding.

Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose profile is not compatible with the H.264 hardware decoder.

Parameters
bInValue If true, enable protection that avoids selection of bitrates using H.264 profiles incompatible with the device.

public void setAvoidIncompatibleVideoResolutions (boolean bInValue)

This method is deprecated.
Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose video resolution higher than the device screen resolution. This method doesn't make sense for software decoding.

Enable/disable protection mechanism that avoids the selection of incompatible bitrates. When using hardware decoding method avoid the player to select any bitrate whose video resolution higher than the device screen resolution.

Parameters
bInValue If true, enable protection that avoids selection of bitrates whose profile is higher than the device screen reslution.

public void setBitrateToPlay (int bitrate)

In manual switching mode, set the maximum bitrate to be used during the playback. The bitrate to be played will be the one inmediately below or equal than the indicated in the parameter bitrate

Parameters
bitrate bitrate to play
Throws
Exception

public void setDebugUrl (String value)

When debugging mode is active, each time the player finish playing a stream it sends a report to the url defined using this method. The url parameter allows three variables: %DEVICEID %TIME %ERRORCODE For example, url: http://debug.android.testing.com/postDebug.php?id=%DEVICEID&time=%TIME&error=%ERRORCODE

Parameters
value Url to send the debugging files

public void setDebugingActive (Boolean value)

Activate/deactivate the debug mode

Parameters
value When true, the player sends debug files to a remote server after each playback

public void setDefaultAudioConfig (int sample_rate, int channels)

Set default audio configuration parameters. Values provided will be used whenever the audio decoder is not able to get the real parameters of a stream

Parameters
sample_rate Audio stream sample rate
channels Number of channels of the audio stream

public void setDisableDynamicAudioFeature (boolean disable)

Disable dynamic audio feature in stream (bitrates with different audio settings: channels, sample rate). Having different audio settings per bitrate is not recommended!

public void setDropFrames (boolean value)

Configure the player to drop frames when needed for improving audio/video sync. When the cpu is extremely slow, the frame drop feature is automatically turned off to avoid the player to show a constant black screen. The default value for this property is false

Parameters
value When true, player will drop frames to sync audio/video

public void setDropWrongTimestampPacketsMode (int mode)

Set how to manage packets that don't include timestamp For not well encoded streams is possible that timestamp values are not correctly set. Using this method you can configure the SDK to drop packets with wrong timestamps

public void setEventsListener (IPlayerEventsListener oInPlayer)

Register a callback to be invoked when any player event happens

Parameters
oInPlayer The callback that will be run

public void setForceFormatChange (boolean value)

When set to true, the format change flag is set to true for the initial segment after a seeking operation. This reduces the "ghosting" effect seen on different devices when the stream keyframe interval is not aligned with the size of the segments. NOTE: only Android devices from 4.0.0 to 4.0.4 are affected, except if setForceOMXdecoding() is set to true. Default value: false Note: only for Hardware Advanced decoding mode

Parameters
value True to force format change flag after every seeking operation

public void setForceOMXdecoding (boolean value)

When set to true, the decoding engine will use the direct OMX approach instead of the newest MediaCodec approach. Useful for old Android 4.x devices not correctly supporting MediaCodec Default value: false Note: only for Hardware Advanced decoding mode Note: not compatible with audio-only streams (playAudioUrl)

Parameters
value True to force OMX approach

public void setFullScreen (boolean bInFullScreen)

Set fullscreen mode. Fullscreen mode keeps the aspect ratio

Parameters
bInFullScreen If true, switch the player to fullsreen mode. Otherwise, set non-fullscreen mode

public void setFullScreenMode (int mode)

Set fullscreen mode.

Parameters
mode Fullscreen mode

public void setHLSStartingAlgorithm (int mode)

Set the starting algorithm used for playing HLS streams

public void setHardwareSeekingProtection (boolean value)

When set to true, multiple seeks in a row are blocked by the SDK to protect from a hardware interface crash failure occurring for specific streams Default value: false Note: only for Hardware Advanced decoding mode

Parameters
value True to enable protection

public void setInitialSeekingPosition (int iInNewPos)

Set the video starting position

Parameters
iInNewPos The offset in seconds from the start to seek to. It can be 0 to do a relative seek

public void setLicense (String license)

Set the Android SDK license. Please, be sure you call this method before trying to play any video. Otherwise you will be using the Android SDK in trial mode (playback time limited).

public void setLogEnabled (boolean value)

Enable/Disable log traces

Parameters
value If true, log traces are enabled.

public void setManualSwitching (boolean bInValue)

Sets the manual switching mode

Parameters
bInValue if true, the control switch to manual mode and the bitrate selection algorithm is not used

public void setMaxBitrate (int bitrate)

Limit the maximum bitrate that can be played

Parameters
bitrate Max bitrate to play

public void setMediaAnalyticsConfigUrl (String configUrl)

Set the Media Analytics config url To use Media Analytics the application must enabled the following permissions - android.permission.INTERNET - android.permission.ACCESS_NETWORK_STATE - android.permission.READ_PHONE_STATE - android.permission.ACCESS_WIFI_STATE

public void setMediaAnalyticsData (String key, String value)

Report Media Analytics custom dimension in the player

Parameters
key Key of the data to set
value Value of the data to set

public void setMediaAnalyticsViewerDiagnosticsId (String viewerId)

Set Media Analytics Diagnostics Viewer Id. Needed for Viewer diagnostics

public void setMediaAnalyticsViewerId (String viewerId)

Set Media Analytics Viewer Id

public void setNetSessionMode (int mode)

Enable/Disable client side delivery

Parameters
mode NetSession mode.

public void setProgressBarControl (View progressBar)

Sets the progress bar control that should be shown whenever the player is doing a buffering/loading operation

Parameters
progressBar Progress Bar control

public void setRebufferingMode (int iInMode)

Set the rebuffering mode. By default its value is manual. In automatic mode the buffer size is managed by the player control trying to get the shortest startup time and minimizing the rebuffer times

Parameters
iInMode Rebuffering mode value.

public void setRebufferingSize (int iInRebufferSize)

Set the rebuffering buffer size

Parameters
iInRebufferSize Buffer size in bytes.

public void setSegmentInfoListener (ISegmentInfoListener listener)

public void setStartingBitrateIndex (int iIndex)

Set index of the bitrate to be used when playback start

public void setUseBufferingWhenStarting (boolean value)

Enable/Disable the use of an initial buffer used for starting playback If enabled, playback won't start until the initial buffer is full. The size of the buffer can be defined using the method setRebufferingSize

Parameters
value If true, log initial buffering is enabled.

public void setUseMultiThread (boolean value)

Enable/disable the use of multi threading decoding

public void setVideoQuality (int iInQuality)

Set the video quality. By default its value is "Low"

Parameters
iInQuality Video quality

public void stop ()

Stop playback

public void switchBitrateDown ()

Ask the player to switch to the lower bitrate

Throws
Exception

public void switchBitrateUp ()

Ask the player to switch to the upper bitrate

Throws
Exception