Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embed video

Status
Not open for further replies.

TheObserver

Programmer
Mar 26, 2002
91
US
I need to embed video clips in a webpage such that their players don't open separately, but rather would open in the page. I've already looked for information on embed and object tags and properties, but I can't seem to get what I need done accomplished. The code I'm using is as follows:

<object
width='320'
height='260'
classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'
codebase=' >
<param name='src' value='myvid.mpg'>
<param name='controller' value='true'>
<param name='autoplay' value='true'>
<embed
src='myvid.mpg'
width='320'
height='260'
autoplay='true'
controller='true'
pluginspage=' </embed>
</object>

I need to be able to open different video types (avi, mov, mpeg-2 and mpeg-4, etc), as well, but I can put in some server side logic to change the properties of the object and embed tags as necessary. I just need to keep the players from launching externally.

Thanks for your time.
 
Unless you design some kind of player in java or something, you cannot fully control where movie will be played at the client's computer. Their settings might be such that movies always open in an external application. Your example assumes person has installed quicktime. If they don't and their browser recognizes .mpg files, it might just start downloading the file and launching their preferred player.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top