Closed
Bug 1203529
Opened 9 years ago
Closed 9 years ago
Bad display when starting an audio-only call to a contact
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox41 unaffected, firefox42 verified, firefox43 verified)
Tracking | Status | |
---|---|---|
firefox41 | --- | unaffected |
firefox42 | --- | verified |
firefox43 | --- | verified |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
11.57 KB,
image/png
|
Details | |
42.10 KB,
patch
|
standard8
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
When you start an audio-only call to a contact, you end up with the display as two halves - the left half has the audio mute avatar for the contact, the right half has the local section, but there's a spinner that never goes away.
What it should be is the remote avatar is full size of the window, and the local avatar is inset.
This regressed in 42 - as a result of bug 1180179.
Flags: qe-verify+
Flags: firefox-backlog+
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
This fixes this issue, and in doing so also fixes bug 1171969.
The issue is that the views were only getting streams when video is enabled. This confuses them as to whether or not the video enabled. For some reason, this is especially worse when starting off with an audio-only call.
Given that the streams we're getting include audio, the aim of this patch is to always tell the stores/views about the stream for its lifetime, regardless of video/audio status. It then separates out the toggle status of video into a separate action.
Attachment #8659297 -
Flags: review?(dmose)
Updated•9 years ago
|
Rank: 7
Comment 3•9 years ago
|
||
Comment on attachment 8659297 [details] [diff] [review]
Bad display when starting an audio-only call to a contact.
Review of attachment 8659297 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good; r=dmose with the mentioned issues addressed.
::: browser/components/loop/content/shared/js/actions.js
@@ +232,5 @@
> + */
> + MediaStreamCreated: Action.define("mediaStreamCreated", {
> + hasVideo: Boolean,
> + isLocal: Boolean,
> + srcVideoObject: Object
Global rename this to srcStreamObject for readability?
@@ -254,5 @@
> - /**
> - * Video from the local camera has been enabled.
> - *
> - * XXX we should implement a LocalVideoDisabled action to cleanly prevent
> - * leakage; see bug 1171978 for details
Review and consider closing this bug, since this should fix the leak.
::: browser/components/loop/content/shared/js/activeRoomStore.js
@@ +664,5 @@
> + return;
> + }
> +
> + this.setStoreState({
> + remoteSrcVideoObject: null
Please consider renaming these as well.
::: browser/components/loop/content/shared/js/otSdkDriver.js
@@ +599,5 @@
> + hasVideo: sdkSubscriberObject.stream[STREAM_PROPERTIES.HAS_VIDEO],
> + isLocal: false,
> + srcVideoObject: sdkSubscriberVideo
> + }));
> +
Let's put this below the "on"s to prevent future races.
::: browser/components/loop/test/shared/otSdkDriver_test.js
@@ +475,5 @@
>
> it("should dispatch a DataChannelsAvailable action with available = false", function() {
> driver.disconnectSession();
>
> + sinon.assert.calledThrice(dispatcher.dispatch);
Let's just change this to called, so that it's not dependent on other random implemntation details., Similarly the tests below.
@@ +992,5 @@
> srcVideoObject: videoElement
> }));
> });
>
> + it("should ispatch MediaStreamCreated after subscribe is complete with audio-only indication", function() {
s/ispatch/dispatch/, and with hasVideo set to false.
Attachment #8659297 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Dan Mosedale (:dmose) - use needinfo flag for response from comment #3)
> ::: browser/components/loop/content/shared/js/actions.js
> @@ +232,5 @@
> > + */
> > + MediaStreamCreated: Action.define("mediaStreamCreated", {
> > + hasVideo: Boolean,
> > + isLocal: Boolean,
> > + srcVideoObject: Object
>
> Global rename this to srcStreamObject for readability?
I've moved this out to bug 1203850 to keep this patch smaller as it'll need uplifting.
Assignee | ||
Comment 5•9 years ago
|
||
Updated for review comments.
Attachment #8659297 -
Attachment is obsolete: true
Attachment #8659753 -
Flags: review+
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8659753 [details] [diff] [review]
Bad display when starting an audio-only call to a contact.
Approval Request Comment
[Feature/regressing bug #]: Bug 1180179 - media layout rework for Hello
[User impact if declined]: Users starting audio-only calls, or if they mute their videos at both ends will see a bad layout.
[Describe test coverage new/current, TreeHerder]: Covered by unit tests run in tree header. We also have functional tests run separately that cover some of the control flows.
[Risks and why]: Low risk. Although its a slightly larger patch that does rework how our streams are handled, it is also one of our main setup flows - its used for every conversation/direct call. Hence any problems should quickly be found.
[String/UUID change made/needed]: None
Attachment #8659753 -
Flags: approval-mozilla-aurora?
Comment 8•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Comment 9•9 years ago
|
||
Comment on attachment 8659753 [details] [diff] [review]
Bad display when starting an audio-only call to a contact.
OK, not really happy about the size of the patch... but we still have time to find/fix the potential regression.
Attachment #8659753 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•9 years ago
|
||
hi, this cause problems when uplifting to aurora.
merging browser/components/loop/ui/ui-showcase.js failed!
merging browser/components/loop/ui/ui-showcase.jsx
3 files to edit
merging browser/components/loop/ui/ui-showcase.jsx failed!
Mark could you take a look thanks!
Flags: needinfo?(standard8)
Assignee | ||
Comment 11•9 years ago
|
||
Fixed it up, tested and pushed:
https://hg.mozilla.org/releases/mozilla-aurora/rev/2d896fd0ad02
Flags: needinfo?(standard8)
Updated•9 years ago
|
QA Contact: bogdan.maris
Comment 12•9 years ago
|
||
Reproduced the initial issue using an old Nightly (2015-08-11), verified that the issue is fixed using latest DevEdition 43.0a2 and Firefox 42beta3 across platforms (Windows 7 64-bit, Mac OS X 10.10.5 and Ubuntu 14.04 32-bit).
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•