com.ooyala.android.player.exoplayer.ExoStreamPlayer Class Reference

ExoStreamPlayer is a realization of BaseExoPlayer for flat video content. More...

Inheritance diagram for com.ooyala.android.player.exoplayer.ExoStreamPlayer:
com.ooyala.android.player.exoplayer.BaseExoPlayer com.ooyala.android.player.exoplayer.playback.PlaybackSpeedControl com.ooyala.android.player.StreamPlayer com.ooyala.android.player.exoplayer.SeekCompleteObserver.SeekCompleteCallback com.ooyala.android.player.exoplayer.drm.DrmEventLogger.OoyalaPlayerDrmErrorListener com.ooyala.android.player.exoplayer.multiaudio.MultiAudioPlayer com.ooyala.android.player.Player com.ooyala.android.player.PlayerInterface com.ooyala.android.plugin.LifeCycleInterface

Public Member Functions

void init (OoyalaPlayer parent, Set< Stream > streams)
 Init the player. More...
 
View getView ()
 
void createSurfaceView ()
 Create and prepare main vr view. More...
 
void destroy ()
 This is called when plugin should be destroyed. More...
 
PlayerType getPlayerType ()
 Get the player's type. More...
 
void createBitmapScreenshot (final PlayerBitmapListener playerBitmapListener)
 Create the bitmap screenshot of the current video frame. More...
 
void onPlayerStateChanged (boolean playWhenReady, int playbackState)
 
void onLoadError (int windowIndex, @Nullable MediaSource.MediaPeriodId mediaPeriodId, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData, IOException error, boolean wasCanceled)
 
void onUpstreamDiscarded (int windowIndex, MediaSource.MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData)
 
void onTracksChanged (TrackGroupArray trackGroups, TrackSelectionArray trackSelections)
 
void setPlaybackSpeed (float speed)
 Set playback speed. More...
 
void startLicenseRequest (final Context context, final String mpdUrl, final File folder, final String widevineServerUrl, final LicenseDownloader.Listener listener, final String embedCode)
 
void storeLicense (byte[] bytes, File folder, LicenseDownloader.Listener listener, String embedCode)
 
byte [] loadLicense (File folder)
 
SimpleExoPlayer getPlayer ()
 To get access to player instance. More...
 
void reset ()
 This is called when plugin should be reset. More...
 
void suspend ()
 This is called when plugin should be suspended. More...
 
void suspend (boolean onlyRemoveView)
 This is called when plugin should be suspended. More...
 
void resume ()
 This is called when plugin should be resumed. More...
 
void resume (int millisToResume, OoyalaPlayer.State stateToResume)
 
void resume (int timeInMilliSecond, State stateToResume)
 This is called when plugin should be resumed. More...
 
void pause ()
 This is called when pause is clicked. More...
 
void play ()
 This is called when play is clicked. More...
 
void stop ()
 This is called when stop is clicked. More...
 
int currentTime ()
 
int duration ()
 
int buffer ()
 
void seekToTime (int timeInMillis)
 Move the playhead to a new location in seconds with millisecond accuracy. More...
 
int livePlayheadPercentage ()
 
void seekToPercentLive (float percent)
 Seek to the given percent position of scrubber for live stream playback. More...
 
void setClosedCaptionsLanguage (String language)
 Set the displayed closed captions language. More...
 
boolean isLiveClosedCaptionsAvailable ()
 
boolean isPlaying ()
 
boolean seekable ()
 
void setVolume (float volume)
 Set the volume for the player. More...
 
void onLoadingChanged (boolean isLoading)
 
void onRepeatModeChanged (int repeatMode)
 
void onTimelineChanged (Timeline timeline, Object manifest, int reason)
 
void onPlayerError (ExoPlaybackException error)
 
void onPlaybackParametersChanged (PlaybackParameters playbackParameters)
 
void onShuffleModeEnabledChanged (boolean shuffleModeEnabled)
 
void onPositionDiscontinuity (int reason)
 
void onSeekProcessed ()
 
void onMediaPeriodCreated (int windowIndex, MediaSource.MediaPeriodId mediaPeriodId)
 
void onMediaPeriodReleased (int windowIndex, MediaSource.MediaPeriodId mediaPeriodId)
 
void onLoadStarted (int windowIndex, @Nullable MediaSource.MediaPeriodId mediaPeriodId, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData)
 
