Skip to content
Snippets Groups Projects
Verified Commit d35cbd2d authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Presun konfigurace do js

parent b516de90
No related branches found
No related tags found
No related merge requests found
...@@ -7,13 +7,7 @@ ...@@ -7,13 +7,7 @@
<script src="/js/videojs-flvjs.min.js"></script> <script src="/js/videojs-flvjs.min.js"></script>
% } % }
<video <video id="player" class="video-js vjs-default-skin">
id="player"
class="video-js vjs-default-skin"
preload="auto"
poster="/img/poster.jpg"
controls
>
<source src="<%= $src %>" type="<%= $live ? 'application/x-mpegURL':'video/flv' %>" /> <source src="<%= $src %>" type="<%= $live ? 'application/x-mpegURL':'video/flv' %>" />
</video> </video>
</div> </div>
...@@ -21,7 +15,13 @@ ...@@ -21,7 +15,13 @@
<script> <script>
var player = videojs('#player',{ var player = videojs('#player',{
liveui: true,
autoplay: true, autoplay: true,
controls: true,
preload: "auto",
% if ( $live ) {
poster: "/img/poster.jpg",
% }
crossOrigin: '*', crossOrigin: '*',
html5: { html5: {
nativeControlsForTouch: true, nativeControlsForTouch: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment