URL to send remote control commands to a DMP

Answered Question
Sep 8th, 2010

Hello. Could anyone tell me what commands you should send over port 7777 to a stand alone DMP to emulate someone pressing buttons on a remote control in front of the DMP?

I have this problem too.
0 votes
Correct Answer by Tomas De Leon about 3 years 6 months ago

You can use DMP MIBs to execute or simulate the DMP Remote Buttons.


VARIABLES

=========

admin           = DMP Web Account Username

default         = DMP Web Account Password

a.b.c.d         = IP Address of DMP

dmm.company.com = FQDN of the Digital Media Manager(DMM) Appliance


MIBS

====

** Use the Following MIB to see the CURRENT Remote Control Mappings

https://admin:default@a.b.c.d:7777/get_param?p=irasrv.key*



============================================================================================

              DEFAULT REMOTE CONTROL MAPPINGS FOR DIGITAL MEDIA PLAYERS

============================================================================================


irasrv.key_BLUE T_STRING ira add 1 xfake 1 BLUE                    b

irasrv.key_YELLOW T_STRING ira add 1 xfake 1 YELLOW                y

irasrv.key_GREEN T_STRING ira add 1 xfake 1 GREEN                  g

irasrv.key_RED T_STRING ira add 1 xfake 1 RED                      r

irasrv.key_MENU T_STRING ira add 1 xfake 1 MENU                    m

irasrv.key_EXIT T_STRING ira add 1 xfake 1 EXIT                    h

irasrv.key_INPUT T_STRING ira add 1 xfake 1 INPUT                  i

irasrv.key_REWIND T_STRING ira add 1 xfake 1 REWIND                e

irasrv.key_FAST_FORWARD T_STRING ira add 1 xfake 1 FAST_FORWARD    d

irasrv.key_STOP T_STRING ira add 1 xfake 1 STOP                    Escape

irasrv.key_PAUSE T_STRING ira add 1 xfake 1 PAUSE                  p

irasrv.key_PLAY T_STRING ira add 1 xfake 1 PLAY                    a

irasrv.key_SHOW_IP T_STRING ira add 1 sh    1 SHOW_IP              mn mng start showip 7000

irasrv.key_VOLUME_DOWN T_STRING ira add 1 init  1 VOLUME_DOWN      voldown

irasrv.key_VOLUME_UP T_STRING ira add 1 init  1 VOLUME_UP          volup

irasrv.key_RIGHT T_STRING ira add 1 xfake 1 RIGHT                  Right

irasrv.key_LEFT T_STRING ira add 1 xfake 1 LEFT                    Left

irasrv.key_DOWN T_STRING ira add 1 xfake 1 DOWN                    Down

irasrv.key_UP T_STRING ira add 1 xfake 1 UP                        Up

irasrv.key_CHAN_DOWN T_STRING ira add 1 xfake 1 CHAN_DOWN          Next

irasrv.key_CHAN_UP T_STRING ira add 1 xfake 1 CHAN_UP              Prior

irasrv.key_ENTER T_STRING ira add 1 xfake 1 ENTER                  Return

irasrv.key_MUTE T_STRING ira add 1 init  1 MUTE                    mute

irasrv.key_POWER T_STRING ira add 1 sh    1 POWER                  mn mng exit


SAMPLE MIBS - HTTP commands to simulate remote control

--------------------------------------------------------------------------------------------

SAMPLE MIBS - HTTP commands to simulate remote control

--------------------------------------------------------------------------------------------

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+b

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+y

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+g

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+r

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+m

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+h

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+i

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+e

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+d

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Escape

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+p

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+a

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Right

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Left

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Down

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Up

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Up

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Next

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Prior

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Return

If this answers your question, Please take time to mark this

discussion answered & rate the response.


Thank You!


T.

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (5 ratings)
Tomas De Leon Wed, 09/08/2010 - 12:39

David,


What exactly are you trying to accomplish?  What is your end game for

wanting to do this.


The remote control feature is supported with the actual hardware remote

