Skip to content

Allow playback of local resources#7

Open
pennersr wants to merge 1 commit intoldn0x7dc:masterfrom
pennersr:local-resources
Open

Allow playback of local resources#7
pennersr wants to merge 1 commit intoldn0x7dc:masterfrom
pennersr:local-resources

Conversation

@pennersr
Copy link
Copy Markdown
Contributor

I need playback of local resources. This pull adds support for this. You can refer to local resources for both the video and the poster like this:

<Video src="resource:video.mp4" poster={require('./foo.png')} .../>

You'll need to add the video file to your project:

  • iOS: Simply add it as a resource in Xcode
  • Android: Drop it in android/app/src/main/assets/video.mp4

This was referenced Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant