Chrome play mp4 in external program - google-chrome

I have some mp4 files which are served in a web app with the parameter to open them instead of downloading them :
"Content-Disposition inline
Here is my question :
Can I open my link/mp4 inside an external app such as VLC instead of chrome (for now it uses the default html5 player in a new tab)
I have looked for custom URI Schemes but I didn't understand a thing and I would prefer a solution working on Linux/Windows.
Thanks !

Related

Cannot get HTML5 audio to work with my MP3

I am recording MP3 using phonegap in an app. Storing the MP3 in a database Base64 Encoded. I can retrieve those records, save them to an MP3 file on phone or computer and play them. Media in phonegap works as well as the local players. What does not work is either
1) playing them directly as base64 on a windows computer in a browser or
2) saving to an MP3 file on the server and playing through the browser.
I gave up and switched to a download button, which works, by storing the MP3 file locally and playing it using the local audio player.
the HTML format I used is
for the file the source was the file path relative to the web root
For the base64 it was "data:audio/mpeg;base64,..."
In all cases it did not work, and the controls were either grayed out or had an error on them.
The solution that works for browser, android, and ios is to use m4a format. In cordova phonegap I used cordova-media-with-compression

How to open a mp4 local file using default application - AIR?

I've been trying to open a local video (mp4) as an AIR application using an android tablet, no success.
I've tryed to use URL adress but did not work as well.
I want to create a button that when pressed will open a internal .mp4 video using default android application to run this video. LIke opening a external webpage, but with video.
the video is located: /storage/extSdCard/Dealer Manager/10_VIDEOS/01_VIDEOS_COLHEDORA/DemonstraĆ§Ć£o Grupo Biosev/video02.mp4
If someone could help me with that I would be very grateful.
Regards,
Have you tried file.openWithDefaultApplication()? It's AIR-only but might do exactly what you want.

Audio not playing using HTML5 audio tag in Phonegap app

I've an audio file on my phone's SD card and I want to play it using my PhoneGap and HTML5 based hybrid mobile app. I am using the HTML5 audio tag as following:
<audio src="cdvfile://localhost/myfolder/subfolder/audio.mp3"><audio>
However unfortunately it doesn't play.
I want this to work on iOS, android and windows.
Please advice.
You should put the sound file in the www folder, or one of its subfolders.
I have successfully used audio tags in Cordova applications.
I have found two cases where audio will not play:
1) use of the new WKUIWebview plugin (does not allow the file protocol in thw www folder)
2) the head is missing a content security policy, which can happen creating an app with Phonegap instead of Cordova

Using phonegap and html5 video tag: caveats?

I am planning to build a JavaScript/HTML5 app, and wrap it with phonegap to be installed on an android tablet.
In it, I want to show a video file.
Is it just a matter of creating an index.html file, and putting a mymov.ogv file in the same directory, and then using:
<video src="mymov.ogv"...>
and it will work on Android?
I have read about some problems with this, but my quest got me confused.
What are the caveats, if any?
PS: the video should be packaged within phonegap, such that the video is shown when the app is not connected to wifi. So it's a local file.
PPS: Since it's for internal use, I am able to choose a particular modern android version (if that makes any difference). There is no need to support old android versions whatsoever.
According to this resource: http://caniuse.com/ogv There is not support for ogv format in Android. Remember that Phonegap applications are just display in a rapped browser window-- So if the browser doesn't support it, you can't use it. Whether the video is on-board the device or streamed, doesn't matter.
You can certainly embed with the tag, but you might want to use the associated Javascript API to provide some control over the video.

Google Chrome - HTML5 audio and WAV files

I am using HTML5 audio tag to link to a WAV file, but it suddenly seems to be failing. Chrome does not seem to be able to play WAV files (MP3 works fine). I get an error message like:
Error loading: "blob:http%3A%2F%...."
Does Chrome's audio tag support WAV? For e.g., try playing this: http://www.nch.com.au/acm/11kulaw.wav
I am on Chrome version 15.0.874
I don't get the error in Chrome, but the file does not play. The control is visible, but is not working.
There is a bug report in Chromium project that seems to talk about the behavior:
http://code.google.com/p/chromium/issues/detail?id=83323
The gist of it is that .wav can mean a bunch of things and have various encodings. The comments recommend using a plugin to handle this or downloading the file.
For the purposes of serving it on the web, I'd recommend compressing it to an MP3 and an OGG format (if you want to be nice to FOSS people) and including multiple source tags.
I had this problem with an mp3 audio file that did not play just in Google Chrome (this problem could be happening with other audio format files too, like wav or ogg).
I opened my mp3 file in an audio editor (Audacity) and saved it again in the desired format (in this case, *.mp3).
It works correctly in Google Chrome.
My conclusion: if the audio file does not play, the problem is in the settings that generated the audio. Use another program, with other settings.