.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to put vedio on our site?

Posted By: shahin     Posted Date: November 03, 2008    Points:2   Category :C#
how to put vedio on our site? which control is used ?
is it <object> i don't know ?

Responses
Author: Amit Mehra             
Posted Date: November 04, 2008     Points: 5   

Hi,
you can place windows media player to play video in you asp.net web page. Just add this tag on your web page


<object id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="your file or url"/>
<param name="SendPlayStateChangeEvents" value="False"/>
<param name="AutoStart" value="True"/>
<param name="uiMode" value="none"/>
<param name="PlayCount" value="9999"/>
<param name="Volume" value="9999"/>
</object>




set its URL property tag to your video file path
<param name="URL" value="your file or url"/> <!--Replace your file URL> -->

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Suresh             
Posted Date: November 04, 2008     Points: 5   

Hi amit
Can u plz explain clearly how to set video file path. b'coz im new to asp.net.I have apply ur code in my page, when run that page it shows black screen. how to play the video all formats.

Author: Amit Mehra             
Posted Date: November 04, 2008     Points: 5   

Hi Suresh,
Did you set the .WMV file path?

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Suresh             
Posted Date: November 04, 2008     Points: 5   

yes amit I have one video file in my local system which in in D drive. so i had given like this d:movie\santhosh\santhosh.wmv.

I have one query, wheather it accept only wmv format.

Author: Amit Mehra             
Posted Date: November 04, 2008     Points: 5   

Hi Suresh,
Windows Media player supports .asf, .wma, .wmv, .wm files format.

change your path like this and see

d:\movie\santhosh\santhosh.wmv

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Suresh             
Posted Date: November 05, 2008     Points: 5   

this is my path
E:\Movie\Guru\cd2\MPEGAV\AVSEQ01.wmv

but its not working amit

Author: shahin             
Posted Date: November 05, 2008     Points: 5   

hi suresh

try this may be run

you copy that .wmv file into ur root of project i.e in solution and then give full path of soln

Author: shahin             
Posted Date: November 05, 2008     Points: 5   

hi suresh

try this may be run

you copy that .wmv file into ur root of project i.e in solution and then give full path of soln



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend