Skip to content

Commit

Permalink
update STREAM_FALLBACK_CLIENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
gechoto authored Jan 17, 2025
1 parent a4a597e commit 166ebdb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/com/zionhuang/music/utils/YTPlayerUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.zionhuang.innertube.NewPipeUtils
import com.zionhuang.innertube.YouTube
import com.zionhuang.innertube.models.YouTubeClient
import com.zionhuang.innertube.models.YouTubeClient.Companion.IOS
import com.zionhuang.innertube.models.YouTubeClient.Companion.WEB_CREATOR
import com.zionhuang.innertube.models.YouTubeClient.Companion.TVHTML5_SIMPLY_EMBEDDED_PLAYER
import com.zionhuang.innertube.models.YouTubeClient.Companion.WEB_REMIX
import com.zionhuang.innertube.models.response.PlayerResponse
import com.zionhuang.music.constants.AudioQuality
Expand All @@ -33,7 +33,10 @@ object YTPlayerUtils {
/**
* Clients used for fallback streams in case the streams of the main client do not work.
*/
private val STREAM_FALLBACK_CLIENTS: Array<YouTubeClient> = arrayOf(WEB_CREATOR, IOS)
private val STREAM_FALLBACK_CLIENTS: Array<YouTubeClient> = arrayOf(
TVHTML5_SIMPLY_EMBEDDED_PLAYER,
IOS,
)

data class PlaybackData(
val audioConfig: PlayerResponse.PlayerConfig.AudioConfig?,
Expand Down

0 comments on commit 166ebdb

Please sign in to comment.