[Android] VideoPlayerActivity : add some secondary display logs

Alexandre Perraud git at videolan.org
Tue May 6 11:54:02 CEST 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Apr 29 16:20:35 2014 +0200| [59c381b107d3a3378c18a127964da5a46431fd19] | committer: Adrien Maglo

VideoPlayerActivity : add some secondary display logs

Signed-off-by: Adrien Maglo <magsoft at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=59c381b107d3a3378c18a127964da5a46431fd19
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 8cb48e3..d174a18 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -244,6 +244,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                     removePresentation();
                 }
             };
+            Log.d(TAG, "MediaRouter information : " + mMediaRouter  .toString());
         }
 
 
@@ -2008,7 +2009,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                         + "the meantime.", ex);
                 mPresentation = null;
             }
-        }
+        } else
+            Log.i(TAG, "No secondary display detected");
     }
 
     @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
@@ -2101,6 +2103,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             /* Only show the subtitles surface when using "Full Acceleration" mode */
             if (mLibVLC != null && mLibVLC.getHardwareAcceleration() == 2)
                 mSubtitlesSurface.setVisibility(View.VISIBLE);
+            Log.i(TAG, "Secondary display created");
         }
     }
 



More information about the Android mailing list