NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 14 15 16 17 18 … 93 Next »
Detecting when Music Playlist is stopped (Ctrl-S)

 
  • 0 Vote(s) - 0 Average
Detecting when Music Playlist is stopped (Ctrl-S)
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2011-06-19, 05:54 PM
sub - I'd like to know when a Music Playlist is stopped by the user (Ctrl-S) while I'm inactive and don't see OnKeyDown events.

Is there any chance you could raise a Notify event as well? Or maybe add an arg to PLAYBACK_STOPPED to indicate if Crtl-S was pressed or the playlist came to a natural end?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#2
2011-06-19, 06:19 PM
ACTCMS Wrote:Or maybe add an arg to PLAYBACK_STOPPED to indicate if Crtl-S was pressed or the playlist came to a natural end?
I'm not able to do that because that part of the framework had no visibility of what t riggered stop to be called, but I was able to add a new "PLAYBACK_AUDIO_STOPPING_VIA_REQUESTED_STOP" elsewhere in the app (in the part that handles music key presses).
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2011-06-19, 06:29 PM
sub Wrote:I'm not able to do that because that part of the framework had no visibility of what t riggered stop to be called, but I was able to add a new "PLAYBACK_AUDIO_STOPPING_VIA_REQUESTED_STOP" elsewhere in the app (in the part that handles music key presses).
If it's raised only for Ctrl-S (and not Ctrl-Left or Ctrl-Right) that will be perfect - I've got another way to tell if a Playlist comes to a natural end.

Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#4
2011-06-19, 06:32 PM
It wont be raised with Ctrl-Left/Right. It'll only be raised if they explicitly press 'Stop' key on keyboard/remote.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#5
2011-06-19, 06:35 PM
Sub, can this be applied to right-click menu Stop too? This is the hardest state for me to trap since there are no events exposed that I could find.

Also ACTCMS, if you do intercept this Notify event could you please process this in a new thread (preferred) or do minimal processing when you get it, especially if the screen saver is not active. You have some leeway when playing of music is started, but the impact is great here.

Martin
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2011-06-19, 06:43 PM
mvallevand Wrote:Also ACTCMS, if you do intercept this Notify event could you please process this in a new thread (preferred) or do minimal processing when you get it, especially if the screen saver is not active. You have some leeway when playing of music is started, but the impact is great here.

Martin
Don't worry Martin, all I'll be doing is re-setting a switch Big Grin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#7
2011-06-19, 07:52 PM
mvallevand Wrote:Sub, can this be applied to right-click menu Stop too?
Ok, I've added this too.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Accessing music file metadata in C# bgowland 6 3,402 2013-01-26, 05:14 AM
Last Post: bgowland
  visible="!@hasImage & folder.jpg in Music not working Jaggy 0 1,247 2012-02-10, 10:29 PM
Last Post: Jaggy
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,926 2012-02-05, 10:29 AM
Last Post: bgowland
  Detecting clients imilne 2 1,478 2012-01-26, 10:45 PM
Last Post: mvallevand
  What music player is used? cncb 1 1,595 2011-08-01, 08:02 PM
Last Post: sub
  Detecting selection in UiList imilne 0 1,326 2010-11-04, 10:20 PM
Last Post: imilne
  How can I reset the Music plugin's database? mkenyon2 1 1,943 2009-10-15, 06:43 PM
Last Post: psycik
  Plugin notification of stopped media mvallevand 7 2,367 2009-08-19, 11:16 PM
Last Post: mvallevand
  Common Music/Video Inset? reven 9 4,478 2008-12-09, 03:16 AM
Last Post: JavaWiz
  Music API? brturn 24 7,976 2008-04-11, 11:42 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode