Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy sound playing support #700

Closed
giorgiosironi opened this issue Mar 16, 2018 · 2 comments
Closed

Dummy sound playing support #700

giorgiosironi opened this issue Mar 16, 2018 · 2 comments

Comments

@giorgiosironi
Copy link

Meta -

Image(s): standalone-firefox-debug
Docker-Selenium Image Version(s): 3.11.0-antimony
Docker Version: 17.12.1-ce
OS: Ubuntu 16.04

Expected Behavior

This podcast page should be able to load the podcast when the play button is pressed.

Actual Behavior

Observing this through VNC, the play button turns into a loading spinner and stays there, probably because of some underlying failure. This is not surprising as we had to fiddle with kernel modules and packages to support this on an EC2 instance.

I'm looking for guidance on how to extend the image to support this, and I will report back with what I discover to see if it may be integrated upstream. Full portability probably depends on the underlying kernel being used, but packages or documentation could be useful.

@diemol
Copy link
Member

diemol commented Mar 16, 2018

Hi @giorgiosironi,

If you are looking to build your image with these additional packages, you can either do a new Dockerfile and taking as base one of the docker-selenium images. Another option would be to clone the repo and follow this generic instructions from the Wiki to do if that way.

About merging upstream, so far it looks like not many people are using the containers to test sound or to do something related to sound. That is why, for now, we are suggesting that people take these ones as base and extend them. We are trying to provide a very generic image that can be used for common purposes, and adding specific packages makes thing harder (one person might want a different package for the same purpose, or it could cause conflicts for users who are already extending the image, and it makes the images harder to maintain).

I'll leave this issue open for a few days in case you'd like to report more findings that can be relevant for some people.

@giorgiosironi
Copy link
Author

By extending the image in this way:

FROM selenium/standalone-firefox-debug:3.11.0-antimony
USER root
RUN apt-get update && apt-get -y install mplayer linux-sound-base
# does it make sense to install a kernel module inside a container? Probably not necessary, but was originally ported from another implementation, untested the removal
RUN apt-get -y install linux-image-extra-4.13.0-37-generic
USER seluser

the browser is able to load an audio file and show, for example, its duration. It is not able to play it but that was out of scope for me.

@lock lock bot locked and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants