コード例 #1
0
 /** Handles the 'previous' event and returns the result. */
 public Resolution previous() {
   JSONMediaPlayerStatus status = new JSONMediaPlayerStatus(DBusMediaPlayer.previous(playerId));
   String jsonText = status.JSONStatus();
   return new StreamingResolution("text", new StringReader(jsonText));
 }
コード例 #2
0
 /** Handles the 'status' event and returns the result. */
 @DefaultHandler
 public Resolution status() {
   JSONMediaPlayerStatus jsonStatus = DBusMediaPlayer.getJSONStatus(playerId);
   String jsonText = jsonStatus.JSONStatus().toString();
   return new StreamingResolution("text", new StringReader(jsonText));
 }