open vimeo app in my Android app?

2019-05-05 18:52发布

I need to show a Vimeo video in my app, I tried it opening the url in a webview, the url appears, but when I link the play button, the player doesn't work. So I want to try it opening the video with the Vimeo app, but I don't know how to call to Vimeo app from my app. Can Anybody help me please? Thank you!

标签: android vimeo
2条回答
可以哭但决不认输i
2楼-- · 2019-05-05 19:23

Possible duplicate: How to send a link to Vimeo?

We've built a simple library that can take care of this for you. Here is the open source github.

compile 'com.vimeo.android.deeplink:vimeo-deeplink:1.0.0'

The README will go into more detail, but this is what you'll want to use:

boolean handled = VimeoDeeplink.showVideoWithUri(Context context, String videoUri)

查看更多
乱世女痞
3楼-- · 2019-05-05 19:24

To launch video in fullscreen with official Vimeo app com.vimeo.android.videoapp:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://player.vimeo.com/video/"+ADD_VIDEO_ID_HERE)));
查看更多
登录 后发表回答