mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-16 12:24:40 +00:00
fix for low quality trailers
This commit is contained in:
parent
f653aa9aa7
commit
e475feae84
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { logger } from '../utils/logger';
|
||||
import { Platform } from 'react-native';
|
||||
import { YouTubeExtractor } from './youtubeExtractor';
|
||||
|
||||
export interface TrailerData {
|
||||
|
|
@ -41,7 +42,8 @@ export class TrailerService {
|
|||
}
|
||||
|
||||
try {
|
||||
const url = await YouTubeExtractor.getBestStreamUrl(youtubeVideoId);
|
||||
const platform = Platform.OS === 'android' ? 'android' : 'ios';
|
||||
const url = await YouTubeExtractor.getBestStreamUrl(youtubeVideoId, platform);
|
||||
if (url) {
|
||||
logger.info('TrailerService', `On-device extraction succeeded for ${youtubeVideoId}`);
|
||||
this.setCache(youtubeVideoId, url);
|
||||
|
|
|
|||
Loading…
Reference in a new issue