javascript - How to create a custom seekTo player interface with vimeo embedded code? -


i have site vimeo video player embedding using vimeo's php example.

external control buttons on site need seek different "tracks" inside vimeo video, inside iframe.

use postmessage pass json string data iframe.

function skipto(time) {     var f = jquery("#vid_player iframe");     var url = f.attr('src');     var data = {method: "seekto", value: time};     f[0].contentwindow.postmessage(json.stringify(data), url); } 

see api documentation helpful, @ least has list of other methods may need utilize: http://api-portal.anypoint.mulesoft.com/vimeo/api/vimeo-javascript-api/docs/reference


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -