


技术领域technical field
本发明涉及视频播放技术领域,尤其涉及一种选取浮窗播放器位置的方法及装置。The invention relates to the technical field of video playback, in particular to a method and device for selecting the position of a floating window player.
背景技术Background technique
随着科技的进步,触控屏幕客户端的用户对客户端的操控以及使用的优化提出了更高的要求。用户在观看视频的同时也有继续浏览其他页面的需求,目前市场已有可以浮动于客户端屏幕最顶层的视频播放器,用户在使用这种类型的播放器时,若想同时浏览其他页面,通常需要先点击屏幕,使得消失的播放按钮显现,然后点击浮动窗口的按键来实现播放器窗口的浮动操作。通常桌面图标可能位于屏幕的上半部分,或者布满整个屏幕,因此每次弹出浮窗播放器的时候,浮窗播放器的停留位置几乎都会覆盖用户可能即将要点击的桌面图标,使得用户在进一步使用过程中,还需要先移动浮窗播放器,再对其他应用进行操作,使得客户端因创建浮窗播放器后将要处理的命令增加,影响了客户端的处理速度。With the advancement of technology, users of touch screen clients have put forward higher requirements for the operation and optimization of the client. Users also need to continue to browse other pages while watching videos. At present, there are video players that can float on the top of the client screen. When users use this type of player, if they want to browse other pages at the same time, usually You need to click the screen first to make the disappearing play button appear, and then click the button of the floating window to realize the floating operation of the player window. Usually the desktop icon may be located in the upper half of the screen, or cover the entire screen, so every time the floating window player pops up, the floating window player will almost cover the desktop icon that the user may be about to click, so that the user can click on the In the further use process, it is necessary to move the floating window player first, and then operate other applications, so that the client will increase the number of commands to be processed after the floating window player is created, which affects the processing speed of the client.
发明内容Contents of the invention
本发明实施例提供一种选取浮窗播放器位置的方法,用以解决现有技术中创建浮窗播放器后,浮窗播放器的停留位置会覆盖用户即将点击的桌面图标,使得用户在进一步使用过程中,必须先移动浮窗播放器,在对其他进行操作,使得客户端因创建浮窗播放器后将要处理的命令增加,影响了客户端的处理速度。The embodiment of the present invention provides a method for selecting the position of the floating window player, which is used to solve the problem in the prior art that after the floating window player is created, the stay position of the floating window player will cover the desktop icon that the user is about to click, so that the user can further During use, the floating window player must be moved first, and then other operations are performed, which increases the client's processing speed due to the increase in commands to be processed after the floating window player is created.
本发明实施例提供的具体技术方案如下:The specific technical scheme that the embodiment of the present invention provides is as follows:
第一方面,一种选取浮窗播放器位置的方法,该方法包括:In the first aspect, a method for selecting the position of a floating window player, the method includes:
在收到创建浮窗播放器的指令后,检测操作界面中的图标位置信息;After receiving the instruction to create a floating window player, detect the icon position information in the operation interface;
根据获取的图标位置信息,判断操作界面的空置区域的面积是否达到第一设定阈值;According to the acquired icon position information, it is judged whether the area of the vacant area of the operation interface reaches the first set threshold;
若是,则根据空置区域的大小和位置创建浮窗播放器;If so, create a floating window player according to the size and position of the vacant area;
否则,根据操作界面中的各图标的点击次数,在点击次数低于设定阈值的图标所处区域创建浮窗播放器。Otherwise, according to the number of clicks of each icon in the operation interface, a floating window player is created in the area where the icon whose number of clicks is lower than the set threshold is located.
通过这种可能的实现方式,可以保证用户在创建浮窗播放器后,可以直接对桌面图标进行操作,不再需要移动浮窗播放器至空置区域,给用户的使用带来了极大的方便,简化了操作流程。Through this possible implementation method, it can ensure that the user can directly operate the desktop icons after creating the floating window player, and no longer needs to move the floating window player to an empty area, which brings great convenience to the user , which simplifies the operation process.
结合第一方面,在第一种可能的实现方式中,收到创建浮窗播放器的指令,具体包括:In combination with the first aspect, in a first possible implementation manner, receiving an instruction to create a floating window player specifically includes:
检测到符合预设的用于指示创建浮窗播放器的用户手势;或者A preset user gesture to create an Air Player is detected; or
判定预先设置的用于指示创建浮窗播放器的按钮被点击。It is determined that a preset button for instructing to create a floating window player is clicked.
结合第一方面,在第二种可能的实现方式中,根据操作界面中的各图标的点击次数,在点击次数低于设定阈值的图标区域创建浮窗播放器,包括:In combination with the first aspect, in the second possible implementation, according to the number of clicks of each icon in the operation interface, a floating window player is created in the icon area where the number of clicks is lower than the set threshold, including:
根据第一设定阈值指示的浮窗播放器正常运行的最小面积将操作界面划分为多个图标区域;Divide the operation interface into a plurality of icon areas according to the minimum area of the normal operation of the floating window player indicated by the first set threshold;
根据每一个图标区域中各图标的点击总次数,在点击总次数最少的图标区域按照该图标区域的大小和位置创建浮窗播放器。According to the total number of clicks of each icon in each icon area, a floating window player is created in the icon area with the least total number of clicks according to the size and position of the icon area.
通过这种可能的实现方式,可以在操作界面布满图标的情况下,优选点击次数最少的图标区域创建浮窗播放器,创建的浮窗播放器很大几率不会覆盖用户即将使用的图标。Through this possible implementation, when the operation interface is full of icons, the floating window player can be created in the icon area with the least number of clicks, and the created floating window player has a high probability that it will not cover the icons that the user will use.
结合第一方面的上述任意一种可能的实现方式,在第三种可能的实现方式中,在创建浮窗播放器之后,还包括:In combination with any of the above possible implementations of the first aspect, in the third possible implementation, after creating the floating window player, it further includes:
放大浮窗播放器。Zoom in on the air player.
结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,放大浮窗播放器,包括:In combination with the third possible implementation of the first aspect, in a fourth possible implementation, enlarging the floating window player includes:
在收到放大浮窗播放器的指令后,根据与浮窗播放器所在的当前图标区域相邻的每一个图标区域中各图标的点击总次数,将点击总次数最少的图标区域与浮窗播放器所在的当前图标区域合并,并根据合并后图标区域的大小放大浮窗播放器。After receiving the instruction to enlarge the floating window player, according to the total number of clicks of each icon in each icon area adjacent to the current icon area where the floating window player is located, the icon area with the least total number of clicks will be played with the floating window The current icon area where the player is located is merged, and the floating window player is enlarged according to the size of the merged icon area.
通过这种可能的实现方式,使得用户在放大浮窗播放器时同样不会覆盖常用的图标。Through this possible implementation, the user will not cover commonly used icons when zooming in on the player in the floating window.
结合第一方面,在第五种可能的实现方式中,在创建浮窗播放器之后关闭浮窗播放器,包括:In combination with the first aspect, in a fifth possible implementation manner, closing the floating window player after creating the floating window player includes:
检测用户手势的起点和终点,计算起点和终点形成的线段在横坐标轴投影的长度,确定长度大于设定门限值时,关闭浮窗播放器,其中,以当前屏幕下边沿为横坐标轴;或者Detect the starting point and ending point of the user gesture, calculate the projected length of the line segment formed by the starting point and the ending point on the abscissa axis, and close the floating window player when the length is determined to be greater than the set threshold value, where the lower edge of the current screen is used as the abscissa axis ;or
在预先设置的用于指示关闭浮窗播放器的按钮被点击时,关闭浮窗播放器。When the preset button for instructing to close the floating window player is clicked, the floating window player is closed.
第二方面,一种客户端,包括:In the second aspect, a client includes:
检测单元,用于在收到创建浮窗播放器的指令后,检测操作界面中的图标位置信息;The detection unit is used to detect the icon position information in the operation interface after receiving the instruction to create the floating window player;
判断单元,用于根据获取的图标位置信息,判断操作界面的空置区域的面积是否达到第一设定阈值;A judging unit, configured to judge whether the area of the vacant area of the operation interface reaches the first set threshold according to the acquired icon position information;
处理单元,用于在判定操作界面空置区域的面积达到第一设定阈值时,根据空置区域的大小和位置创建浮窗播放器;或者,在判定操作界面空置区域的面积未达到第一设定阈值时,根据操作界面中各图标的点击次数,在点击次数低于设定阈值的图标区域创建浮窗播放器。The processing unit is configured to create a floating window player according to the size and position of the vacant area when it is determined that the area of the vacant area of the operation interface reaches the first set threshold; or, when it is determined that the area of the vacant area of the operation interface does not reach the first setting When the threshold is set, according to the number of clicks of each icon in the operation interface, a floating window player is created in the icon area where the number of clicks is lower than the set threshold.
通过这种可能的实现方式,可以保证用户在创建浮窗播放器后,可以直接对桌面图标进行操作,不再需要移动浮窗播放器至空置区域,给用户的使用带来了极大的方便,简化了操作流程。Through this possible implementation method, it can ensure that the user can directly operate the desktop icons after creating the floating window player, and no longer needs to move the floating window player to an empty area, which brings great convenience to the user , which simplifies the operation process.
结合第二方面,在第一种可能的实现方式中,检测单元,具体用于检测到符合预设的用于指示创建浮窗播放器的用户手势时,或者在收到预先设置的用于指示创建浮窗播放器的按钮被点击而触发产生的指令时,检测操作界面中的图标位置信息。With reference to the second aspect, in a first possible implementation manner, the detection unit is specifically configured to detect when a preset user gesture for instructing to create a floating window player is detected, or when a preset user gesture for instructing is received When the button for creating a floating window player is clicked to trigger the generated command, the icon position information in the operation interface is detected.
结合第二方面,在第二种可能的实现方式中,处理单元,具体用于:With reference to the second aspect, in a second possible implementation manner, the processing unit is specifically configured to:
根据第一设定阈值指示的浮窗播放器正常运行的最小面积将操作界面划分为多个图标区域;Divide the operation interface into a plurality of icon areas according to the minimum area of the normal operation of the floating window player indicated by the first set threshold;
根据每一个图标区域中各图标的点击总次数,在点击总次数最少的图标区域按照该图标区域的大小和位置创建浮窗播放器。According to the total number of clicks of each icon in each icon area, a floating window player is created in the icon area with the least total number of clicks according to the size and position of the icon area.
通过这种可能的实现方式,可以在操作界面布满图标的情况下,优选点击次数最少的图标区域创建浮窗播放器,创建的浮窗播放器很大几率不会覆盖用户即将使用的图标。Through this possible implementation, when the operation interface is full of icons, the floating window player can be created in the icon area with the least number of clicks, and the created floating window player has a high probability that it will not cover the icons that the user will use.
结合第二方面的上述任一种可能的实现方式,在第三种可能的实现方式中,处理单元,还用于在创建浮窗播放器之后,放大浮窗播放器。With reference to any one of the foregoing possible implementation manners of the second aspect, in a third possible implementation manner, the processing unit is further configured to enlarge the floating window player after the floating window player is created.
结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,处理单元,还用于在收到放大浮窗播放器的指令后,根据与浮窗播放器所在的当前图标区域相邻的每一个图标区域中各图标的点击总次数,将点击总次数最少的图标区域与浮窗播放器所在的当前图标区域合并,并根据合并后图标区域的大小放大浮窗播放器。In combination with the third possible implementation of the second aspect, in the fourth possible implementation, the processing unit is further configured to, after receiving an instruction to enlarge the floating window player, The total number of clicks of each icon in each icon area adjacent to the icon area, the icon area with the least total number of clicks is merged with the current icon area where the floating window player is located, and the floating window player is enlarged according to the size of the merged icon area .
通过这种可能的实现方式,使得用户在放大浮窗播放器时同样不会覆盖常用的图标。Through this possible implementation, the user will not cover commonly used icons when zooming in on the player in the floating window.
结合第二方面的上述任一种可能的实现方式,在第五种可能的实现方式中,处理单元还用于检测用户手势的起点和终点,计算起点和终点形成的线段在横坐标轴投影的长度,确定长度大于设定门限值时,关闭浮窗播放器,其中,以当前屏幕下边沿为横坐标轴;或者,收到用户点击预先设置的用于指示关闭浮窗播放器的按钮的操作指示时,关闭浮窗播放器。In combination with any of the above possible implementations of the second aspect, in a fifth possible implementation, the processing unit is further configured to detect the starting point and the ending point of the user gesture, and calculate the projection of the line segment formed by the starting point and the ending point on the abscissa axis Length, when it is determined that the length is greater than the set threshold value, close the floating window player, where the lower edge of the current screen is used as the abscissa axis; or, when the user clicks the preset button for instructing to close the floating window player Close the pop-up player when instructed to do so.
附图说明Description of drawings
图1为本发明实施例中选取浮窗播放器位置的流程图;Fig. 1 is the flowchart of selecting the position of the floating window player in the embodiment of the present invention;
图2为本发明实施例中客户端屏幕示意图;Fig. 2 is a schematic diagram of a client screen in an embodiment of the present invention;
图3为本发明实施例中的客户端装置图。FIG. 3 is a diagram of a client device in an embodiment of the present invention.
具体实施方式Detailed ways
为了给出浮窗播放器停留位置优化的实现方案,解决弹出浮窗播放器时,浮窗播放器会覆盖用户即将使用的桌面图标的问题,本发明实施例提供了一种选取浮窗播放器位置的方法。In order to provide an implementation plan for optimizing the stay position of the floating window player and solve the problem that the floating window player will cover the desktop icon that the user is about to use when the floating window player pops up, the embodiment of the present invention provides a method for selecting the floating window player location method.
以下结合说明书附图对本发明的优选实施例进行说明。Preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings.
本发明实施例提供一种选取浮窗播放器位置的方法,该方法具体包括以下步骤:The embodiment of the present invention provides a method for selecting the position of the floating window player, the method specifically includes the following steps:
步骤100:客户端在收到创建浮窗播放器的指令后,检测操作界面中的图标位置信息。Step 100: After receiving the instruction to create a floating window player, the client detects the icon position information in the operation interface.
具体的,在客户端打开播放器时,会在页面的上方显示播放器,下方显示当前播放视频的信息,在检测符合预设的用于指示创建浮窗播放器的用户手势时,或者在判定用户点击预先设置的用于指示创建浮窗播放器的按钮后,都会形成创建浮窗播放器的指令。Specifically, when the client opens the player, the player will be displayed on the top of the page, and the information of the currently playing video will be displayed on the bottom. After the user clicks a preset button for instructing to create a floating window player, an instruction for creating a floating window player will be formed.
其中,预设的用于指示创建浮窗播放器的手势一般预设为从上向下拖动页面上方的播放器,以当前屏幕纵方向的二分之一处为分界线,当拖动手势停止并形成的终点超过二分之一处时,判定形成创建浮窗播放器的指令。Among them, the preset gesture used to instruct the creation of a floating window player is generally preset to drag the player above the page from top to bottom, with half of the vertical direction of the current screen as the dividing line, when the drag gesture When it stops and the formed end point exceeds half, it is determined that an instruction to create a floating window player is formed.
在判定形成浮窗播放器的指令后,客户端在接收到创建浮窗播放器的指令之后,检测操作界面中的图标位置信息。After determining the instruction to form the floating window player, the client detects the icon position information in the operation interface after receiving the instruction to create the floating window player.
步骤110:客户端根据获取的图标位置信息判断操作界面空置区域的面积是否达到第一设定阈值。若是,则执行步骤120;否则,执行步骤130。Step 110: The client judges whether the area of the vacant area of the operation interface reaches the first set threshold according to the acquired icon position information. If yes, execute
具体的,客户端根据获取的图标位置信息选取操作界面中的空置区域,若空置区域的个数大于一个,则选取面积最大的空置区域,若存在与面积最大的空置区域相同面积的空置区域,则从面积最大的空置区域选取任意一块空置区域,根据选取的空置区域判断该空置区域的面积是否达到第一设定阈值;若空置区域只有一个,则直接判断该空置区域的面积是否达到第一设定阈值,其中,该第一设定阈值用于指示浮窗播放器可以正常运行的最小面积。上述操作确保了用户在创建浮窗播放器的时,客户端可以最优的将浮窗播放器的停留位置选取在操作界面无图标的空置区域,使得用户下一步在操作界面点击图标时,不受到浮窗播放器的覆盖。Specifically, the client selects the vacant area in the operation interface according to the obtained icon position information, if the number of vacant areas is more than one, select the vacant area with the largest area, if there is a vacant area with the same area as the largest vacant area, Then select any vacant area from the vacant area with the largest area, and judge whether the area of the vacant area reaches the first set threshold according to the selected vacant area; if there is only one vacant area, then directly judge whether the area of the vacant area reaches the first threshold. A threshold is set, wherein the first set threshold is used to indicate the minimum area where the floating window player can operate normally. The above operation ensures that when the user creates the floating window player, the client can optimally select the stop position of the floating window player in the vacant area where there is no icon on the operation interface, so that when the user clicks the icon on the operation interface in the next step, no Is covered by the overlay player.
步骤120:客户端根据空置区域的大小和位置创建浮窗播放器。Step 120: the client creates a floating window player according to the size and position of the vacant area.
具体的,若面积最大的空置区域大于第一设定阈值,则根据上述空置区域的大小和位置创建浮窗播放器。Specifically, if the vacant area with the largest area is greater than the first set threshold, a floating window player is created according to the size and position of the vacant area.
以下举例说明,参阅图2所示,设定客户端屏幕的图标区域为4×5,浮窗播放器可以正常运行的最小面积为2个图标位置,以下对本发明实施例的说明,都以2个图标位置为浮窗播放器可以正常运行的最小面积。As an example, as shown in Figure 2, the icon area of the client screen is set to 4×5, and the minimum area where the floating window player can operate normally is 2 icon positions. The following descriptions of the embodiments of the present invention are all based on 2 The icon position is the smallest area where the floating window player can operate normally.
若判定操作界面中面积最大的空置区域大于等于第一设定阈值指示的2个图标位置,则根据该面积最大的空置区域的大小和位置创建浮窗播放器,具体为:若该面积最大的空置区域为矩形,则在该空置区域内直接创建浮窗播放器,若该面积最大的空置区域不为矩形,则选取该空置区域中的2个图标位置(即浮窗播放器可以正常运行的最小面积),并在该2个图标位置对应的图标区域创建浮窗播放器。If it is determined that the vacant area with the largest area in the operation interface is greater than or equal to the positions of the two icons indicated by the first set threshold, then create a floating window player according to the size and position of the vacant area with the largest area, specifically: if the vacant area with the largest area If the vacant area is a rectangle, then create a floating window player directly in the vacant area. If the vacant area with the largest area is not a rectangle, select two icon positions in the vacant area (that is, where the floating window player can operate normally) minimum area), and create a floating window player in the icon area corresponding to the two icon positions.
步骤130:客户端根据操作界面中各图标的点击次数,在点击次数低于设定阈值的图标区域创建浮窗播放器。Step 130: The client creates a floating window player in the icon area where the number of clicks is lower than a set threshold according to the click times of each icon in the operation interface.
若面积最大的空置区域的面积小于第一设定阈值,则根据第一设定阈值指示的浮窗播放器正常运行的最小面积将操作界面划分为多个图标区域;根据每一个图标区域中各图标的点击总次数,在点击总次数最少的图标区域按照该图标区域的大小和位置创建浮窗播放器。If the area of the vacant area with the largest area is less than the first set threshold, then the operating interface is divided into a plurality of icon areas according to the minimum area of the normal operation of the floating window player indicated by the first set threshold; The total number of clicks on the icon, and create a floating window player in the icon area with the least total number of clicks according to the size and position of the icon area.
以下举例说明,若面积最大的空置区域的面积小于第一设定阈值指示的2个图标位置,则将操作界面中每相邻2个图标位置划分为一个图标区域,例如,参阅图2所示,将图标位置1和图标位置2划分为一个图标区域、将图标位置2和位置3划分为一个图标区域、以及将图标位置3和图标位置4划分为一个图标区域等等,若图标位置17为面积最大的空置区域,则将图标位置17与图标位置18也划分为一个图标区域;在操作界面划分图标区域后,根据划分好的每一个图标区域中各图标的点击总次数,其中,空置区域的点击次数为0,选取点击总次数最少的图标区域,若图标位置17的点击次数为0、图标位置18的点击次数为20、图标位置1的点击次数为15以及图标位置2的点击次数为15,则图标位置17与图标位置18对应的图标区域的各图标点击总次数为20,而图标位置1和图标位置2对应的图标区域的各图标点击总次数为30,则该点击总次数最少的图标区域为图标位置17和图标位置18对应的图标区域,因此,客户端在该图标区域创建浮窗播放器。上述操作,可以保证在操作界面几乎布满图标时,还能选取用户不常用的图标区域创建浮窗播放器,使得用户下一步在操作界面上操作时,操作界面的图标很大几率不会受到浮窗播放器的覆盖。The following example illustrates that if the area of the vacant area with the largest area is smaller than the 2 icon positions indicated by the first set threshold, every 2 adjacent icon positions in the operation interface are divided into an icon area, for example, as shown in FIG. 2 , divide icon position 1 and icon position 2 into an icon area, divide icon position 2 and icon position 3 into an icon area, and divide icon position 3 and icon position 4 into an icon area, etc., if icon position 17 is In the vacant area with the largest area, the icon position 17 and the icon position 18 are also divided into an icon area; after the icon area is divided in the operation interface, according to the total number of clicks of each icon in each divided icon area, the vacant area The number of clicks is 0, and the icon area with the least total number of clicks is selected. If the number of clicks at icon position 17 is 0, the number of clicks at icon position 18 is 20, the number of clicks at icon position 1 is 15, and the number of clicks at icon position 2 is 15, the total number of clicks of each icon in the icon area corresponding to icon position 17 and icon position 18 is 20, and the total number of clicks of each icon in the icon area corresponding to icon position 1 and icon position 2 is 30, then the total number of clicks is the least The icon area of is the icon area corresponding to icon position 17 and icon position 18, therefore, the client creates a floating window player in this icon area. The above operations can ensure that when the operation interface is almost full of icons, you can also select icon areas that are not commonly used by the user to create a floating window player, so that when the user operates on the operation interface in the next step, there is a high probability that the icons on the operation interface will not be affected. An overlay for the floating window player.
在用户指示创建浮窗播放器后,若用户需要放大浮窗播放器,则客户端在收到用户指示的放大浮窗播放器的指令后,根据与浮窗播放器所在的当前图标区域相邻的每一个图标区域中各图标的点击总次数;将点击总次数最少的图标区域与浮窗播放器所在的当前图标区域合并,并根据合并后图标区域的大小放大浮窗播放器,在第一次放大浮窗播放器后,用户可以指示继续放大浮窗播放器,客户端在收到继续放大浮窗播放器的指令后,按照上述放大浮窗播放器的流程,继续合并与当前图标区域响铃的、各图标的点击总次数最少的图标区域,并继续根据合并后的图标区域的大小放大浮窗播放器,其中,上述放大浮窗播放器的指令是判定用户点击预先设置的用于指示放大浮窗播放器的按钮后形成的。After the user instructs to create a floating window player, if the user needs to enlarge the floating window player, the client, after receiving the user's instruction to enlarge the floating window player, will The total number of clicks of each icon in each icon area of the icon area; the icon area with the least total number of clicks is merged with the current icon area where the floating window player is located, and the floating window player is enlarged according to the size of the merged icon area. After zooming in on the floating window player for the second time, the user can instruct to continue zooming in on the floating window player. After receiving the instruction to continue zooming in on the floating window player, the client will follow the above process of zooming in on the floating window player and continue to merge with the current icon area. Bell, the icon area where the total number of clicks of each icon is the least, and continue to enlarge the floating window player according to the size of the combined icon area, wherein the above-mentioned instruction to enlarge the floating window player is to determine that the user clicks on the pre-set for instructions Formed after zooming in on the button of the floating window player.
参阅图2所示,以下举例说明放大浮窗播放器的流程,若创建的浮窗播放器位于图2中的阴影区域(即图标位置19和图标位置20),则客户端在收到用户指示的放大浮窗播放器的指令后,根据与浮窗播放器所在的当前图标区域相邻的每一个图标区域中各图标的点击总次数,其中,与阴影区域相邻的图标区域有图标位置15和图标位置16组成的图标区域以及图标位置17和图标位置18组成的图标区域,选择上述图标位置15和图标位置16组成的图标区域以及图标位置17和图标位置18组成的图标区域中各图标的点击总次数较少的一个图标区域,并将选择的图标区域与当前浮窗播放器所在图标区域合并,若图标位置15和图标位置16组成的图标区域的各图标的点击总次数小于图标位置17和图标位置18组成的图标区域的各图标的点击总次数,则将图标位置15和图标位置16组成的图标区域与阴影区域合并,在图标位置15、图标位置16、图标位置19和图标位置20形成的合并后的区域放大当前播放的浮窗播放器。Referring to Figure 2, the following example illustrates the process of enlarging the floating window player. If the created floating window player is located in the shaded area in Figure 2 (ie, icon position 19 and icon position 20), the client will receive the user instruction After the command to enlarge the floating window player, according to the total number of clicks of each icon in each icon area adjacent to the current icon area where the floating window player is located, the icon area adjacent to the shaded area has icon position 15 The icon area composed of icon position 16 and the icon area composed of icon position 17 and icon position 18, select the icon area composed of icon position 15 and icon position 16 and the icon area composed of icon position 17 and icon position 18. Click an icon area with less total times, and merge the selected icon area with the icon area where the current floating window player is located, if the total number of clicks of each icon in the icon area composed of icon position 15 and icon position 16 is less than icon position 17 and the total number of clicks of each icon in the icon area formed by icon position 18, then the icon area formed by icon position 15 and icon position 16 is merged with the shaded area, and in icon position 15, icon position 16, icon position 19 and icon position 20 The resulting merged area enlarges the currently playing floating window player.
在用户指示在创建浮窗播放器后,客户端只识别用户在横坐标轴方向的手势滑动,当用户要关闭浮窗播放器时,在当前屏幕拖动浮窗播放器向左或向右滑动,客户端检测到用户手势的起点和终点,计算起点和终点形成的线段在横坐标轴投影的长度,若确定该长度大于设定门限值时,则关闭浮窗播放器,其中,以当前屏幕下边沿为横坐标轴;或者,客户端收到用户点击预先设置的用于指示关闭浮窗播放器的按钮的操作指示时,关闭浮窗播放器。After the user indicates to create the floating window player, the client only recognizes the user's gesture sliding in the direction of the horizontal axis. When the user wants to close the floating window player, drag the floating window player to slide left or right on the current screen , the client detects the start point and end point of the user's gesture, and calculates the length of the line segment formed by the start point and end point projected on the abscissa axis. If it is determined that the length is greater than the set threshold value, the floating window player is closed. Among them, the current The lower edge of the screen is the axis of abscissa; or, the client closes the floating window player when it receives an operation instruction from the user to click a preset button for instructing to close the floating window player.
下面结合附图,用具体实施例对本发明提供的方法及装置和相应系统进行详细描述。The method, device and corresponding system provided by the present invention will be described in detail below with specific embodiments in conjunction with the accompanying drawings.
基于同一发明构思,根据本发明上述实施例提供的单手势调控的方法,相应地,本发明另一实施例还提供了一种客户端,结构示意图如图3所示,具体包括:检测单元300,判断单元310和处理单元320,其中,Based on the same inventive concept, according to the single-gesture control method provided by the above-mentioned embodiments of the present invention, another embodiment of the present invention also provides a client correspondingly, the schematic diagram of which is shown in FIG. , the judging
检测单元300,用于在收到创建浮窗播放器的指令后,检测操作界面中的图标位置信息;The
判断单元310,用于根据获取的图标位置信息判断操作界面空置区域的面积是否达到第一设定阈值;A judging
处理单元320,用于在判定操作界面空置区域的面积达到第一设定阈值时,根据空置区域的大小和位置创建浮窗播放器;或者,在判定操作界面空置区域的面积未达到第一设定阈值时,根据操作界面中各图标的点击次数,在点击次数低于设定阈值的图标区域创建浮窗播放器。The
检测单元300,具体用于检测到符合预设的用于指示创建浮窗播放器的用户手势时,或者收到预先设置的用于指示创建浮窗播放器的按钮被点击而触发产生的指令时,检测操作界面中的图标位置信息。The
处理单元320具体用于:根据第一设定阈值指示的浮窗播放器正常运行的最小面积将操作界面划分为多个图标区域;根据每一个图标区域中各图标的点击总次数,在点击总次数最少的图标区域按照该图标区域的大小和位置创建浮窗播放器。The
处理单元320,还用于在创建浮窗播放器之后,放大浮窗播放器。以及在收到放大浮窗播放器的指令后,根据与浮窗播放器所在的当前图标区域相邻的每一个图标区域中各图标的点击总次数,将点击总次数最少的图标区域与浮窗播放器所在的当前图标区域合并,并根据合并后图标区域的大小放大浮窗播放器。The
处理单元320还用于在创建浮窗播放器之后,关闭浮窗播放器,以及检测用户手势的起点和终点,计算起点和终点形成的线段在横坐标轴投影的长度,确定长度大于设定门限值时,关闭浮窗播放器,其中,以当前屏幕下边沿为横坐标轴;或者,收到用户点击预先设置的用于指示关闭浮窗播放器的按钮的操作指示时,关闭浮窗播放器。The
综上所述,本发明实施例提供的方案,解决了现有技术中弹出浮窗播放器后,浮窗播放器停留位置覆盖用户要点击的桌面图标的问题,保证用户在创建浮窗播放器后,可以直接对桌面图标进行操作,不再需要移动浮窗播放器至空置区域,减少了客户端因创建浮窗播放器后将要处理的命令,简化了处理流程。To sum up, the solution provided by the embodiment of the present invention solves the problem in the prior art that after the pop-up player pops up, the stop position of the pop-up player covers the desktop icon to be clicked by the user, ensuring that the user is creating a pop-up player. After that, you can directly operate on the desktop icon, no need to move the floating window player to an empty area, which reduces the number of commands that the client will process after creating the floating window player, and simplifies the processing process.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310616578.5ACN103616985B (en) | 2013-11-27 | 2013-11-27 | A kind of method and device choosing floating window player position |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310616578.5ACN103616985B (en) | 2013-11-27 | 2013-11-27 | A kind of method and device choosing floating window player position |
| Publication Number | Publication Date |
|---|---|
| CN103616985Atrue CN103616985A (en) | 2014-03-05 |
| CN103616985B CN103616985B (en) | 2016-09-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310616578.5AActiveCN103616985B (en) | 2013-11-27 | 2013-11-27 | A kind of method and device choosing floating window player position |
| Country | Link |
|---|---|
| CN (1) | CN103616985B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104049900A (en)* | 2014-06-30 | 2014-09-17 | 北京安兔兔科技有限公司 | Floating window closing method and device |
| CN105630363A (en)* | 2014-10-09 | 2016-06-01 | 纬创资通股份有限公司 | Display method of virtual button, electronic device thereof and device for displaying virtual button |
| CN106033313A (en)* | 2015-03-12 | 2016-10-19 | 腾讯科技(深圳)有限公司 | Voice interaction method, apparatus and terminal |
| CN106445492A (en)* | 2015-08-12 | 2017-02-22 | 阿自倍尔株式会社 | Screen generating apparatus |
| CN107529088A (en)* | 2017-08-04 | 2017-12-29 | 天脉聚源(北京)传媒科技有限公司 | The method and device that a kind of intelligent video plays |
| CN107547799A (en)* | 2017-08-25 | 2018-01-05 | 深圳天珑无线科技有限公司 | Suspend the control method and its system recorded a video |
| CN109582189A (en)* | 2018-11-26 | 2019-04-05 | 珠海格力电器股份有限公司 | Application window management method and device and mobile terminal |
| CN111045573A (en)* | 2018-10-15 | 2020-04-21 | 阿里巴巴集团控股有限公司 | Method and device for displaying floating window page and equipment/terminal/server |
| WO2023071718A1 (en)* | 2021-10-30 | 2023-05-04 | 花瓣云科技有限公司 | Floating window adjusting method and electronic device |
| CN116744067A (en)* | 2023-06-15 | 2023-09-12 | 优酷网络技术(北京)有限公司 | Video playback method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100245259A1 (en)* | 2009-03-25 | 2010-09-30 | Honeywell International Inc. | Small screen display with a data filtering and sorting user interface |
| CN102081502A (en)* | 2011-01-24 | 2011-06-01 | 中兴通讯股份有限公司 | Method for managing icons on standby interface of mobile terminal and mobile terminal |
| CN103150170A (en)* | 2013-03-27 | 2013-06-12 | 锤子科技(北京)有限公司 | Table top generation and operation methods of mobile terminal and corresponding devices thereof |
| CN103235688A (en)* | 2013-04-17 | 2013-08-07 | 昆山富泰科电脑有限公司 | Method and graphical user interface for processing messages rapidly in intelligent device notification bar |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100245259A1 (en)* | 2009-03-25 | 2010-09-30 | Honeywell International Inc. | Small screen display with a data filtering and sorting user interface |
| CN102081502A (en)* | 2011-01-24 | 2011-06-01 | 中兴通讯股份有限公司 | Method for managing icons on standby interface of mobile terminal and mobile terminal |
| CN103150170A (en)* | 2013-03-27 | 2013-06-12 | 锤子科技(北京)有限公司 | Table top generation and operation methods of mobile terminal and corresponding devices thereof |
| CN103235688A (en)* | 2013-04-17 | 2013-08-07 | 昆山富泰科电脑有限公司 | Method and graphical user interface for processing messages rapidly in intelligent device notification bar |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104049900A (en)* | 2014-06-30 | 2014-09-17 | 北京安兔兔科技有限公司 | Floating window closing method and device |
| CN105630363A (en)* | 2014-10-09 | 2016-06-01 | 纬创资通股份有限公司 | Display method of virtual button, electronic device thereof and device for displaying virtual button |
| CN105630363B (en)* | 2014-10-09 | 2019-04-05 | 纬创资通股份有限公司 | Display method of virtual button, electronic device thereof and device for displaying virtual button |
| CN106033313A (en)* | 2015-03-12 | 2016-10-19 | 腾讯科技(深圳)有限公司 | Voice interaction method, apparatus and terminal |
| CN106033313B (en)* | 2015-03-12 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Voice interaction method, device and terminal |
| CN106445492A (en)* | 2015-08-12 | 2017-02-22 | 阿自倍尔株式会社 | Screen generating apparatus |
| CN107529088A (en)* | 2017-08-04 | 2017-12-29 | 天脉聚源(北京)传媒科技有限公司 | The method and device that a kind of intelligent video plays |
| CN107547799A (en)* | 2017-08-25 | 2018-01-05 | 深圳天珑无线科技有限公司 | Suspend the control method and its system recorded a video |
| CN111045573A (en)* | 2018-10-15 | 2020-04-21 | 阿里巴巴集团控股有限公司 | Method and device for displaying floating window page and equipment/terminal/server |
| CN109582189A (en)* | 2018-11-26 | 2019-04-05 | 珠海格力电器股份有限公司 | Application window management method and device and mobile terminal |
| WO2023071718A1 (en)* | 2021-10-30 | 2023-05-04 | 花瓣云科技有限公司 | Floating window adjusting method and electronic device |
| CN116744067A (en)* | 2023-06-15 | 2023-09-12 | 优酷网络技术(北京)有限公司 | Video playback method and device |
| Publication number | Publication date |
|---|---|
| CN103616985B (en) | 2016-09-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN103616985B (en) | A kind of method and device choosing floating window player position | |
| JP6898964B2 (en) | Devices, methods and graphical user interfaces for navigating media content | |
| KR101260834B1 (en) | Method and device for controlling touch screen using timeline bar, recording medium for program for the same, and user terminal having the same | |
| CN103809904B (en) | Display methods and the electronic device for using display methods | |
| CN103777842B (en) | The icon moving method and touch type terminal of touch type terminal | |
| US20120054612A1 (en) | Method and apparatus for playing contents | |
| US20120062603A1 (en) | Information Processing Apparatus, Information Processing Method, and Program Therefor | |
| JP2018517984A (en) | Apparatus and method for video zoom by selecting and tracking image regions | |
| KR20110054415A (en) | Screen display method and device | |
| US10203835B2 (en) | Display processing method and apparatus | |
| CN107797722A (en) | Touch screen icon selection method and device | |
| CN103488296A (en) | Somatosensory interaction gesture control method and somatosensory interaction gesture control device | |
| JP2019534590A (en) | Apparatus and related methods | |
| US12321570B2 (en) | Device, method, and graphical user interface for navigating media content | |
| US9632697B2 (en) | Information processing apparatus and control method thereof, and non-transitory computer-readable medium | |
| US20110090165A1 (en) | Interface method and display device | |
| CN105843535B (en) | A kind of control method and terminal of control panel | |
| CN104536674B (en) | A kind of method and apparatus for being used in a mobile device perform webpage operation | |
| CN107817927B (en) | Application icon management method and device | |
| CN103731712A (en) | Method and device for controlling terminal device through marker | |
| CN105190512A (en) | Screen operation method for electronic device based on electronic device and control action | |
| WO2022247196A1 (en) | Game positioning method and apparatus, and mobile terminal | |
| AU2016101667A4 (en) | Device, method, and graphical user interface for navigating media content | |
| KR101651006B1 (en) | Touch screen apparatus and method for operating touch screen apparatus | |
| AU2019200621A1 (en) | Device, method and, graphical user interface for navigating media content |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20200902 Address after:7, No. 666, Zhang Heng Road, 201203, Shanghai, Pudong New Area, No. 1 Patentee after:SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd. Address before:100089 room six, floor 19, building 68, 6184 South College Road, Beijing, Haidian District Patentee before:LE SHI INTERNET INFORMATION & TECHNOLOGY CORP., BEIJING | |
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address | Address after:201203 7, 1 Lane 666 lane, Zhang Heng Road, Pudong New Area, Shanghai. Patentee after:Shanghai Zongzhang Technology Group Co.,Ltd. Country or region after:China Address before:201203 7, 1 Lane 666 lane, Zhang Heng Road, Pudong New Area, Shanghai. Patentee before:SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd. Country or region before:China |