Skip to content

Commit

Permalink
4.9.0 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
XilinJia committed Apr 18, 2024
1 parent a40da13 commit 2c28af7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions app/src/play/java/ac/mdiq/podcini/playback/cast/CastPsmp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
) {
Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c28af7

Please sign in to comment.