Webinterface plugin (4 Viewers)

klestor

Portal Member
March 26, 2005
15
0
The fix is to download this file:
http://members.dinkum.net.au/plai33/ECP2Beta3.zip. Now, copy the ECP2Assembly.dll file from the ECP2Assembly\bin folder in the zip file and place it in your mediaportal folder, overwriting the existing one. Make sure MP is not running when you do this.

I should have told you I was running 0.1.0.9 when I posted that, after reading your reply I quickly upgraded to 0.1.0.10 to try it.
But still nothing... I also tried it on 0.1.0.9 without any luck.


I noticed in ECP2Assembly.dll.config has is a key "MPDirectory" which has no value, could this be a problem?? could there be another file?
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
klestor said:
The fix is to download this file:
http://members.dinkum.net.au/plai33/ECP2Beta3.zip. Now, copy the ECP2Assembly.dll file from the ECP2Assembly\bin folder in the zip file and place it in your mediaportal folder, overwriting the existing one. Make sure MP is not running when you do this.

I should have told you I was running 0.1.0.9 when I posted that, after reading your reply I quickly upgraded to 0.1.0.10 to try it.
But still nothing... I also tried it on 0.1.0.9 without any luck.


I noticed in ECP2Assembly.dll.config has is a key "MPDirectory" which has no value, could this be a problem?? could there be another file?

Hmm... can you try something for me?

Goto http://<MP computer name>/MPExtControlWS/service.asmx (replace <MP computer name> with your MP machine's computer name. Now find the RefreshRecordingsInMP link and click on it. Then click the Invoke button. It should open a new window and should load some text. Does it say "True", "False" or something else? Post that here...

Sam
 

klestor

Portal Member
March 26, 2005
15
0
Goto http://<MP computer name>/MPExtControlWS/service.asmx (replace <MP computer name> with your MP machine's computer name. Now find the RefreshRecordingsInMP link and click on it. Then click the Invoke button. It should open a new window and should load some text. Does it say "True", "False" or something else? Post that here...
I tried while running MP and got this:
System.MissingMethodException: Method not found: Void MediaPortal.TV.Database.TVDatabase.UpdateRecording(MediaPortal.TV.Database.TVRecording ByRef).

Server stack trace:
at ECP2Assembly.MPHandler.RefreshRecordings()
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ECP2Assembly.MPHandler.RefreshRecordings() in C:\Documents and Settings\Samuel Lai\Desktop\MediaPortal Source\mediaportal\ECP2Assembly\clsMPHandler.vb:line 182
at MPECP2WS.ECP2WS.RefreshRecordingsInMP() in c:\inetpub\wwwroot\MPECP2WS\service.asmx.vb:line 159


what do you think?
Thanks for your quick responses!!! this is great!
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
Whoops, I made a mistake trying to imitate MP 0.1.0.10 (can't be bothered downloading 0.1.0.10).

Download the ECP2Beta3.zip file from the link before, and replace the ECP2Assembly.dll file with the one in your mediaportal folder.

Sam
 

klestor

Portal Member
March 26, 2005
15
0
Download the ECP2Beta3.zip file from the link before, and replace the ECP2Assembly.dll file with the one in your mediaportal folder.
Thats what I did before... with the 36KB .dll file.

If it helps, I ran that invoke thing again but with the 0.1.0.9 ECP2Assembly.dll (22KB) i get:
Code:
System.MissingMethodException: Method not found: Void MediaPortal.TV.Database.TVDatabase.ChangeRecording(MediaPortal.TV.Database.TVRecording ByRef).

Server stack trace: 
   at ECP2Assembly.MPHandler.RefreshRecordings()
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ECP2Assembly.MPHandler.RefreshRecordings() in C:\Documents and Settings\Samuel Lai\Desktop\MediaPortal Source\mediaportal\ECP2Assembly\clsMPHandler.vb:line 182
   at MPECP2WS.ECP2WS.RefreshRecordingsInMP() in c:\inetpub\wwwroot\MPECP2WS\service.asmx.vb:line 159

Notice the difference '.UpdateRecording(' -22KB .DLL- and '.ChangeRecording(' -36KB .DLL-
This is beyond me, but Ill help out in anyway. :p
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
The reason I told you to download it again is because I updated it with a small fix.

Please download it again and try it again - it should work.

The size differences is because I added a whole lot of new functions to the ECP2Assembly.dll file - its irrelevant.

Sam
 

klestor

Portal Member
March 26, 2005
15
0
Ok, after downloading it again, nothing seemed to change.
If Im in MP while I select a new recoding through the web page it picks it up in the guide, but wont record it unless MP is restarted.

I ran that invoke thing again and got this:
Code:
<string>True</string>
sounds promising to me...
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
klestor said:
Ok, after downloading it again, nothing seemed to change.
If Im in MP while I select a new recoding through the web page it picks it up in the guide, but wont record it unless MP is restarted.

I ran that invoke thing again and got this:
Code:
<string>True</string>
sounds promising to me...

Ok, that means the refresh recordings function is working. Can you check the logs to see if its having problems recording?

Also, can you try setting a recording using the web interface, then invoke the refreshrecordings function, and see if MP reacts.

EDIT: I know why it doesn't work. The PHP code contained an error so the RefreshRecordingsInMP function wasn't being called. Can you download this file (http://members.dinkum.net.au/plai33/functions.remove) and change the .remove extension to .php (so its functions.php) and copy it over the existing one at mediaportal\MPWebControl\htdocs\webscheduler.

Sam
 

klestor

Portal Member
March 26, 2005
15
0
can you try setting a recording using the web interface, then invoke the refreshrecordings function, and see if MP reacts.
ok same thing happen until I invoked the refreshrecordings and the it started to record!! :)
also it said
Code:
<string>True</string>

I couldnt see anything bad in the logs except for in error.log after the above worked
Code:
27/03/2005 1:53:18 AM editor.SetAttributes() on D:\Movies\Network TEN_Video Hits Up Late_200503270142p5233.dvr-ms Exception:Specified cast is not valid. Core    at Toub.MediaCenter.Dvrms.Metadata.MetadataEditor.TranslateAttributeToByteArray(MetadataItem item, Byte[]& valueData)
   at Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor.SetAttributes(IDictionary propsToSet)
   at MediaPortal.TV.Recording.TVCaptureDevice.OnSetRecordingAttributes()
not sure if its relavent..
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
klestor said:
can you try setting a recording using the web interface, then invoke the refreshrecordings function, and see if MP reacts.
ok same thing happen until I invoked the refreshrecordings and the it started to record!! :)
also it said
Code:
<string>True</string>

I couldnt see anything bad in the logs except for in error.log after the above worked
Code:
27/03/2005 1:53:18 AM editor.SetAttributes() on D:\Movies\Network TEN_Video Hits Up Late_200503270142p5233.dvr-ms Exception:Specified cast is not valid. Core    at Toub.MediaCenter.Dvrms.Metadata.MetadataEditor.TranslateAttributeToByteArray(MetadataItem item, Byte[]& valueData)
   at Toub.MediaCenter.Dvrms.Metadata.DvrmsMetadataEditor.SetAttributes(IDictionary propsToSet)
   at MediaPortal.TV.Recording.TVCaptureDevice.OnSetRecordingAttributes()
not sure if its relavent..

Hey, ur in Australia as well!

Anyway, try what I have in bold in my previous post. I'm pretty sure I've solved the problem. Sorry for keeping you up this late... ;-)

Sam
 

Users who are viewing this thread

Top Bottom