KohiiExoPlayer

open class KohiiExoPlayer(    context: Context,     clock: Clock = Clock.DEFAULT,     renderersFactory: RenderersFactory = DefaultRenderersFactory(context.applicationContext),     val trackSelector: DefaultTrackSelector = DefaultTrackSelector(context.applicationContext),     loadControl: LoadControl = DefaultLoadControl.Builder().build(),     bandwidthMeter: BandwidthMeter = DefaultBandwidthMeter.Builder(context.applicationContext).build(),     mediaSourceFactory: MediaSourceFactory,     analyticsCollector: AnalyticsCollector = DefaultAnalyticsCollector(clock),     looper: Looper = Util.getCurrentOrMainLooper()) : SimpleExoPlayer, VolumeInfoController, DefaultTrackSelectorHolder

Extend the SimpleExoPlayer to have custom configuration.

Author

eneim (2018/06/25).

Constructors

Link copied to clipboard
fun KohiiExoPlayer(    context: Context,     clock: Clock = Clock.DEFAULT,     renderersFactory: RenderersFactory = DefaultRenderersFactory(context.applicationContext),     trackSelector: DefaultTrackSelector = DefaultTrackSelector(context.applicationContext),     loadControl: LoadControl = DefaultLoadControl.Builder().build(),     bandwidthMeter: BandwidthMeter = DefaultBandwidthMeter.Builder(context.applicationContext).build(),     mediaSourceFactory: MediaSourceFactory,     analyticsCollector: AnalyticsCollector = DefaultAnalyticsCollector(clock),     looper: Looper = Util.getCurrentOrMainLooper())

Functions

