Update Exoplayer to 2.11.4

This commit is contained in:
Colin Kinloch 2020-05-01 16:47:37 +01:00
parent c6629a3cf9
commit 7826802b4e
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ subprojects {
MapsUtils : '0.6.2',
DropboxCoreSdk : '3.1.3',
GoogleDriveApi : 'v3-rev193-1.25.0',
Exoplayer : '2.10.8',
Exoplayer : '2.11.4',
Toro : '2.1.0',
LoganSquare : '1.3.7',
IABv3 : '1.1.0',

View File

@ -331,7 +331,7 @@ class ExoPlayerPageFragment : MediaViewerFragment(), IBaseFragment<ExoPlayerPage
val bandwidthMeter = DefaultBandwidthMeter()
val videoTrackSelectionFactory = AdaptiveTrackSelection.Factory(bandwidthMeter)
val trackSelector = DefaultTrackSelector(videoTrackSelectionFactory)
val player = ExoPlayerFactory.newSimpleInstance(context, trackSelector, DefaultLoadControl())
val player = ExoPlayerFactory.newSimpleInstance(context!!, trackSelector, DefaultLoadControl())
if (positionBackup >= 0) {
player.seekTo(positionBackup)
}