Play vimeo video in android video

I am working on an Android application. In my application, I need to play videos in VideoView. Video from vimeo does not work. Whenever I tried to download a vimeo video, I get an "sorry, this video cannot be played" error message.

I saw some similar discussions on StackOverflow. So I tried the demo of Vittamio . There also vimeo videos are not played.

In the case of the youtube URL, we need to convert to RTSP. eg

http://www.youtube.com/watch?v=Jx3pdWBlZ34 

converted to

 rtsp://v4.cache8.c.youtube.com/CiILENy73wIaGQl-Z2VgdekdJxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp 

I gave a url sample as follows.

 private String path = "http://player.vimeo.com/video/49462103 "; and private String path = "http://vimeo.com/49462103"; 

This is the correct way to input vimeo url in android

Help me fix my problems with friends.

+4
source share
1 answer

Vimeo gives PRO members access to their source files through the new API3.

They are available for each video responder under the files key. You can get video responses by requesting a specific video (one video: /videos/{video_id} ) or by requesting a collection of videos (your videos: /me/videos ).

You can learn more about the api here: https://developer.vimeo.com/api/start

0
source

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


All Articles