最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Programmatic Playback Speed Control in Bunny Stream Player - Stack Overflow

programmeradmin4浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论