fix four audit bugs - offline playback, audio passthrough, notification dedup, dashboard fixes
This commit is contained in:
@@ -4,6 +4,7 @@ import { jellyfinClient, getItemsApi, getTvShowsApi, getUserViewsApi, getSearchA
|
||||
import { getLiveTvApi } from '@jellyfin/sdk/lib/utils/api/live-tv-api'
|
||||
import { debugLog } from '../lib/log'
|
||||
import { browserDeviceProfile } from '../lib/device-profile'
|
||||
import { usePreferencesStore } from '../stores/preferences-store'
|
||||
|
||||
function useApi() {
|
||||
return jellyfinClient.getApi()
|
||||
@@ -621,6 +622,7 @@ export function usePlaybackInfo(
|
||||
maxStreamingBitrate?: number,
|
||||
) {
|
||||
const api = useApi()
|
||||
const audioPassthrough = usePreferencesStore(s => s.audioPassthrough)
|
||||
return useQuery({
|
||||
queryKey: [
|
||||
'jellyfin',
|
||||
@@ -644,7 +646,7 @@ export function usePlaybackInfo(
|
||||
// picks the default; when set, the returned TranscodingUrl muxes
|
||||
// that audio track into the stream.
|
||||
AudioStreamIndex: audioStreamIndex,
|
||||
DeviceProfile: browserDeviceProfile() as any,
|
||||
DeviceProfile: browserDeviceProfile(audioPassthrough) as any,
|
||||
AutoOpenLiveStream: true,
|
||||
EnableDirectPlay: true,
|
||||
EnableDirectStream: true,
|
||||
|
||||
Reference in New Issue
Block a user