#NEWLINE# def play_video( self , youtube_id ) : #NEWLINE# #INDENT# '\n        Starts playing a video in the YouTube app.\n\n        Only works if there is no video playing.\n        ' #NEWLINE# self . launch ( ) #NEWLINE# msg = { #NEWLINE# #INDENT# 'type' : 'flingVideo' , #NEWLINE# 'data' : { #NEWLINE# #INDENT# 'currentTime' : 0 , #NEWLINE# 'videoId' : youtube_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . send_message ( youtube_id , inc_session_id = True )