phantomjs
phantomjs copied to clipboard
Disable flash audio
Hi,
I'm using your fork to capture screenshots of a live stream. Is there any way to disable the audio which plays while the request is being made? As I'm capturing them at a regular interval from my machine, and I have no use for the audio, it make sense either disable or mute it in some way (while not affecting other Flash instances e.g. Youtube on my browser).
Nathan,
I don’t believe that phantom controls the volume itself, but rather the plugins that support audio. If you have variables you can set or methods that are exposed from the flash object, you could inject script to set or call them when the page loads.
-ryan
— ryan bridges | app services | apigee | twitter @ryanbridges @apigee
On Fri, Dec 12, 2014 at 7:05 AM, Nathan Malcolm [email protected] wrote:
Hi,
I'm using your fork to capture screenshots of a live stream. Is there any way to disable the audio which plays while the request is being made? As I'm capturing them at a regular interval from my machine, and I have no use for the audio, it make sense either disable or mute it in some way (while not affecting other Flash instances e.g. Youtube on my browser).
Reply to this email directly or view it on GitHub: https://github.com/r3b/phantomjs/issues/14
Use your OS audio mixer to mute the phantomjs streams. When you mute one, any new stream will start muted. You should find the audio mixer by right clicking the volume icon and choosing Mixer or Preferences and selecting from the open apps which ones you want muted. Without knowing which OS you use it's hard to tell you how to do it exactly.
I know it's possible to do it manually, but a way to automate it directly would be nicer (for any flash object on any website).