1

我想在所有浏览器中播放视频。我下面的代码在 IE8 或更低版本中运行良好chromefirefox但无法在 IE8 或更低版本中运行。

空白页没有错误。我还需要您的建议来改进平板电脑、所有浏览器、IPHONE 以及 MAC 上的代码。

有什么建议可以提高所有 IE 的性能。

<!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->

    <head>

        <!-- Basic Page Needs
      ================================================== -->
        <meta charset="utf-8">
        <title>Demo</title>
        <meta name="description" content="">
        <meta name="author" content="">
            <title>
                Demostration of ektuhi video
            </title>
            <script src="http://jwpsrv.com/library/irhCxKvuEeKSqiIACpYGxA.js"></script>
            <style type="text/css">
            html,body { height:100%; width:100%; padding:0; margin:0; }
            #player {
            height:100%;
            width:100%; padding:0; margin:-3px;}
            </style>
        </head>
        <body>
                <div id='my-video'></div>
                <script type='text/javascript'>
                    jwplayer('my-video').setup({
                        flashplayer: 'player.swf',
                        file: 'http://content.bitsontherun.com/videos/bkaovAYt-364766.mp4',
                image: 'http://www.longtailvideo.com/content/images/phoenix/download_video_preview.png',
                        width: '100%',
                        height: '100%',
                        stretching: 'exactfit'
                    });
                </script>
        </body>
    </html>

在此处输入图像描述

4

1 回答 1

1

删除这一行:

flashplayer: 'player.swf',

JW6 不需要。

于 2013-07-23T19:18:36.193 回答