- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我已经查看了这里提出的所有其他问题,但没有什么能真正解决我的问题。
目前视频将在 Chrome、Safari、FF 和 IE9 中加载和播放,但不能在 IE8 中加载和播放,IE8 是我需要支持的最后一个浏览器。可以查看页面here .
我一直在尝试使用“调试”选项,但也没有从中获得任何帮助。这是调试器告诉我的内容:
Initializing...
stage: 0x560
file: path/to/video.mp4
autoplay:true
preload:true
isvideo:true
smoothing:false
timerrate:250
displayState:true
ExternalInterface.available:true
ExternalInterface.objectID: me_flash_0
Adding callbacks...
Success...
METADATA RECEIVED:900x560
positioning video
seek:0
play
这是我的代码:
<video id="player1" width="900" height="560" loop="true" autoplay="true" preload="none" >
<source type="video/mp4" src="<?php echo get_template_directory_uri(); ?>/images/curtainLoop.mp4" />
<source type="video/webm" src="<?php echo get_template_directory_uri(); ?>/images/curtainLoop.webm" />
<object width="900" height="560" type="application/x-shockwave-flash" data="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf">
<param name="movie" value="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf" />
<param name="flashvars" value="autoplay=true&controls=true&file=<?php echo get_template_directory_uri(); ?>/images/echo-hereweare.mp4" />
</object></video>
<span id="player1-mode"></span>
<script>
jQuery(document).ready(function($) {
var player = new MediaElementPlayer('#player1', {
enablePluginDebug: true,
enableAutosize: true,
success: function(media, node, player) {
$('#' + node.id + '-mode').html('mode: ' + player.pluginType);
}
});
});
</script>
在 MediaElement 网站之后,我添加了 span 以输出模式,它返回为“undefined”而不是“native”或“flash”。不确定这是否是问题所在,但此时我只是不知道去哪里找。
非常感谢任何帮助。
最佳答案
我以前遇到过这个问题,我花了一段时间才找出是什么原因造成的。我已经对此进行了测试,它似乎也适用于您的情况:
在 MediaElement 创建的 .me-plugin div 上,CSS 中有一个 position: absolute;
引用。当我将它设置为 position:static;
在 IE8 中一切正常。
我通常会这样做:
.ie8 .me-plugin { position: static; }
关于javascript - mediaelement.js 视频无法在 IE8 中播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12099535/
我将 mediaelement.js 用于可用空间有限的音频播放器。我需要为控件包含自定义样式,并完成大部分 CSS。我遇到麻烦的地方是 mediaelement.js 脚本将 CSS 宽度应用于某些
我在尝试将 2 个音频播放器添加到一个页面时遇到问题 http://www.brad-holmes.co.uk/sites/jameswilliams/index.html 第一个加载正常但第二个根本
我希望在视频播放完毕后显示海报和播放图标。 有没有人试图实现这一目标? 最佳答案 是的,我自己尝试了一个项目,客户希望视频完成后海报图像回来。这是我的代码: jQuery("video").m
我想在播放 MediaElement 视频时触发全屏。 $('video').on("play", function () { //fullscreen mode }); 有任何想法吗?谢谢
我有一个绝对定位的 div,我希望 MediaElement.js 用视频填充它。当用户调整窗口大小时,div 的大小会发生变化,我希望视频也随之改变大小。 我试过 this guy's method
这是github位置: https://github.com/johndyer/mediaelement 和他们的网站: http://mediaelementjs.com/ 我想部署它,但我不知道许
我试图让音频播放器显示运行 mediaelement.js WP 插件的多个轨道。我试图在短代码中使用逗号分隔的列表,但这是行不通的。我需要在代码中的某处更改某些内容吗? 最佳答案 我认为目前不可能。
我试图在 mediaelement.js 中搜索音频播放列表的示例。但我没有发现,mediaelement.js 支持音频播放列表吗?如果是这样,请支持我提供示例代码或链接。非常感谢。 最佳答案 我设
如何在 mediaelement.js 中播放 .FLV 视频? 这是一个内部应用程序,我只需要使用 Google Chrome 和 mediaelement.js 播放 MP4 和 FLV 视频 最
根据 mediaelement.js website 上的说明应该很容易获得玩家状态。但我不知道该怎么做。 我正在创建这样的播放器并尝试读取属性(播放器本身工作没有问题)。 var player =
可能吗? 我知道这是完全不同的事情,但是使用 jw 媒体播放器,您可以选择拉伸(stretch)视频以填充 div。难道只是 html5 对这些事情不屑一顾吗? 谢谢 最佳答案 尝试设置以下内容
是否可以从 mediaelement.js 中删除或隐藏大播放按钮?的视频播放器代码? 最佳答案 您可以更新网站的 CSS 以包含.mejs-overlay-button {display:none;
我有一个使用 MediaElement 插件的页面。在 chrome 上一切正常,但是在 IE8 中,音频元素上的 player.play() 方法似乎存在问题。 以 2.3.0 版下载中的演示“me
我对 WPF 中的多个 MediaElement 有疑问。我只想一次又一次地同时播放一个 MediaElement,直到 audioindex 发生变化。声源只是一个简短的词,所以我会重复/循环它。但
每次播放器进入全屏(或从全屏退出)时我都需要检查,换句话说,我需要在触发全屏方法时监听自定义事件,以便我可以在下面做其他事情。 最佳答案 在初始化 MediaElement 之前,您需要添加以下代码:
我正在使用 WPF MediaElement 播放视频。当 MediaElement 暂停时,我将位置设置为视频中的另一个点。我希望 MediaElement 中的视频图像刷新以反射(reflect)
我正在尝试将多个视频放在一个页面上,但是当我单击一个播放时,它们都播放了?有没有其他人经历过这种情况? 这是我使用的代码片段 $("video,audio").mediaelementplayer({
由 Kroc @ Video for Everyone 推荐。我希望能够在第一个视频结束后自动播放第二个视频,然后在第二个视频结束后显示静态图像。一段时间后,循环回到第一个视频。 谢谢 最佳答案 $(
我希望在网站页面加载时自动播放视频。 我在我的页面上引用了 jquery.js、mediaelementplayer.js 和 mediaelementplayar.min.css 并添加了视频标签。
我有这样的代码(例如): $('audio').mediaelementplayer(); /media/file-1.mp3 /media/file-2.mp3
我是一名优秀的程序员,十分优秀!