问题
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>
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.
The video should be viewable at the bottom of http://bmt.umn.edu/why-choose-us/collaboration-towards-new-treatments.php#Tolar-bench-to-bedside
Any ideas what I'm doing wrong?
John
回答1:
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>
回答2:
In addition to removing the comma on the last line, I would also update your player from 6.2 to 6.5 - http://account.longtailvideo.com/
来源:https://stackoverflow.com/questions/18067944/jw-player-not-showing-up-for-internet-explorer-users