Thursday, April 2, 2009

How to Embed Video Player in ASPX page

we can very easily embed the media player on web page
sample code is follows
I read it form following link

http://alistapart.com/articles/byebyeembed


[object type="video/x-ms-wmv"
data="movie.wmv" width="320" height="260"]
[param name="src" value="movie.wmv" /]
[param name="autostart" value="true" /]
[param name="controller" value="true" /]
[/object]

Thanks
Publish Post

HelpOnDesk Team

3 comments:

helpondesk said...

We can embed player dynamicaly using litterl

string val = "banana.mpg";

string strLiteral = "[object type='video/x-ms-wmv' id='mediaPlayer'"
+ " data="+val+" width='320' height='260']"
+ "[param name='src' value ="+ val+ " /]"
+ "[param name='autostart' value='true' /]"
+ "[param name='controller' value='true' /]"
+ "[/object]";

ltr.Text = strLiteral;

ABManikanta said...

@Mahesh K. Sharma

can you please be more specific.
am just a beginner and my project requires to embed a video.
your help here would be appreciated.

Thanks in advance

ABManikanta said...

@ Mahesh

Hi Mahesh,
can you please be more specific.
Am new to this, and my final year project requires a video to embedded into the website.

your help here would be appreciated

thanks in advance