We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e1c00 commit b06c976Copy full SHA for b06c976
player/playback-engine/src/main/kotlin/com/tidal/sdk/player/playbackengine/ExoPlayerPlaybackEngine.kt
@@ -345,6 +345,12 @@ internal class ExoPlayerPlaybackEngine(
345
}
346
347
override fun release() {
348
+ val positionInSeconds = if (forwardingMediaProduct?.productType == ProductType.BROADCAST) {
349
+ extendedExoPlayer.currentPositionSinceEpochMs
350
+ } else {
351
+ extendedExoPlayer.currentPositionMs
352
+ }.toDouble() / MS_IN_SECOND
353
+ reportEnd(EndReason.OTHER, endPositionSeconds = positionInSeconds)
354
extendedExoPlayer.release()
355
coroutineScope.launch {
356
eventSink.emit(Event.Release)
0 commit comments