and remote access via an iphone, itouch, or mobile device via a web app.


The DMP remote controls are not support via the desktop via a browser.

That said you can play around with the app from the desktop but the

button mappings may not operate as you would expect (not supported)

but it does function.


Applet should be reachable via

http://dmm.company.com:8080/etv-remotecontrol-webapp/app/dmpSelector.htm



Cheers!


T.

dcjones99 Thu, 09/09/2010 - 06:24

I am trying to create an advanced task in DMM that sends a DMP or group of DMPs into ETV mode, and then emulates the pressing of 'ENTER' three times on the remote control so that the TV is taken to channel 1 in full screen.

I have the command set up to set the DMP to ETV mode, and the command for inserting pauses, but not the command to actually emulate the enter button on the remote control.

We are doing is because, in our building, we often find that we set DMPs to ETV mode and then they don't get used for days. The ETV front menu causes us burn in problems with our TVs.

Also, in the longer term, we'd like to develop an in house application which can be used to control a TV while it is in ETV mode, and it would be useful to know what commands can be used to emulate the remote control button presses.

dcjones99 Sun, 10/03/2010 - 05:01

Hi: was wondering if anyone is able to answer this question, or knows where it might be documented?

Correct Answer
Tomas De Leon Sun, 10/03/2010 - 11:24

You can use DMP MIBs to execute or simulate the DMP Remote Buttons.


VARIABLES

=========

admin           = DMP Web Account Username

default         = DMP Web Account Password

a.b.c.d         = IP Address of DMP

dmm.company.com = FQDN of the Digital Media Manager(DMM) Appliance


MIBS

====

** Use the Following MIB to see the CURRENT Remote Control Mappings

https://admin:default@a.b.c.d:7777/get_param?p=irasrv.key*



============================================================================================

              DEFAULT REMOTE CONTROL MAPPINGS FOR DIGITAL MEDIA PLAYERS

============================================================================================


irasrv.key_BLUE T_STRING ira add 1 xfake 1 BLUE                    b

irasrv.key_YELLOW T_STRING ira add 1 xfake 1 YELLOW                y

irasrv.key_GREEN T_STRING ira add 1 xfake 1 GREEN                  g

irasrv.key_RED T_STRING ira add 1 xfake 1 RED                      r

irasrv.key_MENU T_STRING ira add 1 xfake 1 MENU                    m

irasrv.key_EXIT T_STRING ira add 1 xfake 1 EXIT                    h

irasrv.key_INPUT T_STRING ira add 1 xfake 1 INPUT                  i

irasrv.key_REWIND T_STRING ira add 1 xfake 1 REWIND                e

irasrv.key_FAST_FORWARD T_STRING ira add 1 xfake 1 FAST_FORWARD    d

irasrv.key_STOP T_STRING ira add 1 xfake 1 STOP                    Escape

irasrv.key_PAUSE T_STRING ira add 1 xfake 1 PAUSE                  p

irasrv.key_PLAY T_STRING ira add 1 xfake 1 PLAY                    a

irasrv.key_SHOW_IP T_STRING ira add 1 sh    1 SHOW_IP              mn mng start showip 7000

irasrv.key_VOLUME_DOWN T_STRING ira add 1 init  1 VOLUME_DOWN      voldown

irasrv.key_VOLUME_UP T_STRING ira add 1 init  1 VOLUME_UP          volup

irasrv.key_RIGHT T_STRING ira add 1 xfake 1 RIGHT                  Right

irasrv.key_LEFT T_STRING ira add 1 xfake 1 LEFT                    Left

irasrv.key_DOWN T_STRING ira add 1 xfake 1 DOWN                    Down

irasrv.key_UP T_STRING ira add 1 xfake 1 UP                        Up

irasrv.key_CHAN_DOWN T_STRING ira add 1 xfake 1 CHAN_DOWN          Next

irasrv.key_CHAN_UP T_STRING ira add 1 xfake 1 CHAN_UP              Prior

irasrv.key_ENTER T_STRING ira add 1 xfake 1 ENTER                  Return

irasrv.key_MUTE T_STRING ira add 1 init  1 MUTE                    mute

irasrv.key_POWER T_STRING ira add 1 sh    1 POWER                  mn mng exit


SAMPLE MIBS - HTTP commands to simulate remote control

--------------------------------------------------------------------------------------------

SAMPLE MIBS - HTTP commands to simulate remote control

--------------------------------------------------------------------------------------------

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+b

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+y

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+g

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+r

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+m

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+h

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+i

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+e

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+d

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Escape

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+p

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+a

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Right

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Left

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Down

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Up

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Up

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Next

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Prior

https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+Return

If this answers your question, Please take time to mark this

discussion answered & rate the response.


Thank You!


T.

dcjones99 Mon, 10/04/2010 - 05:01

That works - thank you. I have marked the question as answered.

I have a follow up which is about putting a pause into a System Task.

I have created a System Task on the DMM with the following request:

init.BROWSER_CMD=file:///LOGO/index.html&init.TVZILLA_URL=&init.STARTUP_URL=&mib.save=1&init.BROWSER_CMD=http://x.x.x.x:8080/etv-flash-webapp/app/etv_24_.htm&mng.command=write+sh+FG+sleep+15&mng.command=write+xfake+Return&mng.command=write+xfake+Return&mng.command=write+xfake+Return

I think this task should do the following:

  1. Stop all applications running on the DMP
  2. Launch the ETV app
  3. Wait for 15 seconds (to give the ETV app time to start)
  4. Emulate the 'Enter' button on the remote control being pressed three times (so that the DMP ends up displaying the first channel in the ETV app in full screen)

The problem is that the 15 second pause seems to happen before the ETV app launches, rather than after, despite it being after in the request string.

I'm wondering if there is a better technique for doing this?

David

Tomas De Leon Mon, 10/04/2010 - 08:30

David,


I remember correctly, the reason why you wanted to do this is because you didn't

want the CAST menu displaying in an area for an extended period on time to prevent

burn in.


I would suggest playing a playlist or video by default first and then configure one

of the remote's colored buttons to activate CAST.


This way the DMP is displaying some DEFAULT content for viewing when

folks are not around.  This will avoid burn in.  Then when folks come in

and want to use CAST, they simply hit RED button to enable CAST

then you can set the BLUE button to GOTO the default content.


I hope this helps!


T.


EXAMPLE:


ASSIGN A BUTTON TO CAST

https://admin:default@a.b.c.d:7777/set_param?irasrv.key_RED=ira%20add%201%20sh%201%20RED%20bg%20wget%20-q%20%22localhost%3a7777%2Fset_param%3Finit.BROWSER_CMD%3Dhttp://dmm.company.com:8080/etv-flash-webapp/app/etv_24_.htm%22


where:


VARIABLES

=========

  admin           = DMP Web Account Username

  default         = DMP Web Account Password

  a.b.c.d         = IP Address of DMP

  dmm.company.com = FQDN of the Digital Media Manager(DMM) Appliance



** Use the Following MIB to see the NEW CONFIGURED Remote Mappings


https://admin:default@a.b.c.d:7777/get_param?p=*.*&init.pop_enable=false



** Save NEW CONFIGURED Remote Mappings on DMP


   -> Use the ADVANCED TASK to SAVE the DMP Settings.

   -> or Directly on the DMP using the DMP-DM Web Admin

   -> or HTTP MIB

         ie.

         https://admin:default@a.b.c.d:7777/set_param?mib.save=1

         https://admin:default@a.b.c.d:7777/set_param?mib.save=1&mng.reboot=1

chrisvanhorn Thu, 05/17/2012 - 07:53

This is great Tomas, very helpful.

However a little trouble understanding how to get non-default xfake commands mapped and issued.

Example, above we see:

irasrv.key_SHOW_IP T_STRING ira add 1 sh    1 SHOW_IP              mn mng start showip 7000

Yet no default xfake map to issue via HTTPS - any assistance on syntax for issuing such a command? Would the same syntax apply with commands such as Mute or Power (although mng.reboot=1 works great to restart)?

sdhanral Thu, 05/17/2012 - 08:11

Chris,

Could you please explain the end goal of what exactly are you trying to do ? When you say non-default xfake command , what exactly are you thinking about ? Something like switching between Digital Signs to Cast and vice-versa with a remote key ?

Sagar Dhanrale

chrisvanhorn Thu, 05/17/2012 - 08:24

Sagar,

Sure - really trying to get HTTPS commands for every button to be able to quickly and remotely issue commands as needed.

So when we issue (example) https://admin:default@a.b.c.d:7777/set_param?mng.command=write+xfake+b ..

The DMP receives "blue button pressed" - right?

Problem is how do I achieve this fake button press via web request for SHOW_IP, Power, Mute and others that I don't see write+xfake+COMMAND above?

So the simple question: what is the URL to issue SHOW_IP , Power , Mute commands to a DMP?

chrisvanhorn Thu, 05/17/2012 - 09:13

Great! Thank you - I see now,

irasrv.key_SHOW_IP T_STRING ira add 1 sh    1 SHOW_IP              mn mng start showip 7000

Shows that ma mng start showip 7000 becomes mng.command=start+showip+7000 - perfect now I understand how to turn all options into HTTPS issued commands.

sdhanral Thu, 05/17/2012 - 09:27

Here it is , if it helps :

"Show IP" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=start+showip+7000"

"Mute" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+mute"

"Play" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+a"

"Pause" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+p"

"Stop" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Escape"

"Fast Forward" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+d"

"Rewind" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+e"

"Input" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+i"

"Exit" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+h"

"Menu" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+m"

"RED" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+r"

"GREEN" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+g"

"YELLOW" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+y"

"BLUE" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+b"

"LEFT" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Left"

"DOWN" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Down"

"RIGHT" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Right"

"UP" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Up"

"Volume Down" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+voldown"

"Volume Up" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+volup"

"Enter" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Return"

"Channel Down" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Next"

"Channel Up" ="https://admin:DMP_Password@DMP_IP:7777/set_param?mng.command=write+xfake+Prior"

chrisvanhorn Fri, 05/18/2012 - 08:58

Great, thank you - what about on the DMP 4310?

Since there is no browser, how would we send command to SHOW IP or PAUSE to the 4310?

sdhanral Fri, 05/18/2012 - 09:53

Chris,

The DMP 4310 does not have a browser client to render the HTTP content but it does have an internal Web server . The commands will work for the DMP 4310.

Sagar Dhanrale

chrisvanhorn Fri, 05/18/2012 - 09:57

Hmm ok - not able to get any of them (except reboot) to function on the 4310. I know it isn't a network issue because the reboot command works, no response from any other command though including SHOW_IP (which would assume it would work because it's not a fake command but an issued command like reboot).

I'm running some custom flash locally, on startup loading file:///tmp/ftproot/usb_1/flash.swf which plays fine. Do I need to include the CiscoCraft MediaPlayer API in order to re-map and use the commands?

My get_param?p=irasrv.key* is as follows:

irasrv.key_INFO     T_STRING     ira add 1 ciscocraft 1 INFO dispatchKey{value=16777235}
irasrv.key_SKIP_FORWARD     T_STRING     ira add 1 ciscocraft 1 SKIP_FORWARD dispatchKey{value=16777228}
irasrv.key_LAST     T_STRING     ira add 1 ciscocraft 1 LAST dispatchKey{value=16777233}
irasrv.key_ZERO     T_STRING     ira add 1 ciscocraft 1 ZERO dispatchKey{value=58}
irasrv.key_NINE     T_STRING     ira add 1 ciscocraft 1 NINE dispatchKey{value=57}
irasrv.key_EIGHT     T_STRING     ira add 1 ciscocraft 1 EIGHT dispatchKey{value=56}
irasrv.key_SEVEN     T_STRING     ira add 1 ciscocraft 1 SEVEN dispatchKey{value=55}
irasrv.key_SIX     T_STRING     ira add 1 ciscocraft 1 SIX dispatchKey{value=54}
irasrv.key_FIVE     T_STRING     ira add 1 ciscocraft 1 FIVE dispatchKey{value=53}
irasrv.key_FOUR     T_STRING     ira add 1 ciscocraft 1 FOUR dispatchKey{value=52}
irasrv.key_THREE     T_STRING     ira add 1 ciscocraft 1 THREE dispatchKey{value=51}
irasrv.key_TWO     T_STRING     ira add 1 ciscocraft 1 TWO dispatchKey{value=50}
irasrv.key_ONE     T_STRING     ira add 1 ciscocraft 1 ONE dispatchKey{value=49}
irasrv.key_HELP     T_STRING     ira add 1 ciscocraft 1 HELP showIP{}
irasrv.key_SHOW_IP     T_STRING     ira add 1 ciscocraft    1 SHOW_IP      showIP{}
irasrv.key_RIGHT     T_STRING     ira add 1 ciscocraft 1 RIGHT dispatchKey{value=4194343}
irasrv.key_LEFT     T_STRING     ira add 1 ciscocraft 1 LEFT dispatchKey{value=4194341}
irasrv.key_DOWN     T_STRING     ira add 1 ciscocraft 1 DOWN dispatchKey{value=4194344}
irasrv.key_UP     T_STRING     ira add 1 ciscocraft 1 UP dispatchKey{value=4194342}
irasrv.key_PAGE_DOWN     T_STRING     ira add 1 ciscocraft 1 PAGE_DOWN dispatchKey{value=4194338}
irasrv.key_PAGE_UP     T_STRING     ira add 1 ciscocraft 1 PAGE_UP dispatchKey{value=4194337}
irasrv.key_VOLUME_DOWN     T_STRING     ira add 1 ciscocraft    1 VOLUME_DOWN  decVolume{}
irasrv.key_VOLUME_UP     T_STRING     ira add 1 ciscocraft    1 VOLUME_UP    incVolume{}
irasrv.key_CHAN_DOWN     T_STRING     ira add 1 ciscocraft 1 CHAN_DOWN dispatchKey{value=16777221}
irasrv.key_CHAN_UP     T_STRING     ira add 1 ciscocraft 1 CHAN_UP dispatchKey{value=16777220}
irasrv.key_ENTER     T_STRING     ira add 1 ciscocraft 1 ENTER dispatchKey{value=4194317}
irasrv.key_BLUE     T_STRING     ira add 1 ciscocraft 1 BLUE dispatchKey{value=6777250}
irasrv.key_YELLOW     T_STRING     ira add 1 ciscocraft 1 YELLOW dispatchKey{value=16777249}
irasrv.key_GREEN     T_STRING     ira add 1 ciscocraft 1 GREEN dispatchKey{value=16777248}
irasrv.key_RED     T_STRING     ira add 1 ciscocraft 1 RED dispatchKey{value=16777247}
irasrv.key_GUIDE     T_STRING     ira add 1 ciscocraft 1 GUIDE dispatchKey{value=16777236}
irasrv.key_MENU     T_STRING     ira add 1 ciscocraft 1 MENU dispatchKey{value=16777234}
irasrv.key_EXIT     T_STRING     ira add 1 ciscocraft 1 EXIT dispatchKey{value=16777237}
irasrv.key_INPUT     T_STRING     ira add 1 ciscocraft 1 INPUT dispatchKey{value=16777243}
irasrv.key_REWIND     T_STRING     ira add 1 ciscocraft 1 REWIND dispatchKey{value=16777227}
irasrv.key_FAST_FORWARD     T_STRING     ira add 1 ciscocraft 1 FAST_FORWARD dispatchKey{value=16777226}
irasrv.key_STOP     T_STRING     ira add 1 ciscocraft 1 STOP dispatchKey{value=16777225}
irasrv.key_PAUSE     T_STRING     ira add 1 ciscocraft 1 PAUSE dispatchKey{value=16777224}
irasrv.key_PLAY     T_STRING     ira add 1 ciscocraft 1 PLAY dispatchKey{value=16777223}
irasrv.key_MUTE     T_STRING     ira add 1 ciscocraft  1 MUTE         setMute{}
irasrv.key_POWER     T_STRING     ira add 1 shell    1 POWER       mng exit
sdhanral Fri, 05/18/2012 - 10:09

