Search code examples
androidtwitterwebviewandroid-videoview

Play video from url which have no any extension in twitter response?


I want to play video in videoview from Twitter response. But there is no extension(like .mp4) in url. I have get null video_info object from response where i use fabric for that.

So how to play video from that url or any other alternative solution?


Solution

  • Look like it is a Twitter video, right? You need to get the final .mp4 Uri.

    You should start over the Twitter API or, you can check this php example: Get twitter video mp4 url

    You would need to implement that over JAVA with Twitter4j (for example)