Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Allow playback of audio files #10022

Closed
dinedal opened this issue Jan 26, 2011 · 22 comments
Closed

Allow playback of audio files #10022

dinedal opened this issue Jan 26, 2011 · 22 comments

Comments

@dinedal
Copy link

dinedal commented Jan 26, 2011

paul.d.bergeron@gmail.com commented:

Phonon is a part of QT: http://doc.qt.nokia.com/4.7/phonon-module.html

Please let us access the audio interface of QT! This way, it will be possible to write stand alone games or other multimedia applications in phantomjs!

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #22.
🌟   5 people had starred this issue at the time of migration.

@ariya
Copy link
Owner

ariya commented Jan 27, 2011

ariya.hi...@gmail.com commented:

I am curious as to how useful audio/media is in a command-line application. Perhaps you have a specific use-case in mind?

@dinedal
Copy link
Author

dinedal commented Jan 27, 2011

paul.d.bergeron@gmail.com commented:

Nope, sorry, please close as ignorant.

@ariya
Copy link
Owner

ariya commented Feb 4, 2011

ariya.hi...@gmail.com commented:

 

 
Metadata Updates

  • Status updated: WontFix

@ariya ariya closed this as completed Feb 4, 2011
@ariya
Copy link
Owner

ariya commented Mar 27, 2011

gervi...@gmail.com commented:

i have use-case: what if there were a need to replay the actions performed during a canvas-based game. for example, given the popular game pacman, i send the temporal/directional keystroke events back to the server. i could then reconstruct the entire game at a later time using dataurls for eventual video encoding.

@nistvan86
Copy link

nistvan...@gmail.com commented:

Imagine a streaming audio application which can be used headlessly on a home server connected to an amplifier :) I would love this feature.

@nistvan86
Copy link

nistvan...@gmail.com commented:

Sorry for separate post. I don't know which WebKit version PhantomJS is based upon but Chrome has a very strong Web Audio API support, especially since version 18. I don't know how difficult it would be to port this feature to PhantomJS.

@ariya
Copy link
Owner

ariya commented Mar 22, 2012

ariya.hi...@gmail.com commented:

The exemplary use cases are still beyond the scope of PhantomJS. If those systems are setup properly, it should be rather easy to abstract the solution so that it does not require the use headless WebKit.

@indiloop
Copy link

indiloop commented Jun 7, 2012

mitodrum...@gmail.com commented:

I would also like to see support for the Web Audio API in phantomjs. Imagine an audio mixing web application. Now imagine using the web audio api on the server side to render a mix a user wants to publish. The audio doesn't even have to be playing, we just need support for the web audio api. Thanks!

@ariya
Copy link
Owner

ariya commented Feb 7, 2013

brandon....@gmail.com commented:

I'm writing a command-line interface for TurnTable.fm and attempting to use PhantomJS as the method of playing their audio (it's in Flash!) but without audio support this is not possible.

@fisherwebdev
Copy link

At a high level, what would need to happen in a fork to enable audio output? I'm not an experienced C++ programmer, but I'm motivated to use the Web Audio API with PhantomJS.

@bradisbell
Copy link

The lack of Web Audio support in PhantomJS prevents proper automated testing of web-based apps using the Web Audio API. In addition, I have a couple projects where it would be useful to have the Web Audio API available server-side. The functionality exposed to a browser is easier to use and offers more capability than many commercially available audio processing libraries. Exposing it via PhantomJS could potentially help a new domain of applications be built. In the mean time, I am working hacking things in place with Chrome.

@tyler-g
Copy link

tyler-g commented May 1, 2014

Is there anything like this available? I would like to be able to have my node.js app command an html file on the same server via headless browser and then play audio. The html file includes the sound.js library, but I found that when accessed via phantomjs it can send the request to play an audio file, and the callback returns but no audio plays.

@pilavdzic
Copy link
Contributor

+1 for sound.

I wanted to get audio feedback if my tests fail, or an alarm on my laptop when I run a cron job and it detects something wrong like my server being down. Being able to play sounds IS useful. Now I have to install nodejs and talk to it to get this to happen, but I almost could do everything I needed right from phantomjs. Please consider reopening this.

@jmatsushita
Copy link

+1 for reopening.

@theodoreb
Copy link

I'm working on a headless a11y testing framework and I'd need to be able to have sound related informations available from the API to know if a webpage follows WCAG guidelines. See quailjs/quail#246 (and a number of other audio related issues)

I'm pretty sure squizlabs/HTML_CodeSniffer would like to be able to use it too.

@RangerMauve
Copy link

Why was this issue closed? Was it solved?

edit: Oops, forgot that the issue was closed a long time ago

@JamesMGreene
Copy link
Collaborator

@RangerMauve: It wasn't your fault, the "Closed" state on a lot of these imported issues moved to the end of the thread after the recent GitHub Issues UI upgrades. I worked with the GitHub staff to get these cleaned up, so they should be all back to normal now. Sorry for the confusion!

rondale-sc added a commit to ember-weekend/ember-weekend that referenced this issue May 8, 2015
Doing this because in acceptance tests the Web Audio API is referenced
which breaks tests run with phantomjs

ariya/phantomjs#10022

The above issue outlines our problem, and has been labeled wontFix. So
Phantom is out for us.
@vance
Copy link

vance commented Oct 1, 2015

+1 for audio. rendering audio offline seems like an exemplary use case.

@allen-zh
Copy link

+1 for audio

1 similar comment
@SebCourvoisier4D
Copy link

+1 for audio

@HaykoKoryun
Copy link

👍
I'm planning on building a little YouTube jukebox to run on a Raspberry Pi with no GUI; it would be awesome if PhantomJS supported piping the audio from the browser.

@mordrax
Copy link

mordrax commented Mar 28, 2017

We're doing acceptance testing with ember which uses phantomjs. Our app will fail to continue until sound is configured. So it would be great to have sound supported in phantomjs. But very likely, I'd just have to hack around it. And let the app continue running even without sound.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests