NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 64 65 66 67 68 … 93 Next »
GetAudioPlayList method - MVP

 
  • 0 Vote(s) - 0 Average
GetAudioPlayList method - MVP
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#1
2005-11-26, 06:12 AM
Howdy,

I've been working on my first adventure into plugins and have run into an oddity. Wondering if anyone else has run into it before.

I'm attempting to discover when GBPVR has switched to a new track.
I haven't seen a OnTrackChange event for GBPVR so am attempting to use the GetAudioPlayList for the CurrentIndex, TrackDuration, and Playbackposition.

All works perfectly when running it from the PC. However, when calling from within a MVP instance I get back all 0's.

Is this a bug, known feature, or am I calling something incorrectly.

Thanks,

- Scott
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#2
2005-11-26, 06:17 AM
Wondering if its similar to Reven's post. Though I'm using the regular GBPVR Release v 94.13
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#3
2005-11-26, 06:23 AM
Quote:I've been working on my first adventure into plugins and have run into an oddity. Wondering if anyone else has run into it before.

I'm attempting to discover when GBPVR has switched to a new track.
I haven't seen a OnTrackChange event for GBPVR so am attempting to use the GetAudioPlayList for the CurrentIndex, TrackDuration, and Playbackposition.
Each time GB-PVR changes to the next file in the playlist, it fires the EventTypes.CurrentAudioTrack event.

Quote:Wondering if its similar to Reven's post. Though I'm using the regular GBPVR Release v 94.13
No, its a different issue. I actually have no way to tell where playback is up to, or how long the track is when playing via the MVP. The duration and position will always be reported as 0 when using an MVP.
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#4
2005-11-26, 07:41 AM
That's cool.

Tried playing with the Notify Event. I couldn't get it to fire, not sure exactly why. Implemented the IEventNotification interface and added some simple display code to the Notify Event.

On another note, does ForceRepaint work with the MVP or is there another call that can be made for the MVP to set it to redraw the screen? I've been trying to get it to work without success.

- Scott
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#5
2005-11-26, 08:09 AM
I found the needsRendering method causes the effect I wanted to occur.

Just to double check, is this the correct method to use?

- Scott
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2005-11-26, 04:24 PM
ForceRepaint should have worked also, but either one should be ok.
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#7
2005-11-26, 06:24 PM
I had forcerepaint up. It worked fine on the PC. It was not working on the MVP for me. But, it's all cool I have it going. The needsRendering worked perfectly from the MVP.

Another thing I found which may be a bug.
If you have an MVP running and have the LoopPlaylist set to true, if you press the Stop button and don't set LoopPlaylist to false on the Stop event the MVP will disconnect.

I appreciate your help Sub,

Thank You.

- Scott
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2005-11-26, 07:55 PM
Quote:I had forcerepaint up. It worked fine on the PC. It was not working on the MVP for me. But, it's all cool I have it going. The needsRendering worked perfectly from the MVP.
Yeah, its probably a bug.

Quote:Another thing I found which may be a bug.
If you have an MVP running and have the LoopPlaylist set to true, if you press the Stop button and don't set LoopPlaylist to false on the Stop event the MVP will disconnect.
Do you get error message in gbpvr.exe.log when this happens?
Hunter Sun
Offline

Junior Member

Posts: 32
Threads: 10
Joined: Jun 2005
#9
2005-11-26, 10:54 PM
I've checked the GBPVR.exe.Log. No errors where listed. I get the disconnection and the restart. This the log output during 3 disconnections.

