修改 source/function/function_post.php 为合适的宽高比
代码: 全选
return '[media='.$attach['ext'].',400,300]'.$attachurl.'[/media]';
禁用循环,开启预加载,这段上面是音频播放的,也可以同样操作
代码: 全选
function html5DPlayer(randomid, ext, src, width, height) {
if (JSLOADED[STATICURL + 'js/player/dplayer.min.js'] && (ext != 'flv' || JSLOADED[STATICURL + 'js/player/flv.min.js'])) {
window[randomid] = new DPlayer({
container: $(randomid + '_container'),
autoplay: false,
loop: false,
screenshot: false,
hotkey: true,
preload: 'auto',
volume: 1,
mutex: true,
listFolded: true,
video: {
url: src
}
});
} else {
setTimeout(function () {
html5DPlayer(randomid, ext, src, width, height);
}, 50);
}
}