Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

createScriptProcessor and related onaudioprocess event equivalent

Hi there. I looked at the API reference, but was unable to find method to give me access to the audio stream data. Looking for method/event similar to the HTML 5 AUDIO createScriptProcessor onaudioprocess event equivalent to customize the audio played.

Is this possible with the JWPlayer?

Thank you,

3 Community Answers


JW Player Support Agent  
0 rated :


We do not create an audio element when you place an “audio” stream in our player, we always create a video element. Therefore any html5 audio element related API’s are not available when using our player. You could get a handle of the video element by calling jwplayer().getContainer().getElementsByTagName(“video”)0 from within the on.(‘ready’) callback.

var videoTag = playerone.getContainer().getElementsByTagName(“video”)0;
videoTag.setAttribute(“poster”, “”);

Test page that shows how to access the video tag from on(‘ready’)


0 rated :

Thanks. It is handy to know we can have a poster while playing audio (?).

This does not answer the question if access to the actual audio stream data is possible
I suspect the audio data is not exposed in any way. Still, could you please tell explicitly?


JW Player Support Agent  
0 rated :

As mentioned, our player creates a video tag. It seems scriptProcessor uses XMLHttpRequest to load the data into the AudioContext. So they don’t seem to be related.

This question has received the maximum number of answers.