public abstract class VideoPlayerView
extends GLSurfaceView
Modifier and Type | Field and Description |
---|---|
static int |
BANDWIDTH_NOT_REPORTED |
static int |
BITRATE_NOT_REPORTED |
static int |
DROP_WRONG_TIMESTAMP_PACKETS_ALWAYS
Packets with wrong timestamps will be always dropped
|
static int |
DROP_WRONG_TIMESTAMP_PACKETS_NEVER
Packets with wrong timestamps will be never dropped
|
static int |
DROP_WRONG_TIMESTAMP_PACKETS_ONLY_VOD
Packets with wrong timestamps will be dropped only for VOD streams
|
static int |
ERROR_FORMAT_UNKNOWN
The provided stream doesn't have a known format
|
static int |
ERROR_NETWORK_RESOURCE_DONT_EXIST
Resource (stream URL) doesn't exist
|
static int |
ERROR_NETWORK_SECURITY_ISSUE
Access not allowed to the provided stream URL
|
static int |
ERROR_NETWORK_UNAVAILABLE
Network access is not available
|
static int |
ERROR_RESOURCES_ISSUE
There was an issue while allocating resources for playback
|
static int |
ERROR_SUCCESS
No error
|
static int |
ERROR_TS_SEGMENT_INVALID
The provided stream contains format errors
|
static int |
FPS_NOT_REPORTED |
static int |
FULLSCREEN_MODE_KEEP_ASPECT_RATIO
Fullscreen enabled, keeping original aspect ratio
|
static int |
FULLSCREEN_MODE_NONE
Fullscreen disabled
|
static int |
FULLSCREEN_MODE_TOTAL
Fullscreen enabled, filling the full control
|
static int |
HLS_STARTING_ALGORITHM_AKAMAI
Starting algorithm designed by Akamai, optimized to cover the max number of devices
with the starting bitrate.
|
static int |
HLS_STARTING_ALGORITHM_APPLE
Starting algorithm implemented in iDevices.
|
protected AMPFeed |
mAMPFeed |
protected java.lang.String |
mAnalyticsConfigUrl |
protected java.util.Hashtable<java.lang.String,java.lang.String> |
mAnalyticsDimensions |
protected AnalyticsPlugin |
mAnalyticsPlugin |
protected boolean |
mAutomaticResume |
protected Context |
mContext |
protected java.lang.Boolean |
mDebuggingActive
When true, the control send debug information after each play.
|
protected java.lang.String |
mDebugUrl
Contain the url where the debug files will be sent.
|
protected int |
mDropFramesCount |
static int |
MEDIA_REBUFFERING_MODE_AUTOMATIC
Rebuffering mode automatic
|
static int |
MEDIA_REBUFFERING_MODE_MANUAL
Rebuffering mode manual
|
static int |
MEDIA_VIDEO_QUALITY_AUTO
Video Quality Auto
|
static int |
MEDIA_VIDEO_QUALITY_HIGH
Video Quality High
|
static int |
MEDIA_VIDEO_QUALITY_LOW
Video Quality Low
|
static int |
MEDIA_VIDEO_QUALITY_MEDIUM
Video Quality Medium
|
protected int |
mFullscreenMode |
protected int |
mLastErrorCode |
protected int |
mLastHttpErrorCode |
protected int |
mLastPlayingPosition |
protected int |
mLastReportedBandwidth |
protected java.lang.String |
mLicense |
protected LicenseManager |
mLicenseManager |
protected boolean |
mLoadWasInterruptedByPlugin |
protected PluginCallBacks |
mMediaAnalyticsCallbacks |
MediaResource |
mMediaResource |
protected boolean |
mNeedToRestorePlayingVideo |
protected View |
mProgressBar |
protected boolean |
mResumingAfterActivityResume |
protected int |
mVideoHeight |
protected int |
mVideoWidth |
static int |
NETSESSION_MODE_ALLOWED
NetSession will be used by default but, in case of an error, the player will automatically disable it.
|
static int |
NETSESSION_MODE_DISABLED
NetSession disabled.
|
static int |
NETSESSION_MODE_REQUIRED
NetSession required.
|
OctoshapeAdapter |
octoAdapter |
protected OctoSystemBuilder |
osb |
static java.lang.String |
VERSION
Deprecated.
|
Constructor and Description |
---|
VideoPlayerView(Context context) |
VideoPlayerView(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
about()
Get the about text
|
void |
addEventsListener(IPlayerEventsListener listener)
Register a callback to be invoked when any player event happens
|
void |
clearRenderBuffer()
Clears the screen render buffer.
|
boolean |
currentBitrateNotReported() |
boolean |
fireEvent(int iEventType) |
protected boolean |
fireExtendedEvent(int iEventType,
int arg1,
int arg2) |
protected boolean |
fireExtendedEvent(int iEventType,
java.lang.String url,
byte[] data) |
protected boolean |
fireExtendedEvent(int iEventType,
java.lang.String url,
int offset) |
abstract java.util.ArrayList<MediaFormat> |
getAvailableAudioTracks()
Returns the list of audio tracks available.
|
float |
getAvgFPS()
Deprecated.
|
abstract int |
getBitrateByIndex(int index)
Return the bitrate (bps) for the variant indicated in the index parameter
|
abstract int |
getBitratesCount()
Get the number of available bitrate indexes for the loaded stream
|
abstract int |
getBitratesSwitchesDown()
For multibirate streams, get the number of times the control has switched down
|
abstract int |
getBitratesSwitchesUp()
For multibirate streams, get the number of times the control has switched up
|
abstract int |
getBufferingPercentage()
Get the rebuffering percentage
|
abstract long |
getBytesLoaded()
For the current playback, get the number of bytes loaded
|
int |
getCurrentAudioTrackId()
Switch to a different audio track
|
long |
getCurrentBitrate()
Get the current bitrate of the video in bps
|
java.lang.String |
getCurrentSegmentUrl() |
abstract int |
getDuration()
Get the duration of the video in seconds.
|
abstract long |
getDVRLength()
Get the lenght, in seconds, of the DVR
|
float |
getEncodedFPS()
Deprecated.
|
AMPFeed |
getFeed()
Returns the feed of the loaded stream (in case playback was launched providing a json feed)
|
float |
getFPS()
Get the current FPS (Frames per Second)
|
int |
getFullScreenMode()
Return the fullscreen mode
|
abstract 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 in bytes/sec
|
long |
getLastPTS()
Get the PTS of the last packet read by the decoder
|
java.util.Date |
getLicenseExpirationDate()
Returns the expiration date of the set license
|
java.lang.String |
getLicensePackageName()
Returns the package name for which the set license is valid
|
int[] |
getLocationOnScreen()
Computes the coordinates of this view on the screen
|
MediaResource |
getMediaResource()
Returns the Media resource loaded in the player
|
int[] |
getOctoMultiStreamBitrates() |
java.lang.String[] |
getOctoMultiStreamSources() |
abstract int |
getPositionInDVR()
Return the current playback position in the DVR in seconds
|
View |
getProgressBarControl()
Gets the progress bar control that is shown whenever the player is doing a buffering/loading operation
|
java.lang.String |
getProtocol()
Get the protocol of the current loaded stream
|
abstract double |
getRebufferingTime()
Get the total time the player has been rebuffering in seconds
|
abstract int |
getRebuffers()
Get the number of rebuffers occurred
|
java.lang.String |
getServerIp()
Get the Server IP of the current loaded stream
|
int |
getServerPort()
Get the Server port for the current loaded stream
|
abstract java.lang.String |
getStreamsInfo()
Return information about the streams
|
java.lang.String |
getStreamUrl()
Returns the url of the loaded stream
|
abstract int |
getTimePosition()
Return the current playback position in seconds
|
abstract java.util.Date |
getTimePositionAsDate()
Return the current playback position as a local time date
|
abstract long |
getTimePositionMS()
Return the current playback position in milliseconds
|
java.lang.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
|
protected void |
initialize(Context context) |
abstract boolean |
isAudioOnly()
Return true if the current bitrate is an audio only stream
|
java.lang.Boolean |
isBitrateSupported(int iBitrateIndex)
Method used for knowing if a specific bitrate of the stream that is being played is compatible
with the device.
|
abstract boolean |
isError()
Check whether there was an error
|
abstract boolean |
isFinished()
Check whether the current playback has finished
|
boolean |
isFullScreen()
Return true if the player is in fullscreenmode
|
abstract boolean |
isLive()
Return true when playing a live stream
|
boolean |
isMuted()
Returns whether or not the current audio thread is muted
|
boolean |
isOctoMultiStream() |
boolean |
isOctoshapeDeliveryMode() |
boolean |
isOctoUnicast() |
abstract boolean |
isPaused()
Check whether control is in pause
|
boolean |
isPlaybackProcessInterrupted()
Return true if playback was interrupted by any of the Android SDK plugins
|
abstract boolean |
isPlaying()
Check whether control is playing
|
boolean |
isResumingAfterActivityResume()
Return true if playback is being automatically restarted after an activity resume.
|
abstract boolean |
isSeeking()
Check whether VideoPlayerView control is doing a seeking operation
|
protected void |
loadServerParameters() |
void |
mute()
Mutes the current audio thread
|
void |
onDestroy() |
void |
onPause() |
void |
onResume() |
void |
onSegmentProgress(java.lang.String segmentUrl,
int segmentOffset) |
abstract void |
pause()
Pause playback
|
void |
play(MediaResource media)
Play a stream given the stream URL
|
void |
play(MediaResource media,
int position)
Play a stream given the stream URL, starting at the specified position in seconds
|
void |
playAudio(MediaResource media)
Play an audio only stream given the stream URL
|
void |
playAudio(MediaResource media,
int position)
Play an audio only stream given the stream URL, starting at the specified position in seconds
|
void |
playMuted(MediaResource resource)
Starts playing the stream in mute
|
protected void |
postDebugData() |
void |
removeEventsListener(IPlayerEventsListener listener)
Unregister a callback to be invoked when any player event happens
|
void |
removeSegmentInfoListener(ISegmentInfoListener segInfoListener) |
abstract void |
resume()
Resume playback
|
abstract void |
seek(int newPositionInSeconds)
Seek to the specified time position
|
abstract 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
This method doesn't make sense in the hardware version of the SDK as the interpretation
of the protocol is done by the hardware decoder.
|
void |
setAvoidIncompatibleVideoProfiles(boolean bInValue)
Enable/disable protection mechanism that avoids the selection
of incompatible bitrates.
|
void |
setAvoidIncompatibleVideoResolutions(boolean bInValue)
Enable/disable protection mechanism that avoids the selection
of incompatible bitrates.
|
abstract void |
setBitrateToPlay(int bitrateIndex)
Software: In manual switching mode, set the maximum bitrate to be used during the playback.
|
void |
setDebugingActive(java.lang.Boolean value)
Activate/deactivate the debug mode
|
void |
setDebugUrl(java.lang.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 |
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 |
setFeedInfo(AMPFeed feed)
Set the feed being loaded
|
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.
|
abstract void |
setFullScreen(boolean fullscreen)
Set fullscreen mode.
|
abstract void |
setFullScreenMode(int mode)
Set fullscreen mode.
|
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 |
setHLSStartingAlgorithm(int mode)
Sets the algorithm used for selecting the initial bitrate of the playback
|
void |
setLicense(java.lang.String license)
Set the Android SDK license.
|
void |
setLogEnabled(boolean value)
Enable/Disable log traces
|
abstract void |
setManualSwitching(boolean bInValue)
Sets the manual switching mode
|
abstract void |
setMaxBitrate(int iMaxBitrate)
Set the maximum bitrate to be played, in bps
|
void |
setMediaAnalyticsConfigUrl(java.lang.String configUrl)
Sets 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(java.lang.String key,
java.lang.String value)
Report Media Analytics custom dimension in the player
|
void |
setMediaAnalyticsViewerDiagnosticsId(java.lang.String viewerId)
Set Media Analytics Diagnostics Viewer Id.
|
void |
setMediaAnalyticsViewerId(java.lang.String viewerId)
Set Media Analytics Viewer Id
|
abstract void |
setNetSessionMode(int mode)
Enable/Disable client side delivery
|
void |
setOctoSystemBuilder(OctoSystemBuilder osbParam) |
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 segInfoListener) |
abstract 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
|
abstract void |
setVideoBufferSize(int amountOfBuffersInQueue) |
void |
setVideoQuality(int iInQuality)
Set the video quality.
|
abstract void |
stop()
Stop playback
|
void |
switchAudioTrack(int trackIndex)
Switch to a different audio track
|
abstract void |
switchBitrateDown()
Ask the player to switch to the lower bitrate
|
abstract void |
switchBitrateUp()
Ask the player to switch to the upper bitrate
|
void |
unmute()
Unmutes the current audio thread
|
@Deprecated public static final java.lang.String VERSION
public static final int FULLSCREEN_MODE_NONE
public static final int FULLSCREEN_MODE_KEEP_ASPECT_RATIO
public static final int FULLSCREEN_MODE_TOTAL
public static final int MEDIA_VIDEO_QUALITY_LOW
public static final int MEDIA_VIDEO_QUALITY_MEDIUM
public static final int MEDIA_VIDEO_QUALITY_HIGH
public static final int MEDIA_VIDEO_QUALITY_AUTO
public static final int MEDIA_REBUFFERING_MODE_MANUAL
public static final int MEDIA_REBUFFERING_MODE_AUTOMATIC
public static final int HLS_STARTING_ALGORITHM_AKAMAI
public static final int HLS_STARTING_ALGORITHM_APPLE
public static final int NETSESSION_MODE_DISABLED
public static final int NETSESSION_MODE_ALLOWED
public static final int NETSESSION_MODE_REQUIRED
public static final int DROP_WRONG_TIMESTAMP_PACKETS_NEVER
public static final int DROP_WRONG_TIMESTAMP_PACKETS_ONLY_VOD
public static final int DROP_WRONG_TIMESTAMP_PACKETS_ALWAYS
public static final int ERROR_SUCCESS
public static final int ERROR_NETWORK_UNAVAILABLE
public static final int ERROR_NETWORK_RESOURCE_DONT_EXIST
public static final int ERROR_NETWORK_SECURITY_ISSUE
public static final int ERROR_FORMAT_UNKNOWN
public static final int ERROR_RESOURCES_ISSUE
public static final int ERROR_TS_SEGMENT_INVALID
protected int mFullscreenMode
protected boolean mLoadWasInterruptedByPlugin
protected boolean mNeedToRestorePlayingVideo
protected boolean mResumingAfterActivityResume
protected boolean mAutomaticResume
protected int mLastPlayingPosition
protected AnalyticsPlugin mAnalyticsPlugin
protected java.lang.String mAnalyticsConfigUrl
protected java.util.Hashtable<java.lang.String,java.lang.String> mAnalyticsDimensions
protected View mProgressBar
protected LicenseManager mLicenseManager
protected java.lang.String mLicense
protected Context mContext
protected AMPFeed mAMPFeed
public MediaResource mMediaResource
protected int mDropFramesCount
protected int mVideoWidth
protected int mVideoHeight
protected int mLastReportedBandwidth
protected int mLastErrorCode
protected int mLastHttpErrorCode
protected java.lang.Boolean mDebuggingActive
protected java.lang.String mDebugUrl
public OctoshapeAdapter octoAdapter
protected OctoSystemBuilder osb
protected PluginCallBacks mMediaAnalyticsCallbacks
public static final int BITRATE_NOT_REPORTED
public static final int FPS_NOT_REPORTED
public static final int BANDWIDTH_NOT_REPORTED
public VideoPlayerView(Context context, AttributeSet attrs)
public VideoPlayerView(Context context)
protected void initialize(Context context)
public void play(MediaResource media)
media
- Media Resource to be playedpublic void play(MediaResource media, int position)
media
- Media Resource to be playedposition
- Start position in secondspublic void playAudio(MediaResource media)
media
- Media Resource to be playedpublic void playAudio(MediaResource media, int position)
media
- Media Resource to be playedposition
- Start position in secondspublic abstract java.util.ArrayList<MediaFormat> getAvailableAudioTracks()
public void switchAudioTrack(int trackIndex)
trackIndex
- Index of the track to be usedpublic int getCurrentAudioTrackId()
public abstract void stop()
public abstract void pause()
public abstract void resume()
public abstract void seek(int newPositionInSeconds)
newPositionInSeconds
- The offset in seconds from the start to seek to.public abstract void seekToLive()
public abstract void switchBitrateUp() throws java.lang.Exception
java.lang.Exception
public abstract void switchBitrateDown() throws java.lang.Exception
java.lang.Exception
public abstract void setMaxBitrate(int iMaxBitrate)
iMaxBitrate
- Max bitrate to playpublic abstract void setBitrateToPlay(int bitrateIndex) throws java.lang.Exception
bitrateIndex
- java.lang.Exception
public abstract void setStartingBitrateIndex(int iIndex)
iIndex
- of the bitrate to be used when playback startpublic abstract int getBitratesCount()
public abstract int getBitrateByIndex(int index)
index
- of the bitratepublic abstract int getIndexByBitrate(int bitrate)
bitrate
- public java.lang.Boolean isBitrateSupported(int iBitrateIndex)
iBitrateIndex
- Zero based index of the bitrate to check.public abstract boolean isPlaying()
public abstract boolean isPaused()
public abstract boolean isError()
public abstract boolean isFinished()
public abstract boolean isSeeking()
public abstract boolean isAudioOnly()
public boolean isFullScreen()
public abstract boolean isLive()
public boolean isPlaybackProcessInterrupted()
public boolean isResumingAfterActivityResume()
public abstract int getTimePosition()
public abstract long getTimePositionMS()
public abstract java.util.Date getTimePositionAsDate()
public abstract int getPositionInDVR()
public abstract long getDVRLength()
public long getLastPTS()
public void setAdjustTimestamps(boolean adjust)
adjust
- True, to enable adjustment of timestampspublic void setDisableDynamicAudioFeature(boolean disable)
disable
- True, to disable dynamic audio featurepublic void setDropWrongTimestampPacketsMode(int mode)
mode
- public void onResume()
public void onPause()
public void onDestroy()
public abstract java.lang.String getStreamsInfo()
public int getVideoWidth()
public int getVideoHeight()
public abstract int getDuration()
public long getCurrentBitrate()
public abstract void setFullScreenMode(int mode)
mode
- Fullscreen modepublic abstract void setFullScreen(boolean fullscreen)
fullscreen
- If true, switch the player to fullsreen mode. Otherwise, set non-fullscreen modepublic int getFullScreenMode()
public abstract int getBufferingPercentage()
public void setRebufferingMode(int iInMode)
iInMode
- Rebuffering mode value.public void setRebufferingSize(int iInRebufferSize)
iInRebufferSize
- Buffer size in bytes.public void addEventsListener(IPlayerEventsListener listener)
listener
- The callback that will be runpublic void removeEventsListener(IPlayerEventsListener listener)
listener
- The callback that will be runpublic void setSegmentInfoListener(ISegmentInfoListener segInfoListener)
public void removeSegmentInfoListener(ISegmentInfoListener segInfoListener)
public abstract int getBitratesSwitchesUp()
public abstract int getBitratesSwitchesDown()
public abstract int getRebuffers()
public abstract double getRebufferingTime()
public float getFPS()
@Deprecated public float getAvgFPS()
@Deprecated public float getEncodedFPS()
public final java.lang.String getProtocol()
public final java.lang.String getServerIp()
public final int getServerPort()
public final int getLastHttpErrorCode()
public int getLastMeasuredBandwidth()
public void setDropFrames(boolean value)
value
- When true, player will drop frames to sync audio/videopublic void setVideoQuality(int iInQuality)
iInQuality
- Video qualitypublic void setAvoidAudioOnlyStreams(boolean bInValue)
bInValue
- If true, audio only streams will not be used for mbr streamspublic void setUseBufferingWhenStarting(boolean value)
value
- If true, log initial buffering is enabled.public void setHLSStartingAlgorithm(int mode)
mode
- public final void setLogEnabled(boolean value)
value
- If true, log traces are enabled.public void setUseMultiThread(boolean value)
value
- if true, multithread decoding enabledpublic abstract void setManualSwitching(boolean bInValue)
bInValue
- if true, the control switch to manual mode and the bitrate selection algorithm is not usedpublic void setAvoidIncompatibleVideoProfiles(boolean bInValue)
bInValue
- If true, enable protection that avoids selection of bitrates using H.264 profiles incompatible with the device.public void setAvoidIncompatibleVideoResolutions(boolean bInValue)
bInValue
- If true, enable protection that avoids selection of bitrates whose profile is higher than the device screen reslution.public void setAutoResume(boolean enable)
enable
- If true, auto-resume is enabled.public abstract long getBytesLoaded()
public java.lang.String about()
public final void setProgressBarControl(View progressBar)
progressBar
- Progress Bar controlpublic final View getProgressBarControl()
public final void setDebugUrl(java.lang.String value)
value
- Url to send the debugging filespublic final void setDebugingActive(java.lang.Boolean value)
value
- When true, the player sends debug files to a
remote server after each playbackpublic final void setLicense(java.lang.String license)
license
- License should be provided by Akamai.public final java.lang.String getLicensePackageName()
public final java.util.Date getLicenseExpirationDate()
public java.lang.String getVersionDescription()
public void setDefaultAudioConfig(int sample_rate, int channels)
sample_rate
- Audio stream sample ratechannels
- Number of channels of the audio streampublic final java.lang.String getStreamUrl()
public final MediaResource getMediaResource()
public final AMPFeed getFeed()
public final int getLastErrorCode()
public final int[] getLocationOnScreen()
public void clearRenderBuffer()
public final void onSegmentProgress(java.lang.String segmentUrl, int segmentOffset)
public java.lang.String getCurrentSegmentUrl()
public void setForceFormatChange(boolean value)
value
- True to force format change flag after every seeking operationpublic void setHardwareSeekingProtection(boolean value)
value
- True to enable protectionpublic void setAkamaiAlgorithmValue(int bitrate)
bitrate
- in bpspublic abstract void setNetSessionMode(int mode)
mode
- NetSession mode.public void setForceOMXdecoding(boolean value)
value
- True to force OMX approachpublic void setFeedInfo(AMPFeed feed)
feed
- public boolean isMuted()
public void mute()
public void unmute()
public void playMuted(MediaResource resource)
public final void setMediaAnalyticsData(java.lang.String key, java.lang.String value)
key
- value
- public final void setMediaAnalyticsViewerDiagnosticsId(java.lang.String viewerId)
public final void setMediaAnalyticsViewerId(java.lang.String viewerId)
public final void setMediaAnalyticsConfigUrl(java.lang.String configUrl)
configUrl
- Media Analytics config urlpublic final boolean fireEvent(int iEventType)
protected final boolean fireExtendedEvent(int iEventType, int arg1, int arg2)
protected boolean fireExtendedEvent(int iEventType, java.lang.String url, byte[] data)
protected boolean fireExtendedEvent(int iEventType, java.lang.String url, int offset)
protected void loadServerParameters()
protected final void postDebugData()
public boolean currentBitrateNotReported()
public boolean isOctoshapeDeliveryMode()
public boolean isOctoUnicast()
public boolean isOctoMultiStream()
public java.lang.String[] getOctoMultiStreamSources()
public int[] getOctoMultiStreamBitrates()
public abstract void setVideoBufferSize(int amountOfBuffersInQueue)
public void setOctoSystemBuilder(OctoSystemBuilder osbParam)