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

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.

Related

Cache video on Samsung SmartTV

I'm have a webpage that is just a fullscreen video that I want to display on a Samsung PM32F SmartTv using the built in browser. If I have a internet connection this works fine but when I try to cache the video using a cache manifest to be able to show it offline the video will not play.
I have tried the same kind of caching with images and that works fine.
The video I'm trying to display is a mp4 file and is smaller then one of the images I have tried with so I don't think it's a size isue.
I do not have access to any kind of developer tools for the TV's browser so I can't check for any error messages.
The video is in a <video> tag.
Any kind of help would be much appriciated.
You could try the following script (I could not test it on real tv).
function handleVideo(stream) {
video.src = window.URL.createObjectURL(stream);
document.getElementById("videoElement").pause();
}
After some time I found out it was just a simple server issue with a file that had been moved.

Chrome play mp4 in external program

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 !

Can't play video streamed with VLC using html5 video tag and Apache server

I have an Apache server with a webpage written in HTML5 that has a video tag to play video from a webcam. I use VLC to stream the video over HTTP in OGG. My problem is that I can play the video in a browser from the computer where the server is allocated, but from another computer the video window is blank.
I have done some tests to try to solve my problem:
if I put a video file in htdocs and the corresponding line in the html file, the video is played.
If the stream is a video file instead of video from the webcam, there is the same problem.
With VLC option Open Network Stream the video is played successfully from another computer.
When I have the blank window problem, with wireshark I don't see the stream being downloaded.
This is how I use the video tag:
<video id = "myVideo" src="http://localhost:8081/stream.ogg" type="video/ogg; codecs=theora" autoplay="autoplay"></video>
I would appreciate any suggestion, thank you in advance!
Kiko
http://localhost
Localhost will always point to your local computer. So if you run the application on the server the video file will actually resides on, it will find the file.
But if you are running the script on another computer, this computer will actually look locally, where the video file does not resides.
Try replacing http://localhost with the external IP-adres of your server.

safari html5 video loading issue

I'm having an issue with html5 video and safari 5. It works locally, the video pulls up and everything is fine. It will also pull up on the server if I go directly to the video path. Im just using the video tag and loading a video. It works on the server in all other browsers supporting html5 video. It works locally. It just doesn't work in safari on the server. In the network panel it shows the video trying to load but returns a null 404. The path to the video is relative. I'm very confused. Any help would be greatly appreciated. Thanks.
I had a problem very similar to yours. HTML5 video/Safari working locally but not when published on server. First check your .htaccess file. You may need to modify MIME types. Here is a very good tutorial: Dive into HTML5 Video.
Second, and this solved my problem, are you serving from a protected site? The solution for me was to move video and audio files to an unprotected folder and then use an absolute path to the specific media.

Camtasia html page Video does not play when uploaded to Server

The graphic designer created a camtasia video yesterday and im just trying to upload it to our production server. When i navigate to the html page the video and screenshot of the video show without issue. When i click play the media bar shows up down the bottom but nothing will play.
Any ideas?
Thanks
It sounds like your web server may need to have the MIME types for the Flash MP4 format configured?
This article might help - MP4/FLV/SWF Flash plays on local machine, but not from server or network
Whoever manages your web server should be familiar with setting up the MIME types and can check with Adobe if you have further questions.