phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

Allow playback of audio files

Open dinedal opened this issue 15 years ago • 22 comments

[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.

dinedal avatar Jan 26 '11 23:01 dinedal

[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?

ariya avatar Jan 27 '11 03:01 ariya

[email protected] commented:

Nope, sorry, please close as ignorant.

dinedal avatar Jan 27 '11 03:01 dinedal

[email protected] commented:

 

 
Metadata Updates

  • Status updated: WontFix

ariya avatar Feb 04 '11 14:02 ariya

[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.

ariya avatar Mar 27 '11 06:03 ariya

[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.

nistvan86 avatar Mar 20 '12 23:03 nistvan86

[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.

nistvan86 avatar Mar 20 '12 23:03 nistvan86

[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.

ariya avatar Mar 22 '12 13:03 ariya

[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!

indiloop avatar Jun 07 '12 12:06 indiloop

[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.

ariya avatar Feb 07 '13 17:02 ariya

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.

fisherwebdev avatar May 02 '13 20:05 fisherwebdev

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.

bradisbell avatar Dec 21 '13 05:12 bradisbell

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.

tyler-g avatar May 01 '14 01:05 tyler-g

+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.

pilavdzic avatar May 30 '14 20:05 pilavdzic

+1 for reopening.

jmatsushita avatar Jun 15 '14 09:06 jmatsushita

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.

theodoreb avatar Jul 03 '14 03:07 theodoreb

Why was this issue closed? Was it solved?

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

RangerMauve avatar Sep 05 '14 19:09 RangerMauve

@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!

JamesMGreene avatar Sep 11 '14 20:09 JamesMGreene

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

vance avatar Oct 01 '15 18:10 vance

+1 for audio

allen-zh avatar Jan 12 '16 09:01 allen-zh

+1 for audio

SebCourvoisier4D avatar Feb 19 '16 11:02 SebCourvoisier4D