Embed Media Player File Web Page

How can i insert my media file that is residing in my folder. the format of my media file is in. avi format. can you please help me on how can display my video.

embed media player file web page

I found a good article about using the WMP with Firefox on MSDN.

Based on MSDN s article and after doing some trials and errors, I found using JavaScript is better than using conditional comments or nested EMBED/OBJECT tags.

I made a JS function that generate WMP object based on given arguments:

function generateWindowsMediaPlayer

holderId, // String

height, // Number

width, // Number

videoUrl // String

// you can declare more arguments for more flexibility

var holder document.getElementById holderId ;

var player object ;

player height height.toString ;

player width width.toString ;

videoUrl encodeURI videoUrl ; // Encode for special characters

if navigator.userAgent.indexOf MSIE 0

// Chrome, Firefox, Opera, Safari

//player type application/x-ms-wmp ; //Old Edition

player type video/x-ms-wmp ; //New Edition, suggested by MNRSullivan Read Comments

player data videoUrl ;

else

// Internet Explorer

player classid clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 ;

player ;

holder.innerHTML player;

Then I used that function by writing some markups and inline JS like these:

window.addEventListener load, generateWindowsMediaPlayer wmpHolder, 240, 320, ;

You can use jQuery.ready instead of window load event to making the codes more backward-compatible and cross-browser.

I tested the codes over IE 9-10, Chrome 27, Firefox 21, Opera 12 and Safari 5, on Windows 7/8.

Embedding Windows Media Player for all browsers

The VLC media player allows web designers to quickly and easily add video or audio files to their sites. With more than 100 million copies of the player installed.

How to embed Windows Media files in a web page. The example video clip on the right is an embedded Windows Media file. Embedded means that the player itself is.

How to Install a Plugin for VLC

The VLC Media Player typically is used as a desktop application, but it includes a plug-in that can play videos embedded on

How Do I Insert a VLC Player Into PowerPoint.

You can embed How to Embed VLC Media Player in Web Pages. The VLC media player allows web designers to quickly and

How to Use VLC Media Player in Firefox

How to Use VLC Media Player in Firefox. How to Embed a VLC Player in HTML. How to Embed Media Player

How to Record Flash Video

VLC and RealPlayerSP are both media players that can be used to record Flash videos embedded on web pages. Although VLC is

How to Embed an MPEG Video in HTML

Videos can serve many purposes online, from entertainment to education. Adding a video to your company website can better acquaint potential customers

How to Embed Media Player in HTML Code

An embedded media player can includes codes within the HTML that determine how the embedded media player behaves. How to Embed

How to Enable, Configure and Use a VLC Plugin in Firefox

While you are surfing the Internet with the Firefox browser, you may encounter some websites that require a media player plugin in

How to Embed Into a Web Page

How to Embed Into a Web Page. Save your HTML file and open it in a browser. The embedded web page.

How to Embed Media Player in HTML Code. Media players are sometimes featured on websites so that visitors can listen to music while browsing the site. Media players.

embed media player file web page embed media player file web page

Embedding a media player in an HTML page has never been easier.

How to Embed VLC Media Player in Web Pages | eHow

embed media player file web page