Click to See Complete Forum and Search --> : detect active media player and return function ???


pcolafl
09-04-2003, 01:38 PM
I need a script that will detect if the currently active media player is Windows Media or Real Player and will return a command based on the active player type.

:confused: There has to be a solution for this.

What I need --

Suppose there is an embeded media player named "mcz" that is currently operating...
mcz might either be Windows Media player or RealOne player, but that has to be evaluated.
There is a stop button for mcz, but since Windows Media and RealOne differ, the stop commands differ also.
When the stop button is pushed, the player type needs to be evaluated and either stop() for win media, or DoStop() for realone should be returned depending on the player type.

Easier said than done!
It also needs to be cross browser compatible.
Please help! Anyone have the solution?
Thanks!

zachzach
09-12-2003, 07:15 PM
i know this will produce 1 error function but it'll work, so just add a stop error messages script

heres the thing

make the function contain BOTH functions

so one will be right :) lol

think out of the box........jk lol
zach

pcolafl
09-12-2003, 07:22 PM
Thanks for that suggestion. Believe me, I thought about doing it that way, but I'm just not happy knowing that there is an error there. Thus far I have tried everything in my abilities and have come up short of a solution.
Surly there is a way to detect which media player is currently running ... if not, there needs to be! :mad:

zachzach
09-12-2003, 09:22 PM
wait, thats an activeX control, right
ive seen that activeX cntrol

then there almost certaintly is ill look into it

zachzach
09-12-2003, 09:26 PM
umm please show me the media player coding your using
from what im looking at its called: "windows media player" as the activeX control i dont see why it should have that difference problem

zach

zachzach
09-12-2003, 09:28 PM
is the code this:

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="-1">
<param name="AutoStart" value="-1">
<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="0">
<param name="DisplaySize" value="0">
<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="Filename" value>
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<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="-1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-600">
<param name="WindowlessVideo" value="0">
</object>

pcolafl
09-12-2003, 09:30 PM
I'll show you what I am doing

http://members.aol.com/musicodezone

pcolafl
09-12-2003, 09:37 PM
~cleared~

zachzach
09-13-2003, 11:13 AM
wait wait wait oohhhh this is a "make a script" genorator kinda page or a run your music here page?

zachzach
09-13-2003, 11:15 AM
ummm i dont understand how this script works because i saved it and i dont see the script please post your entier page here

MAKE SURE YOU USE [CODE ] [/ CODE] BLOCKS(WITHOUT THE SPACES)

zach

ps:
sorry this is taking long i understand now, but without knowing how to give you directions and the variables you are using, i cant

pcolafl
09-13-2003, 11:16 AM
It is page that allows you to assemble a media player code for embedding into webpages.

Nifty, huh?

zachzach
09-13-2003, 11:19 AM
ummm after you give me the code explain to me how this works ive searched, downloaded, and looked at all you js files and i dont understand how it works i see a "application/mcz-player object" but tell me do you know if its a activeXcontrol or what?
zach

zachzach
09-13-2003, 11:21 AM
ps:
sweeeeet
thats awsome
even yourstylings cool ive only seen 1 or 2 more pages this good

pcolafl
09-13-2003, 12:08 PM
~cleared~

zachzach
09-14-2003, 10:21 AM
i did yes i have a couple more questions though:
1.)do you know what this "media player" is,flash,activeX,or what?
2.)whered you get it and on what tewrms, free, for money, or what?

and if you know how the acual play plugin works,tell me

pcolafl
09-14-2003, 01:49 PM
I design my own media players.

zachzach
09-14-2003, 03:34 PM
ohh then i really dont know

pcolafl
10-02-2003, 02:17 PM
Still no solutions for this question?

Musicbox
11-17-2004, 05:36 AM
You can purchase Musicbox which lets your organise your audio collection in mysql and play songs in popup embedded player,all audio formats supported.

For more information visit http://www.princeofkings.com