admin: Fix video route
This commit is contained in:
parent
b92381f007
commit
4a190f51c5
8 changed files with 28 additions and 7 deletions
|
|
@ -84,6 +84,11 @@ angular.module("FICApp")
|
|||
}]);
|
||||
|
||||
angular.module("FICApp")
|
||||
.filter("escapeURL", function() {
|
||||
return function(input) {
|
||||
return encodeURIComponent(input);
|
||||
}
|
||||
})
|
||||
.filter("stripHTML", function() {
|
||||
return function(input) {
|
||||
if (!input)
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@
|
|||
</h2>
|
||||
|
||||
<div class="text-center">
|
||||
<video src="vids/{{exercice.videoURI}}" controls style="height: 80vh; margin: auto;"></video>
|
||||
<video src="vids/{{exercice.videoURI.replace('\$FILES\$/','').replace('?', '%3F')}}" controls style="height: 80vh; margin: auto;"></video>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue