Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to play video files (.flv,.swf,.mp3) on my website.
If i use <embed> tag, it only allows to play .swf files.
I dont know how to go ahead. Which Video player i should use?
My website in C# Asp.net.

Is it compulsory to install flash player on machine to play .flv file on aspx page?


Waiting for suggestions.
Posted
Updated 31-Jul-12 1:37am
v3
Comments
vigramaj 11-Oct-12 9:40am    
codes for playing videos in asp.net

 
Share this answer
 
Comments
Sweetynewb 27-Jul-12 4:34am    
No luck sir. I tried to install AspNetFlashVideo Player but even that is not installing properly.
embed tad will support to play all

but MP4 videos require a MIME type on your server to play properly

http://www.articulate.com/support/kb_article.php?product=ap9&id=w9bvqxxido6t
 
Share this answer
 
Comments
Sweetynewb 31-Jul-12 6:50am    
Sir, can you give one example? ow embed tag will work with flv file? I used object tag with embed tag. Please reply me back
vvsnmurty 2-Aug-12 5:37am    
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="600" height="500">
<%-- in the value below line give the path of the folder in which you are storing the .swf file& bind the datalist with the colum name of the database with eval function --%>

<param name="movie" value='video/<%#Eval("videos")%>' />
<param name="quality" value="high" />
<%-- in the src below line give the path of the folder in which you are storing the .swf file--%>
<embed src='video/<%#Eval("videos")%>' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="700px" height="550px"

</object>
Sweetynewb 2-Aug-12 5:46am    
Thank you sir for example. I am confused in .swf & .flv files.
In my application i am able to play .swf file but not .flv.
Both file types are different. and in asp.net we can play .swf files?
vvsnmurty 2-Aug-12 5:38am    
chk dis url

http://usingaspdotnet.blogspot.in/2011/03/how-to-play-swf-file-in-aspnet.html
vvsnmurty 2-Aug-12 5:42am    
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "/jwplayer/player.swf",
file: "/uploads/Baby.FLV", //change to where ever the path is for your example
height: 470,
width: 320
});
</script>

http://stackoverflow.com/questions/8579548/how-to-embed-jw-flash-player-in-asp-c-sharp-page
Hi Try it......

You should be able to right click -> add references -> com -> "WMP Object"... then go from there.
That is windows media player.
try it...
 
Share this answer
 
Download ASP.NET JW FLV Flash Video Player Control and use it on your Page.
To download this control visit this[^] site.

I hope this will help you.
Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900