From 21e5c98df83caca39e920e66224e6344e84c07cc Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 30 May 2011 19:21:01 +0200 Subject: [PATCH] Video works unless two are played after each other. --- oliver_screen/templates/public/index.html | 4 +- .../templates/public/now_playing.html | 49 ++++++++++++++++++- oliver_screen/tracks/admin.py | 2 +- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/oliver_screen/templates/public/index.html b/oliver_screen/templates/public/index.html index 04beaac..36a7184 100644 --- a/oliver_screen/templates/public/index.html +++ b/oliver_screen/templates/public/index.html @@ -27,8 +27,8 @@ $( document ).ready( get_last_track ); $( document ).ready( get_now_playing ); /* Start timers updating a screen resource. */ - $( document ).everyTime('10s', get_last_track ); - $( document ).everyTime('10s', get_now_playing ); + $( document ).everyTime('10s', "last_track", get_last_track ); + $( document ).everyTime('10s', "now_playing", get_now_playing ); /* Ajax spinner */ $( document ).ajaxStart( function() { diff --git a/oliver_screen/templates/public/now_playing.html b/oliver_screen/templates/public/now_playing.html index cd47069..d670206 100644 --- a/oliver_screen/templates/public/now_playing.html +++ b/oliver_screen/templates/public/now_playing.html @@ -1,6 +1,53 @@ {% if now_playing %} {% if now_playing.video %} -