Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Team,
I have on social networking application in that user wants to upload any kind of video file and also wants to play the same file once upload to see whether its works or not?
can u please help me how to implement this in asp.net? its very urgent..


Thanks in advance....
Posted

 
Share this answer
 
XML
Hi,
  in asp.net a Literal control will help u to play video
just drag it in your page and in aspx.cs page
write following code
 string myobj = "";

        myobj += "<video width='462'  controls='controls' data-setup='{}'>";
        myobj += "<source src='http://www.yourdomain.com/videos/Video.mp4' type='video/ogg' />";

        myobj += "Your browser does not support video";

        myobj += "</object>";
        myobj += "</video>";

        Literal1.Text = myobj;

Note- video path must be same as above
Hope this help u
best Luck
Happy Coding
 
Share this answer
 
v2
Please have a look on following links:
Streaming Media[^]
Display Videos[^]
 
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