iframe代码会自动播放YouTube视频(使用“?autoplay = 1”),但无法在MediaCore中自动播放视频。那么,我如何在MediaCore中自动播放视频?
答案 0 :(得分:0)
修改强>
您要查看的文件是/path_to_your_mediacore_installation_dir/mediacore/mediacore/lib/players.py第151行。
def player_vars(self):
"""Return a python dict of vars for this player."""
vars = {
**'autostart': self.autoplay,**
'height': self.adjusted_height,
'width': self.adjusted_width,
'controlbar': 'bottom',
'image': thumb_url(self.media, 'l', qualified=self.qualified), <----- THAT, ADDED.
'players': [
# XXX: Currently flash *must* come first for the RTMP/HTTP logic.
{'type': 'flash', 'src': self.swf_url()},
{'type': 'html5'},
{'type': 'download'},
],
}
删除** ... **