--- a/src/ldt/ldt/__init__.py Thu Oct 17 12:32:29 2013 +0200
+++ b/src/ldt/ldt/__init__.py Thu Oct 17 14:49:03 2013 +0200
@@ -1,6 +1,6 @@
__all__ = ["VERSION", "get_version", "__version__"]
-VERSION = (1, 51, 6, "final", 0)
+VERSION = (1, 51, 7, "final", 0)
def get_version():
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Thu Oct 17 12:32:29 2013 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Thu Oct 17 14:49:03 2013 +0200
@@ -70,6 +70,13 @@
},
{% endif %}
height: '{{ player_height }}',
+ url_transform: function(url) {
+ // Adaptation to jwplayer 6
+ if(url.substr(url.length - 4).toLowerCase()=='.flv'){
+ return url.replace('/ddc_player/video/','/ddc_player/flv:video/');
+ }
+ return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
+ },
autostart: {% if autostart %} true {% else %} false {% endif %}
} {% if polemic == 'all' or polemic == 'tweet' %},
{
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Thu Oct 17 12:32:29 2013 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Thu Oct 17 14:49:03 2013 +0200
@@ -43,6 +43,10 @@
height: 300,
autostart: true,
url_transform: function(url) {
+ // Adaptation to jwplayer 6
+ if(url.substr(url.length - 4).toLowerCase()=='.flv'){
+ return url.replace('/ddc_player/video/','/ddc_player/flv:video/');
+ }
return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
}
},