diff options
author | Alib <aliboba@free.fr> | 2010-03-26 17:17:32 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-26 17:17:32 +0100 |
commit | d2ff04848d3c638a23138e6a012870df010064d1 (patch) | |
tree | 81d018255e96d92cb6cfece3deecb4a21b875036 /js | |
parent | 77fabd64019e1abbbf50f7276c02f0794104447a (diff) | |
download | istreamdev-d2ff04848d3c638a23138e6a012870df010064d1.tar.gz istreamdev-d2ff04848d3c638a23138e6a012870df010064d1.tar.bz2 |
added stream buttons on epg
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 20b89ed..80d7639 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1023,6 +1023,16 @@ $('#epgdetails span.recButton a').tap(function(event) { gen_edittimer(id,name,active,channumber,channame,rec_date,starttime,endtime);
return false;
});
+
+$('#epgdetails span.streamButton a').tap(function(event) {
+ event.preventDefault();
+ json_start(this);
+ var url = $("#streamchannel").find('span[rel="url"]').text();
+ var mode = $(this).attr('id');
+ start_broadcast('tv',url,mode);
+ return false;
+});
+
//functions
function gen_epgmenu() {
gen_epgchanlist();
@@ -1208,6 +1218,12 @@ function get_epgdetails(channum,startingtime,day) { $('#epgdetails div[rel="dataholder"] span[rel="date"]').html(date);
$('#epgdetails div[rel="dataholder"] span[rel="stime"]').html(stime);
$('#epgdetails div[rel="dataholder"] span[rel="etime"]').html(etime);
+ $('#epgdetails div[rel="dataholder"] span[rel="url"]').html(streamdev_server + channum);
+ if ( data.program.running == "yes" ) {
+ $('#epgdetails #epgdetails_buttons').html('<span class="streamButton"><a id="edge" href="#">Edge</a></span><span class="streamButton"><a id="3g" href="#" class="cube"> 3G </a></span><span class="streamButton"><a id="wifi" href="#" class="cube">Wifi</a></span><span class="recButton"><a id="rec" href="#" class="cube">Rec.</a></span>');
+ } else {
+ $('#epgdetails #epgdetails_buttons').html('<span class="recButton"><a id="rec" href="#" class="cube">Rec.</a></span>');
+ }
json_complete('#epgdetails','cube');
});
}
|