Problem with Chrome - embed windows media player

前端 未结 2 502
庸人自扰
庸人自扰 2021-01-21 06:45

I am having a problem. I embed WMP in my page, and I need to hide buttons from player. I make it to hide them in IE and FF, but I can\'t make it happen in Google Chrome. Here is

相关标签:
2条回答
  • 2021-01-21 06:59

    The Windows Media Player plugin does not natively work in chrome. Chrome is based on Safari, so if you can find a plugin for safari, you should be able to use this in chrome. Otherwise, you will not be able to play wmp videos in chrome.

    0 讨论(0)
  • 2021-01-21 07:21

    Totally crossbrowser:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta http-equiv="Content-Script-Type" content="text/javascript">   
        <title></title>
    
    </head>
    
    <body>
    
        <table border="0" width="600" height="500" cellpadding="0" cellspacing="0">
            <tr>
                <td width="500" height="500">
                    <!--[if !IE]> <-->
                        <object id="mediaplayer" type="application/x-ms-wmp" data="video.wmv" width="500" height="500">
                            <param name="src" value="video.wmv" valuetype="ref" type="video.wmv">
                            <param name="animationatStart" value="1">
                            <param name="transparentatStart" value="1">
                            <param name="autoStart" value="1">
                            <param name="ShowControls" value="0">
                            <param name="ShowDisplay" value="0">
                            <param name="ShowStatusBar" value="0">
                            <param name="playcount" value="10">
                            <param name="autoRewind" value="1">
                            <param name="displaysize" value="0">
                            <param name="stretchtofit" value="1">
                            <param name="enableContextMenu" value="0">
                            <param name="uiMode" value="none">
                            <strong>Error:</strong>You need <a href="http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx">Windows Media Player Plugin</a>.
                        </object>
                    <!--> <![endif]-->
                    <!--[if IE]>
                        <object id="mediaplayer" type="video/x-ms-wmv" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="500" height="500">
                            <param name="url" value="video.wmv" valuetype="ref" type="video/x-ms-wmv">
                            <param name="animationatStart" value="1">
                            <param name="transparentatStart" value="1">
                            <param name="autoStart" value="1">
                            <param name="ShowControls" value="0">
                            <param name="ShowDisplay" value="0">
                            <param name="ShowStatusBar" value="0">
                            <param name="playcount" value="99999">
                            <param name="clickToPlay" value="1">
                             <param name="autoRewind" value="1">
                            <param name="displaysize" value="0">
                            <param name="stretchtofit" value="1">
                            <param name="enableContextMenu" value="0">
                            <param name="uiMode" value="none">
                            <strong>Error:</strong>You need <a href="http://www.microsoft.com/windows/windowsmedia/download/plugin.aspx">Windows Media Player Plugin</a>.
                        </object>
                    <![endif]-->
                </td>
                <td>
                    <input type="button" value="uiMode Full" onclick="document.getElementById('mediaplayer').uiMode='full'">
                    <input type="button" value="uiMode None" onclick="document.getElementById('mediaplayer').uiMode='none'">
                </td>
            </tr>
        </table>
    
    </body>
    </html>
    
    0 讨论(0)
提交回复
热议问题