Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Re-broadcasting streaming media (http://stream-recorder.com/forum/forumdisplay.php?f=38)
-   -  

Embedded Windows Media Player: How to disable or hide the Pause function

(http://stream-recorder.com/forum/showthread.php?t=7340)

awebber 09-07-2010 06:58 PM

Embedded Windows Media Player: How to disable or hide the Pause function


 
I have on a page a couple of streams and I use the typical Media player and it is set to be off when the page loads - it all works great.

I came to find out that if you push the pause button on a player and not the stop that the stream is still coming so you use the bandwidth just the same- so 1 I would like to disable the pause button of not have it show - is there is a switch for that.

But here is the reason for my post - all stations I have tried stop when you push the stop button but in using HTTP Analiyzer I found that one stream continues even when the player is stopped - this is weird as all other station I have tried always stop. Maybe it is some strange steam?

anyway here is the player configuration

Code:

<OBJECT ID="MediaPlayer" WIDTH=230 HEIGHT=75
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject" class="auto-style1">

<PARAM NAME="FileName" VALUE="http://www.silver.ru/radio/128.m3u" valuetype="ref" ref>
<param name="AudioStream" value="0"/>
<param name="AutoSize" value="0">
<param name="AutoStart" value="0">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="1">
<param name="DisplaySize" value="1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="0"/>
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="0">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="000000">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="-1">
<param name="WindowlessVideo" value="-1">
<EMBED TYPE="application/x-mplayer2" SRC="http://www.silver.ru/radio/128.m3u"" NAME="MediaPlayer"
WIDTH="230" HEIGHT="75" ShowControls="0" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>

If you put that on a page it will seem fine but in truth you cannot turn it off - or keep it from sending data but just keep the data from going to your sound card.

Does anyone have a solution for this?

And let me know if I should ask in another place - thanks a lot

Stream Recorder 09-08-2010 01:21 AM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
You can hide the player and use scripting for managing it.

p.s.
This is an Icecast stream, so you are not limited by Windows Media Player, you can use many other players.

awebber 09-08-2010 08:07 AM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
Thanks -- I do not want to hide the player - only want to prevent the stream from flowing to users when the player is off.

I use several of this player on same page so design wise do not want to use a different one. No other stream that i have found has this problem.

as far as hiding - only hiding the pause button would be useful as it does not always stop the stream - it just stops you hearing the stream. Using the stop button does stop the stream -- well except for the stream I am speaking of in this topic

awebber 09-08-2010 08:30 AM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
Now I see why the confusion - someone changed the subject line to this thread -- the main issue is not the pause button but stopping the stream. If the player is turned off it makes no sense to use bandwidth of the listener who is not listening and of the server.

Stream Recorder 09-08-2010 01:10 PM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
When a user closes the pages or navigates to another one, there should be no any bandwidth usage. The only problem is with the Pause button, solutions for which were mentioned above.

awebber 09-08-2010 03:02 PM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
I am not talking of closing the page- yes that will stop a stream- I am talking of stopping the player which does stop the stream on all feeds I have used expect the specific one I show above - that is the question - how can I get that stream to stop when the stop button is stopped - the music does stop sounding but the stream continues.

I see no answer as to how to not show the pause button - there is a reference to one can use some scripting to control player - where and how is the question.

thanks

Stream Recorder 09-08-2010 10:48 PM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
Quote:

Originally Posted by awebber (Post 21319)
how can I get that stream to stop when the stop button is stopped - the music does stop sounding but the stream continues.

When the Stop button is pressed, there is no any traffic usage on my PC.

Quote:

Originally Posted by awebber (Post 21319)
I see no answer as to how to not show the pause button - there is a reference to one can use some scripting to control player - where and how is the question.

Use MSDN or google. Or just hire a freelancer to do the work.

awebber 09-09-2010 05:57 PM

Re: Embedded Windows Media Player: How to disable or hide the Pause function


 
Quote:

Originally Posted by Stream Recorder (Post 21330)
When the Stop button is pressed, there is no any traffic usage on my PC.

Do not know if you have a program that can watch or not - I use HTTP Analiyzer and it is just a couple of streams taht do this strange thing

Quote:

Originally Posted by Stream Recorder (Post 21330)
Use MSDN or google. Or just hire a freelancer to do the work.

I just thought since this forum has people that may be familiar with player that one may know how to do it but I suppose they mostly send streams and not receive them. It is easy to hid the control - but that is stop and play also and I only want to hide pause and I did not see it at on MSDN as a PARAM element.

I know I could make my own player controls like pause would be

Code:

<INPUT TYPE = "BUTTON"  ID = "PAUSE"  NAME = "PAUSE"  VALUE = "||"
    onClick = "

        /* Check first to be sure the operation is valid. */
        if (Player.controls.isAvailable('Pause'))

            /* Pause the Player. */
            Player.controls.pause();
">

But thought someone would have a way of hiding on the player I use.

If you pause pause the streams generally continue that is why I did not want them.


All times are GMT -6. The time now is 05:13 PM.