JW Player没有出现在Internet Explorer用户身上 [英] JW Player not showing up for internet explorer users

查看:110
本文介绍了JW Player没有出现在Internet Explorer用户身上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我帮助维护JW播放器的网站上加入一些视频,而一些互联网资源管理器用户报告说他们根本没有看到视频框显示(即视频播放器所在的空间)应该是完全空白,不显示有关Flash版本或类似内容的错误。)

I'm trying to include some videos on a website I help to maintain using JW Player, and some internet explorer users are reporting that they don't see the video box show up at all (i.e. the space where the video player should be is completely blank, not displaying an error about flash version or anything like that).

这是我用来初始化视频播放器的代码:

Here is the code that I'm using to initialize the video player:

    <div id='player_5465'></div>
    <script type="text/javascript">
    jwplayer("player_5465").setup({
    file: "http://bmt.umn.edu/video/Bench-to-bedside Jakubtolar 480x270.mp4",
    width: "480px",
    height: "270px",
    image: "http://bmt.umn.edu/video/tolar-b2b-screenshot.png",
    });
    </script>
    </div>

当我尝试用IE7测试时(我使用的是名为IETester的软件)它给了我一个脚本错误,并询问我是否要继续在页面上运行脚本。我说是的,但我根本没有看到一个视频框。

When I try to test this with IE7 (I'm using software called IETester) it gives me a script error and asks if I want to keep running scripts on the page. I say yes, but then I don't see a video box at all.

该视频应该可以在 http://bmt.umn.edu/why-choose-我们/ collaboration-towards-new-treatments.php #Tolar-bench-to-bedside

任何想法我做错了什么?

Any ideas what I'm doing wrong?

John

推荐答案

我想我已经明白了。我根据Ethan的建议升级到6.5,但仅此一点并未解决问题。查看 http://www.longtailvideo.com上的说明/ support / jw-player / 28839 / embedding-the-player / 第2部分,高度和宽度似乎不应用引号括起来,或者在它们后面加上字母px。以下代码现在适用于我:

I think I figured it out. I upgraded to 6.5 per Ethan's suggestions, but that alone did not fix the problem. Looking at the instructions on http://www.longtailvideo.com/support/jw-player/28839/embedding-the-player/ section 2, it appears that the height and width should not be enclosed in quotes or have the letters px after them. The following code is now working for me:

<div id="player_5465"></div>
    <script type="text/javascript">
        jwplayer("player_5465").setup({
        file: "http://bmt.umn.edu/video/b2b-jakub-tolar.mp4",
        width: 480,
        height: 270,
        image: "http://bmt.umn.edu/video/tolar-b2b-screenshot.png"
     });
     </script>
</div>

这篇关于JW Player没有出现在Internet Explorer用户身上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