def get_recently_played_list(self, request):
     try:
         pairedDeviceId = request.get_arg("pairedDeviceId")
         language = request.get_arg(AppInfo.REQUEST_KEY_LANGUAGE)
         returnStr = MediaPlayerControllerService.get_recently_played_list(pairedDeviceId, language=language)
         self.send_response(returnStr, request.requestId)
     except SystemException as se:
         self.send_response(se.value, request.requestId, se.value["returnValue"], se.value["returnMessage"])
     except Exception as e:
         self.send_response({"error":str(e)}, request.requestId, 1001)
Пример #2
0
 def get_recently_played_list(self, request):
     try:
         pairedDeviceId = request.get_arg("pairedDeviceId")
         language = request.get_arg(AppInfo.REQUEST_KEY_LANGUAGE)
         returnStr = MediaPlayerControllerService.get_recently_played_list(
             pairedDeviceId, language=language)
         self.send_response(returnStr, request.requestId)
     except SystemException as se:
         self.send_response(se.value, request.requestId,
                            se.value["returnValue"],
                            se.value["returnMessage"])
     except Exception as e:
         self.send_response({"error": str(e)}, request.requestId, 1001)
 def set_player_play_link(self, request):
     try:
         pairedDeviceId = request.get_arg("pairedDeviceId")
         link = request.get_arg("link")
         mediaType = request.get_arg("mediaType")
         title = request.get_arg("title")
         language = request.get_arg(AppInfo.REQUEST_KEY_LANGUAGE)
         returnStr = MediaPlayerControllerService.set_player_play_link(pairedDeviceId, link=link, mediaType=mediaType, title=title, language=language)
         self.send_response(returnStr, request.requestId)
     except SystemException as se:
         self.send_response(se.value, request.requestId, se.value["returnValue"], se.value["returnMessage"])
     except Exception as e:
         self.send_response({"error":str(e)}, request.requestId, 1001)
Пример #4
0
 def set_player_play_link(self, request):
     try:
         pairedDeviceId = request.get_arg("pairedDeviceId")
         link = request.get_arg("link")
         mediaType = request.get_arg("mediaType")
         title = request.get_arg("title")
         language = request.get_arg(AppInfo.REQUEST_KEY_LANGUAGE)
         returnStr = MediaPlayerControllerService.set_player_play_link(
             pairedDeviceId,
             link=link,
             mediaType=mediaType,
             title=title,
             language=language)
         self.send_response(returnStr, request.requestId)
     except SystemException as se:
         self.send_response(se.value, request.requestId,
                            se.value["returnValue"],
                            se.value["returnMessage"])
     except Exception as e:
         self.send_response({"error": str(e)}, request.requestId, 1001)