Closed Bug 1055198 Opened 10 years ago Closed 6 years ago

[Video] Hide soft home key during full screen video playback

Categories

(Firefox OS Graveyard :: Gaia::Video, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED WONTFIX
2.1 S9 (21Nov)
blocking-b2g -

People

(Reporter: mikehenrty, Assigned: rnicoletti)

References

Details

(Whiteboard: [spark])

Attachments

(9 files, 2 obsolete files)

Once bug 1037255 and bug 1054126 land, apps with `fullscreen_layout` in their manifest can show and hide the software home button using the fullscreen API. At that point, we need to update our Video app to leverage this functionality to follow the spec:

https://bug1036339.bugzilla.mozilla.org/attachment.cgi?id=8473080, page 7
Hema, can someone from the media team pick this up?
Flags: needinfo?(hkoka)
[Blocking Requested - why for this release]: I assume this is 2.1+ -- can someone flag it as such so the gueries pick it up?
blocking-b2g: --- → 2.1?
blocking-b2g: 2.1? → ---
feature-b2g: --- → 2.1
Over to russn. (Thanks!)
Assignee: nobody → rnicoletti
Flags: needinfo?(hkoka)
Michael, my understanding of the changes to the video app for this feature are:

* add 'fullscreen_layout: true' to video app manifest
* call mozRequestFullScreen() when video is being shown (when video app is in fullscreen mode)
* call mozCancelFullScreen() when video app is exiting fullscreen

Can you confirm? Thanks.
Flags: needinfo?(mhenretty)
(In reply to Russ Nicoletti [:russn] from comment #5)
> Michael, my understanding of the changes to the video app for this feature
> are:
> 
> * add 'fullscreen_layout: true' to video app manifest
> * call mozRequestFullScreen() when video is being shown (when video app is
> in fullscreen mode)
> * call mozCancelFullScreen() when video app is exiting fullscreen
> 
> Can you confirm? Thanks.

Yes, at the least we will need to do the above things. The other things to think about are, hiding/showing the video controls to be in sync with the soft home button. And making sure the soft home button does not overlay any video controls (or controls while in the video selection list).
Flags: needinfo?(mhenretty)
My observations thus far from my POC:

When applying the 1037255 and 1054126 patches and enabling the soft home button, I found the soft home button covered the video footer. Caveat: I applied the patches manually as they failed to apply automatically -- will attach screenshot.

I also found mozRequestFullScreen did not behave as expected: the video gets split in two -- will attach screenshot.

This is the PR for my POC: https://github.com/mozilla-b2g/gaia/pull/23340.

ni? for mhenretty and gduan to comment on the behavior I'm seeing and on my patch. Thanks.
Flags: needinfo?(mhenretty)
Flags: needinfo?(gduan)
I think bug 1037255 will do hide software home-key when calling requestFullScreen in video app.
Flags: needinfo?(gduan)
(In reply to Russ Nicoletti [:russn] from comment #7)
> When applying the 1037255 and 1054126 patches and enabling the soft home
> button, I found the soft home button covered the video footer.

Yeah, this is something you will have to account for in the video app. It is what I meant in comment 6 when I said "And making sure the soft home button does not overlay any video controls (or controls while in the video selection list)." So, when in other parts of the video app, the video app needs to be aware of the soft-home button and adjust its display accordingly (ie, move the footer up, etc).
 
> I also found mozRequestFullScreen did not behave as expected: the video gets
> split in two -- will attach screenshot.

This is very strange, mozRequestFullScreen should not change the video display at all, merely hide the home button. Perhaps this is a gecko issue. ni? Etienne and Markus to see if they have any ideas.
Flags: needinfo?(mhenretty)
Flags: needinfo?(markus.nilsson)
Flags: needinfo?(etienne)
Why does the video app need to account for the software home button? Do other apps need to account for it? It seems the software home button area is essentially part of the system and not owned by the app and therefore the app shouldn't be aware of it and shouldn't be able to use that part of the screen. It seems inefficient for the app to have to be aware of the software home button and to manage that area. I thought that's what the purpose of mozRequestFullScreen/mozCancelFullScreen was, for the app to temporarily reclaim the software home button area and then to be able to give it back to the system.
(In reply to Michael Henretty [:mhenretty] from comment #11)
> (In reply to Russ Nicoletti [:russn] from comment #7)
> > When applying the 1037255 and 1054126 patches and enabling the soft home
> > button, I found the soft home button covered the video footer.
> 
> Yeah, this is something you will have to account for in the video app. It is
> what I meant in comment 6 when I said "And making sure the soft home button
> does not overlay any video controls (or controls while in the video
> selection list)." So, when in other parts of the video app, the video app
> needs to be aware of the soft-home button and adjust its display accordingly
> (ie, move the footer up, etc).
>  
> > I also found mozRequestFullScreen did not behave as expected: the video gets
> > split in two -- will attach screenshot.
> 
> This is very strange, mozRequestFullScreen should not change the video
> display at all, merely hide the home button. Perhaps this is a gecko issue.
> ni? Etienne and Markus to see if they have any ideas.

Definitely looks like a gecko bug. I think I saw this once but it depends on the device.
Flags: needinfo?(etienne)
(In reply to Russ Nicoletti [:russn] from comment #12)
> Why does the video app need to account for the software home button? Do
> other apps need to account for it? It seems the software home button area is
> essentially part of the system and not owned by the app and therefore the
> app shouldn't be aware of it and shouldn't be able to use that part of the
> screen. It seems inefficient for the app to have to be aware of the software
> home button and to manage that area. I thought that's what the purpose of
> mozRequestFullScreen/mozCancelFullScreen was, for the app to temporarily
> reclaim the software home button area and then to be able to give it back to
> the system.

This still works. But the transition is ugly and will stay ugly because resizing the frame when you reclaim/give back the software home area is very costly.

This why we're introducing "fullscreen_layout", it's way for the app to opt-in a mode where the frame stays the same size when you request/cancel fullscreen, only the software home is changing. Enabling us to do nice transitions.

It's not ideal and a better spec is in the work but this is what we have for 2.1 and maybe 2.2.
I've updated my PR to handle swb events and to adjust some video elements accordingly. However, the app is not getting the events. I've verified https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/software_button_manager.js#L167 is firing when enabling the swb but my logging in video.js (handleSWHBEnabled) is not appearing. Is there something I'm missing about these events?
Flags: needinfo?(etienne)
Vivien, I've added a media query to video.css and updated the PR. It's not having an effect (I'm testing with a device that has a hardware button -- I've tried 'setprop moz.has_home_button 1', still no effect). Can you check this query?
Flags: needinfo?(21)
One other issue related to video app knowing if swb is present: It seems the js needs to know if swb is present (or if there is no hardare button) so that it knows when to call mozRequestFullScreen. Or, is it not harmful to call mozRequestFullScreen regardless of whether swb is present? For me it is harmful (https://bugzilla.mozilla.org/attachment.cgi?id=8479551) but perhaps that is an anomaly.
(In reply to Russ Nicoletti [:russn] from comment #18)
> One other issue related to video app knowing if swb is present: It seems the
> js needs to know if swb is present (or if there is no hardare button) so
> that it knows when to call mozRequestFullScreen. Or, is it not harmful to
> call mozRequestFullScreen regardless of whether swb is present? For me it is
> harmful (https://bugzilla.mozilla.org/attachment.cgi?id=8479551) but perhaps
> that is an anomaly.

I think this is a bug, and I don't see harm in the fullscreen_layout app calling mozRequestFullscreen whether or not the softhomebutton is available. By the way though, you can determine if the property is set using javascript. I believe the settings app is doing that here:

https://github.com/mozilla-b2g/gaia/blob/8c0be26ed3668d9061e75af1c80087c681cc5e13/apps/settings/js/developer.js#L11
Flags: needinfo?(21)
The media query to detect when there is no hardware home button is working (when using 'setprop ro.moz.has_home_button 0'). With that the following elements are not covered by the software button:

* thumbnail list view
* the thumbnail select view
* video player

Open issues:

* Elements still covered by swb:
  - Options menu
  - Confirm dialog
  - Info view

* Elements are moved up (above a non-existent swb) in landscape view. Ideally, the media query would take care of this but up till now I've not been successful with that.
The assumption now is we don't need to listen for software-button events, that media queries will handle everything. Removing ni? for Etienne.
Flags: needinfo?(etienne)
I've updated the patch to handle thumbnail list view, thumbnail select view, video player view when in landscape orientation. So, AFAIK, the open issues are:

* Elements still covered by swb:
  - Options menu
  - Confirm dialog
  - Info view
Patch updated -- confirm dialog is now swb-compliant in both portrait and landscape.

TBD: Options menu and Info view
feature-b2g: 2.1 → ---
My patch is complete. I have tested on master after bug 1054126 landed. I'm still seeing the issue with mozRequestFullScreen as described in comment 7.

There is one known issue with button placement that I haven't been able to resolve. The overlay cancel button on the option menu in landscape is too long, it gets truncated by the swb area. This css line is not being applied: https://github.com/mozilla-b2g/gaia/pull/23340/files#diff-6c9949e0dfcdee5c170ee410a331d6a8R290. I found that when the 'position' property (line 270 of action_menu.css in the PR diff) is 'fixed' the 'right' property is not applied. I tried using 'width: calc(100% - 5rem)' but that is also not applied (although 'width' is applied if simply a percentage).
Depends on: 1060449
options-cancel-button issue has been resolved. Patch is ready to be reviewed.
Attachment #8481591 - Flags: review?(pdahiya)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Russ
Patch looks good but few key things that needs to be looked into
1. With the patch, for devices such as flame ,hamachi where we have physical home button soft home key button is showing for video app. Am i missing some dependency patch?

2. On testing with today's m-c build on Nexus 4, video is not displaying correct inside player in full screen view. it could be same issue as comment #7.

3.We should bring changes in shared/style/confirm.css inside video.css as it will impact other apps using shared style.


Thanks
Punam
Attachment #8481591 - Flags: review?(pdahiya) → review-
4. Missed one, in landscape mode while sharing video 'share with' options are  getting truncated.
(In reply to Punam Dahiya from comment #27)
> Comment on attachment 8481591 [details] [review]
> Github PR: https://github.com/mozilla-b2g/gaia/pull/23500
> 
> Hi Russ
> Patch looks good but few key things that needs to be looked into
> 1. With the patch, for devices such as flame ,hamachi where we have physical
> home button soft home key button is showing for video app. Am i missing some
> dependency patch?
> 
> 2. On testing with today's m-c build on Nexus 4, video is not displaying
> correct inside player in full screen view. it could be same issue as comment
> #7.
> 
> 3.We should bring changes in shared/style/confirm.css inside video.css as it
> will impact other apps using shared style.
> 
> 
> Thanks
> Punam

1. Yes, 'setprop ro.moz.has_home_button 0' (bug 1060449)
2. Very likely what I mentioned in comment #7. Bug created: 1062022
3. and 4. I am working on addressing these issues.
I've updated the PR to address issue 3. from comment 27. Regarding issue 4., that screen is from the mozActivity; it's not controlled by the app as I understand it. In fact, the two apps I tested (gallery and sms) have the same issue with mozActivity dialogs being truncated by the software home button. See attachment of gallery share activity dialog. I believe this is related to bug 1058675. I'm changing the review back to r? as there are separate bugs for issues 1., 2. and 4.
Attachment #8483203 - Flags: review?(pdahiya)
Eli, is the issue of mozActivity dialogs being overlaid by the software home button the same problem as bug 1058675? See issue 4. in comment 30.
Flags: needinfo?(eperelman)
No, it technically isn't the same issue as bug 1058675, it relates more to bug 1061962 in which action and object menus have their buttons overlaid. I'll see about modifying my patch there to account for both of these scenarios.
Flags: needinfo?(eperelman)
(In reply to Russ Nicoletti [:russn] from comment #30)
> Created attachment 8483203 [details]
> Gallery share mozActivity
> 
> I've updated the PR to address issue 3. from comment 27. Regarding issue 4.,
> that screen is from the mozActivity; it's not controlled by the app as I
> understand it. In fact, the two apps I tested (gallery and sms) have the
> same issue with mozActivity dialogs being truncated by the software home
> button. See attachment of gallery share activity dialog. I believe this is
> related to bug 1058675. I'm changing the review back to r? as there are
> separate bugs for issues 1., 2. and 4.

Thanks Russ,can you also please check landscape mode, I think comment #28 issue is more specific to landscape mode
Attachment #8483203 - Flags: review?(pdahiya)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Punam, I've updated the patch to remove the confirm.css file I added. Back to r?
Attachment #8481591 - Flags: review- → review?(pdahiya)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Russ
Patch looks good, one small update needed that I have commented in github. The PR has my r+ but it's not ready to land as this fix is dependant on 1060449, 1062022 and 1061962 and should be landed only after testing once dependencies has resolved. Thanks
Attachment #8481591 - Flags: review?(pdahiya) → review+
Depends on: 1062022
Depends on: 1064327
Target Milestone: 2.1 S3 (29aug) → 2.1 S4 (12sep)
Removing from meta as this is not a blocker for 2.1.
No longer blocks: soft-home-button
Now that bug 1062022 has been resolved and this PR has been updated, the PR is ready to be reviewed again (and removing the NI for Markus).

There is one outstanding issue that is being tracked separately (bug 1065654)
Flags: needinfo?(markus.nilsson)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Punam, can you review the PR again? I have made changes to resolve bug 1062022.
Attachment #8481591 - Flags: review+ → review?(pdahiya)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Russ

I still see the issue 1,2,& 4 in comment #27 and comment #28 with the attached patch. I tested on Nexus-4 with today's master build. Here's the link to video

http://youtu.be/yyWSVmJWE4k
To clarify Punam's remarks, the issue she is describing is that in fullscreen mode, when changing orientation of the device, the video is distorted in the same way as described in the original description of this bug. I am able to reproduce this on my flame. 

After investigating, I've found the height and width of the video player container (<div id="video-container">) are not updated when the orientation is first changed. This causes the 'transform' to be set incorrectly (when resizing the video to fit within the newly resized container). For example, when entering fullscreen, that is, after calling mozRequestFullScreen, if in portrait orientation where the width is 320px and the height 569px, when orientation is first changed to landscape, the width and height of #videoContainer are still 320px, 569px and the transform is set to 'translate(0px, 194.57px) scale(0.3747)' instead of 'translate(0px, 0.0937px) scale(0.6663)' as it should be when in landscape. 

Interestingly, the width and height of the container are updated on subsequent orientation changes, which cause the width and height to be always reversed and for the transform to be always incorrect while in fullscreen.

For reference, the relevant html elements are: https://github.com/mozilla-b2g/gaia/blob/master/apps/video/index.html#L75-L80

mozRequestFullScreen is being called on the #player-view, the video is being fit into the #video-container.
Flags: needinfo?(etienne)
I'm not sure I have anything of value to provide. 
Tested again with another app, and the appWindow frame is correctly set in this case.

It looks like this is a VideoUtils.fitContainer issue and I'm not familiar at all with this code.
Flags: needinfo?(etienne)
Michael, according to Djf (https://bugzilla.mozilla.org/show_bug.cgi?id=1037255#c5), the gallery and video apps have had issues with mozRequestFullScreen in the past when switching orientation. To summarize the issue I'm seeing (from comment 40), After having called mozRequestFullScreen, when first switching orientation, the width and height of the video container are not updated. When subsequently changing orientation, the width and height of the video container are updated but to the values corresponding to the previous orientation. The result is when changing to landscape, the width/height correspond portrait; when changing back to portrait, the width/height correspond to landscape, and so on.

I have confirmed this issue does not reproduce when not calling mozRequestFullScreen. 

The video app already enables the "fullscreen" manifest flag so it seems like overkill to request fullscreen via the API. But since we're so far down this road I don't think we can go back.

How would you like to proceed?
Flags: needinfo?(mhenretty)
(In reply to Russ Nicoletti [:russn] from comment #42)
> Michael, according to Djf
> (https://bugzilla.mozilla.org/show_bug.cgi?id=1037255#c5), the gallery and
> video apps have had issues with mozRequestFullScreen in the past when
> switching orientation. To summarize the issue I'm seeing (from comment 40),
> After having called mozRequestFullScreen, when first switching orientation,
> the width and height of the video container are not updated. When
> subsequently changing orientation, the width and height of the video
> container are updated but to the values corresponding to the previous
> orientation. The result is when changing to landscape, the width/height
> correspond portrait; when changing back to portrait, the width/height
> correspond to landscape, and so on.

It's possible there is a platform bug here since we do have special css rules when an app requests fullscreen. Does this only happen with video content, or is it any divs inside #player-view not getting the appropriate dimensions? Also, did you verify this wasn't an issue with VideoUtils.fitContainer as Etienne suggested? If it is not, can you come up with a simplified test case where this happens and file a blocking bug with me cc'ed? I'll make sure to get eyes on it.


> The video app already enables the "fullscreen" manifest flag so it seems
> like overkill to request fullscreen via the API. But since we're so far down
> this road I don't think we can go back.

Well, we decided a while back from an API perspective that calling mozRequestFullscreen in a fullscreen_layout app is the best way to hide SHB. We should fix bugs with this approach rather than reconsider it.
Flags: needinfo?(mhenretty) → needinfo?(rnicoletti)
I verified that VideoUtils.fitContainer is not causing the problem by logging the container's width and height at the very beginning of the function. The width and height were incorrect as I described in comment 42. Given the incorrect width and height, VideoUtils.fitContainer was working as expected. Also, when I commented-out the mozRequestFullScreen call, I no longer saw the incorrect width and height.

I updated the testfullscreen html written by John Hu (bug 1062022) to log clientWidth and clientHeight when the window is resized [1]. But when I test it on my device, the window is not getting the resize events when in fullscreen (after calling mozRequestFullScreen). Not sure what's happening with that. Can you take a look?

[1] http://russnicoletti.github.io/requestFullScreen.html
Flags: needinfo?(rnicoletti) → needinfo?(mhenretty)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Russ

I am cancelling review request, please set it again when the issue around using mozRequestFullScreen API is resolved. Thanks
Attachment #8481591 - Flags: review?(pdahiya)
(In reply to Russ Nicoletti [:russn] from comment #44)
> I verified that VideoUtils.fitContainer is not causing the problem by
> logging the container's width and height at the very beginning of the
> function. The width and height were incorrect as I described in comment 42.
> Given the incorrect width and height, VideoUtils.fitContainer was working as
> expected. Also, when I commented-out the mozRequestFullScreen call, I no
> longer saw the incorrect width and height.

If it's the video container (not the video element itself?) which is having problems, then perhaps this is not a video element problem at all. Please come up with a reduced test case where calling mozRequestFullscreen results in improper layout properties on an element. Looking back on this bug and bug 1062022, it's still not clear where the problem is.

> I updated the testfullscreen html written by John Hu (bug 1062022) to log
> clientWidth and clientHeight when the window is resized [1]. But when I test
> it on my device, the window is not getting the resize events when in
> fullscreen (after calling mozRequestFullScreen). Not sure what's happening
> with that. Can you take a look?

I took a look, but it was hard to tell what was going on because of the timing of alerts (they would show up late probably cause the phone was busy with playback). Please don't use alerts to debug async code like this, they only complicate timing issues. Use console.log or dump instead.
Flags: needinfo?(mhenretty)
Depends on: 1068433
Target Milestone: 2.1 S4 (12sep) → 2.1 S5 (26sep)
Micheal, using KK v180 on my flame, I'm seeing differences in the behavior of the software home button compared to the spec you referenced in the original description [1]. As you can see in the screenshot attached -- of a video in fullscreen mode (after having called mozRequestFullScreen) -- the software home button is not hidden. Can you comment on:

1) Whether using KK v180 is a valid configuration to test swb functionality
2) If the behavior I described and shown in the attachment is expected.

[1] https://bug1036339.bugzilla.mozilla.org/attachment.cgi?id=8473080
Attachment #8480150 - Attachment is obsolete: true
Flags: needinfo?(mhenretty)
More differences in the behavior of the software home button compared to the spec using KK v180 image:

1) The system is updating the layout of the elements on the screen based on the presence of the software home button. Therefore, the video app need not -- should not -- update the layout to account for the presence of the software home button.
2) The software home button always appears at the bottom of the screen regardless of the orientation of the device.
I spoke with Russ today about this on IRC. We don't believe this is related to KK vs JB, but it is possible. He is currently looking into why fullscreen_layout apps no longer hide the SHB when requesting fullscreen. Sounds like a regression in gaia rather than the base image.
Flags: needinfo?(mhenretty)
(In reply to Michael Henretty [:mhenretty] from comment #49)
> I spoke with Russ today about this on IRC. We don't believe this is related
> to KK vs JB, but it is possible. He is currently looking into why
> fullscreen_layout apps no longer hide the SHB when requesting fullscreen.
> Sounds like a regression in gaia rather than the base image.

Bug 1073611 has been created based on my investigation of this issue.
Target Milestone: 2.1 S5 (26sep) → 2.1 S6 (10oct)
Comment on attachment 8481591 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/23500

Hi Punam, this patch is ready to review. All issues are resolved except for bug 1073611 (system app regression).

In order to test this patch, you'll need to flash this build (as explained in bug 1073611):

Gaia      6cb5e0100d70313e4922c8d34bf20dcdd66ef616
Gecko     https://hg.mozilla.org/mozilla-central/rev/2db5b64f6d49
BuildID   20140912040204
Version   35.0a1

And then follow the instructions here: https://bugzilla.mozilla.org/show_bug.cgi?id=1073611#c1
Attachment #8481591 - Flags: review?(pdahiya)
Depends on: 1073611
The PR has been updated to reflect changes to the height/width of the software home button in system app. 

Also, there was an oversight in the original PR where confirms.css should be have been lazy loaded in 
showInfoView because the info-view is a "confirm" dialog and recently we no longer load confirm.css when the app starts (commit 9e486fbdc28424eeb3ebd346df725feee38e571d, Aug-22).
This seems like a scenario where it would be beneficial to be able to share the CSS variable of the SHB with resources outside of the System app. Etienne, do you think there is a possibility of making this shared in some fashion?
Flags: needinfo?(etienne)
I guess worst-case scenario, you could re-declare the CSS variable in the video.css file and use that throughout.
(In reply to :Eli Perelman from comment #54)
> I guess worst-case scenario, you could re-declare the CSS variable in the
> video.css file and use that throughout.

Agreed. For now, I will re-declare the variable. Will wait to hear from Etienne about sharing the variable.
(In reply to Russ Nicoletti [:russn] from comment #55)
> (In reply to :Eli Perelman from comment #54)
> > I guess worst-case scenario, you could re-declare the CSS variable in the
> > video.css file and use that throughout.
> 
> Agreed. For now, I will re-declare the variable. Will wait to hear from
> Etienne about sharing the variable.

Duplicating it is a bit painful, but we need to feel the pain otherwise we'll never push for the proper gecko fix that will fix it for third party too. (I think Vivien has a plan.)
Flags: needinfo?(etienne)
Creating new PR -- existing PR cannot be reopened as the branch was force-pushed.
Attachment #8481591 - Attachment is obsolete: true
Attachment #8481591 - Flags: review?(pdahiya)
Attachment #8499007 - Flags: review?(pdahiya)
Comment on attachment 8499007 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/24715

Hi Russ
Patch looks good and viewing fullscreen video experience by hiding software home button looks great. 
I have commented in github. Most of the comments are nits but main reason that's not related to your changes but reason for r- to land this patch is handle pick activity,  shows a prompt, 'app://video.gaiamobile.org is now fullscreen' that's unexpected for user. Hitting allow in prompt shows SHB button issue seen in 1073611 . Hitting disallow and click on thumbnail again shows the prompt.
Can you please check and set the review flag when its resolved. Thanks for your patience and work on this patch.
Attachment #8499007 - Flags: review?(pdahiya) → review-
Shows the "app permission" prompt displayed when user selects "Video" during pick activity.
Comment on attachment 8499007 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/24715

Hi Punam. Thanks for the review. And thanks for catching the pick activity issue. I have addressed that by not requesting full screen during pick activities. I have elaborated on that in the PR comments. I have also addressed your other review comments.

Back to you :)
Attachment #8499007 - Flags: review- → review?(pdahiya)
Comment on attachment 8499007 [details] [review]
Github PR: https://github.com/mozilla-b2g/gaia/pull/24715

Hi Russ
Thanks for the updated patch, it looks good and has Video app updated to handle fullscreen_layout property. As discussed over IRC, I see following open issues outside scope of video app

1. Select video thumbnail to play video -> Rotate to view in landscape mode -> click top right options icon -> click share -> Share with screen in landscape mode is hidden by SHB on the right.

2. Play video -> click options -> share -> bluetooth -> Confirmation dialog ( Bluetooth is disabled) footer cancel and ok button stays hidden behind SHB.

3.--software-home-button-height variable is re-declared and duplicated in video.css and confirm.css, fix is tied to Vivian and Etienne plan on how to handle it best (#comment56).
Attachment #8499007 - Flags: review?(pdahiya) → review+
Attached is a screenshot of issue 1 from comment 61
Attached image bluetooth confirmation
Attached is a screenshot of issue 2 from comment 61
Micheal, can you comment on issue 1 and 2 from comment 61? They seem like bugs. Do you agree?
Flags: needinfo?(mhenretty)
Hi Russ, yup those are definitely bugs in the system app. Please file bugs for these and CC me.

Thank you Russ and Punam for finding/debugging these issues!
Flags: needinfo?(mhenretty)
Depends on: 1078904, 1078911
Target Milestone: 2.1 S6 (10oct) → 2.1 S7 (Oct24)
Target Milestone: 2.1 S7 (24Oct) → 2.1 S8 (7Nov)
The patch here currently has no tests, please add an integration test for the SHB hiding case before landing.
Target Milestone: 2.1 S8 (7Nov) → 2.1 S9 (21Nov)
Can we resurrect this patch and bring it into Spark, this really hurts the video playback UX. 
Thanks!
Blocks: spark
Flags: needinfo?(cserran)
[Blocking Requested - why for this release]: putting the spark? tag for triaging and review with :drs
blocking-b2g: --- → spark?
Flags: needinfo?(cserran)
Whiteboard: [systemsfe] → [systemsfe][spark]
Whiteboard: [systemsfe][spark] → [spark]
Russ, how hard would it be to take this to completion?
blocking-b2g: spark? → -
Flags: needinfo?(rnicoletti)
There are two tasks remaining for this bug:

1) update the PR (the existing PR is surely stale) and manually test
2) create integration tests for the feature

Estimating 2) is not completely straightforward for me because I am not very familiar with gaia integration tests as I have struggled to get them to run on my laptop and as a result not written any.

I can get 1) done by the end of the week.
Flags: needinfo?(rnicoletti)
1) from comment 71 is proving to be more difficult than I anticipated. I recreated the patch against the latest from master but it is not functioning as expected. When the video is supposed to be fullscreen (when calling mozRequestFullScreen) it is getting distorted. I recall this was a problem previously (comment 7), needs more investigation. Also, it appears the height of the shb has changed since the original patch was created so the css needs some tweaking. Finally, the "cancel" button background of the action menu is not being moved up and is partially hidden by the shb. The button is moved up but not the background.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: