Many improvemtns and fixes related to decoupling of svelte and rust on android.
This commit is contained in:
@@ -372,22 +372,14 @@
|
||||
|
||||
// Call Rust backend to start playback
|
||||
// Rust will choose ExoPlayer (Android), libmpv (Linux), or tell us to use HTML5
|
||||
// Send minimal video data - no complex serialization to avoid Tauri Android issues
|
||||
const response: any = await invoke("player_play_item", {
|
||||
item: {
|
||||
id: media.id,
|
||||
title: media.name,
|
||||
artist: null,
|
||||
album: null,
|
||||
duration: media.runTimeTicks ? media.runTimeTicks / 10000000 : null,
|
||||
artworkUrl: null,
|
||||
mediaType: "video",
|
||||
streamUrl: currentStreamUrl,
|
||||
jellyfinItemId: media.id,
|
||||
title: media.name,
|
||||
id: media.id,
|
||||
videoCodec: needsTranscoding ? "hevc" : "h264",
|
||||
needsTranscoding,
|
||||
videoWidth: null,
|
||||
videoHeight: null,
|
||||
subtitles: subtitleTracks,
|
||||
needsTranscoding: needsTranscoding,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user