I need to start YouTube app.and play any video in app(only in app not in web browser).i am doing this by shell like below
am start -a android.intent.action.VIEW "https://www.youtube.com/watch?v=YnjNoRDi2bM"
again i need to check the status of the video which i played above like whether it is playing , buffering or not playing. how do i do that ? I checked in YouTube API but not able to find any API related to this.how can i achieve this any help ?