Zitat von
folkfreund
Was passiert, wenn du die Breitenangabe ganz weglässt?
Vielleicht kannst du dann bei laufendem Video mit den Browsertools nachsehen, welche Anpassungen mit normalem CSS möglich sind - dann inclusive media-queries...
Hab es jetzt so gelöst:
PHP-Code:
<div style="display:none">
<div id="video_<?= $this->id;?>" class="ce_player">
<video poster="<?= $this->image;?>" preload="none" controls style="width:100%">
<source type="<?= $this->mime; ?>" src="<?= $this->playerSRC; ?>" title="<?= $this->title;?>">
</video>
</div>
</div>
Code:
<script type="text/javascript">
jQuery(document).ready(function(){
$(".video_local").colorbox({
inline: true,
innerWidth:640,
innerHeight:480,
maxWidth: '95%',
maxHeight: '95%',
onComplete:function(){
$('#cboxTitle').hide();
$(this).colorbox.resize();
}
});
});
</script>
Passt, auf das resize hätte ich auch eher kommen können
Lesezeichen