Closed Bug 1120222 Opened 9 years ago Closed 3 years ago

give names to AudioOutputStreams of pulseaudio

Categories

(Core :: Audio/Video: cubeb, enhancement)

31 Branch
x86_64
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: trea, Assigned: mymindstorm)

References

(Regression)

Details

(Whiteboard: tpi:+)

Attachments

(5 files, 5 obsolete files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0
Build ID: 20141102014832

Steps to reproduce:

Visited Playback Tab of pavucontrol on linux running firefox with more then one page acceccing audio outputing features.


Actual results:

I found out that there are more then one stream used by firefox. but they have all the same name. It is possible to adjuce the playback volume for each but it would be easier if ther wouldnt be named all the same.


Expected results:

insted of Audiostream there should be written the name of the site/domain/script or the name of the tab which is playing audio
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Severity: normal → enhancement
Priority: -- → P3
Whiteboard: tpi:+
Attached image audio mixer details

Hello, I want to vote for this feature, I'm using a mixer which allows me to drag apps to different outputs, and when Firefox has more than one tab using audio it becomes a trial and error game.
I think the tab title, can be a good candidate for the name.

Component: Widget: Gtk → Audio/Video: cubeb

Removing priority for re-triage within the cubeb component, which is where we integrate with pulseaudio.

Priority: P3 → --

I have a WIP patch for fixing this with HTMLMediaElement, Web Audio is going to be in a separate patch. It gets the title of the tab and sets the stream name, but it falls behind sometimes (e.g. when switching YouTube videos). This is my first time working with C++, so I'm a bit stumped on how to make this work. If anyone could offer guidance on how to fix this, that would be greatly appreciated.

Type: enhancement → defect

Thanks for the patch, a good start indeed!

What's probably missing is to update all this when the page title changes while it's playing a stream. It's well possible that YouTube keeps the same HTMLMediaElement for playing different video, it's a single page app these days.

We don't have an API to update the title when a stream is running, which is something we'd have to add, but it's doesn't look to hard to add something to cubeb for this.

Assignee: nobody → mymindstorm

Depends on D93458

Depends on D93459

Depends on D93460

This is happening in bug 1670917, that is updating all cubeb components (including importing the new OSS backend, that isn't done here). I'll review the gecko patch only https://phabricator.services.mozilla.com/D93462.

Attachment #9181470 - Attachment is obsolete: true
Attachment #9181469 - Attachment is obsolete: true
Attachment #9181468 - Attachment is obsolete: true
Attachment #9181467 - Attachment is obsolete: true
Status: UNCONFIRMED → NEW
Type: defect → enhancement
Ever confirmed: true
Attachment #9195012 - Attachment is obsolete: true

Depends on D93462

Pushed by padenot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cd7cfba5859e
Set AudioSink name to title of MediaElement's parent r=padenot
https://hg.mozilla.org/integration/autoland/rev/344c53013a7b
Part 2 - Add tests r=padenot
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Regressed by: 1756260
See Also: → 1808871
Blocks: 1860954
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: