Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
1,016
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.20 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
  6. <meta NAME="pragma" CONTENT="no-cache">
  7. <title>encoder control</title>
  8. <link rel="stylesheet" type="text/css" href="style.css">
  9.  
  10.  
  11. </head>
  12.  
  13. <body>
  14. <div id="wrapper-out">
  15. <div id="wrapper-center">
  16. <div id="header">
  17. <a id="logo" href="http://www.pixel2media.com" target="_blank"></a>
  18. </div>
  19.  
  20. <div id="navigation">
  21. <ul>
  22. <li><a href="javascript:showonlyone('maincontrol');">Control</a></li>
  23. <li><a href="javascript:showonlyone('statistics');">Statistics</a></li>
  24. <li><a href="javascript:showonlyone('template');">Template</a></li>
  25. <li><a href="javascript:showonlyone('audio');">Audio</a></li>
  26. <li><a href="javascript:showonlyone('edid');">EDID</a></li>
  27. <li><a href="javascript:showonlyone('system');">System</a></li>
  28. <li><a href="javascript:showonlyone('matterhorn');">Matterhorn</a></li>
  29. <li><a href="manual.pdf" target="_blank">Documentation</a></li>
  30. <li><a href="http://www.pixel2media.com" target="_blank">Contact</a></li>
  31. </ul>
  32. </div>
  33.  
  34. <div id="content-container">
  35. <div id="section-navigation">
  36. <table id="status" cellpadding="5px" cellspacing="0px"
  37. style="width: 100%; border: 1px solid #999; padding: 0px; overflow: auto; ">
  38. <thead>
  39. <tr class="method_header">
  40. <th width="100%" colspan="2" scope="col" class="method_header_left">System</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr class="status">
  45. <th width="50px" style="color:#0099FF" scope="row">model</th>
  46. <td class="model-field"></td>
  47. </tr>
  48. <tr class="status">
  49. <th width="50px" style="color:#0099FF" scope="row">serial #</th>
  50. <td class="serial-field"></td>
  51. </tr>
  52. <tr class="status">
  53. <th width="50px" style="color:#0099FF" scope="row">firmware</th>
  54. <td class="firmware-field"></td>
  55. </tr>
  56. <tr class="status">
  57. <th width="50px" style="color:#0099FF" scope="row">hardware</th>
  58. <td class="hardware-field"></td>
  59. </tr>
  60.  
  61. </tr>
  62. </tbody>
  63. </table>
  64. <br/>
  65. <table id="info" cellpadding="5px" cellspacing="0px"
  66. style="width: 100%; border: 1px solid #999; padding: 0px; overflow: auto; ">
  67. <thead>
  68. <tr class="method_header">
  69. <th width="100%" colspan="2" scope="col" class="method_header_left">Status</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <tr class="status">
  74. <th width="50px" style="color:#0099FF" scope="row">stream</th>
  75. <td class="stream-field"></td>
  76. </tr>
  77. <tr class="status">
  78. <th width="50px" style="color:#0099FF" scope="row">record</th>
  79. <td class="record-field"></td>
  80. </tr>
  81. <tr class="status">
  82. <th width="50px" style="color:#0099FF" scope="row">total</th>
  83. <td class="total-field"></td>
  84. </tr>
  85. <tr class="status">
  86. <th width="50px" style="color:#0099FF" scope="row">free</th>
  87. <td class="free-field"></td>
  88. </tr>
  89. <tr class="status">
  90. <th width="50px" style="color:#0099FF" scope="row">duration</th>
  91. <td class="sduration-field"></td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. </div>
  96.  
  97.  
  98.  
  99. <div onclick="clk('maincontrol')" class="newboxes content" id="maincontrol">
  100. <table class="control" cellpadding="0px" cellspacing="0px"
  101. style="width: 100%; border: 1px solid #999; padding: 0 0 10px 0; margin: 0 0 0 0; overflow: auto;">
  102. <thead>
  103. <tr class="method_header">
  104. <th colspan="2" scope="col" class="method_header_left"> Main control</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. <tr class="method">
  109. <th width="50px" style="color:#0099FF" scope="row">get</th>
  110. <td>
  111. <button formaction="/api/system">system</button>
  112. <button formaction="/api/date">date</button>
  113. <br/>
  114. <button formaction="/api/storage">storage</button>
  115. <button formaction="/api/network">network</button>
  116. </td>
  117. </tr>
  118. <tr class="method">
  119. <th style="color: #0099FF" scope="row">record</th>
  120. <td>
  121. <button formaction="/api/record" post="action=start">start</button>
  122. <button formaction="/api/record" post="action=pause">pause</button>
  123. <button formaction="/api/record" post="action=stop">stop</button>
  124. <br/>
  125. <button formaction="/api/record">status</button>
  126. <button formaction="/api/statistics">statistics</button>
  127. <br/>
  128. <button formaction="/api/recordings">recordings</button>
  129. </td>
  130. </tr>
  131. <tr class="method">
  132. <th style="color: #0099FF" scope="row">stream</th>
  133. <td>
  134. <button formaction="/api/stream" post="action=start">start</button>
  135. <button formaction="/api/stream" post="action=stop">stop</button>
  136. <br/>
  137. <button formaction="/api/stream">status</button>
  138. <button formaction="/api/statistics">statistics</button>
  139. <br/>
  140. </td>
  141. </tr>
  142. <tr class="method">
  143. <th style="color: #0099FF" scope="row">live<br/>change</th>
  144. <td>
  145. <div class="method">
  146. <form class="form_test_form" action="/api/stream" method="post">
  147. <input class="form_field form_param_path form_param_required form_param_submit"
  148. name="video" type="text" value="2000" size="6"/>
  149. <input type="submit" value="video"/></form>
  150. </div>
  151. <div class="method">
  152. <form class="form_test_form" action="/api/stream" method="post">
  153. <input class="form_field form_param_path form_param_required form_param_submit"
  154. name="gop" type="text" value="30" size="6"/>
  155. <input type="submit" value="gop"/></form>
  156. </div>
  157. </td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. </div>
  162.  
  163. <div onclick="clk('statistics')" style="display: none;" class="newboxes content" id="statistics">
  164. <table class="control" cellpadding="0px" cellspacing="0px"
  165. style="width: 100%; border: 1px solid #999; padding: 0 0 10px 0; margin: 0 0 0 0; overflow: auto;">
  166. <thead>
  167. <tr class="method_header">
  168. <th colspan="2" scope="col" class="method_header_left">Statistics</th>
  169. </tr>
  170. </thead>
  171. <tbody>
  172. <tr class="method">
  173. <th style="color: #0099FF" scope="row">statistics</th>
  174. <td>
  175. <div class="method">
  176. <form class="form_test_form" action="/api/statistics" method="post">
  177. <table cellpadding="4" cellspacing="0">
  178. <tbody>
  179. <tr class="form_field_description">
  180. <td class="form_label"><label>videoBitrate</label></td>
  181. <td><input id="field-videoBitrate"
  182. class="form_field form_param_path form_param_required form_param_submit"
  183. name="" type="text" value="" size="10"/></td>
  184. </tr>
  185. <tr class="form_field_description">
  186. <td class="form_label"><label>videoCurBitrate</label></td>
  187. <td><input id="field-videoCurBitrate"
  188. class="form_field form_param_path form_param_required form_param_submit"
  189. name="" type="text" value="" size="10"/></td>
  190. </tr>
  191. <tr class="form_field_description">
  192. <td class="form_label"><label>audioBitrate</label></td>
  193. <td><input id="field-audioBitrate"
  194. class="form_field form_param_path form_param_required form_param_submit"
  195. name="" type="text" value="" size="10"/></td>
  196. </tr>
  197. <tr class="form_field_description">
  198. <td class="form_label"><label>frameRate</label></td>
  199. <td><input id="field-frameRate"
  200. class="form_field form_param_path form_param_required form_param_submit"
  201. name="" type="text" value="" size="10"/></td>
  202. </tr>
  203. <tr class="form_field_description">
  204. <td class="form_label"><label>totalFrames</label></td>
  205. <td><input id="field-totalFrames"
  206. class="form_field form_param_path form_param_required form_param_submit"
  207. name="" type="text" value="" size="10"/></td>
  208. </tr>
  209. <tr class="form_field_description">
  210. <td class="form_label"><label>encodedFrames</label></td>
  211. <td><input id="field-encodedFrames"
  212. class="form_field form_param_path form_param_required form_param_submit"
  213. name="" type="text" value="" size="10"/></td>
  214. </tr>
  215. <tr class="form_field_description">
  216. <td class="form_label"><label>failFrames</label></td>
  217. <td><input id="field-failFrames"
  218. class="form_field form_param_path form_param_required form_param_submit"
  219. name="" type="text" value="" size="10"/></td>
  220.  
  221. </tr>
  222. </tbody>
  223. </table>
  224. </form>
  225. </div>
  226. </td>
  227. </tr>
  228. </tbody>
  229. </table>
  230. </div>
  231.  
  232.  
  233. <div onclick="clk('template')" style="display: none;" class="newboxes content" id="template">
  234. <table class="control" cellpadding="0px" cellspacing="2px"
  235. style="width: 100%; border: 1px solid #999; padding: 0 0 10px 0; margin: 0 0 0 0; overflow: auto;">
  236. <thead>
  237. <tr class="method_header">
  238. <th colspan="2" scope="col" class="method_header_left">template&overlay</th>
  239. </tr>
  240. </thead>
  241. <tbody>
  242. <tr class="method">
  243. <th width="40px" style="color: #0099FF" scope="row">get</th>
  244. <td>
  245. <div class="method">
  246. <button formaction="/api/template" width="100px">get templates</button>
  247. </div>
  248. </td>
  249. </tr>
  250. <tr class="method">
  251. <th width="50px" style="color:#0099FF" scope="col">template</th>
  252. <td>
  253. <div class="method">
  254. <form id="form20" class="form_test_form" action="/api/template" method="post">
  255. <input class="form_field form_param_path form_param_required form_param_submit" name="template"
  256. type="text" value="" size="8"/><br/>
  257. <br/>
  258. <input type="submit" value="template"/></form>
  259. </div>
  260. </td>
  261. </tr>
  262. <tr class="method">
  263. <th style="color:#0099FF" scope="row"></th>
  264. <td title="template">
  265. <button formaction="/api/template" post="template=1">T1</button>
  266. <button formaction="/api/template" post="template=2">T2</button>
  267. <button formaction="/api/template" post="template=3">T3</button>
  268. <br/>
  269. <button formaction="/api/template" post="template=4">T4</button>
  270. <button formaction="/api/template" post="template=5">T5</button>
  271. <button formaction="/api/template" post="template=6">T6</button>
  272. </td>
  273. </tr>
  274. <tr class="method">
  275. <th width="50px" style="color:#0099FF" scope="row">overlay</th>
  276. <td>
  277. <div class="method">
  278. <form class="form_test_form" action="/api/template" method="post">
  279. <input class="form_field form_param_path form_param_required form_param_submit" name="overlay"
  280. type="text" value="" size="6"/><br/>
  281. <br/>
  282. <input type="submit" value="overlay"/></form>
  283. </div>
  284.  
  285. </td>
  286. </tr>
  287. <td title="overlay">
  288. <tr>
  289. <th colspan="2">
  290. <button formaction="/api/template" post="overlay=0">0</button>
  291. <button formaction="/api/template" post="overlay=1">1</button>
  292. <button formaction="/api/template" post="overlay=2">2</button>
  293. <button formaction="/api/template" post="overlay=3">3</button>
  294. <button formaction="/api/template" post="overlay=4">4</button>
  295. <button formaction="/api/template" post="overlay=5">5</button>
  296. <button formaction="/api/template" post="overlay=6">6</button>
  297. <button formaction="/api/template" post="overlay=7">7</button>
  298. <button formaction="/api/template" post="overlay=8">8</button>
  299. <button formaction="/api/template" post="overlay=9">9</button>
  300. </th>
  301. </tr>
  302. </td>
  303.  
  304.  
  305. </tbody>
  306. </table>
  307. </div>
  308.  
  309. <div onclick="clk('audio')" style="display: none;" class="newboxes content" id="audio">
  310. <table class="control" cellspacing="0px"
  311. style="width: 100%; border: 1px solid #999; padding: 0 0 10px; margin: 0 0 0 0; overflow: auto;">
  312. <thead>
  313. <tr class="method_header">
  314. <th colspan="2" scope="row" class="method_header_left">Audio settings</th>
  315. </tr>
  316. </thead>
  317. <tbody>
  318. <tr class="method">
  319. <th style="color: #0099FF" scope="row">audio</th>
  320. <td>
  321. <div class="method">
  322. <form class="form_test_form" action="/api/audio" method="post">
  323. <table cellpadding="4" cellspacing="0">
  324. <tbody>
  325. <tr class="form_field_description">
  326. <td class="form_label"><label>MicL</label></td>
  327. <td><input id="MicL" class="form_field form_param_path form_param_required form_param_submit"
  328. name="MicL" type="text" value="" size="4"/></td>
  329. <td class="form_label"><label>MicR</label></td>
  330. <td><input id="MicR" class="form_field form_param_path form_param_required form_param_submit"
  331. name="MicR" type="text" value="" size="4"/></td>
  332. </tr>
  333. <tr class="form_field_description">
  334. <td class="form_label"><label>HDMI1</label></td>
  335. <td><input id="HDMI1" class="form_field form_param_path form_param_required form_param_submit"
  336. name="HDMI1" type="text" value="" size="4"/></td>
  337. <td class="form_label"><label>HDMI2</label></td>
  338. <td><input id="HDMI2" class="form_field form_param_path form_param_required form_param_submit"
  339. name="HDMI2" type="text" value="" size="4"/></td>
  340. </tr>
  341. <tr class="form_field_description">
  342. <td class="form_label"><label>Line1</label></td>
  343. <td><input id="Line1" class="form_field form_param_path form_param_required form_param_submit"
  344. name="Line1" type="text" value="mute" size="4"/></td>
  345. <td class="form_label"><label>Line2</label></td>
  346. <td><input id="Line2" class="form_field form_param_path form_param_required form_param_submit"
  347. name="Line2" type="text" value="mute" size="4"/></td>
  348. </tr>
  349. <tr class="form_field_description">
  350. <td class="form_label"><label>W1</label></td>
  351. <td><input id="W1" class="form_field form_param_path form_param_required form_param_submit"
  352. name="W1" type="text" value="" size="4"/></td>
  353.  
  354. <td><input type="submit" value="submit" style="width:50px; margin-left: 10px;"/></td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. </form>
  359. </div>
  360. </td>
  361. </tr>
  362. </tbody>
  363. </table>
  364. </div>
  365.  
  366.  
  367.  
  368. <div onclick="clk('system')" style="display: none;" class="newboxes content" id="system">
  369. <table class="control" cellpadding="0px" cellspacing="0px"
  370. style="width: 100%; border: 1px solid #999; padding: 0 0 10px 0; margin: 0 0 0 0; overflow: auto;">
  371. <thead>
  372. <tr class="method_header">
  373. <th colspan="2" scope="col" class="method_header_left">System configuration</th>
  374. </tr>
  375. </thead>
  376. <tbody>
  377. <tr class="method">
  378. <th style="color: #0099FF" scope="row">network</th>
  379. <td>
  380. <button formaction="/api/network" style="width: 195px;">get network settings</button>
  381. </br/>
  382. <div class="method">
  383. <form class="form_test_form" action="/api/network" method="post">
  384. <input id="field_ip" class="form_field form_param_path form_param_required form_param_submit"
  385. name="ip" type="text" value="" size="16"/>
  386. <input type="submit" value="ip" style="width: 70px;"/></form>
  387. </div>
  388. <div class="method">
  389. <form class="form_test_form" action="/api/network" method="post">
  390. <input id="field_subnet"
  391. class="form_field form_param_path form_param_required form_param_submit" name="subnet"
  392. type="text" value="" size="16"/>
  393. <input type="submit" value="subnet" style="width: 70px;"/></form>
  394. </div>
  395. <div class="method">
  396. <form class="form_test_form" action="/api/network" method="post">
  397. <input id="field_gateway"
  398. class="form_field form_param_path form_param_required form_param_submit" name="gateway"
  399. type="text" value="" size="16"/>
  400. <input type="submit" value="gateway" style="width: 70px;"/></form>
  401. </div>
  402. <div class="method">
  403. <form class="form_test_form" action="/api/network" method="post">
  404. <input id="field_dns" class="form_field form_param_path form_param_required form_param_submit"
  405. name="dns" type="text" value="" size="16"/>
  406. <input type="submit" value="dns" style="width: 70px;"/></form>
  407. </div>
  408. <button id="dhcpon" formaction="/api/network" post="dhcp=1" style="width: 96px;">DHCP</button>
  409. <button id="dhcpoff" formaction="/api/network" post="dhcp=0" style="width: 96px;">DHCP off</button>
  410. <input id="checksave" type="checkbox"><label for="checksave">&nbsp;save</label>
  411. </td>
  412. </tr>
  413. <tr class="method">
  414. <th style="color: #0099FF" scope="row">date</th>
  415. <td>
  416. <button formaction="/api/date" style="width: 195px;">get date settings</button>
  417. </br/>
  418. <div class="method">
  419. <form class="form_test_form" action="/api/date" method="post">
  420. <input id="field_year" class="form_field form_param_path form_param_required form_param_submit"
  421. name="year" type="text" value="" size="5"/>
  422. <input id="field_month" class="form_field form_param_path form_param_required form_param_submit"
  423. name="month" type="text" value="" size="2"/>
  424. <input id="field_day" class="form_field form_param_path form_param_required form_param_submit"
  425. name="day" type="text" value="" size="2"/>
  426. <input type="submit" value="date" style="width: 90px;"/></form>
  427. </div>
  428. <div class="method">
  429. <form class="form_test_form" action="/api/date" method="post">
  430. <input id="field_hour" class="form_field form_param_path form_param_required form_param_submit"
  431. name="hour" type="text" value="" size="3"/>
  432. <input id="field_minute"
  433. class="form_field form_param_path form_param_required form_param_submit" name="minute"
  434. type="text" value="" size="3"/>
  435. <input id="field_second"
  436. class="form_field form_param_path form_param_required form_param_submit" name="second"
  437. type="text" value="" size="3"/>
  438. <input type="submit" value="time" style="width: 90px;"/></form>
  439. </div>
  440. <div class="method">
  441. <form class="form_test_form" action="/api/date" method="post">
  442. <input id="field_timezone"
  443. class="form_field form_param_path form_param_required form_param_submit" name="timeZone"
  444. type="text" value="UTC" size="13"/>
  445. <input type="submit" value="timezone" style="width: 90px;"/></form>
  446. </div>
  447. <button formaction="/api/date/ntp" style="width: 195px;">get ntp settings</button>
  448. </br/>
  449. <div class="method">
  450. <form class="form_test_form" action="/api/date/ntp" method="post">
  451. <input id="field_utcoffset"
  452. class="form_field form_param_path form_param_required form_param_submit" name="utcOffset"
  453. type="text" value="" size="13"/>
  454. <input type="submit" value="utc offset" style="width: 90px;"/></form>
  455. </div>
  456. <div class="method">
  457. <form class="form_test_form" action="/api/date/ntp" method="post">
  458. <input id="field_ntp" class="form_field form_param_path form_param_required form_param_submit"
  459. name="ntp" type="text" value="" size="13"/>
  460. <input type="submit" value="ntp server" style="width: 90px;"/></form>
  461. </div>
  462. </td>
  463. </tr>
  464.  
  465. <tr class="method">
  466. <th style="color: #0099FF" scope="row">www</th>
  467. <td>
  468. <button formaction="/api/www" post="action=copy" alt="copy USB/www to wwwroot">copy</button>
  469. <button formaction="/api/www" post="action=backup">backup</button>
  470. </td>
  471. </tr>
  472.  
  473. <tr class="method">
  474. <th style="color: #0099ff" scope="row">ir</th>
  475. <td>
  476. <div class="method">
  477. <form class="form_test_form" action="/api/system" method="post">
  478. <select name="ir">
  479. <option id="0">0</option>
  480. <option id="1">1</option>
  481. <option id="2">2</option>
  482. <option id="3">3</option>
  483. <option id="4">4</option>
  484. <option id="5">5</option>
  485. <option id="6">6</option>
  486. <option id="7">7</option>
  487. <option id="8">8</option>
  488. <option id="9">9</option>
  489. <option id="10">10</option>
  490. <option id="11">11</option>
  491. <option id="12">12</option>
  492. <option id="13">13</option>
  493. <option id="14">14</option>
  494. <option id="15">15</option>
  495. <option id="16">16</option>
  496. <option id="17">17</option>
  497. <option id="18">18</option>
  498. <option id="19">19</option>
  499. <option id="20">20</option>
  500. <option id="21">21</option>
  501. <option id="22">22</option>
  502. <option id="23">23</option>
  503. <option id="24">24</option>
  504. <option id="25">25</option>
  505. <option id="26">26</option>
  506. <option id="27">27</option>
  507. <option id="28">28</option>
  508. <option id="29">29</option>
  509. <option id="30">30</option>
  510. <option id="31">31</option>
  511. <option id="255">255</option>
  512. </select>
  513. <input type="submit" value="submit" style="width: 70px;">
  514. </form>
  515. </div>
  516. </td>
  517. </tr>
  518. </tbody>
  519. </table>
  520. </div>
  521.  
  522. <div onclick="clk('matterhorn')" style="display: none;" class="newboxes content" id="matterhorn">
  523. <table class="control" cellpadding="0px" cellspacing="0px"
  524. style="width: 100%; border: 1px solid #999; padding: 0 0 10px 0; margin: 0 0 0 0; overflow: auto;">
  525. <thead>
  526. <tr class="method_header">
  527. <th colspan="2" scope="col" class="method_header_left">Matterhorn</th>
  528. </tr>
  529. </thead>
  530. <tbody>
  531. <tr class="method">
  532. <th width="50px" style="color:#0099FF" scope="row">matterhorn</th>
  533. <td>
  534. <div class="method">
  535. <button formaction="/api/matterhorn" style="width: 195px;">get matterhorn settings</button>
  536. </br/>
  537. </div>
  538. <div class="method">
  539. <form class="form_test_form" action="/api/matterhorn" method="post">
  540. <input id="field_mhserver"
  541. class="form_field form_param_path form_param_required form_param_submit" name="server"
  542. type="text" value="" size="16"/>
  543. <input type="submit" value="ip" style="width: 70px;"/></form>
  544. </div>
  545. <div class="method">
  546. <form class="form_test_form" action="/api/matterhorn" method="post">
  547. <input id="field_cagent"
  548. class="form_field form_param_path form_param_required form_param_submit"
  549. name="capture_agent" type="text" value="" size="16"/>
  550. <input type="submit" value="agent" style="width: 70px;"/></form>
  551. </div>
  552. <div class="method">
  553. <form class="form_test_form" action="/api/matterhorn" method="post">
  554. <input id="field_username"
  555. class="form_field form_param_path form_param_required form_param_submit" name="username"
  556. type="text" value="" size="16"/>
  557. <input type="submit" value="username" style="width: 70px;"/></form>
  558. </div>
  559. <div class="method">
  560. <form class="form_test_form" action="/api/matterhorn" method="post">
  561. <input id="field_password"
  562. class="form_field form_param_path form_param_required form_param_submit" name="password"
  563. type="text" value="" size="16"/>
  564. <input type="submit" value="password" style="width: 70px;"/></form>
  565. </div>
  566. <div class="method">
  567. <form class="form_test_form" action="/api/matterhorn" method="post">
  568. <input id="field_activate"
  569. class="form_field form_param_path form_param_required form_param_submit" name="activate"
  570. type="text" value="" size="16"/>
  571. <input type="submit" value="activate" style="width: 70px;"/></form>
  572. </div>
  573. </td>
  574. </tr>
  575. </tbody>
  576. </table>
  577. </div>
  578.  
  579. <div id="aside">
  580. <h3>Request</h3>
  581.  
  582. <p>
  583.  
  584. <div class="test_form_response">
  585. <div style="width: 100%; border: 1px solid #999; padding: 5px; ">
  586. <div class="request-url-field"
  587. style="margin-top: 10px; width: 100%; padding-left: 10px; min-height: 18px; "></div>
  588. <div class="post-field"
  589. style="width: 100%; padding-left: 10px; margin-bottom: 10px; "></div>
  590. </div>
  591. <h3><br/>Response</h3>
  592. <pre class="response-field"
  593. style="width: 100%; border: 1px solid #999; padding: 5px; overflow: auto; min-height: 274px; "></pre>
  594. </div>
  595. </p>
  596. </div>
  597. <div id="footer">
  598. <table width="100%">
  599. <tr>
  600. <td width="8%" style="float:left;">version 1.0</td>
  601. <td style="float:right;">Copyright pixel2media GmbH, 2014</td>
  602. </tr>
  603. </table>
  604. </div>
  605. </div>
  606. </div>
  607. </div>
  608. </div>
  609. </body>
  610. </html>
  611.  
  612.  
  613. <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
  614. <script type="text/javascript" src="jquery.js"></script>
  615. <script type="text/javascript" src="functions.js"></script>
  616. <script type="text/javascript">
  617.  
  618. (function statistics(){
  619.  
  620. var audio;
  621. $.ajax({
  622. type: "GET",
  623. url: "/api/statistics",
  624. processData: true,
  625. dataType: 'text',
  626. cache: false,
  627. success: function (data, textStatus, request) {
  628. audio = jQuery.parseJSON(data);
  629. var statistics = jQuery.parseJSON(data);
  630. $( "input[id='field-videoBitrate']" ).val(statistics.videoBitrate);
  631. $( "input[id='field-videoCurBitrate']" ).val(statistics.videoCurBitrate);
  632. $( "input[id='field-audioBitrate']" ).val(statistics.audioBitrate);
  633. $( "input[id='field-frameRate']" ).val(statistics.frameRate);
  634. $( "input[id='field-totalFrames']" ).val(statistics.totalFrames);
  635. $( "input[id='field-encodedFrames']" ).val(statistics.encodedFrames);
  636. $( "input[id='field-failFrames']" ).val(statistics.failFrames);
  637. }
  638. });
  639. })();
  640.  
  641. (function audio(){
  642. var audio;
  643. $.ajax({
  644. type: "GET",
  645. url: "/api/audio",
  646. processData: true,
  647. dataType: 'text',
  648. cache: false,
  649. success: function (data, textStatus, request) {
  650. audio = jQuery.parseJSON(data);
  651. $( "input[id='MicL']" ).val(audio.MicL);
  652. $( "input[id='MicR']" ).val(audio.MicR);
  653. $( "input[id='HDMI1']" ).val(audio.HDMI1);
  654. $( "input[id='HDMI2']" ).val(audio.HDMI2);
  655. $( "input[id='Line1']" ).val(audio.Line1);
  656. $( "input[id='Line2']" ).val(audio.Line2);
  657. $( "input[id='W1']" ).val(audio.W1);
  658. }
  659. });
  660. })();
  661.  
  662. (function system(){
  663. var network;
  664. $.ajax({
  665. type: "GET",
  666. url: "/api/network",
  667. processData: true,
  668. dataType: 'text',
  669. cache: false,
  670. success: function (data, textStatus, request) {
  671. network = jQuery.parseJSON(data);
  672. $("input[id='field_ip']").val(network.ip);
  673. $("input[id='field_subnet']").val(network.subnet);
  674. $("input[id='field_gateway']").val(network.gateway);
  675. $("input[id='field_dns']").val(network.dns);
  676. if ((network.dhcp) == 0) {
  677. $("button[id='dhcpoff']").css("color", "red");
  678. } else {
  679. $("button[id='dhcpoff']").css("color", "black");
  680. }
  681. if ((network.dhcp) == 1) {
  682. $("button[id='dhcpon']").css("color", "red");
  683. } else {
  684. $("button[id='dhcpon']").css("color", "black");
  685. }
  686. }
  687. });
  688.  
  689.  
  690.  
  691. var date;
  692. $.ajax({
  693. type: "GET",
  694. url: "/api/date",
  695. processData: true,
  696. dataType: 'text',
  697. cache: false,
  698. success: function (data, textStatus, request) {
  699. date = jQuery.parseJSON(data);
  700. $("input[id='field_year']").val(date.year);
  701. $("input[id='field_month']").val(date.month);
  702. $("input[id='field_day']").val(date.day);
  703. $("input[id='field_hour']").val(date.hour);
  704. $("input[id='field_minute']").val(date.minute);
  705. $("input[id='field_second']").val(date.second);
  706. $("input[id='field_timezone']").val(date.timeZone);
  707. }
  708. });
  709.  
  710.  
  711. var ntp;
  712. $.ajax({
  713. type: "GET",
  714. url: "/api/date/ntp",
  715. processData: true,
  716. dataType: 'text',
  717. cache: false,
  718. success: function (data, textStatus, request) {
  719. ntp = jQuery.parseJSON(data);
  720. $("input[id='field_ntp']").val(ntp.ntp);
  721. $("input[id='field_utcoffset']").val(ntp.utcOffset);
  722. }
  723. });
  724.  
  725. var system;
  726. $.ajax({
  727. type: "GET",
  728. url: "/api/system",
  729. processData: true,
  730. dataType: 'text',
  731. cache: false,
  732. success: function (data, textStatus, request) {
  733. system = jQuery.parseJSON(data);
  734. if ((system.IRaddress) == "RC5 0") {
  735. $("option[id='0']").prop("selected", true);
  736. }
  737. if ((system.IRaddress) == "RC5 1") {
  738. $("option[id='1']").prop("selected", true);
  739. }
  740. if ((system.IRaddress) == "RC5 2") {
  741. $("option[id='2']").prop("selected", true);
  742. }
  743. if ((system.IRaddress) == "RC5 3") {
  744. $("option[id='3']").prop("selected", true);
  745. }
  746. if ((system.IRaddress) == "RC5 4") {
  747. $("option[id='4']").prop("selected", true);
  748. }
  749. if ((system.IRaddress) == "RC5 5") {
  750. $("option[id='5']").prop("selected", true);
  751. }
  752. if ((system.IRaddress) == "RC5 6") {
  753. $("option[id='6']").prop("selected", true);
  754. }
  755. if ((system.IRaddress) == "RC5 7") {
  756. $("option[id='7']").prop("selected", true);
  757. }
  758. if ((system.IRaddress) == "RC5 8") {
  759. $("option[id='8']").prop("selected", true);
  760. }
  761. if ((system.IRaddress) == "RC5 9") {
  762. $("option[id='9']").prop("selected", true);
  763. }
  764. if ((system.IRaddress) == "RC5 10") {
  765. $("option[id='10']").prop("selected", true);
  766. }
  767. if ((system.IRaddress) == "RC5 11") {
  768. $("option[id='11']").prop("selected", true);
  769. }
  770. if ((system.IRaddress) == "RC5 12") {
  771. $("option[id='12']").prop("selected", true);
  772. }
  773. if ((system.IRaddress) == "RC5 13") {
  774. $("option[id='13']").prop("selected", true);
  775. }
  776. if ((system.IRaddress) == "RC5 14") {
  777. $("option[id='14']").prop("selected", true);
  778. }
  779. if ((system.IRaddress) == "RC5 15") {
  780. $("option[id='15']").prop("selected", true);
  781. }
  782. if ((system.IRaddress) == "RC5 16") {
  783. $("option[id='16']").prop("selected", true);
  784. }
  785. if ((system.IRaddress) == "RC5 17") {
  786. $("option[id='17']").prop("selected", true);
  787. }
  788. if ((system.IRaddress) == "RC5 18") {
  789. $("option[id='18']").prop("selected", true);
  790. }
  791. if ((system.IRaddress) == "RC5 19") {
  792. $("option[id='19']").prop("selected", true);
  793. }
  794. if ((system.IRaddress) == "RC5 20") {
  795. $("option[id='20']").prop("selected", true);
  796. }
  797. if ((system.IRaddress) == "RC5 21") {
  798. $("option[id='21']").prop("selected", true);
  799. }
  800. if ((system.IRaddress) == "RC5 22") {
  801. $("option[id='22']").prop("selected", true);
  802. }
  803. if ((system.IRaddress) == "RC5 23") {
  804. $("option[id='23']").prop("selected", true);
  805. }
  806. if ((system.IRaddress) == "RC5 24") {
  807. $("option[id='24']").prop("selected", true);
  808. }
  809. if ((system.IRaddress) == "RC5 25") {
  810. $("option[id='25']").prop("selected", true);
  811. }
  812. if ((system.IRaddress) == "RC5 26") {
  813. $("option[id='26']").prop("selected", true);
  814. }
  815. if ((system.IRaddress) == "RC5 27") {
  816. $("option[id='27']").prop("selected", true);
  817. }
  818. if ((system.IRaddress) == "RC5 28") {
  819. $("option[id='28']").prop("selected", true);
  820. }
  821. if ((system.IRaddress) == "RC5 29") {
  822. $("option[id='29']").prop("selected", true);
  823. }
  824. if ((system.IRaddress) == "RC5 30") {
  825. $("option[id='30']").prop("selected", true);
  826. }
  827. if ((system.IRaddress) == "RC5 31") {
  828. $("option[id='31']").prop("selected", true);
  829. }
  830. if ((system.IRaddress) == "RC5 255") {
  831. $("option[id='255']").prop("selected", true);
  832. }
  833. }
  834. });
  835. })();
  836.  
  837. (function matterhorn(){
  838. var matterhorn;
  839. $.ajax({
  840. type: "GET",
  841. url: "/api/matterhorn",
  842. processData: true,
  843. dataType: 'text',
  844. cache: false,
  845. success: function (data, textStatus, request) {
  846. matterhorn = jQuery.parseJSON(data);
  847. $("input[id='field_mhserver']").val(matterhorn.server);
  848. $("input[id='field_cagent']").val(matterhorn.captureAgent);
  849. $("input[id='field_username']").val(matterhorn.username);
  850. $("input[id='field_password']").val(matterhorn.password);
  851. $("input[id='field_activate']").val(matterhorn.activate);
  852.  
  853. }
  854. });
  855. })();
  856.  
  857. function showonlyone(thechosenone) {
  858. $('.newboxes').each(function (index) {
  859. if ($(this).attr("id") == thechosenone) {
  860. $(this).show();
  861. }
  862. else {
  863. $(this).hide();
  864. }
  865. });
  866. }
  867.  
  868. function clk (fn) {
  869. window[fn]();
  870. }
  871.  
  872.  
  873.  
  874. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement