streaming video  
Author Message
PremZ





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

hi,

how can i make streaming video using asp.net & C#. instead of dowloading the content, user should be able to watch the video or the live content in the website itself.



.NET Development6  
 
 
SVadali





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

You don't even need C# or ASP.NET coding to do this. Just add a media player object into your HTML code of your webpage and set the URL property of the medial player object to the streaming media. Something like this:

<script type="text/javascript" language="Javascript">
var g_bNetscape = ( -1 != navigator.appName.indexOf( "Netscape" ) );
if( g_bNetscape )
{
document.writeln( "<APPLET mayscript code=WMPNS.WMP name=WMP1 width=300 height=200 MAYSCRIPT >" );
}
</script>

<object id="WMP" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param name="URL" value="[Assign your MMS url here]" />
<param name="rate" value="1" />
<param name="balance" value="0" />
<param name="currentPosition" value="0" />
<param name="defaultFrame" value="" />
<param name="playCount" value="1" />
<param name="autoStart" value="-1" />
<param name="currentMarker" value="0" />
<param name="invokeURLs" value="-1" />
<param name="baseURL" value="" />
<param name="volume" value="50" />
<param name="mute" value="0" />
<param name="uiMode" value="full" />
<param name="stretchToFit" value="0" />
<param name="windowlessVideo" value="0" />
<param name="enabled" value="-1" />
<param name="enableContextMenu" value="-1" />
<param name="fullScreen" value="0" />
<param name="SAMIStyle" value="" />
<param name="SAMILang" value="" />
<param name="SAMIFilename" value="" />
<param name="captioningID" value="" />
<param name="enableErrorDialogs" value="0" />
<param name="_cx" value="6482" />
<param name="_cy" value="6350" />
</object>
<script type="text/javascript" language="Javascript">
if( g_bNetscape )
{
document.writeln( "</APPLET>" );
}
</script>


 
 
alazela





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

This question is off-topic for this forum. One of the forums at http://forums.asp.net would be more appropriate.

 
 
PremZ





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

i don't think so this question is off-topic for this forum. i hope asp.net is also a part of .net development .

i am aware of asp.net forum & already posted my thread there. as of now i didn't get any proper solution. i am waiting for the right one.

thanks & regards,

prem


 
 
alazela





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

The thread was in the .Net Data Access and Storage forum (which is focussed on ADO.Net) when I posted the "off-topic" message. I've unmarked that post as answer and will delete it.

 
 
PremZ





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

Thank u for the reply.....


 
 
PremZ





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

its all right.


 
 
Coolguy888





PostPosted: ASMX Web Services and XML Serialization, streaming video Top

I want the media player to be in a function in javascript so that I can pass the url to the function to play the streaming video. If I have different clips on the site, I can click on the clip and it pass the clip url to the function without having to duplicate the streaming video code in html for every url. How do I do this Please provide sample code. Thanks.