-
Notifications
You must be signed in to change notification settings - Fork 585
/
qt-et-asyncio-avec-quamash.html
61 lines (48 loc) · 1.54 KB
/
qt-et-asyncio-avec-quamash.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html ng-app="test.player" ng-controller="TestController" ng-strict-di>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="dist/openveo-player.css">
<!--[if lt IE 9]>
<script src="dist/lib/html5shiv.min.js"></script>
<![endif]-->
<script>
// Set ovPlayerDirectory to openveo-player root path
// This is used by openveo-player to get partials
// Do not forget the trailing slash !
var ovPlayerDirectory = "dist/";
</script>
</head>
<body>
<script type="text/javascript" src="dist/lib/angular.min.js"></script>
<script type="text/javascript" src="dist/lib/angular-cookies.min.js"></script>
<script type="text/javascript" src="dist/openveo-player.js"></script>
<script type="text/javascript">
(function(angular){
'use strict';
var app = angular.module('test.player', ['ov.player']);
app.controller('TestController', TestController);
TestController.$inject = ['$scope', '$window', '$location', '$http'];
/**
* Defines the test controller.
*/
function TestController($scope, $window, $location, $http){
$scope.ready = true;
$scope.isFullViewport = true;
$http.get('content/rJLoIy61e.json').success(function(data) {
$scope.data = data;
document.title = data.title;
});
}
})(angular);
</script>
<ov-player
ov-player-type="youtube"
ov-data="data"
ng-show="ready"
ov-full-viewport="isFullViewport"
ov-data="data"
ov-language="fr"
ov-auto-play="true">
</ov-player>
</body>
</html>