Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Embedded Windows Media Player: How to disable or hide the Pause functionI 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> Does anyone have a solution for this? And let me know if I should ask in another place - thanks a lot |
#2
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionYou 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. |
#3
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionThanks -- 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 |
#4
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionNow 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.
|
#5
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionWhen 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.
|
#6
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionI 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 |
#7
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionQuote:
Quote:
|
#8
|
|||
|
|||
Re: Embedded Windows Media Player: How to disable or hide the Pause functionQuote:
Quote:
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(); "> If you pause pause the streams generally continue that is why I did not want them. |
Tags: silver ru, stream on webpage, www silver ru |
Thread Tools | |
Display Modes | |
|
|