Play vimeo video using android android?

I am developing a website that uses vimeo, and for mobile devices I want the video to be played using the primary user of the phone. Is there any way to do this?

+4
source share
1 answer

In android

First of all . add the io.vov.vitamio.widget package to your project.

2. Then define the video image in your xml layout file ...

3. Then use this code in your java file. Make sure you import packages available in vimeo package

videoView.setVideoURI(Uri.parse(path)); videoView.setMediaController(new MediaController(this)); videoView.requestFocus(); videoView.start(); 

And everything is done.

+1
source

Source: https://habr.com/ru/post/1445948/


All Articles