watch.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. {% extends "layout.html" %}
  2. {% block opengraph %}
  3. <meta property="og:image" content="{{ thumb480 }}" />
  4. <meta property="og:type" content="video.movie" />
  5. <meta property="og:title" content="Assista '{{title}}' agora na Libreflix" />
  6. <meta property="og:description" content="Libreflix é uma plataforma de streaming aberta e colaborativa que reúne produções audiovisuais independentes, de livre exibição e que fazem pensar." />
  7. <meta property="og:url" content="https://libreflix.org/assistir/{{permalink}}" />
  8. <meta property="og:site_name" content="Libreflix" />
  9. <!-- twitter metatags-->
  10. <meta name="twitter:card" content="summary_large_image">
  11. <meta name="twitter:title" content="Assista '{{title}}' agora na Libreflix">
  12. <meta name="twitter:description" content="Libreflix é uma plataforma de streaming aberta e colaborativa que reúne produções audiovisuais independentes, de livre exibição e que fazem pensar.">
  13. <meta name="twitter:image" content="https://libreflix.org/{{ thumb480 }}">
  14. {% endblock %}
  15. {% block body %}
  16. {% block navbar %}{% endblock %} {# just to overide parent navbar block#}
  17. <script type="text/javascript" src="https://www.youtube.com/iframe_api"></script>
  18. <link rel="stylesheet" type="text/css" href="/css/style.css">
  19. </div>
  20. {% if layout == 'filme' %}
  21. <script>
  22. var bgzao = "/img/obsabsorver.jpg";
  23. var lb = {};
  24. lb.videos = [{
  25. title: '{{ title }}',
  26. subtitle: '{{ subtitle }}',
  27. placeholder: '{{ imgbg }}',
  28. video: '{{ video }}',
  29. thumb480: '{{ thumb480 }}',
  30. thumb130: '{{ thumb130 }}',
  31. runtime: '{{ runtime }}'
  32. }];
  33. </script>
  34. <style media="screen" type="text/css">
  35. #pl-final-screen {
  36. display: none;
  37. background: no-repeat center / cover url({{ imgbg }});
  38. z-index: 1;
  39. }
  40. </style>
  41. <script>
  42. function voltar(){
  43. if(history.length === 1)
  44. {
  45. window.location = "https://libreflix.org"
  46. }
  47. else
  48. {
  49. history.back();
  50. }
  51. }
  52. </script>
  53. </head>
  54. <libreplayer>
  55. <body onload="Q()" id="go" class="libreplayer">
  56. <div id="pl-player" class="stretch loading">
  57. <div id="pl-video-wrap" class="stretch">
  58. <div id="pl-video" class="stretch"></div>
  59. <div id="pl-placeholder" class="stretch"></div>
  60. </div>
  61. <div id="pl-player-overlay" class="stretch">
  62. <img class="pl-loading" src="/img/loading.png">
  63. <div id="pl-player-title">
  64. <h1 class="titlePlayer"></h1>
  65. <h3 class="titlePlayer"></h3>
  66. </div>
  67. <button type="button" id="exit-button" class="exit-button" onClick="voltar()"><img src="/img/ico-exit.png"></button>
  68. <div id="pl-player-ctrl-wrap">
  69. <div id="pl-playback-progress-wrap">
  70. <div id="pl-playback-progress">
  71. <div id="pl-playback-loaded"></div>
  72. <div id="pl-playback-position">
  73. <div id="pl-playback-position-bullet"></div>
  74. </div>
  75. </div>
  76. <div id="pl-playback-time">
  77. 00:00
  78. </div>
  79. </div>
  80. <div id="pl-player-ctrl">
  81. <div id="pl-playback-ctrls-wrap" class="play">
  82. <button type="button" id="pl-playback-play" class="pl-button"><img src="/img/ico-play.png"></button>
  83. <button type="button" id="pl-playback-pause" class="pl-button"><img src="/img/ico-pause.png"></button>
  84. <div class="sep"></div>
  85. </div>
  86. <div id="pl-audio-ctrls-wrap" class="volume">
  87. <button type="button" id="pl-audio-volume" class="pl-button"><img src="/img/ico-volume.png"></button>
  88. <button type="button" id="pl-audio-mute" class="pl-button"><img src="/img/ico-mute.png"></button>
  89. <div class="sep"></div>
  90. <div id="pl-volume-wrap">
  91. <div>
  92. <div id="pl-volume">
  93. <div id="pl-volume-bar">
  94. <div id="pl-volume-bar-bullet"></div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div id="pl-info-wrap">
  101. <span id="pl-info-series"></span>
  102. <span id="pl-info-episode"></span>
  103. <div class="sep"></div>
  104. </div>
  105. <div id="pl-navigation-ctrls-wrap">
  106. <!--<button type="button" id="pl-next" class="pl-button"><img src="/img/ico-next.png"></button>-->
  107. <div id="pl-next-popup">
  108. <div class="inner">
  109. <h4>Próximo episódio</h4>
  110. <div id="pl-next-popup-info">
  111. <div>
  112. <div id="pl-next-popup-image">
  113. <img src="/img/ico-play-next.png">
  114. </div>
  115. </div>
  116. <div>
  117. <h2 id="pl-next-popup-subtitle"></h2>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div id="pl-fs-wrap">
  124. <button type="button" id="pl-fs" class="pl-button"><img src="/img/ico-fullscreen.png"></button>
  125. <button type="button" id="pl-fs-ex" class="pl-button"><img src="/img/ico-fullscreen-exit.png"></button>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div id="pl-up-next" class="stretch">
  131. <div>
  132. <div id="pl-up-next-bg" class="stretch"></div>
  133. <div id="pl-up-next-info">
  134. <div id="pl-up-next-title">
  135. <h1></h1>
  136. <h3></h3>
  137. <p>01/04/2017 L <span id="pl-runtime"></span>min</p>
  138. </div>
  139. <div id="pl-up-next-timer-wrap">
  140. <span>O próximo episódio começa em </span>
  141. <span id="pl-up-next-timer">15 segundos</span>
  142. </div>
  143. <div id="pl-up-next-go">
  144. <div id="pl-up-next-image" class="stretch">
  145. <img src="/img/ico-play-next.png">
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <div id="pl-watch-again" class="stretch"></div>
  151. </div>
  152. <div id="pl-final-screen" class="stretch">
  153. <div id="pl-final-watch-again" class="stretch">
  154. <div class="pl-classifique">
  155. <span>Classifique:</span>
  156. <img src="/img/stars.png">
  157. </div>
  158. </div>
  159. <div id="pl-segunda-temporada">
  160. <a href="/" style="border-bottom: 0px solid;"><img src="/img/ico-exit.png" title="Voltar"></a>
  161. </div>
  162. </div>
  163. </div>
  164. <div id="pl-mobile">
  165. <img class="pl-loading" src="/img/loading.png" style="opacity: 1">
  166. </div>
  167. </body>
  168. <p align="center">
  169. <img src="/img/cargando.svg">
  170. </p>
  171. <script type="text/javascript" src="/js/yt.js"></script>
  172. {% if layout == 'filme' %}
  173. <script type="text/javascript" src="/js/script.js"></script>
  174. {% endif %} {% if layout == 'serie' %}
  175. <script type="text/javascript" src="/js/script2.js"></script>
  176. {% endif %}
  177. </html>
  178. </libreplayer>
  179. {% endif %}
  180. <!-- SERIES -->
  181. {% if layout == 'serie' %}
  182. <script>
  183. var lb = {};
  184. lb.videos = [{% for ep in eps %}
  185. {
  186. title: '{{ title }}',
  187. subtitle: '{{ ep.subtitle }}',
  188. placeholder: '{{ imgbg }}',
  189. video: '{{ ep.video }}',
  190. thumb480: '{{ ep.thumb480 }}',
  191. thumb130: '{{ ep.thumb130 }}',
  192. runtime: '0'
  193. }
  194. {% if ep.last == true %}
  195. {% else %},
  196. {% endif %}
  197. {% endfor %}
  198. ];
  199. lb.player.prototype.hookListeners = function() {
  200. this.elControlNext.addEventListener('click', this.onNextClick.bind(this));
  201. this.elControlsNav.addEventListener('mouseenter', this.onNextHover.bind(this));
  202. this.elControlsNav.addEventListener('mouseleave', this.onNextLeave.bind(this));
  203. }
  204. </script>
  205. <style media="screen" type="text/css">
  206. #pl-final-screen {
  207. display: none;
  208. background: no-repeat center / cover url({{ imgbg }});
  209. z-index: 1;
  210. }
  211. </style>
  212. </head>
  213. <body onload="Q()" id="go">
  214. <div id="pl-player" class="stretch loading">
  215. <div id="pl-video-wrap" class="stretch">
  216. <div id="pl-video" class="stretch"></div>
  217. <div id="pl-placeholder" class="stretch"></div>
  218. </div>
  219. <div id="pl-player-overlay" class="stretch">
  220. <img class="pl-loading" src="/img/loading.png">
  221. <div id="pl-player-title">
  222. <h1 class="titlePlayer"></h1>
  223. <h3 class="titlePlayer"></h3>
  224. </div>
  225. <button type="button" id="exit-button" class="exit-button" onClick="javascript: history.go(-1)"><img src="/img/ico-exit.png"></button>
  226. <div id="pl-player-ctrl-wrap">
  227. <div id="pl-playback-progress-wrap">
  228. <div id="pl-playback-progress">
  229. <div id="pl-playback-loaded"></div>
  230. <div id="pl-playback-position">
  231. <div id="pl-playback-position-bullet"></div>
  232. </div>
  233. </div>
  234. <div id="pl-playback-time">
  235. 00:00
  236. </div>
  237. </div>
  238. <div id="pl-player-ctrl">
  239. <div id="pl-playback-ctrls-wrap" class="play">
  240. <button type="button" id="pl-playback-play" class="pl-button"><img src="/img/ico-play.png"></button>
  241. <button type="button" id="pl-playback-pause" class="pl-button"><img src="/img/ico-pause.png"></button>
  242. <div class="sep"></div>
  243. </div>
  244. <div id="pl-audio-ctrls-wrap" class="volume">
  245. <button type="button" id="pl-audio-volume" class="pl-button"><img src="/img/ico-volume.png"></button>
  246. <button type="button" id="pl-audio-mute" class="pl-button"><img src="/img/ico-mute.png"></button>
  247. <div class="sep"></div>
  248. <div id="pl-volume-wrap">
  249. <div>
  250. <div id="pl-volume">
  251. <div id="pl-volume-bar">
  252. <div id="pl-volume-bar-bullet"></div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <div id="pl-info-wrap">
  259. <span id="pl-info-series"></span>
  260. <span id="pl-info-episode"></span>
  261. <div class="sep"></div>
  262. </div>
  263. <div id="pl-navigation-ctrls-wrap">
  264. <button type="button" id="pl-next" class="pl-button"><img src="/img/ico-next.png"></button>
  265. <div id="pl-next-popup">
  266. <div class="inner">
  267. <h4>Próximo episódio</h4>
  268. <div id="pl-next-popup-info">
  269. <div>
  270. <div id="pl-next-popup-image">
  271. <img src="/img/ico-play-next.png">
  272. </div>
  273. </div>
  274. <div>
  275. <h2 id="pl-next-popup-subtitle"></h2>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <div id="pl-fs-wrap">
  282. <button type="button" id="pl-fs" class="pl-button"><img src="/img/ico-fullscreen.png"></button>
  283. <button type="button" id="pl-fs-ex" class="pl-button"><img src="/img/ico-fullscreen-exit.png"></button>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. <div id="pl-up-next" class="stretch">
  289. <div>
  290. <div id="pl-up-next-bg" class="stretch"></div>
  291. <div id="pl-up-next-info">
  292. <div id="pl-up-next-title">
  293. <p><span id="pl-runtime"></span></p>
  294. </div>
  295. <div id="pl-up-next-timer-wrap">
  296. <span>O próximo episódio começa em </span>
  297. <span id="pl-up-next-timer"> 15 segundos</span>
  298. </div>
  299. <div id="pl-up-next-go">
  300. <div id="pl-up-next-image" class="stretch">
  301. <img src="/img/ico-play-next.png">
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <div id="pl-watch-again" class="stretch"></div>
  307. </div>
  308. <div id="pl-final-screen" class="stretch">
  309. <div id="pl-final-watch-again" class="stretch">
  310. <div class="pl-classifique">
  311. <span>Classifique:</span>
  312. <img src="/img/stars.png">
  313. </div>
  314. </div>
  315. <div id="pl-segunda-temporada">
  316. <a href="/" style="border-bottom: 0px solid;"><img src="/img/ico-exit.png" title="Voltar"></a>
  317. </div>
  318. </div>
  319. </div>
  320. <div id="pl-mobile">
  321. <img class="pl-loading" src="/img/loading.png" style="opacity: 1">
  322. </div>
  323. </body>
  324. <p align="center">
  325. <img src="/img/cargando.svg">
  326. </p>
  327. <script type="text/javascript" src="/js/script2.js"></script>
  328. <script type="text/javascript" src="/js/yt.js"></script>
  329. </html>
  330. {% endif %}
  331. <!-- This block just to overide the parent footer block not useful in the watch page -->
  332. {% block footer%} {% endblock %}
  333. {% endblock %}