VideoPlayerManager
VideoPlayerManager copied to clipboard
This is a project designed to help controlling Android MediaPlayer class. It makes it easier to use MediaPlayer ListView and RecyclerView. Also it tracks the most visible item in scrolling list. When...
we need to implement this library but we are not sure if the video auto plays if it is inside the view pager
I am implementing an Instagram kind of auto-play video feature in my app, But before updating RecyclerView UI as per this library suggestion. I used this library VideoPlayerView in my...
App was crashing with RuntimeException("this should be called in Main Thread") due to method "inUiThread" returning false even though it is running in main thread . After changing logic to...
I got issues like MediaPlayer﹕ error (1, -2147483648) and MediaPlayerWrapperImpl@1111200424﹕ 1106 catch IO exception [java.io.IOException: Prepare failed.: status=0x1] when i try to play the youtube video url in listview using...
I have ported this VideoPlayerManager in my app. Whenever I refresh layout to get new videos from API, next video is not automatically playing. While debuging I found below exception....
Process: com.volokh.danylo.videolist, PID: 11999 java.lang.RuntimeException: cannot be in main thread at com.volokh.danylo.video_player_manager.ui.VideoPlayerView.checkThread(VideoPlayerView.java:117) at com.volokh.danylo.video_player_manager.ui.VideoPlayerView.setOnVideoStateChangedListener(VideoPlayerView.java:288) at com.volokh.danylo.videolist.video_list_demo.adapter.items.BaseVideoItem.setActive(BaseVideoItem.java:51) at com.volokh.danylo.visibility_utils.calculator.DefaultSingleItemCalculatorCallback.activateNewCurrentItem(DefaultSingleItemCalculatorCallback.java:28) at com.volokh.danylo.visibility_utils.calculator.SingleListViewItemActiveCalculator.setCurrentItem(SingleListViewItemActiveCalculator.java:359) at com.volokh.danylo.visibility_utils.calculator.SingleListViewItemActiveCalculator.calculateMostVisibleItem(SingleListViewItemActiveCalculator.java:189) at com.volokh.danylo.visibility_utils.calculator.SingleListViewItemActiveCalculator.onScrollStateIdle(SingleListViewItemActiveCalculator.java:159) at com.volokh.danylo.videolist.video_list_demo.fragments.VideoRecyclerViewFragment$3.run(VideoRecyclerViewFragment.java:145) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99)...
https://github.com/prensmiskin/VideoPlayerManager-Android-X
I modified the calculateActiveItem method and the calculateMostVisibleItem method. I think the call to the `deactivate` method should destroy the previous call to the `deactivate` method on the next display,...