Load the first video when moving to the video player mode 18/10518/1
authorRusty Lynch <rusty.lynch@intel.com>
Thu, 3 Oct 2013 00:52:03 +0000 (17:52 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Thu, 3 Oct 2013 00:52:03 +0000 (17:52 -0700)
Its confusing when we do not load the first video since the play
button appears to be broken and the screen is just blank since we
do not display the list of videos or anything about the currently
loaded video.

This will result in the first frame of video rendering.

Change-Id: I37da54b33c235d0d553e1d6003b9bc037c0b663d

js/main.js

index 85a0bdb..0fd3eb6 100644 (file)
@@ -418,6 +418,8 @@ function changeMenu(menuButtonId)
                        if (!videoMediaListLoaded)
                                fillMediaList(currentContent);
 
+                        $("#videoPlayer").load();
+
                        showMediaMenu();
                break;