Uh oh!
There was an error while loading. Please reload this page.
Fix dynamic video positioning - #41
Conversation
eocanha
commented
Apr 18, 2016
The patch looks fine, but I'd rest more assured if @magomez could have a look at it, since he's more acquainted with that part of the code. |
aazamansari
commented
Apr 18, 2016
Can we test this fix with following links: |
magomez
commented
Apr 19, 2016
@sarkanyi, could you please add the the check for HOLE_PUNCH_EXTERNAL so this works in that case as well? |
sarkanyi
commented
Apr 19, 2016
http://youtubeonrepeat.com/ doesn't plays for me (possibly vp9? - I have to look into it later), however the patch breaks the bing player because for some reason in that one the absoluteContentBox() is at 0,0. |
magomez
commented
Apr 19, 2016
Yeah, nothing is expected to play when using HOLE_PUNCH_EXTERNAL, as all the playback should be performed by an external player :) I'll check the aboluteContentBox() issue for the external case and fix it, but please, add that check as it's needed for that use case to work. Thanks in advance :) |
magomez
commented
Apr 19, 2016
No need to. The external use case uses a different media player (MediaPlayerPrivateHolePunchBase) and needs to be adapted to the latest changes, but I'll take care of it. |
sarkanyi
commented
Apr 19, 2016
Fixed bing also, added HOLE_PUNCH_EXTERNAL and squashed. |
sarkanyi
commented
Apr 19, 2016
@magomez: I don't know about your side, but for me on https://www.youtube.com/watch?v=StZcUAPRRac the setPipeline() function is never called, thus the position and size is never updated with the changes (because the first time they are called the pipeline doesn't yet exists). |
The new position isn't applied correctly when video is repositioned dynamically using USE(HOLE_PUNCH_GSTREAMER) [possibly also with USE(HOLE_PUNCH_EXTERNAL) - not tested].
I have created a simple test file to show the problem. Please see attached zip.
Using the testpage, the initial position is wrong (too much to the left). When pressing "Key Down" on the keyboard it should set the video fullscreen, but the result is too much down. Pressing the key again sets the position back to the original.
testpage.zip