Skip to content

Commit 8e642a9

Browse files
committed
readme update
1 parent 267ac87 commit 8e642a9

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55

66
![Example Gif](https://sharelist2me.s3-eu-west-1.amazonaws.com/repo/example.gif)
77

8-
## Progress
9-
10-
- [x] ios (implemented %99 using https://github.com/malkouz/youtube-ios-player-helper-swift)
11-
- [x] android (implemented 'com.pierfrancescosoffritti.androidyoutubeplayer')
128

139
## Note
14-
- your android app needs to be using the androidx libraries instead of the old support libraries.
15-
- iOS under development but you can use
10+
- Your android app needs to be using the androidx libraries instead of the old support libraries.
1611

1712
## Video is unavailable problem
1813
- Origin is already set up in the library but you will notice that some videos are not playing. This is because the video is shared as not embeddable by provider.
@@ -29,10 +24,17 @@
2924
#### iOS
3025

3126
1. Drag drop `assets/YTPlayerView.html` to your iOS project
32-
2. Create a blank Swift file with bridge file in your project (to build swift code easily)
27+
2. Create a blank Swift file with bridge in your project (to build swift code easily)
3328
![ios example](./example/example-ios.png)
3429

35-
\`soon there will be easier implementation`
30+
### With CocoaPods (RN > 0.60)
31+
32+
1. `$ react-native link react-native-youtube-sdk`
33+
2. `$ cd /ios`
34+
3. `$ pod install`
35+
4. Create a blank Swift file with bridge in your project (to build swift code easily)
36+
5. Have fun
37+
3638

3739
### Manual installation
3840

@@ -181,5 +183,10 @@ const styles = StyleSheet.create({
181183
| pause | | void | pause the video |
182184
| loadVideo | videoId, startTime | void | load a video to the player |
183185
| getCurrentTime | | promise | Returns promise that results with the current time of the played video |
184-
| getVideoDuration | | promise | Returns promise that results with the duration of the played video |
186+
| getVideoDuration | | promise | Returns promise that results with the duration of the played video
187+
188+
189+
- [x] iOS (https://github.com/malkouz/youtube-ios-player-helper-swift)
190+
- [x] Android ('com.pierfrancescosoffritti.androidyoutubeplayer')
191+
|
185192

0 commit comments

Comments
 (0)