Link copied to clipboard
open override fun addAnalyticsListener(p0: AnalyticsListener)
Link copied to clipboard
open override fun addAudioOffloadListener(p0: ExoPlayer.AudioOffloadListener)
Link copied to clipboard
open override fun addListener(p0: Player.Listener)
Link copied to clipboard
override fun addMediaItem(p0: MediaItem)
override fun addMediaItem(p0: Int, p1: MediaItem)
Link copied to clipboard
override fun addMediaItems(p0: MutableList<MediaItem>)
open override fun addMediaItems(p0: Int, p1: MutableList<MediaItem>)
Link copied to clipboard
open override fun addMediaSource(p0: MediaSource)
open override fun addMediaSource(p0: Int, p1: MediaSource)
Link copied to clipboard
open override fun addMediaSources(p0: MutableList<MediaSource>)
open override fun addMediaSources(p0: Int, p1: MutableList<MediaSource>)
Link copied to clipboard
open override fun addVolumeChangedListener(listener: VolumeChangedListener)
Link copied to clipboard
override fun canAdvertiseSession(): Boolean
Link copied to clipboard
open override fun clearAuxEffectInfo()
Link copied to clipboard
open override fun clearCameraMotionListener(p0: CameraMotionListener)
Link copied to clipboard
override fun clearMediaItems()
Link copied to clipboard
open override fun clearVideoFrameMetadataListener(p0: VideoFrameMetadataListener)
Link copied to clipboard
open override fun clearVideoSurface()
open override fun clearVideoSurface(@Nullable p0: Surface?)
Link copied to clipboard
open override fun clearVideoSurfaceHolder(@Nullable p0: SurfaceHolder?)
Link copied to clipboard
open override fun clearVideoSurfaceView(@Nullable p0: SurfaceView?)
Link copied to clipboard
open override fun clearVideoTextureView(@Nullable p0: TextureView?)
Link copied to clipboard
open override fun createMessage(p0: PlayerMessage.Target): PlayerMessage
Link copied to clipboard
open override fun decreaseDeviceVolume()
Link copied to clipboard
open override fun experimentalIsSleepingForOffload(): Boolean
Link copied to clipboard
open override fun experimentalSetOffloadSchedulingEnabled(p0: Boolean)
Link copied to clipboard
open override fun getAnalyticsCollector(): AnalyticsCollector
Link copied to clipboard
open override fun getApplicationLooper(): Looper
Link copied to clipboard
open override fun getAudioAttributes(): AudioAttributes
Link copied to clipboard
open override fun getAudioComponent(): ExoPlayer.AudioComponent?
Link copied to clipboard
open override fun getAudioDecoderCounters(): DecoderCounters?
Link copied to clipboard
open override fun getAudioFormat(): Format?
Link copied to clipboard
open override fun getAudioSessionId(): Int
Link copied to clipboard
open override fun getAvailableCommands(): Player.Commands
Link copied to clipboard
override fun getBufferedPercentage(): Int
Link copied to clipboard
open override fun getBufferedPosition(): Long
Link copied to clipboard
open override fun getClock(): Clock
Link copied to clipboard
open override fun getContentBufferedPosition(): Long
Link copied to clipboard
override fun getContentDuration(): Long
Link copied to clipboard
open override fun getContentPosition(): Long
Link copied to clipboard
open override fun getCurrentAdGroupIndex(): Int
Link copied to clipboard
open override fun getCurrentAdIndexInAdGroup(): Int
Link copied to clipboard
open override fun getCurrentCues(): MutableList<Cue>
Link copied to clipboard
override fun getCurrentLiveOffset(): Long
Link copied to clipboard
override fun getCurrentManifest(): Any?
Link copied to clipboard
override fun getCurrentMediaItem(): MediaItem?
Link copied to clipboard
open override fun getCurrentMediaItemIndex(): Int
Link copied to clipboard
open override fun getCurrentPeriodIndex(): Int
Link copied to clipboard
open override fun getCurrentPosition(): Long
Link copied to clipboard
open override fun getCurrentTimeline(): Timeline
Link copied to clipboard
open override fun getCurrentTrackGroups(): TrackGroupArray
Link copied to clipboard
open override fun getCurrentTrackSelections(): TrackSelectionArray
Link copied to clipboard
open override fun getCurrentTracksInfo(): TracksInfo
Link copied to clipboard
open override fun getDeviceComponent(): ExoPlayer.DeviceComponent?
Link copied to clipboard
open override fun getDeviceInfo(): DeviceInfo
Link copied to clipboard
open override fun getDeviceVolume(): Int
Link copied to clipboard
open override fun getDuration(): Long
Link copied to clipboard
open override fun getMaxSeekToPreviousPosition(): Long
Link copied to clipboard
override fun getMediaItemAt(p0: Int): MediaItem
Link copied to clipboard
override fun getMediaItemCount(): Int
Link copied to clipboard
open override fun getMediaMetadata(): MediaMetadata
Link copied to clipboard
override fun getNextMediaItemIndex(): Int
Link copied to clipboard
open override fun getPauseAtEndOfMediaItems(): Boolean
Link copied to clipboard
open override fun getPlaybackLooper(): Looper
Link copied to clipboard
open override fun getPlaybackParameters(): PlaybackParameters
Link copied to clipboard
open override fun getPlaybackState(): Int
Link copied to clipboard
open override fun getPlaybackSuppressionReason(): Int
Link copied to clipboard
open override fun getPlayerError(): ExoPlaybackException?
Link copied to clipboard
open override fun getPlaylistMetadata(): MediaMetadata
Link copied to clipboard
open override fun getPlayWhenReady(): Boolean
Link copied to clipboard
override fun getPreviousMediaItemIndex(): Int
Link copied to clipboard
open override fun getRenderer(p0: Int): Renderer
Link copied to clipboard
open override fun getRendererCount(): Int
Link copied to clipboard
open override fun getRendererType(p0: Int): Int
Link copied to clipboard
open override fun getRepeatMode(): Int
Link copied to clipboard
open override fun getSeekBackIncrement(): Long
Link copied to clipboard
open override fun getSeekForwardIncrement(): Long
Link copied to clipboard
open override fun getSeekParameters(): SeekParameters
Link copied to clipboard
open override fun getShuffleModeEnabled(): Boolean
Link copied to clipboard
open override fun getSkipSilenceEnabled(): Boolean
Link copied to clipboard
open override fun getTextComponent(): ExoPlayer.TextComponent?
Link copied to clipboard
open override fun getTotalBufferedDuration(): Long
Link copied to clipboard
open override fun getTrackSelectionParameters(): TrackSelectionParameters
Link copied to clipboard
open override fun getTrackSelector(): TrackSelector
Link copied to clipboard
open override fun getVideoChangeFrameRateStrategy(): Int
Link copied to clipboard
open override fun getVideoComponent(): ExoPlayer.VideoComponent?
Link copied to clipboard
open override fun getVideoDecoderCounters(): DecoderCounters?
Link copied to clipboard
open override fun getVideoFormat(): Format?
Link copied to clipboard
open override fun getVideoScalingMode(): Int
Link copied to clipboard
open override fun getVideoSize(): VideoSize
Link copied to clipboard
override fun getVolume(): Float
Link copied to clipboard
override fun hasNextMediaItem(): Boolean
Link copied to clipboard
override fun hasPreviousMediaItem(): Boolean
Link copied to clipboard
open override fun increaseDeviceVolume()
Link copied to clipboard
override fun isCommandAvailable(p0: Int): Boolean
Link copied to clipboard
override fun isCurrentMediaItemDynamic(): Boolean
Link copied to clipboard
override fun isCurrentMediaItemLive(): Boolean
Link copied to clipboard
override fun isCurrentMediaItemSeekable(): Boolean
Link copied to clipboard
open override fun isDeviceMuted(): Boolean
Link copied to clipboard
open override fun isLoading(): Boolean
Link copied to clipboard
override fun isPlaying(): Boolean
Link copied to clipboard
open override fun isPlayingAd(): Boolean
Link copied to clipboard
override fun moveMediaItem(p0: Int, p1: Int)
Link copied to clipboard
open override fun moveMediaItems(    p0: Int,     p1: Int,     p2: Int)
Link copied to clipboard
override fun pause()
Link copied to clipboard
override fun play()
Link copied to clipboard
open override fun prepare()
Link copied to clipboard
open override fun release()
Link copied to clipboard
open override fun removeAnalyticsListener(p0: AnalyticsListener)
Link copied to clipboard
open override fun removeAudioOffloadListener(p0: ExoPlayer.AudioOffloadListener)
Link copied to clipboard
open override fun removeListener(p0: Player.Listener)
Link copied to clipboard
override fun removeMediaItem(p0: Int)
Link copied to clipboard
open override fun removeMediaItems(p0: Int, p1: Int)
Link copied to clipboard
open override fun removeVolumeChangedListener(listener: VolumeChangedListener?)
Link copied to clipboard
override fun seekBack()
Link copied to clipboard
override fun seekForward()
Link copied to clipboard
override fun seekTo(p0: Long)
open override fun seekTo(p0: Int, p1: Long)
Link copied to clipboard
override fun seekToDefaultPosition()
override fun seekToDefaultPosition(p0: Int)
Link copied to clipboard
override fun seekToNext()
Link copied to clipboard
override fun seekToNextMediaItem()
Link copied to clipboard
override fun seekToPrevious()
Link copied to clipboard
override fun seekToPreviousMediaItem()
Link copied to clipboard
open override fun setAudioAttributes(p0: AudioAttributes, p1: Boolean)
Link copied to clipboard
open override fun setAudioSessionId(p0: Int)
Link copied to clipboard
open override fun setAuxEffectInfo(p0: AuxEffectInfo)
Link copied to clipboard
open override fun setCameraMotionListener(p0: CameraMotionListener)
Link copied to clipboard
open override fun setDeviceMuted(p0: Boolean)
Link copied to clipboard
open override fun setDeviceVolume(p0: Int)
Link copied to clipboard
open override fun setForegroundMode(p0: Boolean)
Link copied to clipboard
open override fun setHandleAudioBecomingNoisy(p0: Boolean)
Link copied to clipboard
override fun setMediaItem(p0: MediaItem)
override fun setMediaItem(p0: MediaItem, p1: Boolean)
override fun setMediaItem(p0: MediaItem, p1: Long)
Link copied to clipboard
override fun setMediaItems(p0: MutableList<MediaItem>)
open override fun setMediaItems(p0: MutableList<MediaItem>, p1: Boolean)
open override fun setMediaItems(    p0: MutableList<MediaItem>,     p1: Int,     p2: Long)
Link copied to clipboard
open override fun setMediaSource(p0: MediaSource)
open override fun setMediaSource(p0: MediaSource, p1: Boolean)
open override fun setMediaSource(p0: MediaSource, p1: Long)
Link copied to clipboard
open override fun setMediaSources(p0: MutableList<MediaSource>)
open override fun setMediaSources(p0: MutableList<MediaSource>, p1: Boolean)
open override fun setMediaSources(    p0: MutableList<MediaSource>,     p1: Int,     p2: Long)
Link copied to clipboard
open override fun setPauseAtEndOfMediaItems(p0: Boolean)
Link copied to clipboard
open override fun setPlaybackParameters(p0: PlaybackParameters)
Link copied to clipboard
override fun setPlaybackSpeed(p0: Float)
Link copied to clipboard
open override fun setPlaylistMetadata(p0: MediaMetadata)
Link copied to clipboard
open override fun setPlayWhenReady(p0: Boolean)
Link copied to clipboard
open override fun setPriorityTaskManager(@Nullable p0: PriorityTaskManager?)
Link copied to clipboard
open override fun setRepeatMode(p0: Int)
Link copied to clipboard
open override fun setSeekParameters(@Nullable p0: SeekParameters?)
Link copied to clipboard
open override fun setShuffleModeEnabled(p0: Boolean)
Link copied to clipboard
open override fun setShuffleOrder(p0: ShuffleOrder)
Link copied to clipboard
open override fun setSkipSilenceEnabled(p0: Boolean)
Link copied to clipboard
open fun setThrowsWhenUsingWrongThread(p0: Boolean)
Link copied to clipboard
open override fun setTrackSelectionParameters(p0: TrackSelectionParameters)
Link copied to clipboard
open override fun setVideoChangeFrameRateStrategy(p0: Int)
Link copied to clipboard
open override fun setVideoFrameMetadataListener(p0: VideoFrameMetadataListener)
Link copied to clipboard
open override fun setVideoScalingMode(p0: Int)
Link copied to clipboard
open override fun setVideoSurface(@Nullable p0: Surface?)
Link copied to clipboard
open override fun setVideoSurfaceHolder(@Nullable p0: SurfaceHolder?)
Link copied to clipboard
open override fun setVideoSurfaceView(@Nullable p0: SurfaceView?)
Link copied to clipboard
open override fun setVideoTextureView(@Nullable p0: TextureView?)
Link copied to clipboard
override fun setVolume(audioVolume: Float)
Link copied to clipboard
open override fun setVolumeInfo(volumeInfo: VolumeInfo): Boolean
Link copied to clipboard
open override fun setWakeMode(p0: Int)
Link copied to clipboard
open override fun stop()

Properties

Link copied to clipboard
open override val trackSelector: DefaultTrackSelector
Link copied to clipboard
open override val volumeInfo: VolumeInfo
Link copied to clipboard
val window: Timeline.Window