{"id":42253,"date":"2020-11-18T08:40:46","date_gmt":"2020-11-18T16:40:46","guid":{"rendered":"https:\/\/www.dragonframe.com\/?post_type=ufaq&#038;p=42253"},"modified":"2025-07-18T11:09:51","modified_gmt":"2025-07-18T18:09:51","slug":"using-the-json-interface-to-receive-notifications-and-send-commands-to-dragonframe-via-udp","status":"publish","type":"ufaq","link":"https:\/\/www.dragonframe.com\/es\/ufaqs\/using-the-json-interface-to-receive-notifications-and-send-commands-to-dragonframe-via-udp\/","title":{"rendered":"Uso de la interfaz JSON para recibir notificaciones y enviar comandos a Dragonframe a trav\u00e9s de UDP."},"content":{"rendered":"<style>.ewd-ufaq-faq-header-title a { padding: 10px 0 !important; }div.ewd-ufaq-faq-title h5 { color: #e7e7e7 !important; }div.ewd-ufaq-faq-title h5 { padding: 10px 0 !important; }div.ewd-ufaq-faq-post p { color: #e3e3e3 !important; }div.ewd-ufaq-faq-post p { padding: 11px 0 !important; }div.ewd-ufaq-faq-category-title h4 { font-size: 32px !important; }.ewd-ufaq-faq-display-style-block:hover, .ewd-ufaq-faq-display-style-block:hover a, .ewd-ufaq-faq-display-style-block:hover h1, .ewd-ufaq-faq-display-style-block:hover h2, .ewd-ufaq-faq-display-style-block:hover h3, .ewd-ufaq-faq-display-style-block:hover h4, .ewd-ufaq-faq-display-style-block:hover h5, .ewd-ufaq-faq-display-style-block:hover h6 {\r\n    text-decoration: none !important;\r\n    color: #fff;\r\n    background: #3a515e;\r\n}\r\n.ui-autocomplete {\r\nbackground:#3e3e3e;\r\n}\r\n\r\n.ufaq-faq-category-title {\r\nmargin-top:20px;\r\n}\r\n\r\ndiv.ufaq-faq-title h4 {\r\nfont-size:18px;\r\n}\r\n\r\ndiv.ufaq-faq-post h4 {\r\nfont-size:20px;\r\nmargin-bottom:5px;\r\nmargin-top:5px;\r\n}\r\n\r\ndiv.ufaq-faq-post h5 {\r\nfont-size:18px;\r\nmargin-bottom:12px;\r\nmargin-top:0;\r\n}\r\n\r\ndiv.ufaq-faq-title div.ewd-ufaq-post-margin-symbol {\r\npadding:6px 0 0 2px;\r\n}\r\n\r\n.ufaq-faq-display-style-Minimalist .ewd-ufaq-post-margin-symbol span {\r\nfont-size:19px;\r\n}\r\n.single-ufaq .ewd-ufaq-permalink {\r\ndisplay: none;\r\n}\r\n\r\n.single-ufaq .single-navigation {\r\ndisplay: none;\r\n}\r\n\r\n.single-ufaq h2 {\r\n margin-bottom: 20px;\r\n}\r\n.single-ufaq .ewd-ufaq-faq-title {\r\n display: none;\r\n}\r\n.single-ufaq .entry-date {\r\n display: none;\r\n}\r\n.single-ufaq #primary {\r\n margin-left: auto;\r\n margin-right: auto;\r\n margin-top: 80px;\r\n float: none;\r\n}\r\n.ewd-ufaq-faq-post a {\r\n    color: #d89222 !important;\r\n}<\/style><div  class=\"ewd-ufaq-faq-list ewd-ufaq-page-type-load_more ewd-ufaq-category-tabs-\" id='ewd-ufaq-faq-list'>\n\n\t<input type='hidden' name='show_on_load' value='' id='ewd-ufaq-show-on-load' \/>\n<input type='hidden' name='include_category' value='' id='ewd-ufaq-include-category' \/>\n<input type='hidden' name='exclude_category' value='' id='ewd-ufaq-exclude-category' \/>\n<input type='hidden' name='orderby' value='set_order' id='ewd-ufaq-orderby' \/>\n<input type='hidden' name='order' value='asc' id='ewd-ufaq-order' \/>\n<input type='hidden' name='post_count' value='-1' id='ewd-ufaq-post-count' \/>\n<input type='hidden' name='current_url' value='\/es\/wp-json\/wp\/v2\/ufaq\/42253' id='ewd-ufaq-current-url' \/>\n\t\n\t\n\t<div class='ewd-ufaq-faqs'>\n\n\t\t<div  class=\"ewd-ufaq-faq-div ewd-ufaq-faq-column-count-one ewd-ufaq-faq-responsive-columns- ewd-ufaq-faq-display-style-block ewd-ufaq-can-be-toggled\" id='ewd-ufaq-post-42253-dLjLFBNaEM' data-post_id='42253'>\n\n\t\t\n\t<div class='ewd-ufaq-faq-title ewd-ufaq-faq-toggle'>\n\t\n\t<a class='ewd-ufaq-post-margin'  href='#' role=\"button\">\n\n\t\t<div class='ewd-ufaq-post-margin-symbol ewd-ufaq-square'>\n\t\t\t<span >B<\/span>\n\t\t<\/div>\n\n\t\t<div class='ewd-ufaq-faq-title-text'>\n\n\t\t\t<h5>\n\t\t\t\tUsing the JSON interface to receive notifications and send commands to Dragonframe via UDP.\t\t\t<\/h5>\n\n\t\t<\/div>\n\n\t\t<div class='ewd-ufaq-clear'><\/div>\n\n\t<\/a>\n\t\n<\/div>\n\t\n\t<div class='ewd-ufaq-faq-body' >\n\n\t\t\n\t\t\t\n\t\t\n\t\t\t<div class='ewd-ufaq-post-margin ewd-ufaq-faq-post'>\n\t\n<p>The JSON interface is a UDP based protocol in Dragonframe, that uses the JSON format for messages.<\/p>\n\n\n\n<p>You can send commands to Dragonframe and receive notifications from it. It may be a useful integration point for using Dragonframe with other devices or applications.<\/p>\n\n\n\n<p>After creating a device that sends\/receives these messages, use the program&#8217;s <strong>Scene | Connections<\/strong> and add a connection of type <strong>JSON<\/strong>.<\/p>\n\n\n\n<p>Note: The optional &#8216;view frame updates&#8217; feature can be turned on with command = &#8216;viewFrameUpdates&#8217;. This instructs Dragonframe to send a &#8216;viewFrame&#8217; message every time the user toggles to a different frame.<\/p>\n\n\n\n<p>We provide a sample Qt application that implements this interface. You can find <a href=\"\/download\/JsonTester.zip\">the sample JSON project here<\/a>. You must compile it with Qt 5.3 or newer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Messages to Control Dragonframe<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Shoot<\/td><td><code>{ \"command\" : \"shoot\", \"frames\" : 1 }<\/code><\/td><\/tr><tr><td>Delete<\/td><td><code>{ \"command\" : \"delete\" }<\/code><\/td><\/tr><tr><td>Play\/Stop<\/td><td><code>{ \"command\" : \"play\" }<\/code><\/td><\/tr><tr><td>Go to Live<\/td><td><code>{ \"command\" : \"live\" }<\/code><\/td><\/tr><tr><td>Mute<\/td><td><code>{ \"command\" : \"mute\" }<\/code><\/td><\/tr><tr><td>Toggle Play to black<\/td><td><code>{ \"command\" : \"black\" }<\/code><\/td><\/tr><tr><td>Toggle Looping<\/td><td><code>{ \"command\" : \"loop\" }<\/code><\/td><\/tr><tr><td>Opacity Down<\/td><td><code>{ \"command\" : \"opacityDown\" }<\/code><\/td><\/tr><tr><td>Opacity Up<\/td><td><code>{ \"command\" : \"opacityUp\" }<\/code><\/td><\/tr><tr><td>Step Forward<\/td><td><code>{ \"command\" : \"stepForward\" }<\/code><\/td><\/tr><tr><td>Step Backward<\/td><td><code>{ \"command\" : \"stepBackward\" }<\/code><\/td><\/tr><tr><td>Short Play<\/td><td><code>{ \"command\" : \"shortPlay\" }<\/code><\/td><\/tr><tr><td>Live Toggle (Press)<\/td><td><code>{ \"command\" : \"liveToggle\", \"state\" : \"pressed\" }<\/code><\/td><\/tr><tr><td>Live Toggle (Release)<\/td><td><code>{ \"command\" : \"liveToggle\", \"state\" : \"released\" }<\/code><\/td><\/tr><tr><td>Auto Toggle<\/td><td><code>{ \"command\" : \"autoToggle\" }<\/code><\/td><\/tr><tr><td>Toggle High-Res\/Video-Assist<\/td><td><code>{ \"command\" : \"highResToggle\" }<\/code><\/td><\/tr><tr><td>Trigger real-time motion control playback<\/td><td>{<code> \"command\" : \"runMocoMove\" }<\/code><\/td><\/tr><tr><td>Set View Frame Updates<\/td><td><code>{ \"command\" : \"viewFrameUpdates\", \"active\" : true|false }<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Messages from Dragonframe<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Shooting Frame<\/td><td><code>{ \"event\" : \"shoot\",<br>\n\"production\" : \"[PRODUCTION]\",<br>\n\"scene\" : \"[SCENE]\",<br>\n\"take\" : \"[TAKE]\",<br>\n\"frame\" : [FRAME],<br>\n\"exposure\" : [EXPOSURE],<br>\n\"exposure\" : \"[EXPOSURE NAME]\",<br>\n\"stereoIndex\" : [INDEX] }<\/code><\/td><\/tr><tr><td>Deleting Frame<\/td><td><code>{ \"event\" : \"delete\",<br>\n\"production\" : \"[PRODUCTION]\",<br>\n\"scene\" : \"[SCENE]\",<br>\n\"take\" : \"[TAKE]\" }<\/code><\/td><\/tr><tr><td>Position Frame (Move to Frame)<\/td><td><code>{ \"event\" : \"position\",<br>\n\"production\" : \"[PRODUCTION]\",<br>\n\"scene\" : \"[SCENE]\",<br>\n\"take\" : \"[TAKE]\",<br>\n\"frame\" : [FRAME],<br>\n\"mocoFrame\" : [MOCO FRAME],<br>\n\"exposure\" : [EXPOSURE],<br>\n\"exposure\" : \"[EXPOSURE NAME]\",<br>\n\"stereoIndex\" : [INDEX] }<\/code><\/td><\/tr><tr><td>Capture Complete<\/td><td><code>{ \"event\" : \"captureComplete\",<br>\n\"production\" : \"[PRODUCTION]\",<br>\n\"scene\" : \"[SCENE]\",<br>\n\"take\" : \"[TAKE]\",<br>\n\"frame\" : [FRAME],<br>\n\"exposure\" : [EXPOSURE],<br>\n\"exposure\" : \"[EXPOSURE NAME]\",<br>\n\"stereoIndex\" : [INDEX],<br>\n\"imageFileName\" : \"[IMAGE FILE NAME]\" }<\/code><\/td><\/tr><tr><td>Frame Complete<\/td><td><code>{ \"event\" : \"frameComplete\",<br>\n\"production\" : \"[PRODUCTION]\",<br>\n\"scene\" : \"[SCENE]\",<br>\n\"take\" : \"[TAKE]\",<br>\n\"frame\" : [FRAME],<br>\n\"exposure\" : [EXPOSURE],<br>\n\"exposure\" : \"[EXPOSURE NAME]\",<br>\n\"stereoIndex\" : [INDEX],<br>\n\"imageFileName\" : \"[IMAGE FILE NAME]\" }<\/code><\/td><\/tr><tr><td>View Frame<\/td><td><code>{ \"event\" : \"viewFrame\",<br>\n\"frame\" : [FRAME],<br>\n\"exposure\" : [EXPOSURE] }<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\t\t\n\t\t\t<div class='ewd-ufaq-faq-custom-fields'>\n\n\t\n<\/div>\n\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\t<div class='ewd-ufaq-permalink'>\n\t\n\t<a href='https:\/\/www.dragonframe.com\/es\/ufaqs\/using-the-json-interface-to-receive-notifications-and-send-commands-to-dragonframe-via-udp\/'>\n\t\t\n\t\tPermalink\t\t\t\n\t<\/a>\n\n<\/div>\n\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t<\/div>\n\n<\/div>\n\t<\/div>\n\n\t\n<\/div>","protected":false},"excerpt":{"rendered":"<p>B Uso de la interfaz JSON para recibir notificaciones y enviar comandos a Dragonframe mediante UDP. La interfaz JSON es un protocolo basado en UDP en Dragonframe que utiliza el formato JSON para mensajes. Puede enviar comandos a Dragonframe y recibir notificaciones. Puede ser un punto de integraci\u00f3n \u00fatil para usar Dragonframe con otros... <a title=\"Uso de la interfaz JSON para recibir notificaciones y enviar comandos a Dragonframe a trav\u00e9s de UDP.\" class=\"read-more\" href=\"https:\/\/www.dragonframe.com\/es\/ufaqs\/using-the-json-interface-to-receive-notifications-and-send-commands-to-dragonframe-via-udp\/\" aria-label=\"Leer m\u00e1s sobre Uso de la interfaz JSON para recibir notificaciones y enviar comandos a Dragonframe v\u00eda UDP.\">Leer m\u00e1s<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","ufaq-category":[417],"ufaq-tag":[],"class_list":["post-42253","ufaq","type-ufaq","status-publish","hentry","ufaq-category-scripting","no-featured-image-padding"],"_links":{"self":[{"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/ufaq\/42253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/ufaq"}],"about":[{"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/types\/ufaq"}],"author":[{"embeddable":true,"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/comments?post=42253"}],"wp:attachment":[{"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/media?parent=42253"}],"wp:term":[{"taxonomy":"ufaq-category","embeddable":true,"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/ufaq-category?post=42253"},{"taxonomy":"ufaq-tag","embeddable":true,"href":"https:\/\/www.dragonframe.com\/es\/wp-json\/wp\/v2\/ufaq-tag?post=42253"}],"curies":[{"name":"palabra clave","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}