fix: move from react-native-video -> VLC for transcoded streams (#529)

Co-authored-by: Alex Kim <alexkim5682@gmail.com>
This commit is contained in:
Fredrik Burmester
2025-02-15 21:10:36 +01:00
committed by GitHub
parent ecb9b90163
commit 4c14c08b35
18 changed files with 379 additions and 1441 deletions

View File

@@ -111,15 +111,6 @@ export const getStreamUrl = async ({
if (mediaSource?.TranscodingUrl) {
const urlObj = new URL(api.basePath + mediaSource?.TranscodingUrl); // Create a URL object
// If there is no subtitle stream index, add it to the URL.
if (subtitleStreamIndex == -1) {
urlObj.searchParams.set("SubtitleMethod", "Hls");
}
// Add 'SubtitleMethod=Hls' if it doesn't exist
if (!urlObj.searchParams.has("SubtitleMethod")) {
urlObj.searchParams.append("SubtitleMethod", "Hls");
}
// Get the updated URL
const transcodeUrl = urlObj.toString();