You are right, the 4310 has the CiscoCraft and not Xfake.

Here is neat trcik to figure things out.

Install Firefox with the Plugin "LiveHTTP Header" or "FireBug". Launch the Plugin. A console type window will occur.

Now Open a Web session to the DMP and Click on "Show IP".

You will notice an output similar to :

https://X.X.X.X/set_param?mng.command=write%20ciscocraft%20showIP%7B%7D&uid=1337360597032

So your SHOW IP command will be "https://X.X.X.X/set_param?mng.command=write%20ciscocraft%20showIP%7B%7D" (without the quotes), This way you can figure out whatever function that is possible from the Web interface in a URL format.

As you must have observed the URL is in URI encoded format , In the sense :

CharacterCode
Points
(Hex)
Code
Points
(Dec)
Dollar ("$")
  Ampersand ("&")
  Plus ("+")
  Comma (",")
  Forward slash/Virgule ("/")
  Colon (":")
  Semi-colon (";")
  Equals ("=")
  Question mark ("?")
  'At' symbol ("@")
24
26
2B
2C
2F
3A
3B
3D
3F
40
36
38
43
44
47
58
59
61
63
64
chrisvanhorn Fri, 05/18/2012 - 10:40

Very useful - thank you sdhanral, I am able to issue SHOW_IP and Stop commands to the video playing in my Flash file.

Unfortunately there is no "Pause" button in the DMP web interface for LiveHTTP Header to sniff.

I pulled the "Stop" command:

https://user:pass@dmp-ip:7777/set_param?mng.command=stop%20video%20video&uid=1337361978697

Tried replacing the 'stop' with 'pause' yet no luck - I guess for pause to work I would have to implement MediaPlayer.as found in the DMP 4310 API? Or is there no possibility of pausing the video or even my Flash (with video included) so when Play is submitted, it begins again where it was paused?

End goal is to be able to press the Pause button or issue Pause via HTTP so that the current video inside of my Flash pauses, until Play is pressed.

Can you verify that Pause is implemented on the DMP? Videos can be paused correct?

Ask because irasrv.key for Pause shows:

PAUSE  Mib: irasrv.key_PAUSE T_STRING ira add 1  ciscocraft 1 PAUSE dispatchKey{value=16777224}
“sendcmd 127.0.0.1:5555 dispatchKey{value=16777224}”

But issuing dispatchKey with any value does nothing, when issuing showIP{} or setMute{} for example both work fine.

Michael Schueler Tue, 07/03/2012 - 03:47

Hi Chris,

Not sure, if you still need this, but creating "Advanced Tasks > System Tasks" works fine in the following examples towards DMP-4310:

  1. Emulate pressing "Enter":
    • mng.command=write%20ciscocraft%20dispatchKey%7Bvalue%3D4194317%7D
  2. Emulate pressing "0" (zero):
    • mng.command=write%20ciscocraft%20dispatchKey%7Bvalue%3D48%7D
  3. Emulate pressing "Show IP":
    • mng.command=write%20ciscocraft%20showIP%7B%7D

Together with the list you posted on 18 May, you should be able compile the correct command for any button now, also knowing that:

Space (' ') becomes %20
{ becomes %7B
} becomes %7D
= becomes %3D

Same strings as above should work in the "set_param" URL as well.

Regards,

Michael

Actions

Login or Register to take actions

This Discussion

Posted September 8, 2010 at 12:13 PM
Stats:
Replies:19 Avg. Rating:5
Views:3536 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard