Closed Bug 1768692 Opened 3 years ago Closed 3 years ago

Mute/Unmute is out of sync with original video on www.cbc.ca

Categories

(Toolkit :: Picture-in-Picture, defect, P3)

defect

Tracking

()

VERIFIED FIXED
113 Branch
Tracking Status
firefox113 --- verified
firefox114 --- verified

People

(Reporter: niklas, Assigned: imlata1111)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file, 2 obsolete files)

STR:

  1. navigate to https://www.cbc.ca/player/play/1994098243991
  2. open a PiP window
  3. mute the video and observe that the original video is still unmuted
  4. close the PiP window and play the video

Actual results:
The video plays in a muted state but the volume indicator shows the video is unmuted

Expected results:
The mute state should change on the original video when mute is clicked from the PiP window

Severity: -- → S3
Priority: -- → P3
See Also: → 1768435

This mute method is responsible for muting the sound from the PiP window. The fallback, when no video wrapper exists for a particular site, sets video.muted to true or false. While this does mute the sound for CBC, it would be better to select the mute button on CBC instead, like we do for airmozilla for example.

To make a script that can do this, we need a brand new video wrapper for CBC. Please see how to make a video wrapper here.

Keywords: good-first-bug

I want to try solving this bug. Can you assign me?

Hi there, sure! I assigned the ticket to you. Please reach out if you have any questions. Otherwise if there's no activity on the bug after a couple days, I might unassign the ticket to give other applicants a chance to work on a patch.

Assignee: nobody → imlata1111
Status: NEW → ASSIGNED

Sure. I'm on it.

Hey! I have been trying to solve this bug. As you said that we have to create a new video wrapper for CBC. I have created and build but still the problem is not solved. Can you please help me in figuring what is the mistake I am making? I'm submitting a patch for your referance.

Hello,
I think you forgot to create your custom video wrapper ('cbc.js') and place it inside "browser/extensions/pictureinpicture/video-wrappers".
Your solution should be similar to airmozilla video wrapper.

Hey! I have created cbc.js but at time of submitting my patch I received this error "Warning: found 1 untracked file (will not be submitted):" That's Why that file didn't got submitted. For your referance: https://paste.mozilla.org/2LoZqv34
How can I rectify this error?

I see. Our mentors will be able to assist you better that I can. But I was assigned to a similar bug as this one. And if I remember correctly I had to type "hg add" to start tracking new files added to the codebase. In this case, "cbc.js". I find the documentation a little confusing. Here is a link that was useful to me. How mconley uses Mercurial for Mozilla code

Thankyou so much for helping me out here!

Hello!