void onLoadCompleted (int windowIndex, @Nullable MediaSource.MediaPeriodId mediaPeriodId, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData)
 
void onLoadCanceled (int windowIndex, @Nullable MediaSource.MediaPeriodId mediaPeriodId, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData)
 
void onReadingStarted (int windowIndex, MediaSource.MediaPeriodId mediaPeriodId)
 
void onDownstreamFormatChanged (int windowIndex, @Nullable MediaSource.MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData)
 
void onCues (List< Cue > cues)
 
void onSeekCompleteCallback ()
 
void onDrmError (OoyalaException exception)
 
boolean isMultiAudioAvailable ()
 
void setAudioTrack (String trackTitle)
 Establish the audio track is obtained from Ooyala Skin. More...
 
void setAudioTrack (AudioTrack track)
 Set the audio track. More...
 
List< AudioTrackgetAvailableAudioTracks ()
 
AudioTrack getCurrentAudioTrack ()
 
State getState ()
 This returns the player state. More...
 
OoyalaException getError ()
 
void setError (OoyalaException error)
 
void setParent (OoyalaPlayer parent)
 
OoyalaPlayer getParent ()
 
int getBufferPercentage ()
 
SeekStyle getSeekStyle ()
 
void configurationChanged (Configuration newConfig)
 This method is called when the device configuration changes while your component is running. More...
 

Protected Member Functions

void initializePlayer ()
 This method initializes Player and prepare it for working. More...
 
void removeSurfaceView ()
 Remove video view and clean variables. More...
 
Handler getMainHandler ()
 Return instance of Handler to pass and manage touch events. More...
 
void initializeStream (Set< Stream > streams)
 Chose the best stream and save it for using. More...
 
MediaSource buildMediaSource (Uri uri)
 
MediaSource buildMediaSource (DashManifest manifest)
 Build media source from manifest file in case of offline video. More...
 
DataSource.Factory buildDataSourceFactory (boolean useBandwidthMeter)
 Produces DataSource instances through that media data is loaded. More...
 
DataSource.Factory buildDataSourceFactory (TransferListener bandwidthMeter)
 Produces DataSource factory instances through that media data is loaded. More...
 
HttpDataSource.Factory buildHttpDataSourceFactory (boolean useBandwidthMeter)
 
HttpDataSource.Factory buildHttpDataSourceFactory (boolean useBandwidthMeter, boolean useOoyalaDrm)
 
HttpDataSource.Factory buildHttpDataSourceFactory (TransferListener bandwidthMeter)
 
HttpDataSource.Factory buildOoyalaDrmHttpDataSourceFactory (TransferListener bandwidthMeter)
 
DataSource.Factory buildDefaultDataSourceFactory ()
 
FrameworkMediaDrm getFrameworkMediaDrm (UUID uuid) throws UnsupportedDrmException
 
void initTrackSelector (BandwidthMeter bandwidthMeter)
 Initialize the track selector and the track selection helper for multi audio support. More...
 
void startPlayheadTimer ()
 
void stopPlayheadTimer ()
 
void notifyTimeChanged ()
 
void setState (State state)
 

Protected Attributes

Context context
 
Handler mainHandler
 
SimpleExoPlayer player
 
PlayerView view
 
Stream stream
 
Video video
 
DefaultBandwidthMeter bandwidthMeter
 
DataSourceFactory dataSourceFactory
 
DataSource.Factory mediaDataSourceFactory
 
DefaultBandwidthMeter.Builder bandwidthMeterBuilder = new DefaultBandwidthMeter.Builder()
 
OoyalaPlayer.State stateBeforeSuspend
 
int timeBeforeSuspend
 
int lastSeenVideoBitrate
 
int lastSeenAudioBitrate
 
boolean initPlayStarted
 
DefaultTrackSelector trackSelector
 
TrackSelectionHelper trackSelectionHelper
 
List< AudioTrackaudioTracks = new ArrayList<>()
 
HashMap< AudioTrack, List< AudioTrack > > adaptiveAudioTracks = new HashMap<>()
 
Bitmap snapshotBitmap
 
boolean liveClosedCaptionsObserved
 true if the stream at any point emits 608/708 captions More...
 
boolean retryingHA
 
long haSeekPosition
 
Timer _playheadUpdateTimer = null
 
OoyalaPlayer _parent = null
 
