Skip to content

Commit

Permalink
fix #28
Browse files Browse the repository at this point in the history
  • Loading branch information
tcking committed Jan 5, 2018
1 parent 7268670 commit c006807
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ private GiraffePlayer(Context context, VideoInfo videoInfo) {
log("new GiraffePlayer");
VideoView videoView = PlayerManager.getInstance().getVideoView(videoInfo);
boxContainerRef = new WeakReference<>(videoView!=null?videoView.getContainer():null);
if (boxContainerRef.get() != null) {
boxContainerRef.get().setBackgroundColor(videoInfo.getBgColor());
}
this.proxyListener = new ProxyPlayerListener(videoInfo);
internalPlaybackThread = new HandlerThread("GiraffePlayerInternal:Handler", Process.THREAD_PRIORITY_AUDIO);
internalPlaybackThread.start();
Expand Down

0 comments on commit c006807

Please sign in to comment.