Webinterface plugin (2 Viewers)

RoyN

Portal Pro
March 17, 2006
78
0
in mine? no, it gives you a screenshot, and you click the screenshot. it then clicks the MP wherever you clicked....

sort of similar to VNC, but it only runs via web, so no text writing only mouse clicks, but this is fine for PPC
 

LordMessi

Retired Team Member
  • Premium Supporter
  • July 4, 2005
    449
    0
    45
    Ørsø, Dronninglund, Denmark
    Home Country
    Denmark Denmark
    RoyN said:
    in mine? no, it gives you a screenshot, and you click the screenshot. it then clicks the MP wherever you clicked....

    sort of similar to VNC, but it only runs via web, so no text writing only mouse clicks, but this is fine for PPC

    Well AnydyQ actually did it - I think....i would have to look at it before answering 100%

    Contact me at MSN - might be easier.
     

    AndyQ

    Portal Member
    May 27, 2005
    25
    0
    I wrote a couple of webservices and a simple PHP front end that can take a screenshot and simulate mouse moves and clicks, and keyboard presses which worked nicely to allow me to remote control MP.

    If you are interested, PM me and I can send you the code for it.
    It should be simple to write a small PPC client (using the .net framework for the PPC) to call the webservice to get the image and also to handle the mouse events.

    The webservice can already handle scaliong of images and mappig the mouse positions depending on the image scale.
     

    RoyN

    Portal Pro
    March 17, 2006
    78
    0
    Hey, I'll hit up both of you on PM/MSN...

    I dont want a PPC versoin, I want to have an advanced web interface to allow me to control MP, but while having MP respond on screen...

    Bsaically, I want the MP menu on screen, and the MP menu on the webpage.

    Press "Music" on PPC, brings up the music screen on MP, with the music shares, and also on the PPC (web) screen, start a song by clicking on t on the webpage, starts it in MP.

    Go to video on PPC, brings up video on MP, start a video on the PPC, shows the video controls on the PPC and the video plays in MP, basically a PPC remote-control, with the added benefits of having movie/audio info shown, and movie/audio lists shown on the ppc.

    Can the current webservices control all these aspects of MP?
     

    ZetaVu

    Portal Pro
    December 9, 2005
    152
    1
    I tried the plugin with the updatable screenshot, slow refresh, and the shot was not touch sensitive, you still had to navigate. I agree, an ideal solution would be a tiny font version of the MP gui we could see and navigate on a pda or other computer, does not even have to be graphic, could just be text in lists or trees. MPblue seems closest to that, only it does not at this time populate the music playlists in MP (the selected music is not displayed anywhere) but I understand that is in development as well as queing, etc.

    These two projects are coming from different directions and will meet pretty close to each other in the long term. It'll be interesting to see how they proceed, but there is definitely overlap so you guys can probably help each other.

    Someone on one of the discussions was also talking about accessing and scheduling recording off the web. Snapstream actually uses an online account to do this and the software can download off there, so you don't need to run the server on the local machine to access. This could be a thought.
     

    RoyN

    Portal Pro
    March 17, 2006
    78
    0
    Yeah, I wantred to have something like the XBMC web interface, only not totally independent from the on-screen interface...

    It would be visually similar to what MPBlue has, but I really dont see any advantage (except for *maybe* easier to program) to doing it as a native ppc app as opposed to a web interface.

    Again I'll leave my question: how much of MP can be controlled/accessed from the current webinterface that is in MPW? Would I be able to use that as a basis of controlling everything I described above? (I am not going to go into recording, cause that is already covered) If so, is there some sort of tutorial/reference about how to program using it?(How to send commands, what commands are supported, how to send commands how to read lists, etc, etc)
     

    RoyN

    Portal Pro
    March 17, 2006
    78
    0
    I assume this
    Code:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Remoting.RemotingException: The method 'GetPlaylist' was not found on the interface/type 'clr:ECP2Assembly.MPHandler, ECP2Assembly'.
       at System.Runtime.Remoting.Messaging.MethodCall.SetObjectFromSoapData(SerializationInfo info)
       at System.Runtime.Remoting.Messaging.MethodCall.SetObjectData(SerializationInfo info, StreamingContext context)
       at System.Runtime.Remoting.Messaging.MethodCall.RootSetObjectData(SerializationInfo info, StreamingContext ctx)
       at System.Runtime.Remoting.Messaging.SerializationMonkey..ctor(SerializationInfo info, StreamingContext ctx)
       --- End of inner exception stack trace ---
    
    Server stack trace: 
       at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
       at System.RuntimeMethodHandle.SerializationInvoke(Object target, SignatureStruct declaringTypeSig, SerializationInfo info, StreamingContext context)
       at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
       at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
       at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
       at System.Runtime.Serialization.ObjectManager.DoFixups()
       at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
       at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
       at System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoapRequestMessage(Stream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel securityLevel)
       at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    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.GetPlaylist(String PlayListType)
       at MPECP2WS.ECP2WS.GetPlaylistItems(String playlistType)
    is a known bug on several of the webservice calls?

    I think I pretty much settled on using the MP Web Services interface for my project, extending controlability of MP through a web interface...

    As long as all the calls in the webservice work (currently it seems many are crashing with similar errors to the above - known issue I think?) I should be able to get a lot done... other things I guess I'll have to request to the webinterface developers...

    I hope we can get it to work eventally... hopefully...

    cheers
     

    RoyN

    Portal Pro
    March 17, 2006
    78
    0
    just a small report, in case no one has notices, despite the actions seeming to work, action 14 doesnt work (Next Item)... acition 15 DOES work, (prev item), but 14 doesnt...

    I'm also having problems with ActivateWindow WindowID->0, it gives me an error, I assume this function would make MP go to the main menu, but is broken...

    Is there any status on when the webservice can be brought back to life? I'd love to code heavily on top of it ;)
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    RoyN: The web service has been updated since, however as we're waiting for MP to release MP 0.2, we haven't committed the updated version to SVN yet (no new features allowed now, only bug fixes - the current version of ECP2Assembly is not in the SVN).

    Sam
    p.s. damn its hard trying to get use to typing SVN instead of CVS :lol:
     

    Users who are viewing this thread

    Top Bottom