From 089dc7e03251983ed3e1581519ffe4b3020ff5f8 Mon Sep 17 00:00:00 2001 From: YangJH Date: Thu, 23 May 2024 05:59:32 +0900 Subject: [PATCH] feat(android): change default user agent value (#3813) * feat(android): change default user agent value * docs: fix headers prop platform --- .../main/java/com/brentvatne/exoplayer/DataSourceUtil.java | 2 +- docs/pages/component/props.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/DataSourceUtil.java b/android/src/main/java/com/brentvatne/exoplayer/DataSourceUtil.java index 5913e67462..5a0378960f 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/DataSourceUtil.java +++ b/android/src/main/java/com/brentvatne/exoplayer/DataSourceUtil.java @@ -38,7 +38,7 @@ public static void setUserAgent(String userAgent) { public static String getUserAgent(ReactContext context) { if (userAgent == null) { - userAgent = Util.getUserAgent(context, "ReactNativeVideo"); + userAgent = Util.getUserAgent(context, context.getPackageName()); } return userAgent; } diff --git a/docs/pages/component/props.mdx b/docs/pages/component/props.mdx index f6d7fcaf0d..adc81eb0fd 100644 --- a/docs/pages/component/props.mdx +++ b/docs/pages/component/props.mdx @@ -290,7 +290,7 @@ If a preferred [fullscreenOrientation](#fullscreenorientation) is set, causes th ### `headers` - + Pass headers to the HTTP client. Can be used for authorization. Headers must be a part of the source object. @@ -831,7 +831,7 @@ textTracks={[ ### `showNotificationContorols` - + Controls whether to show media controls in the notification area. For Android each Video component will have its own notification controls and for iOS only one notification control will be shown for the last Active Video component.