Playing audio in a mobile browser?
I want to make myself a web-based learning stopwatch that I can use in my Blackberry mobile browser.
The stopwatch should count 3 minutes, then ring the bell, wait 1 minute, then ring again and then repeat.
My problem is that I cannot get the sound to work on my Blackberry browser.
I tried to use <embed src="bell.wav">
which works fine in a normal computer browser, but it doesn't make sound on my blackberry.
Should I create this stopwatch with Javascript and HTML or should I create it with flash?
a source to share
The EMBED tag is not supported according to the BlackBerry HTML Reference . You might want to experiment with the OBJECT tag. One example I've seen for playing an embedded video in a browser looks something like this:
<object height="288" width="352"
data="http://admin.example.com/_ipvideos/video_file_35.3gp"
type="video/3gpp" />
Something similar might work for simple audio files as well.
As far as Flash is concerned, you're out of luck as none of the current BlackBerry browsers support it. If you're unlucky enough to do this on a webpage, you might want to bite the bullet and write your own application to do this. Or give BlackBerry Widgets a try.
a source to share