NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 … 93 Next »
Noobie Here!

 
  • 0 Vote(s) - 0 Average
Noobie Here!
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#101
2014-03-24, 07:13 PM
Way back when I first inserted the code you gave me, I got the following error...
'PlaybackPositionHelper' is not declared. It may be inaccessible due to its protection level.
on this line...
Dim position As Integer = PlaybackPositionHelper.GetPlaybackPosition(filename, duration)

I was then offered suggestions (by Visual Studio) how to correct the problem.

At that time I selected "Generate 'Class Position Helper" which apparantly was wrong.
I really didn't realize I added it Smile

I removed that and tried the next suggestion; Generate Field, which gave me this error..

************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 367
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
..........


I removed that and tried the next suggestion; Generate Method Stub, which gave me this error...

************** Exception Text **************
System.NotImplementedException: The method or operation is not implemented.
at NewRec.Test3.class1.PlaybackPositionHelper() in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 379
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 365
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
..........

Finally tried Property Stub
************** Exception Text **************
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 368
at NewRec.Test3.SomePopup.HandleButtonCommand1(String buttonName) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 149
at NUtility.Controls.UiButtonList.OnKeyDown(KeyEventArgs e)
at NewRec.Test3.SomePopup.OnKeyDown(KeyEventArgs e) in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\SomePopup.vb:line 68
.................

The only suggestion left is to Generate New Type, which would require several other parameters that I don't understand.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#102
2014-03-24, 07:19 PM
Quote:System.NotImplementedException: The method or operation is not implemented.
at NewRec.Test3.class1.PlaybackPositionHelper() in C:\Users\John\Documents\Visual Studio 2010\Projects\NewRec\NewRec\Class1.vb:line 379
at NewRec.Test3.class1.PluginCallback(Object source, String command, Object args) in C:\Users\John\Documents\Visual Studio 2010
Now you've implemented your own PlaybackPositionHelper() method. Don't do this. Delete it.

Just make sure your plugin project has references to NShared.dll and NUtility.dll, and that your code as "using NShared;" and "using NUtility;". It may only have a reference to NUtility.dll.
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#103
2014-03-24, 08:33 PM
OKAY, now we're gettin' somewhere!

It looks like my problem was NShared.dll missing.

I did a couple of quick tests and it seems like it's working.

There is 1 file, the one I had been using for all my previous tests, that seems no matter where I stop watching it always starts at the same spot on RESUME.
Perhaps there's some counter somewhere that needs to be cleared?

It's nothing to worry about as long as it's just that one file.

Thanx again!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#104
2014-03-24, 08:36 PM
jrockow Wrote:There is 1 file, the one I had been using for all my previous tests, that seems no matter where I stop watching it always starts at the same spot on RESUME.
Perhaps there's some counter somewhere that needs to be cleared?
From memory, it'll ignore points with x seconds of either end of the file. If you're experimenting with a short file, or trying to stop/resume close to the start or end of the file, it might be ignoring your requests.
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#105
2014-03-24, 08:43 PM
One more thing about RESUME.
I would like to add some sort of flag to the listing, much the same as the green box you use, to indicate the file has been partially watched.
How would I attack that?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#106
2014-03-24, 08:50 PM
In your list view items in your skin.xml, you can add an instruction to draw an image conditionally, based on some flag set when you insert the items into the list:

Code:
<Image source="watched.png" visible="@alreadyViewed" location="1,5" size="2,90"/>

In this case, it'll draw the watched.png image, if "@alreadyViewed" was set to true in the properties specified when that row was inserted.
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#107
2014-03-24, 08:54 PM
What would I be looking for, to set the property to true?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#108
2014-03-24, 08:58 PM
The same code you've already used, ie check the position returned from PlaybackPositionHelper.GetPlaybackPosition(); If it's non-zero, then they've watched it.
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#109
2014-03-25, 02:21 AM
I currently have my plugin designed so that when you press the ENTER key the popup menu appears.
From here you select PLAY, RESUME, etc.

I would also like to be able to use the PLAY key (CTRL-P) to play the file immediately, without going to the popup.
Can you get me started on that. I'm not sure how to code in specific keyboard commands.

Also, I assume I need some sort of timer to keep my list up to date.
Is it enough for the timer to just PopulateList, or do I need to do more.
What interval do you suggest I use for updating the screen?
jrockow
Offline

Senior Member

Posts: 718
Threads: 112
Joined: Nov 2005
#110
2014-03-25, 12:09 PM
I assume you probably have some built-in commands to write back to the database.
(a lot easier than me doing it my clumsy way!)

i.e. I would like to rename the selected file and some of it's epg events.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (17): « Previous 1 … 9 10 11 12 13 … 17 Next »
Jump to page 


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

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

Linear Mode
Threaded Mode