OoyalaException _error = null
 The Player's current error if it exists. More...
 
ControlSharingSurfaceView _view = null
 
int _buffer = 0
 
State _state = State.INIT
 

Static Protected Attributes

static final long TIMER_DELAY = 0
 
static final long TIMER_PERIOD = 250
 

Detailed Description

ExoStreamPlayer is a realization of BaseExoPlayer for flat video content.

Member Function Documentation

int com.ooyala.android.player.exoplayer.BaseExoPlayer.buffer ( )
inherited
Returns
the buffer percentage (between 0 and 100 inclusive)

Implements com.ooyala.android.player.PlayerInterface.

DataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildDataSourceFactory ( boolean  useBandwidthMeter)
protectedinherited

Produces DataSource instances through that media data is loaded.

Parameters
useBandwidthMetershould we use DefaultBandwidthMeter
Returns
new instance of DataSource.Factory
DataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildDataSourceFactory ( TransferListener  bandwidthMeter)
protectedinherited

Produces DataSource factory instances through that media data is loaded.

Parameters
bandwidthMeternull or DefaultBandwidthMeter
Returns
new instance of DataSource.Factory
DataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildDefaultDataSourceFactory ( )
protectedinherited
Returns
new instance of DefaultDataSourceFactory
HttpDataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildHttpDataSourceFactory ( boolean  useBandwidthMeter)
protectedinherited
Parameters
useBandwidthMetershould we use DefaultBandwidthMeter
Returns
new instance of HttpDataSource.Factory
HttpDataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildHttpDataSourceFactory ( boolean  useBandwidthMeter,
boolean  useOoyalaDrm 
)
protectedinherited
Parameters
useBandwidthMetershould we use DefaultBandwidthMeter
useOoyalaDrmshould we use OoyalaDrmHttpDataSourceFactory
Returns
new instance of HttpDataSource.Factory
HttpDataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildHttpDataSourceFactory ( TransferListener  bandwidthMeter)
protectedinherited
Parameters
bandwidthMeternull or DefaultBandwidthMeter
Returns
new instance of HttpDataSource.Factory
MediaSource com.ooyala.android.player.exoplayer.BaseExoPlayer.buildMediaSource ( Uri  uri)
protectedinherited
Parameters
urisource for building media sources
Returns
A source of media consisting of one or more MediaPeriods.
See also
DashMediaSource
HlsMediaSource
ExtractorMediaSource
MediaSource com.ooyala.android.player.exoplayer.BaseExoPlayer.buildMediaSource ( DashManifest  manifest)
protectedinherited

Build media source from manifest file in case of offline video.

Parameters
manifestmanifest file
Returns
DashMediaSource instance
HttpDataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.buildOoyalaDrmHttpDataSourceFactory ( TransferListener  bandwidthMeter)
protectedinherited
Parameters
bandwidthMeternull or DefaultBandwidthMeter
Returns
new instance of HttpDataSource.Factory
void com.ooyala.android.player.Player.configurationChanged ( Configuration  newConfig)
inherited

This method is called when the device configuration changes while your component is running.

Parameters
newConfigThe new device configuration.

Implements com.ooyala.android.plugin.LifeCycleInterface.

void com.ooyala.android.player.exoplayer.ExoStreamPlayer.createBitmapScreenshot ( final PlayerBitmapListener  playerBitmapListener)

Create the bitmap screenshot of the current video frame.

Parameters
playerBitmapListenerthe interface that must be implemented in order to receive bitmap screenshot from Ooyala ExoPlayer

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.ExoStreamPlayer.createSurfaceView ( )

Create and prepare main vr view.

int com.ooyala.android.player.exoplayer.BaseExoPlayer.currentTime ( )
inherited
Returns
the playback position in the current window, in milliseconds.

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.ExoStreamPlayer.destroy ( )

This is called when plugin should be destroyed.

Implements com.ooyala.android.plugin.LifeCycleInterface.

int com.ooyala.android.player.exoplayer.BaseExoPlayer.duration ( )
inherited
Returns
the duration of the current window in milliseconds, or 0 if the duration is not known.

Implements com.ooyala.android.player.PlayerInterface.

List<AudioTrack> com.ooyala.android.player.exoplayer.BaseExoPlayer.getAvailableAudioTracks ( )
inherited
Returns
The list of available audio tracks for the current asset.

