ZoomPlayer and External Display (1 Viewer)

trosty

MP Donator
  • Premium Supporter
  • October 6, 2004
    161
    0
    Zurich/Switzerland
    Home Country
    Switzerland Switzerland
    Area: Media Portal Program
    MediaPortal Version: 0.2.0.0 RC3 (2006-03-18)
    MediaPortal Skin: BlueTwo
    Windows Version: Windows XP (SP2)
    .NET CLR Version: 2.0.50727
    DirectX Version: 4.09.00.0904 (9.0c)
    Audio Codec: MPEG/AC3/DTS/LPCM Audio Decoder
    Video Codec: Mpeg2Dec Filter
    CPU Type: AMD Athlon XP 2600+
    Memory: 512 MB
    Motherboard: A7N8X-E (ASUSTeK Computer INC.)
    TV Card Model: -
    TV Card Type: -
    TV Card Driver: -
    Video Card Model: Radeon 9600 Series (128 MB)
    Video Card Driver: -
    Video Card Resolution: 1024x768
    Video Render Type: -
    Audio Card Model: CMI8738/C3DX PCI Audio Device
    Audio Card Driver: -
    Synopsis:: -
    _______________________________________________

    I am using Zoom Player as external videoplayer and really like it. As I also have an external display installed I would like to have a few properties displayed on it but I cannot figure out how to get the properties out of Zoom Player (just like on the on screen display).

    I would like to have the following properties displayed (original propertynames in brackets):
    - current playingtime of the movie (#currentplaytime)
    - total time of the movie (#duration)
    - title (#title)

    Doe anybody more familiar with Zoom Player have a clue how to get that information out of ZP onto my display? Thanks in advance!
     

    trosty

    MP Donator
  • Premium Supporter
  • October 6, 2004
    161
    0
    Zurich/Switzerland
    Home Country
    Switzerland Switzerland
    After some timeconsuming research on the web I found an application for ZoomPlayer to communicate with external prorams (ZP Communication Interface). But because I am a total noob to programming (besides some html-knowledge - that why I at least understand what the xml-files do) I need some help to get ist done.

    This is what the application does and gives as output:

    Code:
    * Messages Sent by Zoom Player:
    
     When the SendMessage interface is used, the message number is returned
     on the "WParam" value and the message content is returned on the "LParam"
     value.  If the LParam contain a string, it is stored as an ATOM String.
    
     When the TCP interface is used, the message number is always returned/sent
     as a 4-digit code. The message content is seperated by a space character
     following the message number.  All content is string based and UTF-8
     encoded to preserve country specific text codes.
    
     When sending Zoom Player TCP commands, make sure to terminate each
     command with CRLF (Ascii #13#10)..
    
     The default TCP/IP port is 4769, but a user can change it under
     Advanced Options / Values / Interface.
    
     External Messages (ZP -> Program, TCP/IP or SendMessage):
    
     [WParam]                             | [LParam]
     -------------------------------------+----------------------------------------------
     0000 - Application Name              | String describing the Application
     0001 - Application Version           | String with the version text
     1000 - State Change                  | 0  - Closed
                                            1  - Stopped (doesn't apply to DVD,
                                                          DVD Stop = Closed)
                                            2  - Paused
                                            3  - Playing
     1010 - Current Fullscreen State      | 0  - Windowed
                                            1  - Fullscreen
     1020 - Current FastForward State     | 0  - Disabled
                                            1  - Enabled
     1021 - Current Rewind State          | 0  - Disabled
                                            1  - Enabled
     1100 - TimeLine update               | String containing timeline data
     1110 - Current Duration              | Current Duration in milliseconds
     1120 - Current Position              | Current Position in milliseconds
     1200 - OSD Message                   | String containing the OSD message
     1201 - OSD Message Off               | No value, message just tells that the OSD
                                            has disappeared
     1300 - Current Play Mode             | 0  - DVD Mode
                                            1  - Media Mode
                                            2  - Audio Mode
     1310 - TV/PC Mode                    | 0  - PC Mode
                                            1  - TV Mode (unused)
     1400 - DVD Title Change              | Current Title
     1401 - DVD Title Count               | Number of Titles
     1410 - DVD Domain Change             | See EC_DVD_DOMAIN_CHANGE in DirectX SDK
     1420 - DVD Menu Mode                 | 0  - Not in a Menu
                                          | 1  - In a Menu
     1450 - DVD Unique String             | Returns a unique DVD indentifer
     1500 - DVD Chapter Change            | Current Chapter
     1501 - DVD Chapter Count             | Number of Chapters
     1600 - DVD Audio Change              | Current Audio Track
     1601 - DVD Audio Count               | Number of Audio Tracks
     1602 - DVD Audio Name                | Contains the name of the Audio track and a
                                            padded number for example "001 5.1 AC3"
     1700 - DVD Sub Change                | Current Subtitle Track
     1701 - DVD Sub Count                 | Number of Subtitle Tracks
     1702 - DVD Sub Name                  | Contains the name of the Subtitle track and a
                                            padded number for example "001 5.1 AC3"
     1704 - DVD Sub Disabled              | 0 - Sub Visible
                                          | 1 - Sub Hidden
     1750 - DVD Angle Change              | Current Angle
     1751 - DVD Angle Count               | Number of Angles in the DVD Title 
     1800 - Currently Loaded File         | String containing file name
     1810 - Current Play List             | String containing the Zoom Player Play List
                                            structure.  Each entry is separated by the
                                            ">" character.  Each entry is sub-divided
                                            into additional information:
                                            |N .. |n - Name
                                            |E .. |e - Extension
                                            |D .. |d - Date
                                            |S .. |s - Size
                                            |P .. |p - Path
                                            |R .. |r - Duration
                                            |F .. |f - Forced Duration
                                            It is possible addtional tags will be used
                                            in future version, so code safely.
     1855 - End of File                   | End of file has been reached
     1900 - File PlayList Pos             | String containing file
                                            position in play list
     2000 - Video Resolution              | String containing the
                                            video resolution (if there is one)
     2100 - Video Frame Rate              | String containing the
                                            video frame rate (if there is one)
     2200 - AR Change                     | String containing the AR String
                                            (same as OSD message)
     2210 - DVD AR Mode Change            | 0  - Unknown
                                            1  - Full-Frame
                                            2  - Letterbox
                                            3  - Anamorphic
     2300 - Current Audio Volume          | The current Audio Volume
     2400 - Media Content Tags            | Returns Media Content Strings
                                            (ID3/APE/WMA/Etc... Tags)
     2500 - A CD/DVD Was Inserted         | Returns path to drive the disc was inserted to
     3000 - ZP Error Message              | String of error messsage
                                            Note that there can be multiple errors
                                            appearing in sequence, only the last
                                            error may be visible by the user.
     3100 - Nav Dialog Opened             | A Navigator Dialog has opened
                                             0 - Blanking Navigator
                                             1 - Chapter Navigator
                                             2 - Context Navigator
                                             3 - File Navigator
                                             4 - GoTo Navigator
                                             5 - Media Library Navigator
                                             6 - MouseWheel Navigator
                                             7 - Color Control Navigator
                                             8 - Play List Navigator
                                             9 - Resize Navigator
                                            10 - Station Navigator
                                            11 - Web URL Navigator
     3110 - Nav Dialog Closed             | A Navigator Dialog has closed
                                            (Values are the same as #3100)
     3200 - Screen Saver Mode             | The ZP Screen Saver has:
                                            0 - Started
                                            1 - Ended
     5100 - ZP Function Called            | Value contains name of function
     5110 - ZP ExFunction Called          | Value contains name of function
     5120 - ZP ScanCode Called            | Value contains ScanCode.
    
    
    
    * Getting additional information:
    
     Message Number : [WM_APP+50]
    
     Send the message with one of the following parameters in the LParam field (hex):
    
      ZP_GetFileName    = $1000;
      ZP_GetDuration    = $1010;
      ZP_GetPosition    = $1020;
      ZP_GetMode        = $1030;
      ZP_GetState       = $1040;
      ZP_GetPlayIndex   = $1050;
    
     The return value of the message will be an integer value with the current
     state (with the exception of "ZP_GetFileName" which returns an atom to a
     string containing the file name, make sure to deallocate the atom).

    Now I would like to translate the information (ZP_GetFilename, ZP_GetPosition and ZP_GetDuration) into an xml-file so I can get it on the display. How is that possible? Some advice by a programmer/develop would be grealy appreciated, I am also thankfull for some helpfull links!

    Thanks a lot in advance!
     

    Users who are viewing this thread

    Top Bottom