On start, videos don't cover the Audience window

Bug #939410 reported by Alin Andrei
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Audience
Fix Released
Critical
Unassigned

Bug Description

When loading a new video, it doesn't cover the whole Audience window and instead it's displayed squashed in the top right corner. Here's a screenshot: http://i.imgur.com/CJPKu.png

There are 2 work-arounds: make the video fullscreen and then you can return to window mode or resize the window and the video will then fit the window as it should.

Let me know if you need more info.

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

I thought I already fixed this. Which version did you test? Or is it a very long video? (could be possible that the video was not fully loaded when the aspect ration is calculated the first, but I'm not sure if this could happen...)

Revision history for this message
Alin Andrei (nilarimogard) wrote :
Download full text (3.7 KiB)

It wasn't a very long video. I think it was rev. 45, but I'm not sure. I wanted to compile the latest code, but it fails:

[ 16%] Generating Audience/Audience.c, obj-i686-linux-gnu/Audience/Config.c, Audience/Widgets/TagView.c, Audience/Widgets/Previewer.c
/usr/bin/valac -C -b /home/andrei/Downloads/audience -d /home/andrei/Downloads/audience/obj-i686-linux-gnu --pkg=gtk+-3.0 --pkg=granite --pkg=clutter-gst-1.0 --pkg=clutter-gtk-1.0 --pkg=gdk-x11-3.0 --thread /home/andrei/Downloads/audience/Audience/Audience.vala /home/andrei/Downloads/audience/obj-i686-linux-gnu/Audience/Config.vala /home/andrei/Downloads/audience/Audience/Widgets/TagView.vala /home/andrei/Downloads/audience/Audience/Widgets/Previewer.vala
/home/andrei/Downloads/audience/Audience/Audience.vala:317.26-317.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.space:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:317.26-317.38: error: Expression must be constant
                    case Gdk.Key.space:
                         ^^^^^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:320.26-320.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.Escape:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:320.26-320.39: error: Expression must be constant
                    case Gdk.Key.Escape:
                         ^^^^^^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:326.26-326.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.o:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:326.26-326.34: error: Expression must be constant
                    case Gdk.Key.o:
                         ^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:329.26-329.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.f:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:329.26-329.34: error: Expression must be constant
                    case Gdk.Key.f:
                         ^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:330.26-330.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.F11:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:330.26-330.36: error: Expression must be constant
                    case Gdk.Key.F11:
                         ^^^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:333.26-333.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.q:
                         ^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:333.26-333.34: error: Expression must be constant
                    case Gdk.Key.q:
                         ^^^^^^^^^
/home/andrei/Downloads/audience/Audience/Audience.vala:336.26-336.32: error: The name `Key' does not exist in the context of `Gdk'
                    case Gdk.Key.Left:
                        ...

Read more...

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

Ok, this is caused by a strange API issue (it should actually work). I have set the minimum vala version to 0.15.1 now, it should work this way.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

Ok, now I was able to compile the latest bzr rev. The bug I've mentioned in this bug report still occurs. With all the videos I've tried.

Revision history for this message
Cody Garver (codygarver) wrote :

I'm affected by this bug as well. Enter then exit fullscreen (double click picture or maximize) for a workaround.

Cody Garver (codygarver)
Changed in audience:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Tom Beckmann (tombeckmann) wrote :

Ok, got myself a bigger video now :) for me it's working now, please test if it does for you. (the video wasn't fully loaded when I used its height information to calculate the aspect ratio)

Revision history for this message
Alin Andrei (nilarimogard) wrote :

It works now!

Changed in audience:
status: Confirmed → Fix Committed
Revision history for this message
Cody Garver (codygarver) wrote :

Fix confirmed :)

Cody Garver (codygarver)
Changed in audience:
milestone: none → 0.1
Revision history for this message
Keith Adair (kjzz12) wrote :

This bug still affects me, but ONLY if I'm resuming a video. Starting a new one works fine.

Revision history for this message
Pim Vullers (pimvullers) wrote :

Keith, could you please list the steps to reproduce?

Revision history for this message
Keith Adair (kjzz12) wrote :

Sure!

1. Watch a video.
2. Pause the video.
3. Close the window
4. Open audience
5. Hit "resume last video", et voila! The video only occupies the upper center area of the window, like so: http://i.imgur.com/VYzqw.png
Also, upon resuming, the video is ahead of where it should be timewise by about a minute.
It also occurs with only a few videos. Shorter .avi files seem to cause it pretty consistently, but movie length ones don't. Neither do mp4 files of any length.

Also, if I just launch from pantheon-files, the video will resume from where I left off, and in the correct size. So this only affects the "resume last video" button and can be worked around by not using it.

Revision history for this message
Pim Vullers (pimvullers) wrote :

I cannot reproduce this because I do not get the 'resume last video' option... so that might even be worth a new bug... should check the list for that.

Changed in audience:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.