frankyghost / projekktor

The Free Web Video Player
194 stars 75 forks source link

resizing is broken for me. #6

Closed michapixel closed 10 years ago

michapixel commented 10 years ago

the video seems to be ignored while resizing, in my setup. i have: CSS

html, body {
        height:100%;
        margin:0; padding:0;
        background:#000;
        overflow:hidden;
    }

JS

var p = projekktor('video', {

            ignoreAttributes:true,
            //*
            width:$(window).width(),
            height:$(window ).height(),
            //
            controls:true,
            autoplay:false,
            volume: 0.7,
            /* path to the MP4 Flash-player fallback component */
            playerFlashMP4:'http://mydomain.com/projekktor/jarisplayer.swf'
        });
        //*
        $( window ).resize(function() {
            var w = $(window ).width();
            var h = $(window ).height();
            p.setSize( { width: w, height: h } );
        });

the gui is resized correctly, but the video is not.

michapixel commented 10 years ago

i should have mentioned, resizing works before a video is played, but once started, the video itself refuses to adapt to new screensizes ...