Can we watch youtube video in android app? I mean if we have link to video on youtube, can we play it in VideoView or another widget? Any ideas about it?
Can integrate youtube videos using youtube sdk
with youtube sdk you can have many options while integrating a video
for more http://www.androidcoding.in/2017/12/17/android-play-youtube-video-play-youtube-video-app/
private final class StateChangeListener implements YouTubePlayer.PlayerStateChangeListener {
@Override
public void onLoading() {
}
@Override
public void onLoaded(String s) {
}
@Override
public void onAdStarted() {
}
@Override
public void onVideoStarted() {
}
@Override
public void onVideoEnded() {
}
@Override
public void onError(YouTubePlayer.ErrorReason errorReason) {
}
}