JSFiddle - React, Tailwind, and code Playground

by kaldenfi

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>
<div ng-app="myApp" ng-controller="testCtrl">
   <section ng-if="url">
     <video id="player1" playsinline autoplay loop muted volume="0.0">
       <source ng-src="{{url | trusturl}}" type="video/mp4"> Your browser does not support the video tag.
     </video>
   </section>
  </div>

CSS

video {
  width: 400px;
  
}

JavaScript

var app = angular.module("myApp", []);

app.controller('testCtrl', function ($scope, $timeout) {
	$scope.url = null
  $timeout(function(){
  	$scope.url = 'https://player.vimeo.com/external/160003619.hd.mp4?s=7a513b7620109ceeb5cb737a6b6e97e51768b37c'
  }, 1000)
   
});

app.filter("trusturl", ['$sce', function ($sce) {
  return function (url) {
    return $sce.trustAsResourceUrl(url);
  };
}]);