Skip to content

Play video in any shape. Be it a circular video or a hexagonal.

Notifications You must be signed in to change notification settings

aasha/CustomisedVideoPlayer

Repository files navigation

CustomisedVideoPlayer

Play video in any shape. Be it a circular video or a hexagonal.

#Usage

  • Create the player you want to use.
  • Add the player to your layout.
  • Call prepare player and you are done

#Sample Code

LinearLayout mainLayout = (LinearLayout)findViewById(R.id.main_layout);
HexagonalPlayer player = new HexagonalPlayer(MainActivity.this);
player.setContentUri(Uri.parse("file:///android_asset/video.mp4"));
mainLayout.addView(player.getVideoFrame());
player.prepare(true);

CircularPlayer player = new CircularPlayer(MainActivity.this);
player.setContentUri(Uri.parse("file:///android_asset/video.mp4"));
mainLayout.addView(player.getVideoFrame());
player.prepare(true);

#Screenshots alt tag

Library used

Exoplayer https://github.com/google/ExoPlayer

#Developer Name Aasha aasha.medhi2004@gmail.com

About

Play video in any shape. Be it a circular video or a hexagonal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages