Patent ID: 9639248
Date: 2017-05-02
CPC Classifications: G06F,H04N

Claim:
1. A computer-implemented method for displaying a video in a video player, the method comprising: instructing the video player to display a player area having a player area height and a player area width; instructing the video player to display the video at an initial video size within the player area, the initial video size having an initial video height and an initial video width; instructing the video player to display a control panel of the video player within the player area in conjunction with the video, the control panel having a height; receiving a notification that the video player has been resized during display of the video at the initial video size, the notification identifying a new player area height and a new player area width; determining a maximum video height for displaying the video within the player area, the maximum video height based on an aspect ratio of the video, the new player area height, and the new player area width; comparing the maximum video height to a difference between the new player area height and the height of the control panel to determine whether the video can be displayed at a maximum video size within the player area if the control panel is hidden, the maximum video size having the maximum video height; responsive to the maximum video height for the video being greater than the difference between the new player area height and the height of the control panel, instructing the video player to hide the control panel from the player area, and further instructing the video player to display the video at the maximum video size within the player area; and responsive to the maximum video height for the video being less than or equal to the difference between the new player area height and the height of the control panel, instructing the video player to continue displaying the control panel within the player area in conjunction with the video.