NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 53 54 55 56 57 … 93 Next »
onkeydown = play, pluginHelper.IsPlaylistPaused() issue

 
  • 0 Vote(s) - 0 Average
onkeydown = play, pluginHelper.IsPlaylistPaused() issue
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2006-07-04, 12:01 PM
sub i found a little bug, or well strange behaviour,

if the playlist is paused.
so pluginHelper.IsPlaylistPaused() returns true,

if the user hits the "play" command, gbpvr will automatically unpause the playlist and STILL pass the play command to the plugin.

i was trying to use this check (as the first check) in the onkeydown method
Code:
if (cmd == Settings.KeyMappings.Main.Play)
{
       if (pluginHelper != null && pluginHelper.IsPlaylistPaused())
       {
              pluginHelper.ResumePlaylistPlayback();
              return true; //(ive handled it)
       }
}
so then if music was playing back the user "hit" play on an album, it would stop the current one and play the new one.

however since gbpvr automatically resumes playback, that inital check never happens, and pluginHelper.IsPlaylistPaused() returns true. so in my code if you hit play, even if it was paused it would be stopped and new album played.

ie theres no way to only play if the playlist isnt paused.

i can *fix* it by saying if music is playing back, just dont do anything with the play button, but then i cant let the user "shortcut" to "stop current album and play this one".

in chance of changing this so its left up to the plugin to resume the playlist? or would that be a PITA to change?

this bug was bugging me, i wasnt sure where it was failing, i thought it was something in my code that was resuming it and then starting a playlist.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,698
Threads: 767
Joined: Nov 2003
#2
2006-07-04, 08:33 PM
Quote:in chance of changing this so its left up to the plugin to resume the playlist? or would that be a PITA to change?
Sorry, but it would be a pain to change this.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2006-07-04, 09:28 PM
ok, as long as i know how it works now i can just ignore the play button if music is playing.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PluginHelper.SetPlayerMetaData(Hashtable args) not working alibert 12 4,630 2011-01-23, 05:33 PM
Last Post: sub
  PluginHelper.GetSkinRootDirectory(); returns "skin" and not "skin2" reven 6 2,474 2009-02-11, 03:15 PM
Last Post: sub
  pluginhelper.playvideofile(title,description,filen ame, float position) ?? reven 5 2,385 2009-01-12, 08:52 AM
Last Post: reven
  Video play queue request. whurlston 2 1,722 2008-12-17, 08:12 PM
Last Post: whurlston
  WizUIhelper 1.0.15.4 issue idkpmiller 9 3,121 2008-04-03, 02:04 AM
Last Post: JavaWiz
  onKeyDown called on main plugin from Popup whurlston 1 1,359 2008-04-01, 07:59 AM
Last Post: whurlston
  UIStatic issue idkpmiller 8 5,138 2008-01-08, 05:01 PM
Last Post: whurlston
  Keymapping issue idkpmiller 7 2,358 2007-01-07, 03:15 PM
Last Post: sub
  Play Audio File in a plugin cgmt 9 3,211 2006-06-03, 05:55 AM
Last Post: reven
  pluginHelper.ReturnToMainMenu(); throws System.OutOfMemoryException: Out of memory. reven 6 2,575 2006-02-21, 08:13 PM
Last Post: reven

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

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

Linear Mode
Threaded Mode