How to send a link to Vimeo?

How can I send a link from the application I'm currently doing to a specific URL?

blah.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://player.vimeo.com/video/83178705?")); startActivity(browserIntent); } }); 
+1
source share
1 answer

If you want to open the Vimeo URL in the Vimeo Android app, you can either do what has been published, or you can refine the Vimeo app with the correct intent data (aka deep binding). To facilitate both of these types of intentions, you can use the vimeo-deeplink-android library.

For the above video https://www.vimeo.com/83178705 you have two options:

 VimeoDeeplink.openUrl(getApplicationContext(), "https://www.vimeo.com/83178705"); VimeoDeeplink.showVideoWithUri(getApplicationContext(), "/videos/83178705"); 

For the last query, you can rewrite it as:

 VimeoDeeplink.showVideoWithUri(getApplicationContext(), VimeoDeeplink.VIMEO_VIDEO_URI_PREFIX + "83178705"); 

These requests will open the Vimeo Android application (if installed) and launch the video player.

+2
source

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


All Articles