I saw on many applications that they can get the info of current playing youtube video's title, duration etc on there application.
See this response
title: Desiigner- Panda (OFFICIAL SONG) Prod. By: Menace
album: null
artist: Desiigner LOD
duration: 248000
position: 33154
positionTimestamp: 438260822
source: com.google.android.youtube
playing: true
artworkUri: null
supportedActions: 560
May I know how I can get this info on my application ?