home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Codecs, External Players
ZoomPlayer and External Display
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="trosty" data-source="post: 46784" data-attributes="member: 10439"><p>After some timeconsuming research on the web I found an application for ZoomPlayer to communicate with external prorams (<a href="http://www.inmatrix.com/zplayer/comm.shtml" target="_blank">ZP Communication Interface</a>). 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.</p><p></p><p>This is what the application does and gives as output:</p><p></p><p>[code]* Messages Sent by Zoom Player:</p><p></p><p> When the SendMessage interface is used, the message number is returned</p><p> on the "WParam" value and the message content is returned on the "LParam"</p><p> value. If the LParam contain a string, it is stored as an ATOM String.</p><p></p><p> When the TCP interface is used, the message number is always returned/sent</p><p> as a 4-digit code. The message content is seperated by a space character</p><p> following the message number. All content is string based and UTF-8</p><p> encoded to preserve country specific text codes.</p><p></p><p> When sending Zoom Player TCP commands, make sure to terminate each</p><p> command with CRLF (Ascii #13#10)..</p><p></p><p> The default TCP/IP port is 4769, but a user can change it under</p><p> Advanced Options / Values / Interface.</p><p></p><p> External Messages (ZP -> Program, TCP/IP or SendMessage):</p><p></p><p> [WParam] | [LParam]</p><p> -------------------------------------+----------------------------------------------</p><p> 0000 - Application Name | String describing the Application</p><p> 0001 - Application Version | String with the version text</p><p> 1000 - State Change | 0 - Closed</p><p> 1 - Stopped (doesn't apply to DVD,</p><p> DVD Stop = Closed)</p><p> 2 - Paused</p><p> 3 - Playing</p><p> 1010 - Current Fullscreen State | 0 - Windowed</p><p> 1 - Fullscreen</p><p> 1020 - Current FastForward State | 0 - Disabled</p><p> 1 - Enabled</p><p> 1021 - Current Rewind State | 0 - Disabled</p><p> 1 - Enabled</p><p> 1100 - TimeLine update | String containing timeline data</p><p> 1110 - Current Duration | Current Duration in milliseconds</p><p> 1120 - Current Position | Current Position in milliseconds</p><p> 1200 - OSD Message | String containing the OSD message</p><p> 1201 - OSD Message Off | No value, message just tells that the OSD</p><p> has disappeared</p><p> 1300 - Current Play Mode | 0 - DVD Mode</p><p> 1 - Media Mode</p><p> 2 - Audio Mode</p><p> 1310 - TV/PC Mode | 0 - PC Mode</p><p> 1 - TV Mode (unused)</p><p> 1400 - DVD Title Change | Current Title</p><p> 1401 - DVD Title Count | Number of Titles</p><p> 1410 - DVD Domain Change | See EC_DVD_DOMAIN_CHANGE in DirectX SDK</p><p> 1420 - DVD Menu Mode | 0 - Not in a Menu</p><p> | 1 - In a Menu</p><p> 1450 - DVD Unique String | Returns a unique DVD indentifer</p><p> 1500 - DVD Chapter Change | Current Chapter</p><p> 1501 - DVD Chapter Count | Number of Chapters</p><p> 1600 - DVD Audio Change | Current Audio Track</p><p> 1601 - DVD Audio Count | Number of Audio Tracks</p><p> 1602 - DVD Audio Name | Contains the name of the Audio track and a</p><p> padded number for example "001 5.1 AC3"</p><p> 1700 - DVD Sub Change | Current Subtitle Track</p><p> 1701 - DVD Sub Count | Number of Subtitle Tracks</p><p> 1702 - DVD Sub Name | Contains the name of the Subtitle track and a</p><p> padded number for example "001 5.1 AC3"</p><p> 1704 - DVD Sub Disabled | 0 - Sub Visible</p><p> | 1 - Sub Hidden</p><p> 1750 - DVD Angle Change | Current Angle</p><p> 1751 - DVD Angle Count | Number of Angles in the DVD Title </p><p> 1800 - Currently Loaded File | String containing file name</p><p> 1810 - Current Play List | String containing the Zoom Player Play List</p><p> structure. Each entry is separated by the</p><p> ">" character. Each entry is sub-divided</p><p> into additional information:</p><p> |N .. |n - Name</p><p> |E .. |e - Extension</p><p> |D .. |d - Date</p><p> |S .. |s - Size</p><p> |P .. |p - Path</p><p> |R .. |r - Duration</p><p> |F .. |f - Forced Duration</p><p> It is possible addtional tags will be used</p><p> in future version, so code safely.</p><p> 1855 - End of File | End of file has been reached</p><p> 1900 - File PlayList Pos | String containing file</p><p> position in play list</p><p> 2000 - Video Resolution | String containing the</p><p> video resolution (if there is one)</p><p> 2100 - Video Frame Rate | String containing the</p><p> video frame rate (if there is one)</p><p> 2200 - AR Change | String containing the AR String</p><p> (same as OSD message)</p><p> 2210 - DVD AR Mode Change | 0 - Unknown</p><p> 1 - Full-Frame</p><p> 2 - Letterbox</p><p> 3 - Anamorphic</p><p> 2300 - Current Audio Volume | The current Audio Volume</p><p> 2400 - Media Content Tags | Returns Media Content Strings</p><p> (ID3/APE/WMA/Etc... Tags)</p><p> 2500 - A CD/DVD Was Inserted | Returns path to drive the disc was inserted to</p><p> 3000 - ZP Error Message | String of error messsage</p><p> Note that there can be multiple errors</p><p> appearing in sequence, only the last</p><p> error may be visible by the user.</p><p> 3100 - Nav Dialog Opened | A Navigator Dialog has opened</p><p> 0 - Blanking Navigator</p><p> 1 - Chapter Navigator</p><p> 2 - Context Navigator</p><p> 3 - File Navigator</p><p> 4 - GoTo Navigator</p><p> 5 - Media Library Navigator</p><p> 6 - MouseWheel Navigator</p><p> 7 - Color Control Navigator</p><p> 8 - Play List Navigator</p><p> 9 - Resize Navigator</p><p> 10 - Station Navigator</p><p> 11 - Web URL Navigator</p><p> 3110 - Nav Dialog Closed | A Navigator Dialog has closed</p><p> (Values are the same as #3100)</p><p> 3200 - Screen Saver Mode | The ZP Screen Saver has:</p><p> 0 - Started</p><p> 1 - Ended</p><p> 5100 - ZP Function Called | Value contains name of function</p><p> 5110 - ZP ExFunction Called | Value contains name of function</p><p> 5120 - ZP ScanCode Called | Value contains ScanCode.</p><p></p><p></p><p></p><p>* Getting additional information:</p><p></p><p> Message Number : [WM_APP+50]</p><p></p><p> Send the message with one of the following parameters in the LParam field (hex):</p><p></p><p> ZP_GetFileName = $1000;</p><p> ZP_GetDuration = $1010;</p><p> ZP_GetPosition = $1020;</p><p> ZP_GetMode = $1030;</p><p> ZP_GetState = $1040;</p><p> ZP_GetPlayIndex = $1050;</p><p></p><p> The return value of the message will be an integer value with the current</p><p> state (with the exception of "ZP_GetFileName" which returns an atom to a</p><p> string containing the file name, make sure to deallocate the atom).[/code]</p><p></p><p>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!</p><p></p><p>Thanks a lot in advance!</p></blockquote><p></p>
[QUOTE="trosty, post: 46784, member: 10439"] After some timeconsuming research on the web I found an application for ZoomPlayer to communicate with external prorams ([url=http://www.inmatrix.com/zplayer/comm.shtml]ZP Communication Interface[/url]). 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).[/code] 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! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Codecs, External Players
ZoomPlayer and External Display
Contact us
RSS
Top
Bottom