NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 33 34 35 36 37 … 93 Next »
Music API?

 
  • 0 Vote(s) - 0 Average
Music API?
brturn
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Apr 2004
#11
2004-05-03, 03:28 PM
Sub,

Thanks for those new APIs. What version will they be in?

I have a working "hello world" project now, based on the weather app source. It was pretty easy to get set up, and the graphics architecture allows a lot of freedom, which is nice since the Jukebox will need sub-menus as well.

Questions:
- How do you show the current play time on video? That is basically what I want to display for the currently playing track.

- Since you gave access to the playlist + index, I won't need an event to signal the end of the playlist (but still need the track time + length, or filename + position to display play time).

- What API are you using for directory browsing? Is there a standard in .NET for this?

- How do you extract the track information given a file name (ie: artist, album, genre, etc..)? Is there a .NET API for this also?

Thanks,
--Bryan
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#12
2004-05-03, 05:02 PM
Hi brturn.

I was intending to do a release over last weekend, but I'm pretty busy at work at the moment so it'll be a few more days.

I've changed the method I added a couple of days ago to:

IList GetAudioPlayList(out int currentIndex, out int trackDuration, out int playbackPosition);

trackDuration and playbackPosition will return values in seconds.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#13
2004-05-03, 05:03 PM
I use the System.IO.Directory.GetFiles(...) method for find files in a directory. It also has static methods for gettings lists of directories.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#14
2004-05-03, 05:04 PM
I've got a pretty small class that I use for extracting the ID3 tags from MP3 files. Email me if you want a copy.
brturn
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Apr 2004
#15
2004-05-03, 05:08 PM
Sub,

Excellent, that set of APIs should give all the functionality I need for the Jukebox. Wink

Keep up the good work!
--Bryan
brturn
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Apr 2004
#16
2004-05-04, 03:22 PM
Sub,

There's another piece missing.. I need the Audio directory from the configuration file.

Is that available from the XML config interface, or would you rather expose it via the Helper class?

Thanks,
--Bryan
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#17
2004-05-04, 08:00 PM
Just get that from the config. The setting isn't going to change.
tkgafs
Offline

Senior Member

Posts: 594
Threads: 61
Joined: Jun 2004
#18
2004-10-10, 09:35 PM
[b Wrote:Quote[/b] (sub @ May 01 2004,19:03)]The next release also contains a method to determine the client type (Overlay/VMR/XCARD/MVP). In the case of the MVP, the MAC address is appended to this.

Are there any details on using this method ?

tkgafs
bryan
Offline

Member

Posts: 120
Threads: 3
Joined: Aug 2004
#19
2004-10-10, 09:50 PM
If you use the function:

PluginHelperFactory.getPluginHelper().GetClientIdentifier()

It will return a string containing:

MVP xxxxxxxxxxxx

where xxxxxxxxxxxxx is the MAC address of the MVP you are connected to.
tkgafs
Offline

Senior Member

Posts: 594
Threads: 61
Joined: Jun 2004
#20
2004-10-11, 12:28 AM
Sub,

in the jukebox plugin the following code is used
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
int currentIndex;
int trackDuration;
int playbackPosition;
System.Collections.IList PlayList = PluginHelperFactory.getPluginHelper().GetAudioPlayList(out currentIndex, out trackDuration, out playbackPosition);


[/QUOTE]

this works fine if the plugin is running on the PC but does not work if the plugin is using an MVP as its client

is the method if thats the right terminology implemented on the MVP client ?

tkgafs
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Accessing music file metadata in C# bgowland 6 3,259 2013-01-26, 05:14 AM
Last Post: bgowland
  visible="!@hasImage & folder.jpg in Music not working Jaggy 0 1,197 2012-02-10, 10:29 PM
Last Post: Jaggy
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,847 2012-02-05, 10:29 AM
Last Post: bgowland
  What music player is used? cncb 1 1,536 2011-08-01, 08:02 PM
Last Post: sub
  Detecting when Music Playlist is stopped (Ctrl-S) ACTCMS 6 2,826 2011-06-19, 07:52 PM
Last Post: sub
  How can I reset the Music plugin's database? mkenyon2 1 1,881 2009-10-15, 06:43 PM
Last Post: psycik
  Common Music/Video Inset? reven 9 4,269 2008-12-09, 03:16 AM
Last Post: JavaWiz
  Who turned on the music? ACTCMS 5 2,606 2008-03-25, 02:17 AM
Last Post: ACTCMS
  Music Albums 2 - Feature request to the author smelcher 8 2,569 2006-12-16, 05:42 PM
Last Post: mcfrojd
  faking shuffle in music playback groover km 3 1,741 2006-10-01, 06:08 AM
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