mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-27 11:41:53 +00:00
feat: open subtitles
This commit is contained in:
12
index.js
12
index.js
@@ -2,13 +2,9 @@ import "react-native-url-polyfill/auto";
|
||||
import { Platform } from "react-native";
|
||||
import "expo-router/entry";
|
||||
|
||||
// TrackPlayer is not supported on tvOS - wrap in try-catch in case native module isn't linked
|
||||
// TrackPlayer is not supported on tvOS
|
||||
if (!Platform.isTV) {
|
||||
try {
|
||||
const TrackPlayer = require("react-native-track-player").default;
|
||||
const { PlaybackService } = require("./services/PlaybackService");
|
||||
TrackPlayer.registerPlaybackService(() => PlaybackService);
|
||||
} catch (e) {
|
||||
console.warn("TrackPlayer not available:", e);
|
||||
}
|
||||
const TrackPlayer = require("react-native-track-player").default;
|
||||
const { PlaybackService } = require("./services/PlaybackService");
|
||||
TrackPlayer.registerPlaybackService(() => PlaybackService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user