I exported a SWF file using Swiffy a few months back and the audio functions.
http://www.vgidownload.co.uk/Tests/Old.html
Exporting the same file now results in no audio function.
http://www.vgidownload.co.uk/Tests/New.html
Is there something i'm missing here or has something changed between v7.1 and v7.4.
If so is there any way I can have the file export using v7.1 ?
The sound seems to function fine when viewd on a PC through a browser, it is just on iPad/Mobile that it is silent.
Thanks
Matt
Have you tested Old.html on an iPad/Mobile? I just did and there's no sound. Also no sound in Chrome on Galaxy Core Prime. On the same Samsung in the android browser no test was possible because the "START" button doesn't work. Such are the limitations of swiffy on mobiles.
The sound is encoded in Base 64 in the swiffy html file, as are the images. But I could never get the audio to play on mobiles. Further info: How to make audio in swiffy HTML5 files play in mobile browsers? or
Mobile browsers unable to load base64 data uri for an <audio> tag.
Related
I have searched for various articles about playing mp3 files in firefox but no luck.
I want something similar to this website for playing my audio files:
http://www.waatea603am.co.nz/podcasts
Can anyone tell me how is the audio files being played in the website. I want to do something similar. I cant figure out how it is being done.
Thanks
Here's the JavaScript that makes the links play sound:
http://www.waatea603am.co.nz/Resources/JavaScript/podcast-audio.js
It's basically using the HTML5 Audio element:
<script type="text/javascript">
var snd = new Audio("file.mp3"); // buffers automatically when created
snd.play();
</script>
http://www.w3.org/wiki/HTML/Elements/audio
This isn't really a "programming" question, as much as a "Firefox configuration" question.
Personally:
I don't really have any preferences of "media player" for Linux
I simply use Windows media player for Windows
Windows Media player comes built in with all recent versions of Windows
Windows media is the default file association for .mp3 on all recent versions of Windows
Consequently, Firefox automatically uses Windows Media player to play .mp3's
Here's more info:
Issues:_Sound">http://kb.mozillazine.org/Mozilla_Suite_:Issues:_Sound
http://support.mozilla.org/en-US/kb/fix-common-audio-and-video-issues
'Hope that helps .. PSM
PS:
Unfortunately, most commercial Internet radio stations seem to use Flash to broadcast audio streams. Sigh...
I have a client that has a website. The website current allows users to login and search for and play .mp4 video. The list of playlist is created dynamically where values are stored in a sql server 2008 database. My client's site is already built for smartphone utilization and did not want to recreate an iphone app. Besides it would mean loading thousands of video. Instead I thought I would use the UIWebview to load the website. This seemed to work well. However, when you try to click on and play video within the UIWebview nothing happens. This is not the case if we launch the mobile website within the apple mobile safari browser. The vide plays by kicking off in the iPhone video player. Is there any way to accomplish this same functionality with a uiwebview? Any guidance or help is appreciated.
UIWebView will play video using <video> if everything is set up correctly, either remote files or local files will work (if they are the correct format).
What does your video tag look like? In particular your src.
If you want to, for example, play an inline video the html5 for that would be something like
<video id="theVideo" controls width="280" height="160" src="yourVideo.mp4" webkit-playsinline></video>
And it would be necessary in the UIWebView to set this line
self.webView.allowsInlineMediaPlayback = YES;
Or you can also explicitly load the media player, but doing everything in HTML5 is neat and tidy and easy.
I am trying to stream audio on a site hosted by Dreamhost from a lecture series using the <audio> tag in html5, but without much success. The actual code is
<audio id="playerTwo" class="player" controls="controls" preload="none">
<source src="audio.ogg" type="audio/ogg; codecs='vorbis'"/>
<source src="audio.mp3" type="audio/mpeg"/>
</audio>
I also have an .htaccess file to include the correct mime-types for apache.
AddType audio/ogg .ogg
AddType audio/mpeg .mp3
The ogg files are about 8 megs and mp3 files are about 13 megs. Each file was exported from Audacity.
Everything plays fine in FF, Chrome and Safari when served locally on my windows 7 machine (running a win32 version of apache 2.2.14 and php 5.3.1).
Things do not go so well on Dreamhost. (They run apache 2.2.15 and php 5.2.14.)
FF stops playing the audio file after 5 seconds. Chrome plays the audio file, but the audio skips frequently. Safari plays the audio correctly, but the lag between clicking the play button and the audio actually starting to stream and play is about three minutes.
If instead of using the <audio> tag, I play the mp3 files from Dreamhost with a Silverlight player, they stream and play correctly.
Any suggestions about what I need to do to get the <audio> tag to work correctly. As far as I know, html5 audio is client-side technology, as is Silverlight. So, in theory, Dreamhost should have no effect on how the <audio> tag performs.
Anyway, anyone have any ideas about what is amiss.
Thanks.
Problem caused by uploading audio files through filezilla in ascii transfer type, rather than binary transfer type. The audio files were corrupted during upload, so no big surprise that they didn't play well. The surprise is that the mp3 files did play acceptably, though the ogg files did not.
That's the answer here.
Play Apple's .caf audio file on a webserver? I have .caf audio files (Apple's open audio format) stored on my webserver and want to play them from a web browser on any O/S.
I understand, this doesn't seem like the solution you're looking for, but...
Several weeks ago we faced the same problem. We have several clients which are posting audio files to the web site from theirs iPhones, and we need to play audios on the web site.
But we didn't find any suitable flash player with .caf format support.
So we decided to convert .caf to .mp3 on the server through the ffmpeg.exe utility.
Happily, there a lot of flash players with .mp3 support.
Now I have not tried this... but...
This website:
http://modmyi.com/forums/skinning-themes-discussion/1769-how-do-i-create-caf-file.html
Seems to suggest that .CAF and .AIF may work interchangeably (It suggests that to convert to .CAF you convert to .AIF` and then rename the file).
Have you tried renaming it to .AIF and trying to play in a flash/java browser player? Alternatively just send it as a stream to the web-browser and let the client OS work out what to do with it (Like quicktime running inside the browser).
Let me know how it goes.
What is the recommended (cross-browser) video format to use on websites so that users' browsers (or most of them) wouldn't require to download a plugin to view it?
There is no single video that will play in every browser. If you want it to work across the most browsers, you're going to have to encode your video more than once. Dive into HTML5 video has the gory details.
You nest your video references so that browsers try these in order, falling back if it's not supported:
Ogg Theora
MP4 H.264
A Flash container displaying #2
Number 1 gets you Firefox 3.5 and Chrome. Number 2 gets you Safari and the mobile phone WebKit browsers. Number 3 gets you IE, Firefox ≤3, and Opera.
There is no such format available yet. The best way to go is:
Flash (most of the users have flash plugin installed already, 99% according to http://www.adobe.com/products/player_census/flashplayer/)
OGG (This will be available in HTML5 as standard)
Yes HTML5 will solve some of the problems of not needing a plugin, but different browser vendors have chosen different codecs and file formats. It's complicated, but Dive Into HTML 5 has a great article.
None! but you can do it with HTML 5 which is not implimented by all browsers ...
if you really need a video on your page i would recommend flash or silverlight
In a couple of months HTML 5 will be supported by almost all browsers on this planet. If you are planning to run your services in 2010 just use OGG open standard container format. It is unrestricted by software patents and is designed to provide for efficient streaming and manipulation of high quality digital multimedia. It is already supported by Firefox 3.5 and soon all browsers will support it.
Please look at documentation and wiki on http://www.xiph.org/ogg/
A giant GIF. (You could attach a Javascript image preloader script to the movie to load it.)
Microsoft Video Codec VC1