NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 38 39 40 41 42 … 93 Next »
PluginHelperFactory.getPluginHelper().GetAudioPlay List sometimes returns a NULL

 
  • 0 Vote(s) - 0 Average
PluginHelperFactory.getPluginHelper().GetAudioPlay List sometimes returns a NULL
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#1
2007-11-04, 02:28 AM
On my development machine:
Code:
System.Collections.IList PlayList = PluginHelperFactory.getPluginHelper().GetAudioPlayList(out currentIndex, out trackDuration, out playbackPosition);

reliably returns a non null value when playing music from the music library, but on my production system, PlayList often returns a null when playing the same mp3 file (it really doesn't make any difference what mp3 file is being played - If the GetAudioPlayList returns null once, it seems to always return NULL.)

Same 1.0.16 version on both machines, but presumably there must be some other differences for the GetAudioPlayList to behave differently on the two machines.

Am I calling GetAudioPlayList incorrectly for it to work reliably?
Any other suggestions?

I am trying to get details of the file currently being played (ie MP3 tag details and current playback position) in response to an IEventNotification.
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,698
Threads: 767
Joined: Nov 2003
#2
2007-11-04, 03:04 AM
If you can give me some details about how to reproduce it here, or can supply a plugin that shows the problem, then I'll be able to fix the problem for you.
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#3
2007-11-04, 06:52 AM (This post was last modified: 2007-11-04, 12:05 PM by ralphy.)
sub Wrote:If you can give me some details about how to reproduce it here, or can supply a plugin that shows the problem, then I'll be able to fix the problem for you.

sub,

please see email/PM with the plugin. Unfortunately, I am having difficulties in understanding how to repeat the problem - particularly given that is works on one of my machines, but not another. So I'll have to send you the plugin.

Thanks for your help


EDIT:
I've just discovered that on my production system, a PlayList is not returned if only one song is selected to play. If 'Play All' is chosen, then a non null PlayList is returned.

But this is not the case on my development system, where a non null PlayList is returned even if only one song is selected to play.
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,698
Threads: 767
Joined: Nov 2003
#4
2007-11-04, 03:24 PM
Can you check if the difference between the two machines is the value of the <MusicLibraryAutoQueueFiles> setting in config.xml?
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#5
2007-11-04, 11:38 PM
sub Wrote:Can you check if the difference between the two machines is the value of the <MusicLibraryAutoQueueFiles> setting in config.xml?

That's the difference sub - production machine (the one with the problem) was set to false, and the development machine (the one that worked) was true.

Of course, I have no idea why my two systems had this parameter set differently. What is the purpose of this parameter?
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,698
Threads: 767
Joined: Nov 2003
#6
2007-11-04, 11:41 PM
If its set to 'true' and you play the 5th song in a directory of 25 songs, then it'll automatically queue the remaining 20 for playback. (ie, a simple playlist made from the remainder of the directory)
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#7
2007-11-05, 01:04 PM
I forgot to ask sub, even if MusicLibraryAutoQueueFiles=false, should PluginHelperFactory.getPluginHelper().GetAudioPlayList return a PlayList of one, rather than null? (ie, is the behaviour of GetAudioPlayList meant to be that way?)
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,698
Threads: 767
Joined: Nov 2003
#8
2007-11-05, 03:46 PM
I've fixed this up for the next release so that it always returns a non-null value when music is playing.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 6,933 2022-04-11, 04:30 PM
Last Post: mandai
  API request returns xml on error scJohn 4 1,908 2020-08-25, 05:41 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 2,769 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,072 2017-06-19, 09:14 AM
Last Post: psycik
  List of "IEventNotification" events? reven 8 3,370 2012-11-01, 10:56 PM
Last Post: reven
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,866 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,733 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 2,179 2011-09-28, 09:48 PM
Last Post: cncb
  A list of changing images McBainUK 1 1,850 2011-06-21, 04:36 PM
Last Post: sub
  Multiple views for a single list imilne 18 5,458 2011-04-22, 11:06 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode