transportApi.htm 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>JSAPI2::Transport Api</title>
  5. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  6. <script type="text/javascript" src="api2.js"></script>
  7. </head>
  8. <body style="FONT-FAMILY: MS Shell Dlg 2;">
  9. <h2>Transport API</h2>
  10. <h3>Methods:</h3>
  11. <input type="button" value="Prev" onclick="tPrevClicked();">
  12. <input type="button" value="Play" onclick="tPlayClicked();">
  13. <input type="button" value="Pause" onclick="tPauseClicked();">
  14. <input type="button" value="Stop" onclick="tStopClicked();">
  15. <input type="button" value="Next" onclick="tNextClicked();">
  16. <br>
  17. <br>
  18. <input type="button" value="Get Metadata" onclick="tGetMetadataClicked();">
  19. <input type="text" readonline size="40" id="t_t_mTag_Response">
  20. <br>
  21. &nbsp;&nbsp;&nbsp;&nbsp;Metadata Tag:&nbsp;<input type="text" value="artist" id="t_t_mTag_in">
  22. <br>
  23. <h3>Properties</h3>
  24. <input type="button" value="Get shuffle" onclick="tGetShuffleClicked();">
  25. <input type="text" readonline size="20" id="t_t_shuffle">
  26. <br>
  27. <input type="button" value="Set shuffle" onclick="tSetShuffleClicked();">
  28. <input type="text" size="20" id="t_t_shuffle_in">
  29. <br>
  30. <br>
  31. <input type="button" value="Get repeat" onclick="tGetRepeatClicked();">
  32. <input type="text" readonly size="20" id="t_t_repeat">
  33. <br>
  34. <input type="button" value="Set repeat" onclick="tSetRepeatClicked();">
  35. <input type="text" size="20" id="t_t_repeat_in">
  36. <br>
  37. <br>
  38. <input type="button" value="Get position" onclick="tGetPositionClicked();">
  39. <input type="text" readonly size="20" id="t_t_position">
  40. <br>
  41. <input type="button" value="Set position" onclick="tSetPositionClicked();">
  42. <input type="text" size="20" id="t_t_position_in">
  43. <br>
  44. <br>
  45. <input type="button" value="Get length" id="b_t_length" onclick="tLengthClicked();">
  46. <input type="text" readonly size="20" id="t_t_Length">
  47. <br>
  48. <br>
  49. <input type="button" value="Get url" id="b_t_url" onclick="tURLClicked();">
  50. <input type="text" size="95" id="t_t_URL">
  51. <br>
  52. <br>
  53. <input type="button" value="Get title" id="b_t_title" onclick="tTitleClicked();">
  54. <input type="text" size="95" id="t_t_Title">
  55. <br>
  56. <br>
  57. <input type="button" value="Get playing" id="b_t_playing" onclick="tPlayingClicked();">
  58. <input type="text" readonly size="20" id="t_t_Playing">
  59. <br>
  60. <br>
  61. <input type="button" value="Get paused" id="b_t_paused" onclick="tPausedClicked();">
  62. <input type="text" readonly size="20" id="t_t_Paused">
  63. </body>
  64. </html>