ct7ct7ct7 / android-vimeoplayer Goto Github PK
View Code? Open in Web Editor NEWUnofficial Vimeo video player library for Android.
Home Page: https://ct7ct7ct7.github.io/Android-VimeoPlayer
License: MIT License
Unofficial Vimeo video player library for Android.
Home Page: https://ct7ct7ct7.github.io/Android-VimeoPlayer
License: MIT License
Unfortunately it seems this great repo no longer works; only with an old Glide.
Video not playing full screen on screen rotation.
aspect ration app:aspectRatio="1.778"
I am trying to play a list of videos using a web video and i need to mark each one as completed when it has finished playing so that the next one can load immediately but i can't seem to find my way around it. I am using Java this is the issue in Stack Overflow. thanks
Hi. Thank you for making such a great library, I am currently using it for streaming my domain restricted Vimeo video, but I am struggling with this "SettingsEmbeddedUrl" thing. Can you give us more information about "SettingsEmbeddedUrl", like a tutorial video about how to get "SettingsEmbeddedUrl" on your Vimeo account or just a list of steps to tell us how to get "SettingsEmbeddedUrl"?
Android X
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
wrong link: > 'implementation 'com.ct7ct7ct7.androidvimeoplayer:library:2.1'
correct one: > 'implementation 'com.github.ct7ct7ct7:Android-VimeoPlayer:2.1'
}
android.useAndroidX=true
android.enableJetifier=true
As per the instructions of README.md file, I added implementation 'com.ct7ct7ct7.androidvimeoplayer:library:2.1'
in the app module gradle file. In the project level gradle, I added maven { url "https://jitpack.io" }
inside allproject { repositories {...} }
.
Inside gradle.properties, I ensured that the following lines existed:
android.useAndroidX=true
android.enableJetifier=true
I invalidated chaches and restarted android studio multiple times.
But even after that, when I add the following snippet in the XML layout file, android studio can't find com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayerView
in any class or libraries.
<com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayerView
android:id="@+id/vimeo_player"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:showFullscreenOption="true" />
What am I missing here?
I have implemented vimeo player in recycler view it's working fine but when I have manually used seek to and then after play with addReadyListener -> OnReady -> Method but it didn't work for me
chromium: [INFO:CONSOLE(2)] "Uncaught (in promise) Error: “https://vimeo.com/xxxxx” is not embeddable.", source: https://player.vimeo.com/api/player.js (2)
When vimeo clip is playing....user can click on full screen button in the corner
and seek position stored and using proper;y in full screen activity
but when we return back to usual vimeo activity, seek position equals to 0 and clip begin play from the scratch.
First of all, thanks for your great work! I was going through the Youtube version of this, and was bummed that I might have to write the Vimeo one. But saw you've already done it, and done it well! Thanks!
I have 2 types of videos; landscape and portrait. I am placing the player views in a recyclerview and want to dynamically resize the element based on the video width and height. Do you know if I can get the video dimensions?
I try to play vimeo video but showing me this error. what i need to do?
dependency like:- implementation 'com.ct7ct7ct7.androidvimeoplayer:library:1.2.2'
Glide dependency:- implementation'com.github.bumptech.glide:glide:4.14.2'
implementation 'jp.wasabeef:glide-transformations:3.0.1'
java.lang.NoSuchMethodError: No virtual method priority(Lcom/bumptech/glide/Priority;)Lcom/bumptech/glide/request/RequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes (declaration of 'com.bumptech.glide.request.RequestOptions' appears in /data/app/~~tQ1ThUqDynAA0a8fQT1l2A==/app.example.com-ai-A_YlHjpQVAFZAkbdKwO==/base.apk)
getLifecycle().addObserver(vimeoPlayer); vimeoPlayer.initialize(true, (int) videoid); vimeoPlayer.loadVideo((int) videoid); vimeoPlayer.seekTo(1.0f); vimeoPlayer.play(); vimeoPlayer.clearCache();
How to initialize player in non androidx project
I tried using it inside a recyclerview but only audio is working Video is not being played .
audio is played even if device is locked
The video is loading i can see the title but at first i can't see the thumbnail image. When i tap the play button it plays and i can see the video. Thank you.
Sometimes the videos are displayed incorrectly on phone (google Pixel 2XL)
There are no buttons visible and when the video starts playing (stretched),
I can’t stop it.
![Screenshot_20190613-165958]
(https://user-images.githubusercontent.com/5163612/59429337-3790f580-8dfd-11e9-8f98-a63d551075d6.png)
)?
if Layout contains both Vimeo and Glide o be show together
it produce such error
java.lang.NoSuchMethodError: No virtual method priority(Lcom/bumptech/glide/Priority;)Lcom/bumptech/glide/request/RequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes (declaration of 'com.bumptech.glide.request.RequestOptions' appears in /data/app/ee.loquiz-U2TB8USuUS9rV1afslnRTQ==/base.apk)
at com.ct7ct7ct7.androidvimeoplayer.view.DefaultControlPanelView$11.onPostExecute(DefaultControlPanelView.java:283)
at com.ct7ct7ct7.androidvimeoplayer.view.DefaultControlPanelView$11.onPostExecute(DefaultControlPanelView.java:262)
at android.os.AsyncTask.finish(AsyncTask.java:727)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:744)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
In my use case, I need to calculate the ratio since my app is supporting various sizes and tablets.
It would be great if u can add a setter for aspect ratio too.
Getting java.lang.NumberFormatException: For input string:
when we've videoId like this e.g. "66415446===157".
Please update this library to accept string as videoId as well.
I am wondering why it does not have an option to toggle fullscreen. Is there any issues with Player.js? (*I am not familiar with JS)
video id > 750000000 部分影片無法播放
影片標題可以顯示
ex. 768689270, 764016089 (兩部都是vimeo首頁的影片)
謝謝
Is it possible to add customized control panel view like android-youtube-player library? How can we do this?
On api 28 the video is loading but on api 19 the video is stock on loading screen
I'm using this library to play Vimeo videos. I'm able to play the videos in phone with Android 6, but when I try with another device with Android 6 (a kind of set top box) it doesn't work.
These messages are when I call initialize()
method:
I/chromium: [INFO:CONSOLE(0)] "Refused to load the image 'android-webview-video-poster:default_video_poster/-5383068036791378439' because it violates the following Content Security Policy directive: "img-src 'self' data: https://i.vimeocdn.com https://secure-b.vimeocdn.com https://f.vimeocdn.com https://vimeo.com https://secure.gravatar.com https://i0.wp.com https://i1.wp.com https://i2.wp.com https://pagead2.googlesyndication.com https://player.vimeo.com https://*.ci.vimeows.com https://videoapi-sprites.vimeocdn.com https://i.vimeocdn.com https://wirewax.s3.eu-west-1.amazonaws.com https://studio-media.wirewax.com https://edge-assets.wirewax.com https://f.vimeocdn.com".
", source: https://player.vimeo.com/video/645100337?h=60b071fdb0&color=00acf0&playsinline=0&quality=Auto&app_id=122963 (0)
I/chromium: [INFO:CONSOLE(10)] "Uncaught TypeError: i.hasOwnProperty is not a function", source: https://f.vimeocdn.com/p/4.6.0/js/player.js (10)
When onReady()
listener method is called y run play()
method and I get this message:
I/chromium: [INFO:CONSOLE(10)] "Uncaught TypeError: i[(i.length - 1)].toJSON is not a function", source: https://f.vimeocdn.com/p/4.6.0/js/player.js (10)
Do you know why is this happening?
library is only playing those videos which are public on vimeo but not playing those videos which are hidden from vimeo or unlisted.
Caused by java.lang.RuntimeException
Package not found: com.android.chrome
android.webkit.WebViewDelegate.getPackageId (WebViewDelegate.java:164)
yn.a (yn.java:7)
com.android.webview.chromium.WebViewChromiumFactoryProvider.a (WebViewChromiumFactoryProvider.java:54)
android.webkit.WebView. (WebView.java:571)
com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayer. (VimeoPlayer.java:1)
com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayerView. (VimeoPlayerView.java:3)
com.ct7ct7ct7.androidvimeoplayer.utils.JsBridge.addReadyListener (JsBridge.java:1)
com.ct7ct7ct7.androidvimeoplayer.view.VimeoPlayerView. (VimeoPlayerView.java:1)
java.lang.reflect.Constructor.newInstance0 (Constructor.java)
android.view.LayoutInflater.inflate (LayoutInflater.java:423)
com.unibuzz.ui.group.adapters.RemarkAdapter.onCreateViewHolder (RemarkAdapter.java:21)
androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder (RecyclerView.java:76)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Fatal Exception: java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed + 323(RequestManagerRetriever.java:323)
at com.bumptech.glide.manager.RequestManagerRetriever.get + 132(RequestManagerRetriever.java:132)
at com.bumptech.glide.manager.RequestManagerRetriever.get + 116(RequestManagerRetriever.java:116)
at com.bumptech.glide.Glide.with + 707(Glide.java:707)
at com.ct7ct7ct7.androidvimeoplayer.view.DefaultControlPanelView$11.onPostExecute + 286(DefaultControlPanelView.java:286)
at com.ct7ct7ct7.androidvimeoplayer.view.DefaultControlPanelView$11.onPostExecute + 262(DefaultControlPanelView.java:262)
at android.os.AsyncTask.finish + 695(AsyncTask.java:695)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage + 712(AsyncTask.java:712)
at android.os.Handler.dispatchMessage + 106(Handler.java:106)
at android.os.Looper.loop + 187(Looper.java:187)
at android.app.ActivityThread.main + 7042(ActivityThread.java:7042)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 514(RuntimeInit.java:514)
at com.android.internal.os.ZygoteInit.main + 888(ZygoteInit.java:888)
I have added domain restriction to the video hosting site, now I want to play the domain restricted videos on my Android app.
What domain should I define to play the domain-restricted video inside my Android app?
Hi, I am very new this and was trying to play password protected videos. Are there any changes I have to make to get it running ??
Hi All,
I am stuck with to get Hashkey and SettingEmbedURL
Is there any Rest API to get these values?.....
Please let me for the same
Video not playing for newly uploaded private vimeo videos
Showing error as
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 4 path $
I tested with the repository example.
when root view has padding/margin then width of view not fit .
Right 3 button view cut because of this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.