I am using Bunny Stream for streaming audio content via an iframe, using the supported Player.js. I want to adjust the playback speed (e.g, 1x, 1.5x, 2x, 4x) programmatically (not through Bunny's Player.js UI controls)
Does Bunny Stream's implementation of Player.js support playback speed adjustments pragmatically? Either via Player.JS API, post message or direct DOM manipulation?
I tried using player.setPlaybackRate(newSpeed)
to adjust speed but it does not seem to have any effect (the actual playback speed doesn't change at all). Perhaps the the Bunny Stream player doesn't fully implement all PlayerJS methods. I also tried to directly access and click elements inside the iframe but it seems cross-origin restrictions is preventing me from accessing iframe content from a different domain. Finally, I tried sending a postMessage command from the parent to the iframe (e.g, iframe.contentWindow.postMessage()) but I did not receive a response from the iframe. Apparently, the Bunny Stream player doesn't implement a message listener for this custom command.
Is there any recommended workaround for controlling playback speed programmatically? Am I missing something?