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?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#21
2004-10-11, 01:08 AM
When the MVP is playing audio tracks, I dont know how long the track is, or where in the playback it's up to. I could probably write some code to parse the MP3 and determine the duration when I ask the MVP to start playing it, but I'll never be able to tell where abouts the playback is up to.
tkgafs
Offline

Senior Member

Posts: 594
Threads: 61
Joined: Jun 2004
#22
2004-10-11, 01:19 AM
[b Wrote:Quote[/b] (sub @ Oct. 11 2004,02:08)]When the MVP is playing audio tracks, I dont know how long the track is, or where in the playback it's up to. I could probably write some code to parse the MP3 and determine the duration when I ask the MVP to start playing it, but I'll never be able to tell where abouts the playback is up to.
I see it is actually the MVP which is playing the mp3 you are simply supplying blocks of data for it to decode,

If you could write something to let a plugin on the mvp know the total length of an mp3 in seconds that would probably be useful, in the meantime I'll change the jukebox plugin so that it does not display the progress bar when it is on the MVP , as it looks kind of broken as it is

tkgafs
smelcher
Offline

Member

Posts: 69
Threads: 15
Joined: Jan 2005
#23
2008-04-11, 04:56 PM
Sub,

I am adding/using synchronized lyrics to Psycik's MusicLibrary2 plugin. Everything works fine standalone but since I do not know the playback position on the MVP I cannot scroll the lyrics. I have read several posts and understand the fact that you do not know where the MVP is during playback. That being said, is there not a way that GBPVR can "guess" as to when the song has started playing? Basically, can you start a stopwatch every time you tell MVP to start playing a song. If the user stopped the song, obviously you would pause the timer. Likewise, if a new new song started, the stopwatch would go back to 00:00 and so forth.

I also noticed in another post that you do send en event as to when you send a new song to the MVP so I can also look at using this and creating my own stopwatch.

Thanks for the help
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#24
2008-04-11, 05:01 PM
Quote:I am adding/using synchronized lyrics to Psycik's MusicLibrary2 plugin. Everything works fine standalone but since I do not know the playback position on the MVP I cannot scroll the lyrics. I have read several posts and understand the fact that you do not know where the MVP is during playback. That being said, is there not a way that GBPVR can "guess" as to when the song has started playing? Basically, can you start a stopwatch every time you tell MVP to start playing a song. If the user stopped the song, obviously you would pause the timer. Likewise, if a new new song started, the stopwatch would go back to 00:00 and so forth.
Sorry, its unlikely this limitation will be removed in the near future. Based on the wildy varying bitrates of audio files, and the amount of buffering performed on the MVP/PCH, it'd be next to impossible to guess this with any accuracy using a timer.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#25
2008-04-11, 11:42 PM
I'm taking a hit with this too on a couple of things to do with the current audio playback position...
sub Wrote:Sorry, its unlikely this limitation will be removed in the near future. Based on the wildy varying bitrates of audio files, and the amount of buffering performed on the MVP/PCH, it'd be next to impossible to guess this with any accuracy using a timer.
I can see why you don't really want to spend time on this when you couldn't guarantee the accuracy of the result.

I don't really need "to the second" times, so I'll put my own clock in. The obvious place where this falls down though is when the user pauses the audio stream. Would it be possible to add EventTypes AudioPause and AudioResume to Notify(...) ?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


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