I am loading a MP4 file in flash using flie reference to server, Now I want to check the size and codec of the video, if the size is less than 640X360, then I don't want to allow it for upload.
I have made filter to choose only MP4 files.
var aryFileFilters:Array = new Array();
aryFileFilters.push(new FileFilter("Video Files", "*.mp4;*.avi;*.mov;*.flv"));
aryFileFilters.push(new FileFilter("Audio Files", "*.mp3;*.wav"));
objFileRef.browse(aryFileFilters);
objFileRef.addEventListener("select", onUploadFile);
I have check over internet and found no way to do it, If you have something please share.
Thanks in advance.
Related
I am trying to play a wav file using html 5 audio player but it shows file could not be decoded.
Anyone please let me know what is wrong with this wav file so it is unable to play in html5 audio player.
I am working on a call recording system that records these kind of wav files and now I am integrating html 5 audio player to play in system.
If file does not support in html 5 audio player then please let me know any alternative option to play file in system.
Below is url to download wav file
http://sipprintdemo.com/callrecording3/download.php?file=../../../sipprintcalls/2016/05/17/15/20160517_152047_XRT.wav
It is difficult to say why it is not decoding without seeing your code. What browser are you using in order to test? .wav files do work with HTML audio but not all browsers support that file type. I know that IE for example does not support it.
Another option would be to convert the files to .mp3 format that is support by all browsers. A quick google search should yield a converter service for you.
I'm using Azure Blob Storage (not Azure Media Services) to store some mp4 and mp3 files, and I can easily show my videos and play my MP3 files.
However, for mp3 files, it shows an empty screen, which is not the desired behavior. And I really don't want to provide an image for my audio files.
The more I see AMP's documentation, the less I find about how to configure it for audio.
Even its mp3 samples contain a default image. Is there a way to hide or not show that image for playing audio files?
I have one .m3u file that points to several .ts files (all in akamai).
Because we give to akamai a live stream, they convert it to these .ts files each of 10s. I see that the m3u files are easy to understand, but I can't find a browser based (flash, html5 or native plugin) player for these files.
If I give to vlc the link of the m3u file, vlc plays all the .ts files one after another as if it where only one big file. I want to use flash or something similar to be able to play in browser, the same way vlc can play those .m3u files.
Is this possible ?
You are basically talking about Apple's HLS format.
You can use an html5 object in your web page. You can use http://osmfhls.kutu.ru/ flash plugin. You can use jwplayer. There are more choices (e.g. flowplayer).
[EDIT: using a simplified test page without Javascript etc.]
I've got a webpage that contains four audio files. These files are served as HTML5 <audio> with .mp3 files, which should play in Safari. (I've had no trouble with .ogg files in Firefox and Chrome.)
Each time I reload the page, between one and three of the files load properly, and the rest fail to load -- although they don't give an error, and the 'loading' message disappears; it's as if they're loading with a size of 0B. Which files work and which don't seems completely random: I've seen each of them load and each of them fail more than once.
How can I make all these files load properly?
I was having a similar issue with files not loading and came up with this solution. It seems that HTML5 audio/video can "stall", meaning that is just stops loading. Luckily, there's a "stall" event that fires when this happens. What I did was listen for this event and when/if it fires, just try to force the audio to load again.
Example using jQuery:
// the event is 'onstalled' - 'stalled' in the jquery case
$("audio").bind("stalled", function() {
var audio = this;
audio.load();
// Threw in these two lines for good measure.
audio.play();
audio.pause();
});
Looking at generated source of your page you load as first source an ogg file then a mp3 file in this exact order
But, as specified in http://html5doctor.com/native-audio-in-the-browser/ file are in inverse order, so try to do the same
otherwise try to serve in your sources also an aac audio in a m4a/mp4 container
Flv seems like can't be use with loader but NetStream. But I wanted to play the video only after I have completely download it (smooth viewing with no buffering time). How can I do it with NetStream? And Can I have multiple video load at same time, and play it according to some array arrangement?
you can check if stream.bytesLoaded == stream.bytesTotal