4.9.0 commit

This commit is contained in:
Xilin Jia 2024-04-18 23:08:11 +01:00
parent a40da1310f
commit 2c28af7318
2 changed files with 18 additions and 1 deletions

View File

@ -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.PlaybackServiceMediaPlayer
import ac.mdiq.podcini.playback.base.PlayerStatus import ac.mdiq.podcini.playback.base.PlayerStatus
import ac.mdiq.podcini.playback.base.RewindAfterPauseUtils.calculatePositionWithRewind import ac.mdiq.podcini.playback.base.RewindAfterPauseUtils.calculatePositionWithRewind
import ac.mdiq.podcini.playback.service.ExoPlayerWrapper
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.media.AudioManager
import android.util.Log import android.util.Log
import android.util.Pair import android.util.Pair
import android.view.SurfaceHolder 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, override fun playMediaObject(playable: Playable, stream: Boolean,
startWhenPrepared: Boolean, prepareImmediately: Boolean startWhenPrepared: Boolean, prepareImmediately: Boolean
) { ) {

View File

@ -278,7 +278,8 @@
* fixed bug of player always expands when changing audio * 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 * 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 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. * 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 * RSS feeds with no playable media can be subscribed and read/listened via the above two ways