VideoPlayerManager
VideoPlayerManager copied to clipboard
RuntimeException: cannot be in main thread
Hello
I tried you library. it is nice. But I am implementing video player for webM/vp8 formats and I have to seekbar update about current state of movie. I want to use VideoPlayerView:setOnVideoStateChangedListener and receved error: "cannot be in main thread" Why did you check mainThread?
We cannot call methods from MediaPlayer in main thread because they are directly calling the hardware.
I have written about it in the article. Please find more detailed explanation here: https://medium.com/@v.danylo/implementing-video-playback-in-a-scrolled-list-listview-recyclerview-d04bc2148429#.fq29bo818
thx