/    Sign up×
Community /Pin to ProfileBookmark

If I’ve embeded a sound file in my web page using the following code: <embeb src = “sound.wav”>.
How can I choose which application I want it to play in.
i.e. for e.g if I want the music to play in Quick Time Player instead of the usual one like Media Player.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@lilluOct 13.2003 — The <embed> tag tells the browser that a plug-in is needed to play the file.

It depends on the file extension to play a particular media. <embed src="sound.mov" width="216" height="16"></embed> provided the user has the plugin (in this case, QuickTime to play .mov or any other player that can handle .mov file format).

If they dont have the player on their machine, you can make them download it.

By all means, I would not use <embed>. It's not standard. I would simply use a link to my file to play.

<A HREF="http://www.yoursite.com/filename.wav"> Click Here</A>

There's a fat chance that the user's browser itself can play the file. (just think of IE's built in media player control)
×

Success!

Help @Sonia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...