Closed
Bug 877010
Opened 12 years ago
Closed 12 years ago
[A/V] Video application hardly controls scrolling up/down if there are many video files
Categories
(Firefox OS Graveyard :: Gaia::Video, defect, P1)
Tracking
(blocking-b2g:leo+, b2g18 fixed, b2g18-v1.0.1 unaffected)
Tracking | Status | |
---|---|---|
b2g18 | --- | fixed |
b2g18-v1.0.1 | --- | unaffected |
People
(Reporter: leo.bugzilla.gecko, Assigned: djf)
Details
(Keywords: regression, Whiteboard: MiniWW)
Attachments
(1 file)
Precondition : There are more than 40 supported video files in sdcard.
After thumbnail retrieving finished, it's hard to scroll the list up/down.
This problem occurs only in portrait mode.
If I rotate device to vertical mode, it doesn't occur.
Reporter | ||
Updated•12 years ago
|
blocking-b2g: --- → leo+
Assignee | ||
Comment 1•12 years ago
|
||
I've tested with more than 40 video files and did not have this problem. The test videos that the reporter demonstrated this bug with all had very long filenames. I think that this bug may be a regression caused by bug 859284
Reporter | ||
Updated•12 years ago
|
Whiteboard: MiniWW
Assignee | ||
Comment 2•12 years ago
|
||
I've confirmed that long filenames are causing an infinite loop of overflow events in video.js
Whiteboard: MiniWW
Assignee | ||
Comment 3•12 years ago
|
||
To reproduce this bug, patch apps/video/js/metadata.js like this:
- return filename.charAt(0).toUpperCase() + filename.slice(1);
+ return filename.charAt(0).toUpperCase() + filename.slice(1) +
+ "lots of extra characters here to make the name long";
That gives all videos titles that are too long to display in portrait mode, but can be displayed in landscape and triggers the infinite loop of title length adjustment.
Assignee | ||
Comment 4•12 years ago
|
||
Sam,
This is a follow up to your patch that used the overflow event to make video titles fit. We both missed a serious bug in that code. If the title was longer than 45 characters, we'd truncate it to 45 characters and then add the ... character, so it would be 46 characters. If it still didn't fit, the overflow handler would be called again, and since it was greater than 45 characters, we'd repeat the same thing instead of going down to 42 characters as intended.
The infinite loop manifested as very slow scrolling speeds when there were lots of videos with long names.
The fix is just to set end to max - 1. My patch also includes some simple code cleanup. And also, in my testing, I could see the lines doing their adjustment, so I changed it to delete 4 characters at a time instead of 3 characters at a time.
There is a mini workweek going on in San Diego this week, and this bug is a priority to resolve this week, so a quick review would be appreciated!
Attachment #755644 -
Flags: review?(sjochimek)
Reporter | ||
Updated•12 years ago
|
Whiteboard: MiniWW
Target Milestone: --- → 1.1 QE2 (6jun)
Updated•12 years ago
|
Attachment #755644 -
Flags: review?(sjochimek) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Landed on master: https://github.com/mozilla-b2g/gaia/commit/f8acd88cab525158563e78ec1620a46e70963d6a
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Comment 6•12 years ago
|
||
Uplifted f8acd88cab525158563e78ec1620a46e70963d6a to:
v1-train: 5fc3b4cdabae8e930c8d9da4b7b376a3de9109e3
Updated•12 years ago
|
Flags: in-moztrap?
Comment 7•11 years ago
|
||
Added Video Suite Test Case #8521 [B2G Video] Navigation control remains smooth while scrolling up/down through many video file
Flags: in-moztrap? → in-moztrap+
You need to log in
before you can comment on or make changes to this bug.
Description
•