- Version: 1.0.7
- GitHub: https://bitbucket.org/win_min_tun/nativescript-vidplayer
- NPM: https://www.npmjs.com/package/nativescript-vidplayer
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
NativeScript Video Player with Fullscreen support
NativeScript Video Player with Fullscreen, auto-play, on complete and on error callbacks. Tested with mp4, mp3, mov
Platform Support
Currently only support Android. Any collaborator for iOS support is welcomed!
##Android side
Usage
The plugin is developed using nativescript plugin seed (https://github.com/NathanWalker/nativescript-plugin-seed). Pls see demo
for full example.
<Video:Vidplayer id="video" src="{{ videoSrc }}" autoPlay="true" onComplete="{{ onComplete }}" onError="{{ onError }}" />
Attributes
- src - required
Video source (online or local)
- autoPlay - optional
Auto play true/false
- fullScreen - optional
Default is true. Fullscreen button hide/show
- onComplete - optional
on complete callback
- onError - optional
on error (when video cannot be played) callback
Credit
Credit goes to the native android library (https://github.com/rtoshiro/FullscreenVideoView) by Toshiro (https://github.com/rtoshiro)
Contributing - Support for iOS?
Currently there is no support for iOS. Any suggestion (iOS library, etc) and/or contribution is welcomed!