(In reply to Lata from comment #8)

Hey! I have created cbc.js but at time of submitting my patch I received this error "Warning: found 1 untracked file (will not be submitted):" That's Why that file didn't got submitted. For your referance: https://paste.mozilla.org/2LoZqv34
How can I rectify this error?

This means that the cbc.js file that you created isn't being tracked by Mercurial, hence why in your first patch the file isn't there. If there's a file you want to track that's marked as an "untracked" file, you will want to run hg add for that file. I noticed that you added it in the second patch though, which is fine for now. I recommend updating a single revision for future work, since it makes it easier for reviewers to view your changes.

(In reply to Leila Kaltouma from comment #9)

I see. Our mentors will be able to assist you better that I can. But I was assigned to a similar bug as this one. And if I remember correctly I had to type "hg add" to start tracking new files added to the codebase. In this case, "cbc.js". I find the documentation a little confusing. Here is a link that was useful to me. How mconley uses Mercurial for Mozilla code

Thanks for the help here Leila! I greatly appreciate it.

Okay ! I will take care of this.(In reply to kpatenio from comment #12)

Hello!

(In reply to Lata from comment #8)

Hey! I have created cbc.js but at time of submitting my patch I received this error "Warning: found 1 untracked file (will not be submitted):" That's Why that file didn't got submitted. For your referance: https://paste.mozilla.org/2LoZqv34
How can I rectify this error?

This means that the cbc.js file that you created isn't being tracked by Mercurial, hence why in your first patch the file isn't there. If there's a file you want to track that's marked as an "untracked" file, you will want to run hg add for that file. I noticed that you added it in the second patch though, which is fine for now. I recommend updating a single revision for future work, since it makes it easier for reviewers to view your changes.

(In reply to Leila Kaltouma from comment #9)

I see. Our mentors will be able to assist you better that I can. But I was assigned to a similar bug as this one. And if I remember correctly I had to type "hg add" to start tracking new files added to the codebase. In this case, "cbc.js". I find the documentation a little confusing. Here is a link that was useful to me. How mconley uses Mercurial for Mozilla code

Thanks for the help here Leila! I greatly appreciate it.

I will take care of it.

(In reply to Lata from comment #13)

I will take care of it.

No need to worry about turning it into one patch. I accepted one of them. Currently reviewing the other.

I have made the changes you suggested. Please review. https://phabricator.services.mozilla.com/D172373

Depends on D172383

Attachment #9323052 - Attachment is obsolete: true
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b9624a6f53c6 Mute/Unmute is out of sync with original video on www.cbc.ca. r=kpatenio

Whoops, not all patches were pushed at once. Fortunately, they should work fine on their own and not break anything (hopefully).

Backed out for causing bustages on browser/extensions/pictureinpicture/video-wrappers/cbc.js

[task 2023-03-15T02:16:10.458Z] 02:16:10    ERROR -  Traceback (most recent call last):
[task 2023-03-15T02:16:10.458Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 343, in <module>
[task 2023-03-15T02:16:10.458Z] 02:16:10     INFO -      sys.exit(main(sys.argv))
[task 2023-03-15T02:16:10.458Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 156, in main
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -      return config_status(config)
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 294, in config_status
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -      return config_status(args=[], **sanitized_config)
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/config_status.py", line 152, in config_status
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -      definitions = list(definitions)
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/emitter.py", line 156, in emit
[task 2023-03-15T02:16:10.459Z] 02:16:10     INFO -      objs = list(emitfn(out))
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/emitter.py", line 1461, in emit_from_context
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -      raise SandboxValidationError(
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -  mozbuild.frontend.reader.SandboxValidationError:
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -  ==============================
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -  FATAL ERROR PROCESSING MOZBUILD FILE
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -  ==============================
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -  The error occurred while processing the following file or one of the files it includes:
[task 2023-03-15T02:16:10.460Z] 02:16:10     INFO -      /builds/worker/checkouts/gecko/browser/extensions/pictureinpicture/moz.build
[task 2023-03-15T02:16:10.461Z] 02:16:10     INFO -  The error occurred when validating the result of the execution. The reported error is:
[task 2023-03-15T02:16:10.461Z] 02:16:10     INFO -      File listed in FINAL_TARGET_FILES does not exist: /builds/worker/checkouts/gecko/browser/extensions/pictureinpicture/video-wrappers/cbc.js
[task 2023-03-15T02:16:11.117Z] 02:16:11     INFO -  *** Fix above errors and then restart with "./mach build"
[task 2023-03-15T02:16:11.177Z] 02:16:11     INFO - Return code: 1
[task 2023-03-15T02:16:11.177Z] 02:16:11  WARNING - setting return code to 2
[task 2023-03-15T02:16:11.177Z] 02:16:11    FATAL - 'mach build -v' did not run successfully. Please check log for errors.
[task 2023-03-15T02:16:11.177Z] 02:16:11    FATAL - Running post_fatal callback...
[task 2023-03-15T02:16:11.177Z] 02:16:11    FATAL - Exiting -1
Flags: needinfo?(imlata1111)
Flags: needinfo?(kpatenio)

Thanks for the ping. Will get this resolved asap.

Attachment #9322617 - Attachment description: Bug 1768692 - Mute/Unmute is out of sync with original video on www.cbc.ca. r=kpatenio! → Bug 1768692 - Added video wrapper for www.cbc.ca. r=kpatenio!
Attachment #9322594 - Attachment description: Bug 1768692 - Mute/Unmute is out of sync with original video on www.cbc.ca. r=kpatenio! → Bug 1768692 - Add CBC entry to picture_in_picture_overrides.js. r=kpatenio!
Attachment #9322617 - Attachment description: Bug 1768692 - Added video wrapper for www.cbc.ca. r=kpatenio! → Bug 1768692 - Added CBC video wrapper and synced mute buttons. r=kpatenio!
Attachment #9322594 - Attachment description: Bug 1768692 - Add CBC entry to picture_in_picture_overrides.js. r=kpatenio! → Bug 1768692 - Add CBC entry to picture_in_picture_overrides.js and sync mute/unmute. r=kpatenio!
Attachment #9322617 - Attachment is obsolete: true
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f051b610eee3 Add CBC entry to picture_in_picture_overrides.js and sync mute/unmute. r=kpatenio
Flags: needinfo?(kpatenio)
Flags: needinfo?(imlata1111)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
QA Whiteboard: [qa-113b-p2]

Reproducible on a 2023-03-14 Nightly build on Windows 10.
Verified as fixed on Firefox 113.0(build ID: 20230501151611) and Nightly 114.0a1(build ID: 20230501093846) on Windows 10, Ubuntu 22, macOS 12.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-113b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: