This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Embed tag question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Embed tag question" Watch "Embed tag question" New topic

Embed tag question

Jesse Torres
Ranch Hand

Joined: Mar 25, 2004
Posts: 985
Hello to all,

If I set autoplay to false for an embed tag, does the actual file still load(download)behind the scenes? Or will the download process start once I hit play?

Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
I believe that *usually* the behavior will be to not play until the user explicitly clicks "play" (instead of starting play as soon as the page starts loading).

But that's completely up to your player (which, of course, is invoked by your browser).

The whole "<object>" vs "<embed>" issue (to say nothing of "autoplay" vs "autostart") is completely non-standard, so it's really anybody's guess what's ACTUALLY going to happen for a given user on a given browser ;-)

This article might be of interest to you:

'Hope that helps .. PSM

Paul M. Santa Maria, SCJP
Don't get me started about those stupid light bulbs.
subject: Embed tag question
jQuery in Action, 3rd edition