Implements com.ooyala.android.player.exoplayer.multiaudio.MultiAudioPlayer.

int com.ooyala.android.player.Player.getBufferPercentage ( )
inherited
AudioTrack com.ooyala.android.player.exoplayer.BaseExoPlayer.getCurrentAudioTrack ( )
inherited
Returns
The current audio track for the current asset.

Implements com.ooyala.android.player.exoplayer.multiaudio.MultiAudioPlayer.

OoyalaException com.ooyala.android.player.Player.getError ( )
inherited
FrameworkMediaDrm com.ooyala.android.player.exoplayer.BaseExoPlayer.getFrameworkMediaDrm ( UUID  uuid) throws UnsupportedDrmException
protectedinherited
Handler com.ooyala.android.player.exoplayer.BaseExoPlayer.getMainHandler ( )
protectedinherited

Return instance of Handler to pass and manage touch events.

Returns
Handler
OoyalaPlayer com.ooyala.android.player.Player.getParent ( )
inherited
SimpleExoPlayer com.ooyala.android.player.exoplayer.BaseExoPlayer.getPlayer ( )
inherited

To get access to player instance.

PlayerType com.ooyala.android.player.exoplayer.ExoStreamPlayer.getPlayerType ( )

Get the player's type.

Implements com.ooyala.android.player.PlayerInterface.

SeekStyle com.ooyala.android.player.Player.getSeekStyle ( )
inherited
State com.ooyala.android.player.Player.getState ( )
inherited

This returns the player state.

Returns
the state

Implements com.ooyala.android.player.PlayerInterface.

View com.ooyala.android.player.exoplayer.ExoStreamPlayer.getView ( )
Returns
instance of PlayerView
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.init ( OoyalaPlayer  parent,
Set< Stream streams 
)

Init the player.

Parameters
parentan instance of OoyalaPlayer
streamsa set of the streams
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.initializePlayer ( )
protected

This method initializes Player and prepare it for working.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.initializeStream ( Set< Stream streams)
protectedinherited

Chose the best stream and save it for using.

Parameters
streamsset of streams for initialising
void com.ooyala.android.player.exoplayer.BaseExoPlayer.initTrackSelector ( BandwidthMeter  bandwidthMeter)
protectedinherited

Initialize the track selector and the track selection helper for multi audio support.

boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.isLiveClosedCaptionsAvailable ( )
inherited
Returns
true if the player can support live closed captions

Implements com.ooyala.android.player.PlayerInterface.

boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.isMultiAudioAvailable ( )
inherited
Returns
true if the current asset has several audio tracks

Implements com.ooyala.android.player.PlayerInterface.

boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.isPlaying ( )
inherited
Returns
true or false, whether playback will proceed when ready.
int com.ooyala.android.player.exoplayer.BaseExoPlayer.livePlayheadPercentage ( )
inherited
Returns
the percentage of the cursor should be on scrubber for live stream playback

Implements com.ooyala.android.player.PlayerInterface.

