watch.html 12 KB

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