Youtube Player API for Android -
i'm trying use youtubeplayerview
in android listview
. possible have youtubeplayerview
each item of listview
? should in order working?
yes, possible have youtube player in each item of listview. mentioned here, need migrate application use iframe api
or embedded<iframe>players
. youtube android player api enables incorporate video playback functionality android applications. using api, can load or cue videos player view embedded in application's ui.
you need initialize youtubethumbnailview
. when thumbnailview initialized, app can callback either oninitializationsuccess
or oninitializationfailure
. if it's success put loader , setvideo runs server retrieve thumbnail.
for more information, may use official google documentation including sample application:https://developers.google.com/youtube/android/player/sample-applications
Comments
Post a Comment