From 2c28af73187d731cf6c9b1ec84f9bc31f175dc0a Mon Sep 17 00:00:00 2001 From: Xilin Jia <6257601+XilinJia@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:08:11 +0100 Subject: [PATCH] 4.9.0 commit --- .../ac/mdiq/podcini/playback/cast/CastPsmp.kt | 16 ++++++++++++++++ changelog.md | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/src/play/java/ac/mdiq/podcini/playback/cast/CastPsmp.kt b/app/src/play/java/ac/mdiq/podcini/playback/cast/CastPsmp.kt index 4bd3656f..b0c257b9 100644 --- a/app/src/play/java/ac/mdiq/podcini/playback/cast/CastPsmp.kt +++ b/app/src/play/java/ac/mdiq/podcini/playback/cast/CastPsmp.kt @@ -9,8 +9,10 @@ import ac.mdiq.podcini.storage.model.playback.RemoteMedia import ac.mdiq.podcini.playback.base.PlaybackServiceMediaPlayer import ac.mdiq.podcini.playback.base.PlayerStatus import ac.mdiq.podcini.playback.base.RewindAfterPauseUtils.calculatePositionWithRewind +import ac.mdiq.podcini.playback.service.ExoPlayerWrapper import android.annotation.SuppressLint import android.content.Context +import android.media.AudioManager import android.util.Log import android.util.Pair import android.view.SurfaceHolder @@ -227,6 +229,20 @@ class CastPsmp(context: Context, callback: PSMPCallback) : PlaybackServiceMediaP } } + override fun createMediaPlayer() { +// mediaPlayer?.release() +// +// if (media == null) { +// mediaPlayer = null +// playerStatus = PlayerStatus.STOPPED +// return +// } +// +// mediaPlayer = ExoPlayerWrapper(context) +// mediaPlayer!!.setAudioStreamType(AudioManager.STREAM_MUSIC) +// setMediaPlayerListeners(mediaPlayer) + } + override fun playMediaObject(playable: Playable, stream: Boolean, startWhenPrepared: Boolean, prepareImmediately: Boolean ) { diff --git a/changelog.md b/changelog.md index 1c4c8369..0c564990 100644 --- a/changelog.md +++ b/changelog.md @@ -278,7 +278,8 @@ * fixed bug of player always expands when changing audio * migrated to media3's MediaSession and MediaLibraryService thought no new features added with this. some behavior might change or issues might arise, need to be mindful -* when video mode is temporarily audio only, click on image on audio player on a video episode also brings up the normal player detailed view* added a menu action item in player detailed view to turn to fullscreen video for video episode +* when video mode is temporarily audio only, click on image on audio player on a video episode also brings up the normal player detailed view +* added a menu action item in player detailed view to turn to fullscreen video for video episode * added episode home view accessible right from episode info view. episode home view has two display modes: webpage or reader. * added text-to-speech function in the reader mode. there is a play/pause button on the top action bar, when play is pressed, text-to-speech will be used to play the text. play features now are controlled by system setting of the TTS engine. Advanced operations in Podcini are expected to come later. * RSS feeds with no playable media can be subscribed and read/listened via the above two ways \ No newline at end of file