From d45d923ece93c628371332dd4642f81d02e37838 Mon Sep 17 00:00:00 2001 From: Daniel Christopher Date: Sat, 16 Apr 2016 17:02:40 -0400 Subject: [PATCH 1/2] Made the media player wrapper accessible --- .../danylo/video_player_manager/ui/VideoPlayerView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/VideoPlayerView.java b/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/VideoPlayerView.java index 0a65075..361b249 100644 --- a/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/VideoPlayerView.java +++ b/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/VideoPlayerView.java @@ -249,6 +249,10 @@ public final void setSurfaceTextureListener(SurfaceTextureListener listener){ mLocalSurfaceTextureListener = listener; } + public MediaPlayerWrapper getMediaPlayerWrapper() { + return mMediaPlayer; + } + public void setDataSource(String path) { checkThread(); synchronized (mReadyForPlaybackIndicator) { From 4778206bae2e053181f8b2942e6f98e959714f3e Mon Sep 17 00:00:00 2001 From: Daniel Christopher Date: Sat, 16 Apr 2016 17:04:37 -0400 Subject: [PATCH 2/2] Made media player accessible --- .../danylo/video_player_manager/ui/MediaPlayerWrapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/MediaPlayerWrapper.java b/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/MediaPlayerWrapper.java index 5688438..fd183ac 100644 --- a/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/MediaPlayerWrapper.java +++ b/video-player-manager/src/main/java/com/volokh/danylo/video_player_manager/ui/MediaPlayerWrapper.java @@ -505,6 +505,10 @@ public void setVolume(float leftVolume, float rightVolume) { mMediaPlayer.setVolume(leftVolume, rightVolume); } + public MediaPlayer getMediaPlayer() { + return mMediaPlayer; + } + public int getVideoWidth() { return mMediaPlayer.getVideoWidth(); }