Skip to content

Commit 9ed119b

Browse files
authored
Bugfix/allow android fullscreen (#10)
* change main file package.json * several improvements * suggestions and fixes * other fixes * types safety * fixes on handlers * add keys to allow full screen on android
1 parent 0eb1e4a commit 9ed119b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ the Vimeo player JS API (more information https://developer.vimeo.com/player/js-
1717

1818
```
1919
<Vimeo
20-
videoId={'513199601'}
20+
videoId={'76979871'}
2121
onReady={() => console.log('Video is ready')}
2222
onPlay={() => console.log('Video is playing')}
2323
onPlayProgress={(data) => console.log('Video progress data:', data)}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-vimeo-iframe",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "React Native Vimeo Iframe is a library to render Vimeo videos in a React Native app. This component allows you to embed a Vimeo video in your app and have full access to the Vimeo player JS API (more information https://developer.vimeo.com/player/js-api).",
55
"homepage": "https://github.com/MetaLabs-inc/react-native-vimeo-iframe#readme",
66
"main": "lib/commonjs/index.js",

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const Vimeo: React.FC<LayoutProps> = ({
121121

122122
return (
123123
<WebView
124+
allowsFullscreenVideo={true}
124125
source={{
125126
html: webplayer(videoId, loop, autoPlayValue, controls, speed),
126127
}}

src/template/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ iframe.height = '98%';
3636
iframe.frameBorder = '0';
3737
iframe.webkitallowfullscreen = true;
3838
iframe.allowfullscreen = true;
39+
iframe.mozallowfullscreen = true;
40+
iframe.allow="autoplay;fullscreen"
3941
iframe.id = PLAYER_ID;
4042
document.body.appendChild(iframe);
4143
var player = $f(iframe);

0 commit comments

Comments
 (0)