Allow playback of audio files
[email protected] 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. :star2: 5 people had starred this issue at the time of migration.
[email protected] 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?
[email protected] 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.
[email protected] commented:
Imagine a streaming audio application which can be used headlessly on a home server connected to an amplifier :) I would love this feature.
[email protected] 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.
[email protected] 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.
[email protected] 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!
[email protected] 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.
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.
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.
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.
+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.
+1 for reopening.
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.
Why was this issue closed? Was it solved?
edit: Oops, forgot that the issue was closed a long time ago
@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!
+1 for audio. rendering audio offline seems like an exemplary use case.
+1 for audio
+1 for audio