Skip to content

Commit

Permalink
Do not load videjs from cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Haas committed Jul 1, 2015
1 parent e69edc9 commit d46387f
Show file tree
Hide file tree
Showing 34 changed files with 24,852 additions and 4 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ add_custom_command(
)
add_custom_target(PDFViewerPlugin.css.js-target DEPENDS PDFViewerPlugin.css.js)

add_custom_command(
OUTPUT ImageViewerPlugin.css.js
COMMAND node ${RUNTIMEJS} ${TOOLS_DIR}/css2js.js
ImageViewerPlugin.css ${CMAKE_CURRENT_BINARY_DIR}/ImageViewerPlugin.css.js
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS
WebODF
${TOOLS_DIR}/css2js.js
ImageViewerPlugin.css
)
add_custom_target(ImageViewerPlugin.css.js-target DEPENDS ImageViewerPlugin.css.js)

add_custom_command(
OUTPUT viewer.min.js
COMMENT "Creating viewer.min.js"
Expand All @@ -215,6 +227,7 @@ add_custom_command(
--js ${CMAKE_CURRENT_SOURCE_DIR}/ODFViewerPlugin.js
--js ${CMAKE_CURRENT_BINARY_DIR}/PDFViewerPlugin.css.js
--js ${CMAKE_CURRENT_SOURCE_DIR}/PDFViewerPlugin.js
--js ${CMAKE_CURRENT_BINARY_DIR}/ImageViewerPlugin.css.js
--js ${CMAKE_CURRENT_SOURCE_DIR}/ImageViewerPlugin.js
--js ${CMAKE_CURRENT_SOURCE_DIR}/MultimediaViewerPlugin.js
--js ${CMAKE_CURRENT_BINARY_DIR}/viewerjsversion.js
Expand All @@ -230,6 +243,7 @@ add_custom_command(
ODFViewerPlugin.js
PDFViewerPlugin.css.js-target
PDFViewerPlugin.js
ImageViewerPlugin.css.js-target
ImageViewerPlugin.js
MultimediaViewerPlugin.js
${CMAKE_CURRENT_BINARY_DIR}/viewerjsversion.js
Expand Down Expand Up @@ -263,6 +277,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E make_directory ${VIEWER_BUILD_DIR}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/AGPL-3.0.txt ${VIEWER_BUILD_DIR}/AGPL-3.0.txt
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/images ${VIEWER_BUILD_DIR}/ViewerJS/images
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/video-js ${VIEWER_BUILD_DIR}/ViewerJS/video-js
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/index.html ${VIEWER_BUILD_DIR}/ViewerJS/index.html
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/example.local.css ${VIEWER_BUILD_DIR}/ViewerJS/example.local.css
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${WEBODF_BUILD_DIR}/webodf/webodf.js ${VIEWER_BUILD_DIR}/ViewerJS
Expand Down
5 changes: 3 additions & 2 deletions index-template.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@
}
}
</style>
<link href="http://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.12/video.js"></script>
<link href="video-js/video-js.min.css" rel="stylesheet">
<script src="video-js/video.js"></script>
<script type="text/javascript">
videojs.options.flash.swf = "video-js/video-js.swf";
////<![CDATA[
@VIEWERJS_START@@VIEWERJS_END@
//]]>
Expand Down
5 changes: 3 additions & 2 deletions index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@
}
}
</style>
<link href="http://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.12/video.js"></script>
<link href="video-js/video-js.css" rel="stylesheet">
<script src="video-js/video.js"></script>
<script type="text/javascript">
videojs.options.flash.swf = "video-js/video-js.swf";
function loadPlugin(pluginName, callback) {
"use strict";
var script, style;
Expand Down
Binary file added video-js/font/vjs.eot
Binary file not shown.
28 changes: 28 additions & 0 deletions video-js/font/vjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added video-js/font/vjs.ttf
Binary file not shown.
Binary file added video-js/font/vjs.woff
Binary file not shown.
26 changes: 26 additions & 0 deletions video-js/lang/ar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
videojs.addLanguage("ar",{
"Play": "تشغيل",
"Pause": "ايقاف",
"Current Time": "الوقت الحالي",
"Duration Time": "Dauer",
"Remaining Time": "الوقت المتبقي",
"Stream Type": "نوع التيار",
"LIVE": "مباشر",
"Loaded": "تم التحميل",
"Progress": "التقدم",
"Fullscreen": "ملء الشاشة",
"Non-Fullscreen": "غير ملء الشاشة",
"Mute": "صامت",
"Unmuted": "غير الصامت",
"Playback Rate": "معدل التشغيل",
"Subtitles": "الترجمة",
"subtitles off": "ايقاف الترجمة",
"Captions": "التعليقات",
"captions off": "ايقاف التعليقات",
"Chapters": "فصول",
"You aborted the video playback": "لقد ألغيت تشغيل الفيديو",
"A network error caused the video download to fail part-way.": "تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.",
"The video could not be loaded, either because the server or network failed or because the format is not supported.": "لا يمكن تحميل الفيديو بسبب فشل في الخادم أو الشبكة ، أو فشل بسبب عدم امكانية قراءة تنسيق الفيديو.",
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "تم ايقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.",
"No compatible source was found for this video.": "فشل العثور على أي مصدر متوافق مع هذا الفيديو."
});
26 changes: 26 additions & 0 deletions video-js/lang/bg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
videojs.addLanguage("bg",{
"Play": "Възпроизвеждане",
"Pause": "Пауза",
"Current Time": "Текущо време",
"Duration Time": "Продължителност",
"Remaining Time": "Оставащо време",
"Stream Type": "Тип на потока",
"LIVE": "НА ЖИВО",
"Loaded": "Заредено",
"Progress": "Прогрес",
"Fullscreen": "Цял екран",
"Non-Fullscreen": "Спиране на цял екран",
"Mute": "Без звук",
"Unmuted": "Със звук",
"Playback Rate": "Скорост на възпроизвеждане",
"Subtitles": "Субтитри",
"subtitles off": "Спряни субтитри",
"Captions": "Аудио надписи",
"captions off": "Спряни аудио надписи",
"Chapters": "Глави",
"You aborted the video playback": "Спряхте възпроизвеждането на видеото",
"A network error caused the video download to fail part-way.": "Грешка в мрежата провали изтеглянето на видеото.",
"The video could not be loaded, either because the server or network failed or because the format is not supported.": "Видеото не може да бъде заредено заради проблем със сървъра или мрежата или защото този формат не е поддържан.",
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Възпроизвеждането на видеото беше прекъснато заради проблем с файла или защото видеото използва опции които браузърът Ви не поддържа.",
"No compatible source was found for this video.": "Не беше намерен съвместим източник за това видео."
});
26 changes: 26 additions & 0 deletions video-js/lang/ca.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
videojs.addLanguage("ca",{
"Play": "Reproducció",
"Pause": "Pausa",
"Current Time": "Temps reproduït",
"Duration Time": "Durada total",
"Remaining Time": "Temps restant",
"Stream Type": "Tipus de seqüència",
"LIVE": "EN DIRECTE",
"Loaded": "Carregat",
"Progress": "Progrés",
"Fullscreen": "Pantalla completa",
"Non-Fullscreen": "Pantalla no completa",
"Mute": "Silencia",
"Unmuted": "Amb so",
"Playback Rate": "Velocitat de reproducció",
"Subtitles": "Subtítols",
"subtitles off": "Subtítols desactivats",
"Captions": "Llegendes",
"captions off": "Llegendes desactivades",
"Chapters": "Capítols",
"You aborted the video playback": "Heu interromput la reproducció del vídeo.",
"A network error caused the video download to fail part-way.": "Un error de la xarxa ha interromput la baixada del vídeo.",
"The video could not be loaded, either because the server or network failed or because the format is not supported.": "No s'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.",
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducció de vídeo s'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.",
"No compatible source was found for this video.": "No s'ha trobat cap font compatible amb el vídeo."
});
26 changes: 26 additions & 0 deletions video-js/lang/cs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
videojs.addLanguage("cs",{
"Play": "Přehrát",
"Pause": "Pauza",
"Current Time": "Aktuální čas",
"Duration Time": "Doba trvání",
"Remaining Time": "Zbývající čas",
"Stream Type": "Stream Type",
"LIVE": "ŽIVĚ",
"Loaded": "Načteno",
"Progress": "Stav",
"Fullscreen": "Celá obrazovka",
"Non-Fullscreen": "Zmenšená obrazovka",
"Mute": "Ztlumit zvuk",
"Unmuted": "Přehrát zvuk",
"Playback Rate": "Rychlost přehrávání",
"Subtitles": "Titulky",
"subtitles off": "Titulky vypnuty",
"Captions": "Popisky",
"captions off": "Popisky vypnuty",
"Chapters": "Kapitoly",
"You aborted the video playback": "Přehrávání videa je přerušeno.",
"A network error caused the video download to fail part-way.": "Video nemohlo být načteno, kvůli chybě v síti.",
"The video could not be loaded, either because the server or network failed or because the format is not supported.": "Video nemohlo být načteno, buď kvůli chybě serveru nebo sítě nebo proto, že daný formát není podporován.",
"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Váš prohlížeč nepodporuje formát videa.",
"No compatible source was found for this video.": "Špatně zadaný zdroj videa."
});
Loading

0 comments on commit d46387f

Please sign in to comment.