Vimeo video game in Android native

I am developing a vimeo video application in my native android. But it is not supported in VideoView . Can I find out any samples or related requests for Android. I want the end result to be in .mp3 / .mp4 format.

I tried iframe in Android WebView , it works fine in Android WebView , but I can not get the search bar. And OnPause() failed to pause the video. Here I can get the Pause and Play button. Only

enter image description here

Example: player.vimeo.com/video/49462103

I want to play this video in my native Android environment.

  <VideoView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/videoView" android:layout_centerVertical="true" android:layout_centerHorizontal="true" /> 

Update link to: Vimeo site Thread-1 Vimeo site Thread-2

enter image description here

I get above errors

+4
source share
2 answers

Vimeo embed codes must work inside Android WebView. Vimeo offers only .mp4 links for PRO users on those users who have their own videos.

Another option is to use the official Deep Link library for the Android application. This will allow you to open any vimeo video in the Android application.

+4
source

I made a native player for vimeo based on WebView. Support for public and private video.

Try this: https://github.com/ct7ct7ct7/Android-VimeoPlayer

 <com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayerView android:id="@+id/vimeoPlayer" android:layout_width="match_parent" android:layout_height="wrap_content"/> VimeoPlayerView vimeoPlayer = findViewById(R.id.vimeoPlayer); getLifecycle().addObserver(vimeoPlayer); //public video vimeoPlayer.initialize(59777392); //If video is open. but limit playing at embedded. vimeoPlayer.initialize({YourPrivateVideoId}, "SettingsEmbeddedUrl") //If video is pirvate. vimeoPlayer.initialize({YourPrivateVideoId},"VideoHashKey", "SettingsEmbeddedUrl") 
+1
source

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


All Articles