I need help trying to showcase videos using angularJS. Below is the code I have:
<span class="video-inner" ng-repeat="item in items">
<video id="video-{{item.id}}"
class="video-js vjs-default-skin"
controls
preload="auto"
width="600"
height="200"
data-setup='{
"techOrder": ["vimeo"],
"sources": [
{ "type": "video/vimeo", "src": {{item.video}} }
]
}'>
</video>
</span>
And here is the data:
$scope.items = [
{id: 1, video: "https://vimeo.com/63186969"},
{id: 2, video: "https://vimeo.com/63186969"}
];
I tried using this example: but unfortunately, it's not working. Can you point out what I missed?