Using cordova video plugin for ios and Android - android

I want to play videos in my app using the Cordova plugin, which is available for both the iOS and Android platforms. I am aware of the HTML5 video tag but wish to use plugins. I have tried this plugin and have successfully used it. However, it only plays videos from a web URL, and I wish to play videos from my local file system.
Can anyone tell me how to do this?

Related

Stream video from phone camera using ionic framework

I am trying to build a mobile phone app using Ionic Framework to live stream video captured through phone camera. This is very similar to https://www.periscope.tv/
I will capture this stream on my server, transcode and then distribute it again. I looked into the camera plugin for cordova https://github.com/apache/cordova-plugin-camera. I am not sure if it is possible to live stream from camera using ionic framework.
If not, what are my other options except for going native.
Take a look for this tutorial: https://www.youtube.com/watch?v=U2LOpmCpK-g
This is a quick demo of setting up and running the RTCOMM Mobile Sample app. This sample uses the Ionic framework and angular-rtcomm library to build a Hybrid Mobile application.
I followed this tutorial and works! I recomend you to try first running from an iPhone (iOS 9.3 in my case) and make a call to a browser (Firefox 45.0.2), works perfectly. I also tried with Android, but has some mistakes.
Hi you can use ionic framework to embed video streaming for mobile app and the reference for the link is Nic raboy video in Ionic and the plugin for the project is camera, you can edit this plugin documents based upon your requirements in delaying the app to show and inject $http service in your controller to send the data to server

Audio is not being played when I convert the html5 game to Android using PhoneGap Cloud Build service

I had purchased an HTML5 game named BattleBattle from envato market. It is working fine in my pc when I publish it using IIS. I tried to convert this game to android apk file using PhoneGap Cloud Build service. The apk file is being generated and I am able to install and play the game in my mobile but the only problem is that there is no sound playing whereas sound plays in the browser. What could be the reason? The game is developed using Construct. I searched for solutions online but nothing helped. I even tried including audio plugins for phonegap but that too didn't help. Could anyone help me to solve this problem?
You need to use the core media plugin. https://build.phonegap.com/plugins/1168 and play the audio using it.
You will have to dig into the code and change the way the audio is initiated. Also remember that you will be only allowed to play one file at a time.

Stream media to Airplay (AppleTv) from Cordova Android App

I am currently developing an Android app using the Cordova 3.5 framework. The app allows users to watch a few videos, and I would like to be able to stream those videos from the Android app to an Apple TV or any Airplay-compatible client.
Is it possible to do this using Cordova for Android ? I did some research and found pretty much nothing on the subject.
Thanks for your help

Embed Video in Phonegap android application

I want to have video playing in my index.html while developing phonegap android application.
But the HTML5 video is not working in webview of phonegap android application. Please suggest a way. I don't want a intent to fire a new activity and play the video in native android player instead i want it in same HtML page.
It should just work normally. Things to check:
Is the video-file hosted locally (not on an external server), external sources will be marked as unsafe.
Is the path of your video file correct? Case sensitivity is important
I am having similar problems, and still haven't figured out how to get a locally stored video to play on newer Android platforms*, but I have found that embedding a remote video works pretty well. This iframe worked on both the ios and android emulators.
<iframe width="240"
src="http://www.youtube.com/embed/YE7VzlLtp-4" frameborder="0"
allowfullscreen>
</iframe>
there are a couple of plugins to play video for Android pre 4.x

Android: Phonegap Plugin for playing video in-App

In my phonegap app, I have some videos playing from youtube and some other MP4 (h263) videos in the html.
On iOS, I found a nice plugin for playing these videos natively, in a stable and control-able MPMoviePlayerController instead of this buggy webview object.
Now on Android, I miss a similar phonegap plugin and could only find one that sends the video URL to the youtube app. I.e. the user leaves the phonegap app when playing the video which is not wanted, of course.
Instead, the android.media.MediaPlayer should handle the playback.
Can you recommend a phonegap plugin for dealing with videos on android?
Thanks for sharing.

Categories

Resources