GithubHelp home page GithubHelp logo

ct7ct7ct7 / android-vimeoplayer Goto Github PK

View Code? Open in Web Editor NEW
54.0 6.0 39.0 38.29 MB

Unofficial Vimeo video player library for Android.

Home Page: https://ct7ct7ct7.github.io/Android-VimeoPlayer

License: MIT License

Java 91.65% HTML 8.35%
vimeo-player vimeo-video vimeo android-player video-player android webview vimeo-player-api android-vimeoplayer android-vimeo-player

android-vimeoplayer's People

Contributors

ct7ct7ct7 avatar sokarcreative avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

android-vimeoplayer's Issues

What exactly is "SettingsEmbeddedUrl"?

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"?

Update the readme with proper `implementation command` for androidX

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

Class reference of VidmeoPlayerView not found in project or libraries

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?

Full screen seek position

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.

Get video dimensions and set aspect ratio based on that

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?

NoSuchMethodError when i try to play video in Vimeo

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();

Black Screen

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.

Collision with Glide 4.9.0

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)

Setter for aspect ratio

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.

What if a videoId is not an integer?

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.

Full screen button is missing

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首頁的影片)
謝謝

Unable to play videos in a specific device. Chromium errors appeared in logcat.

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?

Runtime Exception Package not found: com.android.chrome on Android 8 Devices

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)

Crash at DefaultControlPanelView

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)

How to play domain restricted videos

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?

Video is playing in background after exiting full screen mode during video loading

  1. play video in full screen
  2. exit by back press while video is loading in starting
  3. now i'm not on video activity but the audio of that video is audible in background
    but if i'm not on full screen mode and exit then there is no problem like this.
    i tried onPause(); , onDestroy(); , toStop() on backPress but got negative result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.