1

I am getting a link to play a video (in my Rest API) in the android application... I am using retrofit to handle my rest api's .... and I am not sure how to use the link for video in my android application ... can anyone help me how I can play video using retrofit ... thanks :)

video_url   :   https://www.youtube.com/embed/0aNNYEUARAk

like this, I am getting the URL in JSON response. I want to play this video in an activity with my own controllers.

Subin Babu
  • 1,515
  • 2
  • 24
  • 50
S.H
  • 139
  • 13
  • 1
    you can use https://github.com/google/ExoPlayer for play video from server. If you have youtube video than use youtube video player. https://developers.google.com/youtube/android/player/ – iAndroid Oct 25 '18 at 11:14
  • currently i am having a youtube video .... but its not compulsory that all the timei am getting a youtube video .... video could be from daily motion or any other site .... what should i do now – S.H Oct 25 '18 at 11:20
  • please refer SO https://stackoverflow.com/questions/29607104/how-to-play-youtube-video-in-exoplayer-in-android – iAndroid Oct 25 '18 at 11:22

0 Answers0