Ooyala player setembedcode

I am trying to implement Ooyala's player in my code and I was told that if I wanted to use buttons to switch the content of the video player then I should use the setEmbedCode function but the examples they have on their site aren't very clear. What I want to have happen is to simply have a link that when clicked will change the video to a different URL/embed code. I've tried using the 'setQueryStringParameters' document.getElementById('video-player'+pageNum).setQueryStringParameters({embedCode:videoURL}) All I get with that is a: > 'is not a function message.' var url = 'http://player.ooyala.com/player.js?embedCode='+videoURL+'&targetReplaceId=video-player'+pageNum+''; var tempScript = document.createElement('script'); tempScript.type = 'text/javascript'; tempScript.src = url; When I call this it creates the video player just fine, but I'm not sure how to change the embed code once it's created.

以上就是Ooyala player setembedcode的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准