<%attr> ajax => 1 <%args> $chnum => undef $width => $r->notes('CFG_livewidth') || 640 $height => $r->notes('CFG_liveheight') || 480 % if(defined $chnum) { <& 'SELF:display_screen', %ARGS &> % } else { <& 'SELF:display_embed_screen', %ARGS &> % } <%method display_embed_screen> <%args> $size => undef $bouqet => $r->notes('CFG_StartBouqet') <%perl> my $streamlink='/tools/live.html&chnum=%chnum';
<& '/vdr/channel.html:display_form' , target => '_self' , link => $streamlink , div => 'screen' , update => 'bouqet-content' , streamlink => $streamlink , %ARGS &>
<& '/vdr/channel.html:display_bouqet' , target => '_self' , stream => 'embed' , bouqet => $bouqet , %ARGS &>
<& SELF:display_screen, %ARGS &>
<%method display_screen> <%attr> ajax => 1 update => 'screen' throbber => 1 comp => '/tools/live.html:display_screen' <%args> $chnum => undef $size => undef $width => $r->notes('CFG_livewidth') || 640 $height => $r->notes('CFG_liveheight') || 480 $bouqet => $r->notes('CFG_StartBouqet') $stream_type => uc( $r->notes('CFG_stream_type') ) $stream_titel => ' ' $frame_src => '/tools/screen.html?detach=true' <%perl> if(defined $chnum) { $m->comp('/include/config'); my $ip_address = $r->notes( 'CFG_ip_address' ); my $stream = $m->comp( '/include/channel:get_stream_url', chnum => $chnum ); $stream_titel = $m->comp('/include/channel:get_chan_prop', chnum => $chnum, prop => 'desc' ); $frame_src = "http://$ip_address:3000/$stream_type/$stream"; } % if ( defined $chnum ) { % }
<% $stream_titel %>
<& SELF:get_epg_detail, chnum => $chnum || undef &>
<%method get_epg_detail> <%attr> ajax => 1 throbber => 1 update => 'epg_detail' comp => '/tools/live.html:get_epg_detail' <%args> $chnum <& '/include/epg:read_epg' &> <&| '/include/epg:get_epg', chnum => $chnum , actual => 'true' &>
. .
%start_time  -  %end_time  |  %text (-%remaining min)