phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

Disable flash audio

Open nmalcolm opened this issue 10 years ago • 3 comments
trafficstars

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

nmalcolm avatar Dec 12 '14 12:12 nmalcolm

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

r3b avatar Dec 12 '14 21:12 r3b

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.

Rui-Santos avatar Jan 20 '15 14:01 Rui-Santos

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

nmalcolm avatar Jan 21 '15 04:01 nmalcolm