Re: Encoder, broadcast behind router

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Neil Smith [MVP Digital Media] (neil_at_nospam.com)
Date: 03/18/05


Date: Fri, 18 Mar 2005 14:51:57 GMT

On Thu, 17 Mar 2005 13:33:06 -0800, "AlexS"
<AlexS@discussions.microsoft.com> wrote:

>I'm sorry I confused you by putting my internal IP here. Actually I have made
>a webpage with the wmp player control on it which directly connects to
>encoder9 from the using my external IP. When I enter my intenal IP in it, it
>works fine but when I use my expternal IP it won't connect.

You're sure that's your real external IP ?
How have you established the IP ?

>strange since Winamp shoutcast works fine but it consumes too much bandwith
>for me.

Can you let me know what bandwidth do you have available (I need to
know this for my own application ;-) How many streams do you typically
and reliably send / how many listeners do you usually have at a time ?

<snip>

> For all applications I used so far this works for any direct connection from
> the net to my PC but I seem not be able to let users from the net connect
>

>Here is the script part I use on my site:

OK well let's start at the bottom : You need to remove the trailing
slash on the SRC param down in there. It'll confuse the players - the
encoder doesn't have a 'directory' and that's what you're implying to
the players which are connecting. It might not be the cause but it
won't help at all ;-)

The second thing is that your OBJECT tag actually has no URL to point
to. So the only people who will be able to see the stream are people
using browsers other than IE (which will use the EMBED tag, that would
otherwise pick up the SRC). IE only uses the OBJECT tag so lets
rewrite that to use this sort of framework (adapt this to your code)

<object id="mediaplayer"
classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"
type="application/x-oleobject">
        <param name="url" value="http://80.57.75.50:10000" />
        <param name="autostart" value="0" />
        <param name="showcontrols" value="1" />
        <param name="uimode" value="mini" />
.
.
.
        <embed ..... ></embed>
</object>

Here we're also using the classID for the more recent media player
(versions 7 and later) so there's more functionality available as
well.

NB the dots are just to indicate you can add a lot of other param tags
in there too - the available params for the embedded player are listed
here :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/paramtags.asp

HTH
Cheers - Neil

><SCRIPT LANGUAGE="JavaScript">
>with (document) {
> writeln('<center>');
> writeln('<OBJECT');
> writeln(' ID="mediaPlayer"');
> writeln(' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width=300
>height=35');
>
>writeln('CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
> writeln(' STANDBY="Loading Microsoft Windows Media Player components..."');
> writeln(' TYPE="application/x-oleobject height=20" border=0>');
> writeln('<EMBED TYPE="application/x-mplayer2"');
> writeln('
>PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
> writeln(' ID=mediaPlayer');
> writeln(' NAME="mediaPlayer"');
> writeln(' DISPLAYSIZE="3"'); // Fit To Size
> writeln(' AUTOSIZE="-1"');
> writeln(' BGCOLOR="black"');
> writeln(' SHOWCONTROLS="-1" ');
> writeln(' SHOWTRACKER="-1"');
> writeln(' SHOWDISPLAY="-1"');
> writeln(' SHOWSTATUSBAR="-1"');
> writeln(' VIDEOBORDER3D="-1"');
> writeln(' SRC="http://80.57.75.50:10000/"')
> writeln(' WIDTH=300');
> writeln(' HEIGHT=24');
> writeln(' AUTOSTART="-1" ');
> writeln(' DESIGNTIMESP="5311"');
> writeln(' >');
> writeln('</EMBED>');
> writeln('</OBJECT>');
> writeln('</center>');
>}</SCRIPT>



Relevant Pages

  • Re: WMP10 OCX / PIE / WMV playback problem.
    ... And since this is media player 10, you can go back to using the ... param name="url" rather than the older param ... >No video display when trying a local playback of wmv file in PIE. ...
    (microsoft.public.pocketpc.multimedia)
  • Re: How Do I Force An Object On The Page To PostBack or Reload?
    ... this returns a URL to the windows media player widget on my page: ... So, the player usually starts on postback but since this is XMLHTTP, ...
    (comp.lang.javascript)
  • Re: How Do I Force An Object On The Page To PostBack or Reload?
    ... do I force just the player to reload so it can grab the appropriate ... thanks but i don't think that will pull the new url from the server. ... my xmlhttp request has created ...
    (comp.lang.javascript)
  • Re: How Do I Force An Object On The Page To PostBack or Reload?
    ... do I force just the player to reload so it can grab the appropriate ... thanks but i don't think that will pull the new url from the server. ... the url string on the server and a postback would allow this code: ...
    (comp.lang.javascript)
  • Re: Player.playState!!!!
    ... Cheers - Neil ... i am not too familar with OBJECT tag ... >> your function works so great (at lease it works for my developer machine) ... >>> which the browser needs to know to decide which player to target. ...
    (microsoft.public.windowsmedia.player.web)