1

Is there a way to launch the YouTube app in Android TV with an intent? Is is possible to pass a keyword to search for? It doesn't seem to mention something related to Android TV developer site.

netcyrax
  • 1,079
  • 1
  • 13
  • 27

2 Answers2

0

As mentioned in YouTubeIntents documentation, there are public methods which can be used like canResolvePlayVideoIntent() to check if the YouTube application installed on the user's device supports the play video intent. Required parameters and returned results for different methods can be seen in the documentation.

Teyam
  • 7,686
  • 3
  • 15
  • 22
0

For first question, yes, it is possible using YouTube Android Player API.

For second question, you may use createSearchIntent mentioned in here

You can also refer related question, Use Youtube API in Android TV

Community
  • 1
  • 1
corochann
  • 1,604
  • 1
  • 13
  • 24