| 
 Posted by Benjamin Niemann on 07/12/06 21:16 
pjsenthil@gmail.com wrote: 
 
>       I am design a webpage in which i need to open a video file and 
> play it.I thought of embedding a Mplayer. 
>  
> How can i do that in a webpage.Is there any class ID for Mplayer.and 
>  
> Normally for QT or WMP we use object tag and class id.. 
 
mplayer is not really a widely available application (I have, but even I 
prefer an embeded kaffeine which in turn uses libxine...). 
 
Use the OBJECT element to embed video files[*]. Specify the video format 
using the TYPE attribute (e.g. video/mpeg). Let the browser figure out 
which plugin is most appropriate to handle this format (which in 99.x% will 
not be mplayer...). 
 
[*] - If you *really* think that you have to embed it, instead of providing 
a link for manual opening of the video. Watching videos in a standalone 
player is usually much more confortable (e.g. you can resize it or play it 
fullscreen). Most players support streaming (just like their plugin 
counterparts), if the video is opened via the URL. 
 
--  
Benjamin Niemann 
Email: pink at odahoda dot de 
WWW: http://pink.odahoda.de/
 
  
Navigation:
[Reply to this message] 
 |