mediaelement.js: Local Flash playback shows black video with sound unless shown full screen

[亡魂溺海] 提交于 2019-12-04 17:37:25
Ron M

After some experimenting I was able to resolve my own question.

I added an explicit call to setVideoSize with the correct dimensions and now the video displays when run from the local drive as well as from a web server.

Example:

$('video').mediaelementplayer({
    enableAutosize: true,
    success: function(player, node) {
        player.setVideoSize(480,320);
    }
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!