Browse and upload audio/video in C# web form

Posted by Bhatta under C# on 5/25/2012 | Points: 10 | Views : 1910 | Status : [Member] | Replies : 1
I am using the following code to play audio and video in the browser.

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="Player1" width="424" height="379">

<param name="URL" value="E:/share Date/hello.wma"></param>

<param name="http://path_to_the_video"></param>

<param name="AutoStart" value="1"></param>

<param name="ShowControls" value="1"></param>

<param name="ShowStatusBar" value="1"></param>

<param name="ShowDisplay" value="1"></param>

<param name="stretchToFit" value="1"></param>

<embed type="application/x-mplayer2"

pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"

width="424" height="379" src="E:/share Date/hello.wma"

filename="E:/share Date/hello.wma" autostart="1" showcontrols="1" showstatusbar="1" showdisplay="1">

</embed>

</object>

In the above code written for playing audio/video files using html, can you tell me how to change the source path dynamically instead of stating 1 path in the code? We have developed a website in asp.net which saves audio/video recordings on the local host. These recordings need to be browsed and played on the website.

Please help at the earliest!!

Thank you!!




Responses

Posted by: Vuyiswamb on: 5/25/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Look at this

http://videoplayer.codeplex.com/

http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Bhatta, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response