WifiRemote - a tcp remote control server 0.8.3 [2014-07-20] (2 Viewers)

Kevin Penny

Portal Member
January 31, 2014
7
0
44
Canada Canada
Why not use the 'nowplaying' message? It includes much more info about the playing media. I'm not using the 'Title' from the 'status' message myself.
Highlighted is what I mean about 'Title' not being populated right on start

Here is the message once the mp3 starts playing: (note title is "")
Received message: {"Type":"status","IsPlaying":true,"IsPaused":false,"IsPlayerOnTop":false,"Title":"","CurrentModule":"Music/playlist","SelectedItem":"Rihanna - Right Now (feat. David Guetta)","WindowId":500}

Here is the 'nowplaying' message with less relevant Artist - Title information than the final 'status' message below
Received message: {"Type":"nowplaying","Duration":181,"File":"N:\\Music\\Trance\\Compilations\\2013 Mix\\Rihanna\\Unapologetic (Deluxe Version)\\07 Right Now (feat. David Guetta).m4a","Position":0,"IsTv":false,"IsFullscreen":false,"MediaInfo":{"MediaType":"music","MpExtId":"-1","MpExtMediaType":1,"MpExtProviderId":4,"ItemId":-1,"Album":"","AlbumArtist":"","Artist":"","BitRate":0,"BitRateMode":"","BPM":0,"Channels":0,"Codec":"","Comment":"","Composer":"","Conductor":"","DateTimeModified":"\/Date(-62135575200000-0600)\/","DateTimePlayed":"\/Date(-62135575200000-0600)\/","DiscId":0,"DiscTotal":0,"Duration":0,"Genre":"","Lyrics":"","Rating":0,"SampleRate":0,"TimesPlayed":0,"Title":"","Track":0,"TrackTotal":0,"URL":"","WebImage":"","Year":0,"ImageName":""}}

Here is the status message after the now playing message runs through..giving me 'Title' information for the playing track
Received message: {"Type":"status","IsPlaying":true,"IsPaused":false,"IsPlayerOnTop":false,"Title":"Right Now (feat. David Guetta)","CurrentModule":"Music/playlist","SelectedItem":"Rihanna - Right Now (feat. David Guetta)","WindowId":500}
 

johanj

MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    42
    Sweden Sweden
    I use the nowplaying message myself and the MediaInfo.Title. I wonder if the issue is that you use a drive letters instead of UNC shares and that MPExtended do not find the MediaInfo. Do you have MPExtended installed? If so, please configure the share as UNC and run the service with a user account that has access to the share.
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    Why not use the 'nowplaying' message? It includes much more info about the playing media. I'm not using the 'Title' from the 'status' message myself.
    Highlighted is what I mean about 'Title' not being populated right on start
    I guess what you are experiencing is a timing issue. The status message gets the title from the MediaPortal skin: https://github.com//WifiRemote/blob/develop/Sources/WifiRemote/Messages/MessageStatus.cs#L96
    When you press play and the status message is sent the title property in the skin is probably not yet set. We are doing some "delayed" status messages in other parts of WifiRemote, maybe that would be a solution for this problem.


    The nowplaying message is filled with a Song object from MediaPortal that is retrieved by this method: https://github.com/MediaPortal/Medi...Databases/Music/MusicDatabase.Lookups.cs#L400
    Not sure what's happening here in your case because if there was no Song the MediaInfo object should be null, not empty. Do you have any debug log messages that look like this?

    Log.Error("MusicDatabase: Lookups: GetSongByFileName failed - strFileName: {2} - err:{0} stack:{1}", ex.Message,
    ex.StackTrace, strFileName);
     

    rheilgm

    New Member
    April 29, 2014
    1
    0
    30
    Dallas, Texas
    Australia Australia
    Hello there, I planning to create a Remote control app for android using this WifiRemote Plugin, Just want some advice on how to connect via a Websocket? i use phonegap for my app. Any suggestions would be appreciated.
     

    Kevin Penny

    Portal Member
    January 31, 2014
    7
    0
    44
    Canada Canada
    Why not use the 'nowplaying' message? It includes much more info about the playing media. I'm not using the 'Title' from the 'status' message myself.
    Highlighted is what I mean about 'Title' not being populated right on start
    I guess what you are experiencing is a timing issue. The status message gets the title from the MediaPortal skin: https://github.com//WifiRemote/blob/develop/Sources/WifiRemote/Messages/MessageStatus.cs#L96
    When you press play and the status message is sent the title property in the skin is probably not yet set. We are doing some "delayed" status messages in other parts of WifiRemote, maybe that would be a solution for this problem.


    The nowplaying message is filled with a Song object from MediaPortal that is retrieved by this method: https://github.com/MediaPortal/Medi...Databases/Music/MusicDatabase.Lookups.cs#L400
    Not sure what's happening here in your case because if there was no Song the MediaInfo object should be null, not empty. Do you have any debug log messages that look like this?

    Log.Error("MusicDatabase: Lookups: GetSongByFileName failed - strFileName: {2} - err:{0} stack:{1}", ex.Message,
    ex.StackTrace, strFileName);
    I guess I'm not sure how to go about viewing the log - I turned the debugging to ERROR in the Media Portal Configuration but I didn't see where the log was located. I'm also trying to get an 'image' status message and cannot see when that happens while I'm either navigating nor playing mp3's (to invoke an image reference)[DOUBLEPOST=1398829294][/DOUBLEPOST]
    I use the nowplaying message myself and the MediaInfo.Title. I wonder if the issue is that you use a drive letters instead of UNC shares and that MPExtended do not find the MediaInfo. Do you have MPExtended installed? If so, please configure the share as UNC and run the service with a user account that has access to the share.
    I tried running Team Media Portal as 'Administrator' which didn't help. Yes MPExtended is installed.I can try some alternatives regarding permissions etc. But I can get the data i.e. file name etc now.
     

    NewbieFromHell

    Portal Member
    July 10, 2012
    9
    0
    40
    United Kingdom United Kingdom
    Evening, just updated to 1.7 MP and my wifi remote has stopped working :( i have reinstalled a couple of times but nothing is showing up in the process plug-ins

    Code:
    [2014-05-10 19:46:42,455] [Config ] [Config Main] [DEBUG] - PluginsNew: loadPlugins C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\process\WifiRemote.dll
    seems to be loading ok in the configuration log any ideas ??

    also if i try and run the wifi remote config from the MPE installation it crashes, everything else is working just the wifi remote
     

    wonkyd

    Retired Team Member
  • Premium Supporter
  • August 29, 2007
    792
    177
    United Kingdom United Kingdom
    Country flag
    Re: WifiRemote - a tcp remote control server 0.4.1 [2011-08-19]

    After studying the Sourcecode i found a solution for the JIT-Error.

    Got to your Mediaportal "User Files" Folder.

    Open the MediaPortal.xml file with the Editor and delete the whole wifiremote section.

    In my case the section looked as shown here:
    Code:
    <section name="WifiRemote">
        <entry name="port">8017</entry>
        <entry name="disableBonjour">no</entry>
        <entry name="serviceName">WOHNZIMMER-PC</entry>
        <entry name="username">yUQBuXZA91s=</entry>
        <entry name="password">yUQBuXZA91s=</entry>
        <entry name="passcode">yUQBuXZA91s=</entry>
        <entry name="auth">0</entry>
        <entry name="autologinTimeout">0</entry>
        <entry name="savedPlugins">88884|Extra Menu|16002|GeckoBrowser|7972|HTPC Info|16000|InfoService|96742|Moving Pictures|9811|MP-TV Series|5900|My Trailers|88889|Skin Info|196200|StreamedMP Configuration|87258|Trakt|1|TV|88883|Watch Menu|16002|WebBrowser|0|Home|501|Music|2|Pictures|7890|Last.fm Radio|4|Settings|2600|Weather</entry>
        <entry name="ignoredPlugins">-1|0|3005|730716</entry>
      </section>

    After saving the xml File the configuration should work again.
    I'm having this problem with 1.7.1 and WiFi Remote 0.8.2.1, the first time I enter config it works fine but if I try to access it again I get the JIT "An item with the same key has already been added." error. Deleting the entry above from MediaPortal.xml solves the problem but only for the first time I open the plugin config...
     

    wonkyd

    Retired Team Member
  • Premium Supporter
  • August 29, 2007
    792
    177
    United Kingdom United Kingdom
    Country flag
    Re: WifiRemote - a tcp remote control server 0.4.1 [2011-08-19]

    After studying the Sourcecode i found a solution for the JIT-Error.

    Got to your Mediaportal "User Files" Folder.

    Open the MediaPortal.xml file with the Editor and delete the whole wifiremote section.

    In my case the section looked as shown here:
    Code:
    <section name="WifiRemote">
        <entry name="port">8017</entry>
        <entry name="disableBonjour">no</entry>
        <entry name="serviceName">WOHNZIMMER-PC</entry>
        <entry name="username">yUQBuXZA91s=</entry>
        <entry name="password">yUQBuXZA91s=</entry>
        <entry name="passcode">yUQBuXZA91s=</entry>
        <entry name="auth">0</entry>
        <entry name="autologinTimeout">0</entry>
        <entry name="savedPlugins">88884|Extra Menu|16002|GeckoBrowser|7972|HTPC Info|16000|InfoService|96742|Moving Pictures|9811|MP-TV Series|5900|My Trailers|88889|Skin Info|196200|StreamedMP Configuration|87258|Trakt|1|TV|88883|Watch Menu|16002|WebBrowser|0|Home|501|Music|2|Pictures|7890|Last.fm Radio|4|Settings|2600|Weather</entry>
        <entry name="ignoredPlugins">-1|0|3005|730716</entry>
      </section>

    After saving the xml File the configuration should work again.
    I'm having this problem with 1.7.1 and WiFi Remote 0.8.2.1, the first time I enter config it works fine but if I try to access it again I get the JIT "An item with the same key has already been added." error. Deleting the entry above from MediaPortal.xml solves the problem but only for the first time I open the plugin config...
    Looks like it's this line causing the problem

    Code:
    <entry name="savedPlugins">-1|DriveFreeSpace|3001|Play Disc|3001|DVD Shortcut|30885|Search music|0|Home|501|Music|2|Pictures|4|Settings|7777|Sudoku|7776|Tetris|3005|Topbar|6|Videos|31415|IMDbPlus|16000|InfoService|757278|LogoManager|96742|Moving Pictures|9811|MP-TV Series|801|Extensions|4755|OnlineVideos|47286|Rockstar|165100|Titan Skin Updater|30|Radio|1|TV|79770|World Weather Lite</entry>
    removing -1|DriveFreeSpace and possibly 3001|DVD Shortcut so it looks like

    Code:
    <entry name="savedPlugins">3001|Play Disc|30885|Search music|0|Home|501|Music|2|Pictures|4|Settings|7777|Sudoku|7776|Tetris|3005|Topbar|6|Videos|31415|IMDbPlus|16000|InfoService|757278|LogoManager|96742|Moving Pictures|9811|MP-TV Series|801|Extensions|4755|OnlineVideos|47286|Rockstar|165100|Titan Skin Updater|30|Radio|1|TV|79770|World Weather Lite</entry>
    seems to have cured it. Happy days.
     

    CypherMK

    Test Group
  • Team MediaPortal
  • March 11, 2009
    1,735
    617
    Netherlands Netherlands
    Country flag
    @Shukuyen
    Mediaportal crashed when coming from resume today. The crash was caused by wifiremote. Any clue to prevent this from happening again?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 2)

    OP Similar threads Forum Replies Date
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    D PS3 Bluetooth Remote Remotes 1
    henrysinn Remote - W10 Gyro by Pepper Jobs General 8
    G Remote control suggestions? MediaPortal 1 Talk 16
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    F MCE Remote has no focus General 6
    TLD Can not watch tv from remote clients Television (MyTV frontend and TV-Server) 19
    R Problems accessing MySQL database remotely MediaPortal 1 Talk 0
    D Full fuctional htpc - Silverstone Case - Digital Devices Cine S2 - SSD - IR Remote For Sale 1
    N Play a TV recording needs a double selection - twice ok on remote Television (MyTV frontend and TV-Server) 2
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    S Remote button to change audio and subtitle on / off General 10
    S Problem with Remote Control One-for-all Streamer Newcomers Forum 6
    brena MCE Remote Disable Volume Mapping Input / Output interfaces 0
    T How to add missing buttons IR Server Suite (IRSS) 0
    P MP2 TV Server crashes when starting - throws error remoting exception General 2
    A FB funktioniert plötzlich nicht mehr korrekt Allgemeines Supportforum 0
    A Let TV Server sleep whilst remote client active General Support 0
    B TV Remote Watch / Listen Media 0
    B iPhone app for MCE remote General Support 2
    T Can Emprex 3009ARF III MCE Remote Control be used to toggle Fullscreen/Windowed mode?? Remotes 7
    G [solved] Mini EPG purpose? General 2
    N [Proposal] Make text input using remote control easier MediaPortal 2 4
    S Mediaportal 1.22 Pre-Release remote live-tv freezes MediaPortal 1.22 Pre Release 0
    N [Proposal] Make text input possible with remote control in SMS style MediaPortal 2 1
    Similar threads

























    Top Bottom