11/26/2005 5:48:03 PM.976 INFO [289] MVP Control thread Listening on port: 5906
11/26/2005 5:48:04 PM.086 INFO [290] MVP Streaming thread starting
11/26/2005 5:48:04 PM.086 INFO [290] MVP Streaming thread Listening on port: 8337
11/26/2005 5:48:04 PM.086 INFO [291] ServiceLocatorThread() Hostname: tarant
11/26/2005 5:48:04 PM.096 INFO [291] IP Address 172.22.121.202
11/26/2005 5:48:04 PM.096 INFO [293] BOOTPWorkerThread() Hostname: tarant
11/26/2005 5:48:04 PM.096 INFO [293] BOOTPWorkerThread IP Address 172.22.121.202
11/26/2005 5:48:04 PM.477 VERBOSE [289] MVP Control thread waiting connection
11/26/2005 5:48:04 PM.477 VERBOSE [289] MVP Control thread waiting connection
11/26/2005 5:48:04 PM.587 VERBOSE [290] MVP Streaming thread waiting for connection
11/26/2005 5:51:20 PM.879 VERBOSE [291] Received MVP Service Locator request
11/26/2005 5:51:20 PM.879 VERBOSE [291] Parsing MVP Service Locator request
11/26/2005 5:51:20 PM.879 VERBOSE [291] About construct MVP Service Locator request
11/26/2005 5:51:20 PM.879 VERBOSE [291] Sending MVP Service Locator response to 657916AC:16882
11/26/2005 5:51:20 PM.879 VERBOSE [290] MVP Streaming thread got connection
11/26/2005 5:52:58 PM.615 VERBOSE [291] Received MVP Service Locator request
11/26/2005 5:52:58 PM.615 VERBOSE [291] Parsing MVP Service Locator request
11/26/2005 5:52:58 PM.615 VERBOSE [291] About construct MVP Service Locator request
11/26/2005 5:52:58 PM.615 VERBOSE [291] Sending MVP Service Locator response to 657916AC:16882
11/26/2005 5:52:59 PM.066 INFO [289] MVP Control thread got connection
11/26/2005 5:52:59 PM.266 INFO [289] MVP mac address: 000DFE0035F5
11/26/2005 5:52:59 PM.266 VERBOSE [289] MVP initConnection()
11/26/2005 5:52:59 PM.266 VERBOSE [289] MVP initConnection() - protocol version sent
11/26/2005 5:52:59 PM.266 VERBOSE [289] MVP initConnection() - protocol version ack: RFB 003.003

11/26/2005 5:53:00 PM.077 VERBOSE [289] frame sent
11/26/2005 5:53:01 PM.819 VERBOSE [2] frame sent
11/26/2005 5:53:02 PM.180 VERBOSE [289] MVP data read: 1 (3)
11/26/2005 5:53:02 PM.180 VERBOSE [289] MVP request processed
11/26/2005 5:53:02 PM.370 VERBOSE [2] MDB updated, forcing refresh of next recording panel
11/26/2005 5:53:02 PM.370 VERBOSE [2] Loading recording list for next recording panel
11/26/2005 5:53:02 PM.370 VERBOSE [2] RecordingFactory.loadSchedule()
11/26/2005 5:53:02 PM.370 VERBOSE [2] getValue() loading new key/value into cache: /settings/AutoRemoveMissingRecordings
11/26/2005 5:53:02 PM.370 VERBOSE [2] getValue: /settings/AutoRemoveMissingRecordings : true
11/26/2005 5:53:02 PM.370 VERBOSE [2] Purging any stale logically deleted recordings
11/26/2005 5:53:02 PM.921 VERBOSE [2] frame sent
11/26/2005 5:53:03 PM.271 VERBOSE [289] MVP data read: 1 (3)
11/26/2005 5:53:03 PM.271 VERBOSE [289] MVP request processed
« 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 7,322 2022-04-11, 04:30 PM
Last Post: mandai
  Show artwork method psycik 31 12,204 2015-07-14, 07:06 AM
Last Post: aloxinh
  couple of issues with recording.recurring.save method reven 10 4,874 2014-01-03, 11:11 PM
Last Post: reven
  Advice on which streaming method to use fred250 17 6,480 2013-09-14, 11:14 AM
Last Post: fred250
  getting recurring recordings from service?method API? reven 2 2,016 2013-08-03, 10:50 PM
Last Post: reven
  Reinitialise method scb147 6 2,534 2009-07-22, 02:23 PM
Last Post: scb147
  Method for Playing Streams skate15e 11 4,521 2008-07-12, 06:04 PM
Last Post: sub
  Method to notify plugin of exit whurlston 6 3,032 2008-06-15, 06:20 AM
Last Post: ralphy
  getPluginHelper().GetAudioPlayList() returns all 0s reven 3 1,736 2005-12-04, 06:40 PM
Last Post: DaveC
  Help with getNamedColor method Jeff 2 1,400 2005-05-02, 05:59 PM
Last Post: Jeff

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

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

Linear Mode
Threaded Mode