Tech Off Thread

8 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

how to control Windows Media Player through JavaScript?

Back to Forum: Tech Off
  • User profile image
    anilp

    Hello,

    Does anyone have any document showing how I can control WMP through JavaScript - and in non-IE browsers like Firefox also?

    (At the MSDN website, the WMP reference documents seem to have vanished. All that is there is for Windows CE).

    http://search.msdn.microsoft.com/search/default.aspx?__VIEWSTATE=&query=Windows+Media+Player+reference+javascript&siteid=0&tab=0

    thanks much.
    -
    Anil

  • User profile image
    W3bbo

    You can't. In almost every non-IE based browser out there scripts run in a sandbox and don't offer ActiveX, COM, or IPC.

    And under IE your users would have to go through a few hundred or so security dialogs.

  • User profile image
    saporis

    anilp wrote:
    
    W3bbo wrote: You can't. In almost every non-IE based browser out there scripts run in a sandbox and don't offer ActiveX, COM, or IPC.

    And under IE your users would have to go through a few hundred or so security dialogs.


    Apparently your information is wrong...
    http://devedge-temp.mozilla.org/viewsource/2003/windows-media-in-netscape/index_en.html

    Now to figure out why the MSDN links are broken...


    Depends on the context of the post.

    I see two possible scenarios:

    1) This user wants to control an OUTSIDE WMP instance, then w3bb0 is correct.

    2) This user wants to control an INTERNAL WMP instance from the browser, as ActiveX. Then, anilp is right.

  • User profile image
    anilp

    W3bbo wrote:
    You can't. In almost every non-IE based browser out there scripts run in a sandbox and don't offer ActiveX, COM, or IPC.

    And under IE your users would have to go through a few hundred or so security dialogs.


    Apparently your information is wrong...
    http://devedge-temp.mozilla.org/viewsource/2003/windows-media-in-netscape/index_en.html

    http://forums.mozillazine.org/viewtopic.php?t=206213

    Now to figure out why the MSDN links are broken...

  • User profile image
    anilp

    Actually the goal is to be able to play an AV file in the browser - both IE and non-IE and control the player from JavaScript.
    When the user chooses an AV file to play, based upon the type of file (rm/mp3/mov/wma), I want to use the default installed media player to play it.

    As a first step, I want to play an AV file in WMP and control the player from JavaScript in both IE and non-IE.

  • User profile image
    saporis

    anilp: I've done something like this in the past, but I had to write a type of wrapper to get java to interface with mdi.

    I will hunt for my old source, I will do my best.

  • User profile image
    W3bbo

    anilp wrote:
    
    W3bbo wrote:You can't. In almost every non-IE based browser out there scripts run in a sandbox and don't offer ActiveX, COM, or IPC.

    And under IE your users would have to go through a few hundred or so security dialogs.


    Apparently your information is wrong...
    http://devedge-temp.mozilla.org/viewsource/2003/windows-media-in-netscape/index_en.html

    http://forums.mozillazine.org/viewtopic.php?t=206213

    Now to figure out why the MSDN links are broken...


    That's for an embedded WMP control instance inside the browser, not controlling an instance of the WMP application.

  • User profile image
    anilp

    W3bbo wrote:
    
    That's for an embedded WMP control instance inside the browser, not controlling an instance of the WMP application.



    Sorry, it is not clear to me. when you say "instance of the WMP application", you mean outside the browser?

    I am trying to control WMP inside the browser. I think you may be partially right - one cannot play WMP in Firefox without jumping through hoops on the client side.
    As I understand the article above, the client has to manually install the plugin.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.