byte [] com.ooyala.android.player.exoplayer.ExoStreamPlayer.loadLicense ( File  folder)
void com.ooyala.android.player.StreamPlayer.notifyTimeChanged ( )
protectedinherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onCues ( List< Cue >  cues)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onDownstreamFormatChanged ( int  windowIndex,
@Nullable MediaSource.MediaPeriodId  mediaPeriodId,
MediaLoadData  mediaLoadData 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onDrmError ( OoyalaException  exception)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onLoadCanceled ( int  windowIndex,
@Nullable MediaSource.MediaPeriodId  mediaPeriodId,
LoadEventInfo  loadEventInfo,
MediaLoadData  mediaLoadData 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onLoadCompleted ( int  windowIndex,
@Nullable MediaSource.MediaPeriodId  mediaPeriodId,
LoadEventInfo  loadEventInfo,
MediaLoadData  mediaLoadData 
)
inherited
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.onLoadError ( int  windowIndex,
@Nullable MediaSource.MediaPeriodId  mediaPeriodId,
LoadEventInfo  loadEventInfo,
MediaLoadData  mediaLoadData,
IOException  error,
boolean  wasCanceled 
)
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onLoadingChanged ( boolean  isLoading)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onLoadStarted ( int  windowIndex,
@Nullable MediaSource.MediaPeriodId  mediaPeriodId,
LoadEventInfo  loadEventInfo,
MediaLoadData  mediaLoadData 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onMediaPeriodCreated ( int  windowIndex,
MediaSource.MediaPeriodId  mediaPeriodId 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onMediaPeriodReleased ( int  windowIndex,
MediaSource.MediaPeriodId  mediaPeriodId 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onPlaybackParametersChanged ( PlaybackParameters  playbackParameters)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onPlayerError ( ExoPlaybackException  error)
inherited
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.onPlayerStateChanged ( boolean  playWhenReady,
int  playbackState 
)
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onPositionDiscontinuity ( int  reason)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onReadingStarted ( int  windowIndex,
MediaSource.MediaPeriodId  mediaPeriodId 
)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onRepeatModeChanged ( int  repeatMode)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onSeekCompleteCallback ( )
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onSeekProcessed ( )
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onShuffleModeEnabledChanged ( boolean  shuffleModeEnabled)
inherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.onTimelineChanged ( Timeline  timeline,
Object  manifest,
int  reason 
)
inherited
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.onTracksChanged ( TrackGroupArray  trackGroups,
TrackSelectionArray  trackSelections 
)
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.onUpstreamDiscarded ( int  windowIndex,
MediaSource.MediaPeriodId  mediaPeriodId,
MediaLoadData  mediaLoadData 
)
void com.ooyala.android.player.exoplayer.BaseExoPlayer.pause ( )
inherited

This is called when pause is clicked.

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.play ( )
inherited

This is called when play is clicked.

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.ExoStreamPlayer.removeSurfaceView ( )
protected

Remove video view and clean variables.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.reset ( )
inherited

This is called when plugin should be reset.

Implements com.ooyala.android.plugin.LifeCycleInterface.

void com.ooyala.android.player.Player.resume ( int  timeInMillisecond,
State  stateToResume 
)
inherited

This is called when plugin should be resumed.

Parameters
timeInMillisecondthe playhead time to set
stateToResumethe player state after resume

Implements com.ooyala.android.plugin.LifeCycleInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.resume ( )
inherited

This is called when plugin should be resumed.

Implements com.ooyala.android.plugin.LifeCycleInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.resume ( int  millisToResume,
OoyalaPlayer.State  stateToResume 
)
inherited
boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.seekable ( )
inherited
Returns
true if the current player is seekable, false if there is no current player or it is not seekable

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.seekToPercentLive ( float  percent)
inherited

Seek to the given percent position of scrubber for live stream playback.

Parameters
percentThe percent of scrubber the cursor ends after seek

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.seekToTime ( int  timeInMillis)
inherited

Move the playhead to a new location in seconds with millisecond accuracy.

Parameters
timeInMillistime in milliseconds

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.setAudioTrack ( String  track)
inherited

Establish the audio track is obtained from Ooyala Skin.

Parameters
trackThe title of the audio track that selected by the end user.

Implements com.ooyala.android.player.exoplayer.multiaudio.MultiAudioPlayer.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.setAudioTrack ( AudioTrack  track)
inherited

Set the audio track.

Parameters
trackThe audio track that will be set as a current.

Implements com.ooyala.android.player.exoplayer.multiaudio.MultiAudioPlayer.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.setClosedCaptionsLanguage ( String  language)
inherited

Set the displayed closed captions language.

Parameters
language2 letter country code of the language to display or nil to hide closed captions

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.Player.setError ( OoyalaException  error)
inherited
void com.ooyala.android.player.Player.setParent ( OoyalaPlayer  parent)
inherited
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.setPlaybackSpeed ( float  speed)

Set playback speed.

Parameters
speedThe desired playback speed.

Implements com.ooyala.android.player.exoplayer.playback.PlaybackSpeedControl.

void com.ooyala.android.player.Player.setState ( State  state)
protectedinherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.setVolume ( float  volume)
inherited

Set the volume for the player.

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.exoplayer.ExoStreamPlayer.startLicenseRequest ( final Context  context,
final String  mpdUrl,
final File  folder,
final String  widevineServerUrl,
final LicenseDownloader.Listener  listener,
final String  embedCode 
)
void com.ooyala.android.player.StreamPlayer.startPlayheadTimer ( )
protectedinherited
void com.ooyala.android.player.exoplayer.BaseExoPlayer.stop ( )
inherited

This is called when stop is clicked.

Implements com.ooyala.android.player.PlayerInterface.

void com.ooyala.android.player.StreamPlayer.stopPlayheadTimer ( )
protectedinherited
void com.ooyala.android.player.exoplayer.ExoStreamPlayer.storeLicense ( byte []  bytes,
File  folder,
LicenseDownloader.Listener  listener,
String  embedCode 
)
void com.ooyala.android.player.exoplayer.BaseExoPlayer.suspend ( )
inherited

This is called when plugin should be suspended.

Implements com.ooyala.android.plugin.LifeCycleInterface.

void com.ooyala.android.player.exoplayer.BaseExoPlayer.suspend ( boolean  onlyRemoveView)
inherited

This is called when plugin should be suspended.

Parameters
onlyRemoveViewTo remove video view

Implements com.ooyala.android.plugin.LifeCycleInterface.

Member Data Documentation

int com.ooyala.android.player.Player._buffer = 0
protectedinherited
OoyalaException com.ooyala.android.player.Player._error = null
protectedinherited

The Player's current error if it exists.

OoyalaPlayer com.ooyala.android.player.Player._parent = null
protectedinherited
Timer com.ooyala.android.player.StreamPlayer._playheadUpdateTimer = null
protectedinherited
State com.ooyala.android.player.Player._state = State.INIT
protectedinherited
ControlSharingSurfaceView com.ooyala.android.player.Player._view = null
protectedinherited
HashMap<AudioTrack, List<AudioTrack> > com.ooyala.android.player.exoplayer.BaseExoPlayer.adaptiveAudioTracks = new HashMap<>()
protectedinherited
List<AudioTrack> com.ooyala.android.player.exoplayer.BaseExoPlayer.audioTracks = new ArrayList<>()
protectedinherited
DefaultBandwidthMeter com.ooyala.android.player.exoplayer.BaseExoPlayer.bandwidthMeter
protectedinherited
DefaultBandwidthMeter.Builder com.ooyala.android.player.exoplayer.BaseExoPlayer.bandwidthMeterBuilder = new DefaultBandwidthMeter.Builder()
protectedinherited
Context com.ooyala.android.player.exoplayer.BaseExoPlayer.context
protectedinherited
DataSourceFactory com.ooyala.android.player.exoplayer.BaseExoPlayer.dataSourceFactory
protectedinherited
long com.ooyala.android.player.exoplayer.BaseExoPlayer.haSeekPosition
protectedinherited
boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.initPlayStarted
protectedinherited
int com.ooyala.android.player.exoplayer.BaseExoPlayer.lastSeenAudioBitrate
protectedinherited
int com.ooyala.android.player.exoplayer.BaseExoPlayer.lastSeenVideoBitrate
protectedinherited
boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.liveClosedCaptionsObserved
protectedinherited

true if the stream at any point emits 608/708 captions

Handler com.ooyala.android.player.exoplayer.BaseExoPlayer.mainHandler
protectedinherited
DataSource.Factory com.ooyala.android.player.exoplayer.BaseExoPlayer.mediaDataSourceFactory
protectedinherited
SimpleExoPlayer com.ooyala.android.player.exoplayer.BaseExoPlayer.player
protectedinherited
boolean com.ooyala.android.player.exoplayer.BaseExoPlayer.retryingHA
protectedinherited
Bitmap com.ooyala.android.player.exoplayer.BaseExoPlayer.snapshotBitmap
protectedinherited
OoyalaPlayer.State com.ooyala.android.player.exoplayer.BaseExoPlayer.stateBeforeSuspend
protectedinherited
Stream com.ooyala.android.player.exoplayer.BaseExoPlayer.stream
protectedinherited
int com.ooyala.android.player.exoplayer.BaseExoPlayer.timeBeforeSuspend
protectedinherited
final long com.ooyala.android.player.StreamPlayer.TIMER_DELAY = 0
staticprotectedinherited
final long com.ooyala.android.player.StreamPlayer.TIMER_PERIOD = 250
staticprotectedinherited
TrackSelectionHelper com.ooyala.android.player.exoplayer.BaseExoPlayer.trackSelectionHelper
protectedinherited
DefaultTrackSelector com.ooyala.android.player.exoplayer.BaseExoPlayer.trackSelector
protectedinherited
Video com.ooyala.android.player.exoplayer.BaseExoPlayer.video
protectedinherited
PlayerView com.ooyala.android.player.exoplayer.BaseExoPlayer.view
protectedinherited