Mute/Unmute is out of sync with original video on www.cbc.ca
Categories
(Toolkit :: Picture-in-Picture, defect, P3)
Tracking
()
People
(Reporter: niklas, Assigned: imlata1111)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file, 2 obsolete files)
STR:
- navigate to https://www.cbc.ca/player/play/1994098243991
- open a PiP window
- mute the video and observe that the original video is still unmuted
- 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
Updated•3 years ago
|
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.
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.
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.
Comment 7•3 years ago
|
||
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?
Comment 9•3 years ago
|
||
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
Assignee | ||
Comment 10•3 years ago
|
||
Thankyou so much for helping me out here!
Assignee | ||
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
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.
Assignee | ||
Comment 13•3 years ago
|
||
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 runhg 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.
Comment 14•3 years ago
|
||
(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.
Assignee | ||
Comment 15•3 years ago
|
||
I have made the changes you suggested. Please review. https://phabricator.services.mozilla.com/D172373
Assignee | ||
Comment 16•3 years ago
|
||
Depends on D172383
Updated•3 years ago
|
Comment 17•3 years ago
|
||
Comment 18•3 years ago
|
||
Whoops, not all patches were pushed at once. Fortunately, they should work fine on their own and not break anything (hopefully).
Comment 19•3 years ago
|
||
Backed out for causing bustages on browser/extensions/pictureinpicture/video-wrappers/cbc.js
- backout: https://hg.mozilla.org/integration/autoland/rev/43006e98f28feacd2c2b7b5fa6ccbf83fbba2837
- push: https://treeherder.mozilla.org/jobs?repo=autoland&revision=b9624a6f53c60e6ef8d99e3405fefb8644d6d978
- failure log: https://treeherder.mozilla.org/logviewer?job_id=408954463&repo=autoland&lineNumber=1151
[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
Updated•3 years ago
|
Comment 20•3 years ago
|
||
Thanks for the ping. Will get this resolved asap.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 21•3 years ago
|
||
Comment 22•3 years ago
|
||
bugherder |
Updated•2 years ago
|
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.
Description
•