I'm fetching data from the vimeo api and using the data.embed.html data for iframes. How would I go about changing the 'autopause=0' to 'autopause=1' after fetching the iframe?
example of an object from the vimeo api. I am getting all the html objects.
"data": [
{
"embed":
{
"html": "<iframe src=\"https://player.vimeo.com/video/75658473?badge=0&autopause=0&player_id=0\"
width=\"640\" height=\"360\" frameborder=\"0\" title=\"Vimeo Ugly Face Competition\"
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"
},
as you can see from the object above the 'autopause' is set to 0, I want this set to 1. I'm using nodejs to get all objects from the user (100+ videos).
How would I go about changing the 'autopause' from 0 to 1 on every single iframe that I'v fetched? Whether it is on the server side (node.js) or client (angularjs) does not matter.