utgg wrote: 
> Here is another bit of patching to make the song info and icon from
> RadioVis actually update in the web interface with the
> BBCiPlayer-v1.3.1alpha2 plugin.
> At about line 208 in RadioVis.pm, add the lines in red:
> > 
Code:
--------------------
  >   > 
  >     my $notify = Slim::Utils::Versions->compareVersions($::VERSION, "7.5") 
>= 0 ? [ 'newmetadata' ] : [ 'playlist', 'newsong' ];
  > 
  >     # Update the playlist time so the web will refresh, etc
  >     $song->owner->master->currentPlaylistUpdateTime( Time::HiRes::time() );
  >     Slim::Control::Request::notifyFromArray($song->owner->master, $notify);
  > 
--------------------
> > 
> 
> Also a similar line (around line 125) in HLS.pm will make the kbps
> display appear in the web interface soon after the stream starts
> (without requiring RadioVis enabling):
> > 
Code:
--------------------
  >   > 
  >                     my $redurl = shift @lines;
  >                     $log->debug("redirect: $redurl");
  >                     # Update the playlist time so the web will refresh, etc
  >                     
${*$self}{'song'}->owner->master->currentPlaylistUpdateTime( 
Time::HiRes::time() );
  >                     $self->_fetchPL($redurl, $start);
  >                     return;
  > 
--------------------
> > 
> 
> Don't ask me why that is required - I just noticed this in other
> plugins and gave it a try...
> 
> Finally, there is an oddity with the live World Service, in that it
> has a 'rolling' 30-second duration, which means the above fixes messes
> up, causing stream restarts. That is all fixed by the following,
> around line 170 in HLS.pm:
> > 
Code:
--------------------
  >   > 
  >     }
  > 
  >     ${*$self}{'song'}->duration($duration) if ${*$self}{'_pl_noupdate'} && 
defined $duration;
  > 
  >     $log->info(sub { "existing chunks: [" . join(",", map { 
$_->{'chunknum'} } @{${*$self}{'_chunks'}}) . "]" });
  > 
--------------------
> > 
All good stuff - thanks.  I have, however, got one problem.  I'm not
sure if this is due to a missed patch, misapplied patch, the Beeb
playing around again, or.....

I can't get any BBC World Service LA using this plugin.  It displays the
correct icon for the program, and text, but after trying to play for 3-4
seconds it gives up.   I can get it using BBCiPlayerExtras (so long as
RTMP survives), so it's not a problem now, but just thought I'd ask.

The url for a typical programme shown in the LMS gui is:

Code:
--------------------
    
  
iplayer://aod?hls=http://open.live.bbc.co.uk/mediaselector/5/redir/version/2.0/vpid/p02m9lqh/mediaset/audio-syndication/proto/http&dur=600&icon=http://ichef.bbci.co.uk/images/ic/512x288/p02mr8qp.jpg&title=Witness%3A%20The%20Beeching%20Report&desc=In%20March%201963%20the%20British%20government%20announced%20plans%20to%20slash%20the%20country's%20rail%20network&icon=http://ichef.bbci.co.uk/images/ic/512x288/p02mr8qp.jpg
  
--------------------



LMS 7.9 on VortexBox Midi, Xubuntu 14.04, FLACs 16->24 bit,
44.1->192kbps. LMS & Squeeze2upnp to MF M1 CLiC (to MF amp & ESLs) &
Marantz CR603 UPnP renderers.  Minimserver (server) & upplay (control
point) to same renderers & to upmpdcli/mpd PC renderers.  Squeezelite to
Meridian USB Explorer DAC to speakers/phones.  Wireless Xubuntu 14.04
laptop with firefox/upplay or Android 'phone with
Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.   Have a Touch
with EDO, and a spare, but don't use.
------------------------------------------------------------------------
PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=53229

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to