skyyo / compose-video-playback Goto Github PK
View Code? Open in Web Editor NEWRepository for article
Home Page: https://proandroiddev.com/video-playback-in-lazycolumn-in-jetpack-compose-df355097f26e
Repository for article
Home Page: https://proandroiddev.com/video-playback-in-lazycolumn-in-jetpack-compose-df355097f26e
Steps to reproduce:
val playerView = remember {
/*** breakpoint here **/ val layout = LayoutInflater.from(context).inflate(R.layout.video_player, null, false)
// [..] other code
}
I assume that it is not intended that the expensive inflate()
inside of remember {}
is called more than once for one video?
PS right now I have the same problem and I am looking for a solution. I discovered your slides at https://www.droidcon.com/2021/11/25/video-playback-in-lazycolumn-in-jetpack-compose/ and thought that your approach could be the solution :)
I am trying to implement the method you describe in your article and in this repository but have a question. Why does the video take a second to play? Even in your project when you scroll to the nest video it takes a second to play even if the sources is a has file.
Can you explain why the delay?
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.