473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Programatically control wmp using javascript?

on my page, i embedded wmp this way:

<object id="mplayer" codebase=http://activex.microsoft.com/activex/
con...
type=application/x-oleobject align=absmiddle
classid=CLSID:22d6f312-b0f6-11...
<param name="FileName" value="../Madagascar.avi" >
<param name="ShowControls" value="0">
<param name="ShowStatusBar" value="0">
<param name="ShowDisplay" value="0">
<param name="DefaultFrame" value="Slide">
<param name="PlayCount" value="1">
<param name="Autostart" value="-1">
<embed src="../Madagascar.avi" width=350 height=220 autostart=1 loop=0
align="absmiddle" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/mediapl...
showcontrols=0 showdisplay=0 showstatusbar=0 </embed></object>

now i wanted to control it programaticaly using javascript..i tried 2
options and both didnt work:
-getElementById('mplayer').con... and
getElementById('mplayer').stop...

btw, my browser is firefox.

tnx

Sep 7 '07 #1
1 1918
i was able to solve this by installing new ff wmp plugin. then change
my object declaration, this time a bit compact:
<object id="mplayer" type="application/x-ms-wmp"
data="Madagascar.avi" width=350 height=220>
<param name="URL" value="Madagascar.avi" />
<param name="Autostart" value="1">
<param name="uiMode" value="none" />
</object>

this mplayer.controls.play()...etc works fine. my next question is,how
can i manipulate the playlist programatically? in case it has a
playlist...

Sep 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Todd | last post by:
Does anyone know how to set the focus to a control programatically in my code for an asp.net app? -- Thanks in advance, Todd
3
by: Anks | last post by:
Hi All, A user can control the AutoFill option by enabling / disabling the Remember Passwords option in Options - Privacy - Saved Passwords section. But is it possible to disable this option...
2
by: hzgt9b | last post by:
Using Visual studio 2003 and VB.NET, I want to programatically position a control (windows media player) on my form. For example, I want to position the control in 1 of 9 locations: topLeft,...
3
by: Pete | last post by:
Using C# and a web browser control, is there a way to programatically click a web page button?
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
0
by: mike | last post by:
Hi, When I programatically Bind a DataSource to DetailsView it does not fire "ModeChanged" event. This is first time i am trying to use ASP.NET DetailsView control. I have played with some of the...
1
by: shotokan99 | last post by:
hi, successfully i was able to embed wmp and run it using ff, and control it programatically using javascript. now my issue is, how do i know programatically if wmp is done playing a certain...
7
by: The Mad Ape | last post by:
Hi I have code to programatically create a label. It works but when I try to call a sub to create a tooltip it does not work. I do not get an error so have no idea what it wrong. Please review...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.