Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Broadcasting streaming media > Re-broadcasting streaming media
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 09-07-2010, 07:58 PM
awebber awebber is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
awebber is on a distinguished road
Default

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
Reply With Quote
  #2  
Old 09-08-2010, 02:21 AM
Stream Recorder
 
Posts: n/a
Default

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.
Reply With Quote
  #3  
Old 09-08-2010, 09:07 AM
awebber awebber is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
awebber is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 09-08-2010, 09:30 AM
awebber awebber is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
awebber is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 09-08-2010, 02:10 PM
Stream Recorder
 
Posts: n/a
Default

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.
Reply With Quote
  #6  
Old 09-08-2010, 04:02 PM
awebber awebber is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
awebber is on a distinguished road
Default

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
Reply With Quote
  #7  
Old 09-08-2010, 11:48 PM
Stream Recorder
 
Posts: n/a
Default

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


Quote:
Originally Posted by awebber View Post
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 View Post
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.
Reply With Quote
  #8  
Old 09-09-2010, 06:57 PM
awebber awebber is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
awebber is on a distinguished road
Default

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


Quote:
Originally Posted by Stream Recorder View Post
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 View Post
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.
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:54 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons