Skip to content

Commit

Permalink
Update readme with mobile considerations
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorapple committed Mar 5, 2016
1 parent 3073210 commit 8d85913
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ npm start
open http://localhost:3000
```

### Mobile considerations

Due to various restrictions, `ReactPlayer` is not guaranteed to function properly on mobile devices. The [YouTube player documentation](https://developers.google.com/youtube/iframe_api_reference), for example, explains that [certain mobile browsers require user interaction](https://developers.google.com/youtube/iframe_api_reference#Mobile_considerations) before playing:

> The HTML5 `<video>` element, in certain mobile browsers (such as Chrome and Safari), only allows playback to take place if it's initiated by a user interaction (such as tapping on the player).
### Props

Prop | Description
Expand Down Expand Up @@ -109,7 +115,7 @@ There is a static method `ReactPlayer.canPlay(url)` to determine if a URL can b

To seek to a certain part of the media, there is a `seekTo(fraction)` instance method that will seek to the appropriate place in the media. See `App.js` for an example of this using `refs`.

### Supported Media
### Supported media

* YouTube videos use the [YouTube iFrame Player API]()
* Soundcloud tracks use the [Soundcloud JS SDK 2.0]()
Expand Down

0 comments on commit 8d85913

Please sign in to comment.