I'm doing android development, and I want to use some design patterns to design a player framework which makes low coupling, strongly expansibility, and efficient development in my team development.
I thought for a long, and drawn below the design, but I don't think it's good enough, and don't know how to make it better.
the requirements like belows:
-
Before formally playing, it can play some ads videos continuously;
-
I can add a custom console layer to control the player to start, pause and play the next, when I tap the player view, the console layer will appear;
- When I pause the playback the player will pop up a image ads, and I can close this ad too;
- It also can show the loading, failure, retry, play completed, buffering interface at the appropriate time.
I want to do it better, but I don't know how to think about it.
Aucun commentaire:
Enregistrer un commentaire