Earshot icon indicating copy to clipboard operation
Earshot copied to clipboard

No audio playback in Chrome

Open thomasdeppisch opened this issue 3 years ago • 10 comments

Hi,

Thanks for the great work on Earshot!

When I use OBS Music Edition and Earshot everything works as expected in Firefox. Unfortunately audio playback does not seem to work in Chrome. The video is displayed but there is no audio. The DASH Stream Info also looks fine. I tested this using the 16chambixloop.wav from the repository and the webtools page.

Are you aware of this behavior? Does this have to do with the HTTPS requirement of Chrome you describe in the readme?

Edit: I'm on Chrome 88.0.4324.192 and macOS 11.2.2

thomasdeppisch avatar Mar 02 '21 09:03 thomasdeppisch

Hey Tommi,

Is this with local deployment or on AWS?

If on AWS, can you try wrapping with a CDN and see if that works on Chrome?

roddylindsay avatar Mar 02 '21 17:03 roddylindsay

Hi Roddy, I experienced this with local deployment. (I basically only started the docker container and opened the webtools in Chrome.)

thomasdeppisch avatar Mar 02 '21 18:03 thomasdeppisch

Do you get any JS errors?

On Tue, Mar 2, 2021 at 10:17 AM Thomas Deppisch [email protected] wrote:

Hi Roddy, I experienced this with local deployment. (I basically only started the docker container and opened the webtools in Chrome.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EnvelopSound/Earshot/issues/13#issuecomment-789110090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWC3XKUOBILIZ7TTIJAUDTBUTUXANCNFSM4YOPVL7A .

-- "Buy the ticket, take the ride."

roddylindsay avatar Mar 02 '21 18:03 roddylindsay

No errors, I only get the warning that the audio context can't start without user interaction, but that's the same on Chrome and Firefox and I don't think that's the reason. (Actually I don't think it is the reason because I experience the same problem when using Earshot with HOAST: On Firefox it works nicely and on Chrome there is no sound. An for HOAST I took care of the context user interaction procedure.)

thomasdeppisch avatar Mar 02 '21 18:03 thomasdeppisch

Yeah, I think this might be an issue with webtools on Chrome specifically since Chrome is stricter about autoplay (seemingly recently as this worked on Chrome as recently as the fall)

Have you tried just using the MPD in a different web app that requires user interaction i.e. within HOAST?

On Tue, Mar 2, 2021 at 10:37 AM Thomas Deppisch [email protected] wrote:

No errors, I only get the warning that the audio context can't start without user interaction, but that's the same on Chrome and Firefox and I don't think that's the reason. (Actually I don't think it is the reason because I experience the same problem when using Earshot with HOAST: On Firefox it works nicely and on Chrome there is no sound. An for HOAST I took care of the context user interaction procedure.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EnvelopSound/Earshot/issues/13#issuecomment-789123211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWC3WJKSGXM3MNY6FZL3TTBUV4XANCNFSM4YOPVL7A .

-- "Buy the ticket, take the ride."

roddylindsay avatar Mar 02 '21 18:03 roddylindsay

Yes, like I said when I used Earshot with HOAST I did not get any sound in Chrome, that's why I think it's not a problem with the autoplay...

thomasdeppisch avatar Mar 02 '21 18:03 thomasdeppisch

What URL are you using for the MPD? HTTPS or HTTP?

On Tue, Mar 2, 2021 at 10:44 AM Thomas Deppisch [email protected] wrote:

Yes, like I said when I used Earshot with HOAST I did not get any sound in Chrome, that's why I think it's not a problem with the autoplay...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EnvelopSound/Earshot/issues/13#issuecomment-789127919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWC3Q3XI4G7OHT6AEOVALTBUWX3ANCNFSM4YOPVL7A .

-- "Buy the ticket, take the ride."

roddylindsay avatar Mar 02 '21 18:03 roddylindsay

Only used HTTP so far. Does Earshot also provide an HTTPS link? (I think you would need certificates for that, correct?)

thomasdeppisch avatar Mar 02 '21 18:03 thomasdeppisch

Chrome doesn't like MPEG-DASH over HTTP. There's a bug in the HTTPS cert code which we will look at and fix. But in the meantime you can use a CDN like Amazon Cloudfront which will put an HTTPS wrapper around an HTTP origin.

On Tue, Mar 2, 2021 at 10:49 AM Thomas Deppisch [email protected] wrote:

Only used HTTP so far. Does Earshot also provide an HTTPS link? (I think you would need certificates for that, correct?)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EnvelopSound/Earshot/issues/13#issuecomment-789131028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWC3V6EAYV4JI3UDS6FH3TBUXKTANCNFSM4YOPVL7A .

-- "Buy the ticket, take the ride."

roddylindsay avatar Mar 02 '21 19:03 roddylindsay

Yes, I wondered if that's the problem. Thanks for the quick response!

thomasdeppisch avatar Mar 02 '21 19:03 thomasdeppisch