vendredi 6 mai 2016

I have designed a media player in Java , how can I do it better? [on hold]

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.

Design Diagram

the requirements like belows:

  1. Before formally playing, it can play some ads videos continuously;

  2. 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;

  3. When I pause the playback the player will pop up a image ads, and I can close this ad too;
  4. 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