Skip to content

Commit

Permalink
feat(android): change default user agent value (#3813)
Browse files Browse the repository at this point in the history
* feat(android): change default user agent value

* docs: fix headers prop platform
  • Loading branch information
YangJonghun authored May 22, 2024
1 parent dac0985 commit 089dc7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/component/props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ If a preferred [fullscreenOrientation](#fullscreenorientation) is set, causes th

### `headers`

<PlatformsList types={['Android']} />
<PlatformsList types={['iOS', 'Android']} />

Pass headers to the HTTP client. Can be used for authorization. Headers must be a
part of the source object.
Expand Down Expand Up @@ -831,7 +831,7 @@ textTracks={[

### `showNotificationContorols`

<PlatformsList types={['Android', 'iOS']}/>
<PlatformsList types={['Android', 'iOS']} />

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.
Expand Down

0 comments on commit 089dc7e

Please sign in to comment.