Closed
Bug 903920
Opened 10 years ago
Closed 9 years ago
[Flatfish][Video] support 2 column layout for tablet
Categories
(Firefox OS Graveyard :: Gaia::Video, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gasolin, Assigned: johnhu)
References
Details
(Whiteboard: [Flatfish only][developer+])
Attachments
(7 files, 4 obsolete files)
165.65 KB,
image/png
|
Details | |
1.77 MB,
image/png
|
Details | |
1.65 MB,
application/pdf
|
Details | |
46 bytes,
text/x-github-pull-request
|
arthurcc
:
review+
gduan
:
review+
djf
:
review+
|
Details | Review |
6.60 MB,
video/mp4
|
Details | |
2.85 MB,
application/pdf
|
Details | |
383.40 KB,
application/zip
|
harly
:
ui-review+
|
Details |
Expect: Modify and Merge experiment tablet work from https://github.com/gaia-local/gaia to master
Updated•10 years ago
|
blocking-b2g: --- → koi+
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Updated•10 years ago
|
Assignee: nobody → gduan
Comment 5•10 years ago
|
||
It's a must for flatfish. koi+
blocking-b2g: --- → leo+
Whiteboard: [Flatfish only]
Updated•10 years ago
|
blocking-b2g: leo+ → koi+
Reporter | ||
Updated•10 years ago
|
Summary: [Flatfish][Video] add support for large device → [Flatfish][Video] support 2 column layout for tablet
Comment 7•10 years ago
|
||
according to 10/18 meeting result, ETA date will be 11/5 (ready for review), 11/14 landed. Targeted milestone assigned.
Target Milestone: --- → 1.3 Sprint 4 - 11/8
Assignee | ||
Comment 8•10 years ago
|
||
We had made a discussion about this bug and transfer this bug to media team, myself.
Assignee: gduan → johu
Assignee | ||
Comment 9•10 years ago
|
||
UX spec
Assignee | ||
Comment 10•10 years ago
|
||
Sotaro, According to the tablet UX spec, we may have a video element on the screen with a video loaded and have another offscreen video to parse metadata for video files. That means we may create two video element at the same time and both of them may use hardware codec to decode different files. Is this possible in most of our devices? Since we had put a limitation about this at bug 856542, our video app in gaia will play only one video at the same time. We pause the parsing procedure when playing video and resume it when video is end. I know some android devices may have an instance of hardware codec and an instance of software codec, but some devices are not. And there is a software codec implementation in Android when hardware codec is unavailable. Do we have similar mechanism? If yes, may we let a video element use hardware codec and let another one use software codec by program? Do you know the bug number about this?
Flags: needinfo?(sotaro.ikeda.g)
Comment 11•10 years ago
|
||
(In reply to John Hu [:johnhu] from comment #10) > Sotaro, > > According to the tablet UX spec, we may have a video element on the screen > with a video loaded and have another offscreen video to parse metadata for > video files. That means we may create two video element at the same time and > both of them may use hardware codec to decode different files. > > Is this possible in most of our devices? If we instantiate multiple video tags, first one owns a hardware codec, and second one wait until the first one release it. > I know some android devices may have an instance of hardware codec and an > instance of software codec, but some devices are not. And there is a > software codec implementation in Android when hardware codec is unavailable. The problem of sw codec is that android's standard H.264 sw codec support only base profile, if it is main/high profile, sw codec can not decode it. We do not have a H.264 sw codec that can decode all h.264 video to create a thumbnail. Another problem is that gecko can not recognize if video codec is used for video playback and thumbnail creation. Video playback with sw codec can not provide the enough preformance as a product quality. html video tag does not restrict the usage of the video, therefore video tag always need to use hw video codec on video tag. > Do we have similar mechanism? If yes, may we let a video element use > hardware codec and let another one use software codec by program? gecko is restricting the video codec only to hw codec. one reason for it is the video playback performance as written above. Other reason is if h.264 sw video codec is used for video playback, it consumes too much memory and cause the application crash. FYI: Bug 873959 is a bug for generate video thumbnail api. It is necessary also from thumbnail generation performance point of view.
Flags: needinfo?(sotaro.ikeda.g)
Assignee | ||
Comment 12•10 years ago
|
||
The behavior of tablet will based on the patch of bug 921421
Depends on: 921421
Assignee | ||
Comment 13•10 years ago
|
||
A WIP patch can be found here: https://github.com/huchengtw-moz/gaia/commit/5f746c215b0243eda17175d88db3b625d2cce43a Everything works, except the followings 1. open activity 2. hardware codec issue mentioned in comment 11
Assignee | ||
Comment 14•10 years ago
|
||
A WIP patch can be found here: https://github.com/huchengtw-moz/gaia/commit/2789aa82e44cfbc1a52a2373d340a93a0e2d0487 Everything works, but no art works. The hardware codec issue is fixed with the following workaround: 1. In tablet landscape mode, we lock all playing operations before the all files are parsed in the first start-up. 2. In tablet landscape mode, we release the hardware codec for metadata parsing while user switches previewed video. 3. In tablet portrait mode and mobile phone, we keep original behavior: parsing metadata while in list mode.
Assignee | ||
Comment 15•10 years ago
|
||
A WIP can be found here: https://github.com/huchengtw-moz/gaia/commit/b9c4858fc265ea4074223642c9578ff9c5c52156 Everything works, but the follow art works: 1. thumbnail list
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 821604 [details]
[Flatfish]Media&settings framework_20131018.pdf
UX will upload new spec.
Attachment #821604 -
Attachment is obsolete: true
Assignee | ||
Comment 17•10 years ago
|
||
Please upload UX and Visual Spec. Thanks.
Flags: needinfo?(hhuang)
Comment 18•10 years ago
|
||
![]() |
||
Comment 20•10 years ago
|
||
Please check the UX design. There should be no message app for sharing video. BTW, do we support select multiple video files at the same time?
Flags: needinfo?(hhsu)
Assignee | ||
Comment 21•10 years ago
|
||
We support multiple video files sharing at the same time. But that's only from video app to other app, not from other app to pick video from video app.
Assignee | ||
Comment 22•10 years ago
|
||
A workable WIP patch can be found here: https://github.com/huchengtw-moz/gaia/commit/1154172378d66289abe6b07ceb9e4190918ab2c9 Everything is on. But I don't have a device with video playable. The app is tested in nightly. I will continue to test in mobile phone and a playable flatfish device.
Comment 23•10 years ago
|
||
(In reply to Al Tsai [:atsai] from comment #20) > Please check the UX design. There should be no message app for sharing > video. BTW, do we support select multiple video files at the same time? Just checked, user can share a single video through message app, but not multiple video. Will modified this on the UX spec, thanks.
Flags: needinfo?(hhsu)
Assignee | ||
Comment 24•10 years ago
|
||
This is a huge patch, sorry about that. The followings are change list: 1. use layout mode to switch: list, selection, and fullscreen player 2. introduces tablet UI, css and images 3. use media query to load different css files 4. move and use getTruncated() function which is in the settings app before to get the truncated text of title. 5. use flex to layout text in details. 6. add lots tablet only codes I had tested this patch on Firefox Nightly, Inari and Flatfish devices. A recorded video will be uploaded for showing this patch running in flatfish.
Attachment #826669 -
Flags: review?(dflanagan)
Assignee | ||
Comment 25•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #826673 -
Attachment is obsolete: true
Assignee | ||
Comment 26•10 years ago
|
||
Sorry for low resolution. That's because of the limitation of attachment. I will make more when the device is free.
Comment 27•10 years ago
|
||
Attachment #825222 -
Attachment is obsolete: true
Assignee | ||
Comment 28•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. Arthur, I had moved the getTruncated from settings app to shared. Please review this part. Thanks in advance.
Attachment #826669 -
Flags: review?(arthur.chen)
Comment 29•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. We used 'getTruncated' function in onpair.html. Please include the newly created js in the html. And we don't use it in main settings app, so you don't need to include it in settings.js. Thanks!
Attachment #826669 -
Flags: review?(arthur.chen)
Assignee | ||
Comment 30•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. Arthur, Thanks for pointing that. I had changed the patch. Please review it. Thanks...
Attachment #826669 -
Flags: review?(arthur.chen)
Comment 31•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. r=me for the settings part, thanks!
Attachment #826669 -
Flags: review?(arthur.chen) → review+
![]() |
||
Comment 32•10 years ago
|
||
(In reply to hhsu from comment #23) > (In reply to Al Tsai [:atsai] from comment #20) > > Please check the UX design. There should be no message app for sharing > > video. BTW, do we support select multiple video files at the same time? > > Just checked, user can share a single video through message app, but not > multiple video. Will modified this on the UX spec, thanks. As I said, there is no message app. Please remove the message app.
Comment 33•10 years ago
|
||
Got it, will remove message app on UX spec. (In reply to Al Tsai [:atsai] from comment #32) > (In reply to hhsu from comment #23) > > (In reply to Al Tsai [:atsai] from comment #20) > > > Please check the UX design. There should be no message app for sharing > > > video. BTW, do we support select multiple video files at the same time? > > > > Just checked, user can share a single video through message app, but not > > multiple video. Will modified this on the UX spec, thanks. > > As I said, there is no message app. Please remove the message app.
Comment 34•10 years ago
|
||
Sorry that I haven't had time to review this yet. Since George is workign on a similar patch for Gallery, perhaps he could review this one.
Assignee | ||
Comment 35•10 years ago
|
||
Video shares the same unofficial image with Gallery. Make this depends on gallery app to have the unofficial image.
Depends on: 928254
Assignee | ||
Comment 36•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. As per comment 34, change reviewer to George Duan
Attachment #826669 -
Flags: review?(dflanagan) → review?(gduan)
Comment 37•10 years ago
|
||
implementation resource and ETA date are both agree with RD team. this has to be done before 1.3FC
Whiteboard: [Flatfish only] → [Flatfish only][developer+]
Comment 38•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. As discussed offline, we all agree that 1. move the video_tiny.css to video.css 2. rem -> % please kindly update, thanks.
Comment 39•10 years ago
|
||
Attachment #827847 -
Attachment is obsolete: true
Updated•10 years ago
|
blocking-b2g: 1.3+ → ---
Comment 40•10 years ago
|
||
Below are some UX & graphic issues from a quick review of current Video app on Flatfish. UX 1. Landscape full screen view will not auto hide header and video controls 2. A whit dotted line appears in the border of every popup dialog 3. Share action menu appeared in full screen, not as a popup dialog 4. Tap share, delete, and info button in full screen mode should not auto hide header and video controls 5. Share video and press cancel, share button will be in pressed state 6. Info page background is not transparent 7. No on-press state in full screen mode (Back, Delete, Share, Info) 8. No on-press state in video picker preview(Back & Select) Visual 1. Two lines on title bar in landscape mode 2. Spacing between video title and time Thanks
Assignee | ||
Comment 41•10 years ago
|
||
The item 2, 3 are in building-blocks. The item 6 is the image according to visual spec. According to offline discussion, we will use the same background style of dialog in building-blocks. The item 4, 6, 7, 8 are current behavior in mobile phone. According to offline discussion, we will use change to the behavior like above in this patch. Thanks for this feedback.
Comment 42•10 years ago
|
||
According to offline discussion, in full screen video mode, tapping the title bar and video controls will not autohide header and video controls. Thanks
Comment 43•10 years ago
|
||
Just roughly play this patch on tablet, besides comment 42, I also have some small questions which will not seriously impact the function. 1. Can we hide the toolbar and controlle in pickView? 2. When first enter video app in landscape => click play, and wait for the end => swipe to home => go to video app, and the preview is blank.
Assignee | ||
Comment 44•10 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. Hi George, Thanks for your reviewing. The patch had made the following changes: 1. Merge the changes of video_tiny.css into video.css 2. The change of all rem -> % makes no sense. So, I changes some elements which may need to resize according to screen size, but not all. 3. UX reviewing result 1, 4~8, and Visual reviewing result: 1 and 2 4. Change the behavior of show/hide video controls, both video.js and view.js are synced. Please review it again. Thanks.
Assignee | ||
Comment 45•10 years ago
|
||
(In reply to George Duan [:gduan] from comment #43) > 1. Can we hide the toolbar and controlle in pickView? No > 2. When first enter video app in landscape => click play, and wait for the > end => swipe to home => go to video app, and the preview is blank. I will going to check this. Please use the latest version instead of the old version. I had checked this kind of issues this morning..
Assignee | ||
Comment 46•10 years ago
|
||
(In reply to George Duan [:gduan] from comment #43) > 2. When first enter video app in landscape => click play, and wait for the > end => swipe to home => go to video app, and the preview is blank. This bug is fixed at bug 938967
Assignee | ||
Comment 47•10 years ago
|
||
(In reply to John Hu [:johnhu] from comment #46) > (In reply to George Duan [:gduan] from comment #43) > > 2. When first enter video app in landscape => click play, and wait for the > > end => swipe to home => go to video app, and the preview is blank. > This bug is fixed at bug 938967 Sorry, I mean that it will be fixed while bug 938967 landed.
Comment 48•9 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. Hi John, I just check your patch and put some comments on it, please kindly check. Thanks.
Attachment #826669 -
Flags: review?(gduan)
Assignee | ||
Comment 49•9 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. George, I had change the patch to take care all of your comments. Please review it.
Attachment #826669 -
Flags: review?(gduan)
Assignee | ||
Comment 50•9 years ago
|
||
Harly, Please do the ux review on this patch.
Attachment #8343567 -
Flags: ui-review?(hhsu)
Updated•9 years ago
|
Target Milestone: 1.3 Sprint 4 - 11/8 → ---
Comment 51•9 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. Thanks for your fixing, it works fine on tablet and mobile. Please remember to do rebase. Thanks. Hi David, could you give this patch an overall review?
Attachment #826669 -
Flags: review?(gduan)
Attachment #826669 -
Flags: review?(dflanagan)
Attachment #826669 -
Flags: review+
Comment 52•9 years ago
|
||
Comment on attachment 8343567 [details] bug903920.zip All the bugs previously noted are fixed, except the ones related to Building Blocks. Thanks for the great work.
Attachment #8343567 -
Flags: ui-review?(hhsu) → ui-review+
Assignee | ||
Comment 53•9 years ago
|
||
The tablet_player_background.png is removed, no longer to depend on it.
No longer depends on: 928254
Comment 54•9 years ago
|
||
Comment on attachment 826669 [details] [review] the patch for adding the support of tablet. I didn't have time to do a careful review of this, and I know you really need to land it. See my few nits on github. Please coordinate with the visual design team that is working on the visual refresh for the media apps because landing this will probably create a lot of work for them. I'd prefer if you could land without the new string utility in shared/js/ because I'd like a chance to review that more carefully before it goes into shared.
Attachment #826669 -
Flags: review?(dflanagan) → review+
Assignee | ||
Comment 55•9 years ago
|
||
Thanks David. I will move the getTruncated code to VideoUtils. And I had discussed with a visual in Taipei about the visual refresh. She felt the visual refresh is targeted to phone and she will track the changes that affect the tablet visual.
Assignee | ||
Comment 56•9 years ago
|
||
merged to master: https://github.com/mozilla-b2g/gaia/commit/847ff13e62855c4f7ea2a4d4a4605a2f5655d156 Travis CI, all green: https://travis-ci.org/mozilla-b2g/gaia/builds/15385145
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•