A directive for Ionic that smoothly launches a video and plays it automatically when clicked by the user. See the original blog post about this on my website. Leave me a comment! :)
#Demonstration Here's what it will look like in action:
Here's a sample of what I used for the list above:
<ionic-video-link video-src="assets/Getting Started.mp4" video-name="getting-started">
<ion-item>
<i class="icon ion-ios-play-outline"></i>
Getting Started
</ion-item>
</ionic-video-link>
####Attributes:
- video-src will just link to the video asset that you want to launch when whatever is inside the link is clicked.
- video-name just has to be a unique name for the link for the internal
- The directive uses whatever you have inside the ionic-video-link tag as a link! Very handy.
Download the repo, store the html partial and the .js file somewhere in your www/app folder (or wherever you prefer), and reference them in your index.html.
Only tested on iOS.