Alter ActiveX video player source using Javascript
===

Here's the ActiveX control that I have embedded in my webpage:

    <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701"
    standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="256">
    <param name="fileName" value="/media/paul.avi">
    <param name="animationatStart" value="true">
    <param name="transparentatStart" value="true">
    <param name="autoStart" value="false">
    <param name="showControls" value="true">
    <param name="Volume" value="-20">
    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="/media/paul.avi" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-20>
    </object>

Is there a way for Javascript to control the value for `fileName` and the src for the `embed` tag? I used a method sort of like the one I need just for a normal html5 video, here it is:

    function vidSwap(vidURL) {
                var myVideo = document.getElementsByTagName('video')[0];
                myVideo.src = vidURL;
                myVideo.load();
                myVideo.play();
            }

I'm pretty sure the `document.getElementsByTagName('video')[0]` grabs the first `<video>` tag in the page, but if I'm trying to get something inside of the `<object>` tag would it be along the lines of `document.getElementsByTagName('param')[0]` and likewise with the `<embed>`: `document.getElementsByTagName('embed')[0]`?