Video floating window adjusting method and device, computer equipment and storage medium

By intelligently identifying the user's operation and visual area and automatically adjusting the size and position of the suspended interface, the poor experience caused by manual adjustments are solved, and a more convenient and comfortable video playback experience is achieved.

CN119767068AInactive Publication Date: 2025-04-04BEIJING HUIZHONG ZHILIAN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411906202.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When users use the floating interface to play videos, they need to manually adjust the size and position of the floating window, resulting in poor user experience.

Method used

By obtaining the user's operation area and visual area, multiple effective playback areas are determined, and the size value of the floating interface is determined according to the video specifications of the target video and the terminal screen specifications, the target playback area is selected in the effective playback area and a suspended interface is generated.

Benefits of technology

It realizes automatic adjustment of the floating interface, improves user experience, reduces the need for manual adjustment, and meets users' needs for playing videos on the floating interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767068A_ABST
    Figure CN119767068A_ABST
Patent Text Reader

Abstract

The invention relates to a video floating window adjusting method and device, computer equipment and a storage medium. The effective playing area is determined by identifying the user operation and the visual area, a foundation is laid for generating the suspension interface, the size of the suspension interface is determined according to the video and screen specification, the optimal playing area is selected, and the user experience is improved. On the whole, the technical scheme realizes intelligent adjustment of the suspension interface, can obtain the optimal playing effect without user intervention, simplifies the operation process, improves the user experience, and meets the user demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video floating window adjustment processing, and in particular to a video floating window adjustment method, device, computer equipment and storage medium. Background Art

[0002] With the diversification of terminal device functions, playing videos on a floating interface has become a common demand of users. However, current floating interfaces usually have fixed sizes and positions, and users need to adjust them manually to avoid affecting other operations. This manual operation method leads to poor user experience. Summary of the invention

[0003] The main purpose of the present invention is to provide a method, device, computer equipment and storage medium for adjusting a video floating window to solve the problem of poor user experience caused by the need for manual adjustment when users play videos using a floating interface.

[0004] To achieve the above-mentioned objectives, the present invention provides a method for adjusting a video floating window, comprising the following steps: obtaining an operation area on a terminal when a user uses the terminal, and obtaining a visual area where the user needs to view content; eliminating the operation area and the visual area on the interface of the terminal to obtain multiple valid playback areas; obtaining video specifications of a target video to be played and screen specifications of the terminal, and determining a size value of a floating interface for the target video based on the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen; based on the determined size value of the floating interface, selecting a target playback area from the multiple valid playback areas, and generating a floating interface in the target playback area to play the target video.

[0005] Furthermore, obtaining the operation area on the terminal when the user uses the terminal, and obtaining the visual area where the user needs to view the content, includes: obtaining the target application currently running at the front end of the terminal; according to the target application, matching the operation area and visual area corresponding to the target application in the database.

[0006] Furthermore, according to the target application, the operation area and the visual area corresponding to the target application are matched in the database, including: obtaining the identification information of the target application; calling the identification information segmentation rule in the database, and segmenting the identification information of the target application based on the identification information segmentation rule to obtain multiple initial character combinations; calling the character combination selection rule in the database, and selecting a first target character combination from the multiple initial character combinations based on the character combination selection rule; based on the correspondence between the character combination preset in the database and the operation area and the visual area, the operation area and the visual area of ​​the target application are obtained according to the second target character combination.

[0007] Furthermore, the video specifications of the target video to be played and the screen specifications of the terminal are obtained, and the size value of the floating interface is determined for the target video according to the video specifications and the screen specifications, including: calling a correspondence table of video resolution, terminal resolution and size value of the floating interface preset in a database; obtaining the target video resolution in the video specifications of the target video, and calling a resolution character generation rule in the database to generate a first character combination according to the target video resolution; obtaining the target terminal resolution in the screen specifications of the terminal, and calling a resolution character generation rule in the database to generate a second character combination according to the target terminal resolution; calling the resolution character combination rule in the database to combine the first character combination and the second character combination to obtain a second target character combination; based on the second target character combination, filtering out a third target character combination corresponding to the second target character combination in the correspondence table; calling an interface size conversion rule in the database to convert the third target character combination into a size value, and determining the converted size value as the size value of the floating interface.

[0008] Further, based on the determined size value of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video, including: determining the size value of each of the valid playback areas, and judging in turn whether the size value of each valid playback area is higher than the size value of the floating interface; if higher, marking the valid playback area with a size value higher than the size value of the floating interface as the first playback area; if lower, marking the valid playback area with a size value higher than the size value of the floating interface as the second playback area; after all valid playback areas have been judged, counting the number of remaining valid playback areas, and judging whether the number of remaining valid playback areas is zero; if zero, selecting the second playback area with the largest size value from the second playback area as the target playback area, and generating a floating interface based on the target playback area to play the target video; if not zero, selecting the first playback area with the smallest size value from the first playback area as the target playback area, and generating a floating interface based on the target playback area to play the target video.

[0009] Furthermore, a second playback area with the largest size value is selected from the second playback area as a target playback area, and a floating interface is generated based on the target playback area to play the target video, including: selecting a second playback area with the largest size value from the second playback area as a target playback area, and determining whether the size value of the target playback area is greater than a first threshold; if it is greater than the first threshold, taking the target playback area as a reference, adopting the size value of the target playback area, and using an overlay mode to generate a floating interface to play the target video; if it is not greater than the first threshold, taking the target playback area as a reference, adopting the size value of the floating interface, and using a through-click mode to generate the floating interface to play the target video.

[0010] Furthermore, the first playback area with the smallest size value is selected from the first playback area as the target playback area, and a floating interface is generated based on the target playback area to play the target video, including: selecting the first playback area with the smallest size value from the first playback area as the target playback area, and taking the target playback area as a reference, adopting the size value of the target playback area, and using an overlay mode to generate a floating interface to play the target video; or, selecting the first playback area with the smallest size value from the first playback area as the target playback area, and taking the target playback area as a reference, adopting the size value of the floating interface, and using an overlay mode to generate a floating interface to play the target video.

[0011] Furthermore, based on the determined size range of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video. The adjustment method also includes: real-time detection of the operation area and the visual area; and real-time dynamic adjustment of the position of the floating interface according to the real-time detected operation area and the visual area.

[0012] Furthermore, the position of the floating interface is adjusted dynamically in real time, including: obtaining the user's touch frequency of the terminal within a historical period from the current moment; determining whether the touch frequency exceeds a second threshold; if it exceeds the second threshold, adjusting the position of the floating interface in real time and dynamically by an instant displacement method; if it does not exceed the second threshold, adjusting the position of the floating interface in real time and dynamically by a sliding method.

[0013] The present invention also provides an adjustment device for a video floating window, characterized in that it includes the following steps: an acquisition unit, used to acquire an operation area on the terminal when a user uses the terminal, and to acquire a visual area where the user needs to view content; a elimination unit, used to eliminate the operation area and the visual area on the interface of the terminal to obtain multiple valid playback areas; a determination unit, used to acquire the video specifications of a target video to be played and the screen specifications of the terminal, and determine a size value of a floating interface for the target video based on the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen; a generation unit, used to select a target playback area from the multiple valid playback areas based on the determined size value of the floating interface, and generate a floating interface in the target playback area to play the target video.

[0014] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0015] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0016] The method, device, computer equipment and storage medium for adjusting the video floating window provided by the present invention obtain the user's operating area on the terminal and the visual area where the content needs to be viewed, and then eliminate these areas to obtain multiple valid playback areas. The technical effect of this step is to accurately identify the user's operating area and visual area, providing a basis for the subsequent generation of a floating interface. Next, the size value of the floating interface is determined according to the video specifications and the terminal screen specifications, and then the target playback area is selected from multiple valid playback areas to generate a floating interface to play the target video. The technical effect of this step is to automatically determine the size of the floating interface according to the video and screen specifications, select the most suitable playback area, realize automatic adjustment, and improve user experience.

[0017] In general, considering the technical effects of the entire technical solution, this method can automatically adjust the size and position of the floating interface by intelligently identifying user operations and visual areas, so that users can achieve the best playback effect without manual intervention. Such a technical solution can improve user experience, simplify the operation process, meet users' needs for playing videos on the floating interface, and provide users with a more convenient and comfortable viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the steps of a method for adjusting a video floating window in one embodiment of the present invention; Figure 2 It is a structural block diagram of a device for adjusting a video floating window in one embodiment of the present invention; Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0019] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0021] Reference Figure 1 , an embodiment of the present invention provides a method for adjusting a video floating window, comprising the following steps: S1, obtaining an operation area of ​​a user on a terminal when the user uses the terminal, and obtaining a visual area where the user needs to view content.

[0022] S2, removing the operation area and the visual area on the interface of the terminal to obtain a plurality of effective playback areas.

[0023] S3, obtain the video specifications of the target video to be played and the screen specifications of the terminal, and determine the size value of the floating interface for the target video according to the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen.

[0024] S4, based on the determined size value of the floating interface, selecting a target playback area from the multiple valid playback areas, and generating a floating interface in the target playback area to play the target video.

[0025] That is, first, the method obtains the user's operation area on the terminal and the visual area where the content needs to be viewed, and then eliminates these areas to obtain multiple valid playback areas. The technical effect of this step is to accurately identify the user's operation area and visual area, providing a basis for the subsequent generation of the floating interface.

[0026] Next, the size of the floating interface is determined according to the video specifications and the terminal screen specifications, and then the target playback area is selected from multiple valid playback areas to generate a floating interface to play the target video. The technical effect of this step is to automatically determine the size of the floating interface according to the video and screen specifications, select the most suitable playback area, realize automatic adjustment, and improve the user experience.

[0027] In general, considering the technical effects of the entire technical solution, this method can automatically adjust the size and position of the floating interface by intelligently identifying user operations and visual areas, so that users can achieve the best playback effect without manual intervention. Such a technical solution can improve user experience, simplify the operation process, meet users' needs for playing videos on the floating interface, and provide users with a more convenient and comfortable viewing experience.

[0028] In one example, obtaining an operation area on a terminal when a user uses the terminal, and obtaining a visual area where the user needs to view content, includes: obtaining a target application currently running at the forefront of the terminal; and matching the operation area and visual area corresponding to the target application in a database according to the target application.

[0029] In this example, the technical solution first implements a method for intelligently adjusting the floating window by obtaining the user's operating area on the terminal and the visual area where the content needs to be viewed. First, by obtaining the target application currently running at the forefront of the terminal. The technical effect of this step is to accurately capture the application currently being used by the user, and provide accurate information for the subsequent determination of the user's operating area and visual area. Then, the corresponding operating area and visual area are matched in the database according to the target application. The technical effect of this step is to match the preset operating area and visual area in the database according to the characteristics of the target application, so as to more accurately determine the user's needs and provide more reference basis for the subsequent adjustment of the floating window. Comprehensively considering the technical effects of the entire technical solution, by combining the characteristics of the target application, the user's operating area and visual area are intelligently obtained, and the intelligent adjustment of the floating window is realized. Such a technical solution can meet the needs of users more accurately, improve the user experience, and make the floating interface video playback more intelligent and convenient. By automatically matching the operating area and the visual area, users can enjoy the best playback effect without manual adjustment, which improves the convenience and comfort of the user experience.

[0030] In one example, according to the target application, matching the operation area and visual area corresponding to the target application in the database includes: obtaining identification information of the target application; calling the identification information segmentation rule in the database, and segmenting the identification information of the target application based on the identification information segmentation rule to obtain multiple initial character combinations; calling the character combination selection rule in the database, and selecting a first target character combination from the multiple initial character combinations based on the character combination selection rule; based on the correspondence between the character combination preset in the database and the operation area and the visual area, obtaining the operation area and the visual area of ​​the target application according to the second target character combination.

[0031] In this example, the technical solution realizes intelligent adjustment of the floating window by matching the operation area and visual area of ​​the target application. First, by obtaining the identification information of the target application, the target application is identified. The technical effect of this step is to accurately capture the identification information of the target application, which provides an accurate basis for the subsequent matching of the operation area and the visual area. Next, the identification information segmentation rule in the database is called to segment the identification information of the target application to obtain multiple initial character combinations. Then the character combination selection rule is called to select a first target character combination from multiple initial character combinations. The technical effect of this step is to accurately determine the target character combination through the segmentation and selection of the rules, which provides a basis for the subsequent acquisition of the operation area and the visual area. Finally, based on the correspondence between the character combination preset in the database and the operation area and the visual area, the operation area and the visual area of ​​the target application are obtained according to the target character combination. The technical effect of this step is to accurately match the target character combination and the corresponding operation area and visual area according to the preset rules, so as to realize the intelligent adjustment of the floating window. Comprehensively considering the technical effect of the entire technical solution, the intelligent adjustment of the floating window is realized by intelligently matching the operation area and the visual area of ​​the target application. This technical solution automatically matches the operation area and the visual area, allowing users to enjoy the best playback effect without manual adjustment, thereby improving the convenience and comfort of the user experience.

[0032] In one example, the video specifications of a target video to be played and the screen specifications of the terminal are obtained, and the size value of a floating interface is determined for the target video according to the video specifications and the screen specifications, including: calling a correspondence table of video resolution, terminal resolution and size value of a floating interface preset in a database; obtaining a target video resolution in the video specifications of the target video, and calling a resolution character generation rule in the database to generate a first character combination according to the target video resolution; obtaining a target terminal resolution in the screen specifications of the terminal, and calling a resolution character generation rule in the database to generate a second character combination according to the target terminal resolution; calling a resolution character combination rule in the database to combine the first character combination and the second character combination to obtain a second target character combination; based on the second target character combination, filtering out a third target character combination corresponding to the second target character combination in the correspondence table; calling an interface size conversion rule in the database to convert the third target character combination into a size value, and determining the converted size value as the size value of the floating interface.

[0033] In this example, the technical solution determines the size value for the floating interface by obtaining the resolution specifications of the target video and the terminal, and realizes the intelligent matching of the size of the floating interface. First, the correspondence table of the preset video resolution and the floating interface size value in the database is called to provide a reference for subsequent matching. The technical effect of this step is to establish the correspondence between the video resolution and the floating interface size, which provides a basis for the subsequent size determination. Next, the resolution of the target video and the terminal are obtained respectively, and the corresponding character combination is generated according to the resolution character generation rule. Then the resolution character combination rule is called to combine the two character combinations to obtain the second target character combination. The technical effect of this step is to determine the characteristics of the target video and the terminal through the character generation and combination of the resolution, which provides a basis for the subsequent size determination. Finally, according to the second target character combination, the corresponding third target character combination is screened out in the correspondence table, and then the interface size conversion rule is called to convert the third target character combination into a size value, which is determined as the size value of the floating interface. The technical effect of this step is to intelligently determine the size value of the floating interface according to the character combination and the correspondence table, so that it adapts to the characteristics of the target video and the terminal. Comprehensively considering the technical effect of the entire technical solution, the intelligent determination of the size of the floating interface is realized by intelligently matching the resolution specifications of the target video and the terminal. Such a technical solution can more accurately meet user needs, improve user experience, match the size of the floating interface with the characteristics of the target video and the terminal, and enhance the convenience and comfort of user experience.

[0034] In one example, based on the determined size value of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video, including: determining the size value of each of the valid playback areas, and judging in turn whether the size value of each valid playback area is higher than the size value of the floating interface; if higher, marking the valid playback area with a size value higher than the size value of the floating interface as the first playback area; if lower, marking the valid playback area with a size value higher than the size value of the floating interface as the second playback area; after all valid playback areas have been judged, counting the number of remaining valid playback areas, and judging whether the number of remaining valid playback areas is zero; if zero, selecting the second playback area with the largest size value from the second playback area as the target playback area, and generating a floating interface based on the target playback area to play the target video; if not zero, selecting the first playback area with the smallest size value from the first playback area as the target playback area, and generating a floating interface based on the target playback area to play the target video.

[0035] In this example, the technical solution realizes the intelligent selection of the playback area and the generation of the floating interface by determining the size value of the floating interface and selecting a target playback area from multiple valid playback areas to generate the floating interface. First, determine the size value of each valid playback area, and determine in turn whether the size value of each valid playback area is higher than the size value of the floating interface. If the size value is higher than the size value of the floating interface, the valid playback area is marked as the first playback area; if the size value is lower than the size value of the floating interface, the valid playback area is marked as the second playback area. After this judgment process, count the number of remaining valid playback areas, and determine whether the number of remaining valid playback areas is zero.

[0036] If the number of remaining valid playback areas is zero, the area with the largest size value is selected from the second playback area as the target playback area, and a floating interface is generated based on the target playback area to play the target video. This process ensures that the largest available area can still be selected for video playback when there is not enough space, thereby improving the user's viewing experience. If the number of remaining valid playback areas is not zero, the area with the smallest size value is selected from the first playback area as the target playback area, and a floating interface is generated based on the target playback area to play the target video. This process ensures that appropriate areas that do not occupy too much space are preferentially selected for playback, thereby reducing interference with the user's operating area.

[0037] Through these steps, the position and size of the video floating window can be dynamically adjusted to meet the needs of video playback while avoiding interfering with other operations of the user on the terminal. The entire technical solution screens and adjusts the area in an automated manner, greatly improving the user experience and avoiding the tedious operation of manual adjustment. At the same time, based on the selection logic of the effective playback area, the solution ensures that the floating interface can be reasonably distributed under different terminals and video specifications to maximize the use of screen space. In summary, this solution effectively improves the ease of use and user experience of the video floating window through precise size calculation and area selection.

[0038] In one example, a second playback area with the largest size value is selected from the second playback area as a target playback area, and a floating interface is generated based on the target playback area to play the target video, including: selecting a second playback area with the largest size value from the second playback area as a target playback area, and determining whether the size value of the target playback area is greater than a first threshold; if it is greater than the first threshold, taking the target playback area as a reference, adopting the size value of the target playback area, and using an overlay mode to generate a floating interface to play the target video; if it is not greater than the first threshold, taking the target playback area as a reference, adopting the size value of the floating interface, and using a through-click mode to generate the floating interface to play the target video.

[0039] In this example, first, the area with the largest size value is screened out from the second playback area as the target playback area, and it is determined whether the size value of the target playback area is greater than the first threshold. If the size value of the target playback area is greater than the first threshold, the target playback area is used as a benchmark, the size value of the target playback area is adopted, and the overlay mode is used to generate a floating interface to play the target video. The overlay mode can ensure that the video is played in a larger area, provide better visual effects, and maximize the use of screen space. If the size value of the target playback area is not greater than the first threshold, the target playback area is used as a benchmark, the size value of the floating interface is adopted, and the through-click mode is used to generate a floating interface to play the target video. The through-click mode can make the video floating interface transparent, and the user can still operate other functions of the area while watching the video, without affecting the overall user operation experience.

[0040] Through these steps, the solution gives priority to the largest available area for playback when there is not enough space, and dynamically selects the overlay mode or the click mode according to the area size, further improving the flexibility of video playback and user experience. The entire technical solution ensures that video playback meets viewing needs and does not interfere with other user operations by intelligently judging and adjusting the size and mode of the floating interface, greatly improving the convenience of use of terminal devices and user satisfaction.

[0041] In summary, this solution ensures that the floating interface can be reasonably distributed and switch playback modes under different terminals and video specifications through precise calculation and flexible adjustment, maximizes the use of screen space, and improves the flexibility of video playback and user experience. At the same time, by intelligently selecting the playback area and mode, it reduces the user's manual adjustment operations and enhances ease of use.

[0042] In one example, a first playback area with the smallest size value is selected from the first playback area as a target playback area, and a floating interface is generated based on the target playback area to play the target video, including: selecting the first playback area with the smallest size value from the first playback area as the target playback area, and taking the target playback area as a reference, adopting the size value of the target playback area, and using an overlay mode to generate a floating interface to play the target video.

[0043] In one example, a first playback area with the smallest size value is selected from the first playback area as a target playback area, and a floating interface is generated based on the target playback area to play the target video, including: selecting the first playback area with the smallest size value from the first playback area as the target playback area, and taking the target playback area as a reference, adopting the size value of the floating interface, and using an overlay mode to generate a floating interface to play the target video.

[0044] In the first example scenario, first, the area with the smallest size value is selected from the first playback area as the target playback area. The minimum size value of these areas is also greater than the size value of the floating interface. Next, based on the target playback area, the size value of the target playback area is adopted, and the overlay mode is used to generate a floating interface to play the target video. This means that even if the first playback area with the smallest size is selected, the area is still larger than the size value of the floating interface, ensuring that there is enough space for the floating interface in the target playback area. The overlay mode generates a floating interface to ensure that the target playback area is completely covered during video playback, without interference from other interface elements, thereby improving the visual effect and user experience.

[0045] The second example is similar to the first example: the area with the smallest size value is selected from the first playback area as the target playback area, and the minimum size value of these areas is also greater than the size value of the floating interface. When generating the floating interface, the target playback area is used as the benchmark, but the size value of the floating interface is used instead of the size value of the target playback area. The floating interface is generated using the overlay mode to play the target video. This method ensures that the size of the floating video window is consistent, providing a unified viewing experience, while ensuring that the floating interface does not exceed the target playback area to avoid interfering with other interface operations.

[0046] These two sample solutions achieve the generation and playback of video floating windows through different methods. The first method prioritizes the use of screen space and adjusts the floating interface to the size of the target playback area to ensure the maximum viewing experience in the smallest area. The second method maintains a consistent size of the floating window to ensure the consistency of the video playback window regardless of the size of the target playback area.

[0047] In summary, these two example solutions provide effective solutions in different scenarios by intelligently filtering and adjusting the playback area. The first solution reduces interference with other operations by utilizing a larger minimum area and provides more flexible playback options. The second solution provides a unified viewing experience by maintaining a consistent window size. Both methods have their own advantages and disadvantages, and can be flexibly selected and applied according to specific needs, significantly improving the flexibility of video playback and user experience. The entire technical solution reduces the need for manual adjustments by users through automated and intelligent processing, and improves the ease of use of terminal devices and user satisfaction.

[0048] In one example, based on the determined size range of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video. The adjustment method also includes: real-time detection of the operation area and the visual area; and real-time dynamic adjustment of the position of the floating interface according to the real-time detected operation area and the visual area.

[0049] In this example, the technical solution first selects a target playback area within a determined range of the floating interface size, and generates a floating interface within the target playback area to play the target video. Subsequently, the technical solution also includes real-time detection of the operation area and the visual area, and real-time dynamic adjustment of the position of the floating interface based on the real-time detected operation area and visual area. Specifically, by adjusting the position of the floating interface in real time according to user operations and visual needs, the floating interface can be adjusted accordingly according to the user's real-time operations and visual needs, thereby enhancing the interactivity and comfort between the user and the video content. Combining the technical effects of the entire technical solution, by selecting the target playback area, generating the floating interface, and dynamically adjusting the position of the floating interface in real time, intelligent matching and personalized adjustment of the playback area and the floating interface are achieved, thereby improving the convenience and experience of users watching videos. Such a technical solution can adjust the floating interface in real time according to user needs and operating conditions, so that users can have a better interactive experience when watching videos.

[0050] In one example, the position of the floating interface is adjusted dynamically in real time, including: obtaining the user's touch frequency of the terminal within a historical period from the current moment; determining whether the touch frequency exceeds a second threshold; if it exceeds the second threshold, adjusting the position of the floating interface in real time and dynamically by using an instant displacement method; if it does not exceed the second threshold, adjusting the position of the floating interface in real time and dynamically by using a sliding method.

[0051] In this example, the technical solution dynamically adjusts the position of the floating interface in real time, including the following aspects: first, based on the determined size range of the floating interface, a target playback area is selected from multiple valid playback areas, and after the floating interface is generated in the target playback area to play the target video, the adjustment method further includes real-time detection of the operation area and the visual area. According to the real-time detected operation area and visual area, the position of the floating interface is dynamically adjusted in real time.

[0052] When making real-time dynamic adjustments, obtain the user's touch frequency on the terminal within the historical time from the current moment. Next, determine whether the touch frequency exceeds the second threshold. If the touch frequency exceeds the second threshold, the real-time dynamic adjustment of the floating interface position is performed by instant displacement. The instant displacement method ensures that the floating interface can quickly adapt to the user's frequent touch operations, which is suitable for the needs of young users and avoids irritability caused by slow adjustment speed. If the touch frequency does not exceed the second threshold, the sliding method is used to adjust the floating interface position in real time and dynamically. The sliding method is smoother, adapting to the operation rhythm of elderly users and avoiding discomfort and dizziness caused by rapid flashing.

[0053] Through these steps, the solution implements personalized adjustment strategies for different user groups (such as the elderly and young people). For young users with a high touch frequency, the fast and instant displacement method ensures the flexibility and response speed of the interface, improving user experience and operating efficiency. For elderly users with a low touch frequency, the gentle sliding method ensures a more comfortable interface adjustment process and reduces the discomfort caused by rapid changes in the interface.

[0054] In summary, this example solution intelligently detects the user's touch frequency and dynamically adjusts the position of the floating interface to meet the needs of different user groups. Through the combination of instant displacement and sliding methods, the solution improves the ease of use and user satisfaction of the floating interface. According to the different operating habits and needs of the elderly and young people, a personalized interface adjustment method is provided, which significantly improves the adaptability and user experience of the terminal equipment. Through real-time monitoring and dynamic adjustment, the entire technical solution realizes the intelligence, personalization and humanization of the floating interface, which greatly improves the convenience and satisfaction of users.

[0055] Reference Figure 2 , an embodiment of the present invention provides a device for adjusting a video floating window, comprising: An acquisition unit 1 is used to acquire an operation area of ​​a user on the terminal when the user uses the terminal, and to acquire a visual area where the user needs to view content; A removal unit 2, used for removing the operation area and the visual area on the interface of the terminal to obtain a plurality of valid playback areas; Determining unit 3, used to obtain the video specifications of the target video to be played and the screen specifications of the terminal, and determine the size value of the floating interface for the target video according to the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen; The generating unit 4 is configured to select a target playback area from the plurality of valid playback areas based on the determined size value of the floating interface, and generate a floating interface in the target playback area to play the target video.

[0056] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.

[0057] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0058] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0059] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0060] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0061] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0062] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for adjusting a video floating window, characterized in that: The following steps are involved: Acquire an operation area of ​​a user on the terminal when the user uses the terminal, and acquire a visual area where the user needs to view content; Eliminating the operation area and the visual area on the interface of the terminal to obtain a plurality of effective playback areas; Obtaining the video specifications of the target video to be played and the screen specifications of the terminal, and determining the size value of the floating interface for the target video according to the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen; Based on the determined size value of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video.

2. The adjustment method according to claim 1, characterized in that: Acquiring an operation area of ​​a user on a terminal when the user uses the terminal, and acquiring a visual area where the user needs to view content, including: Obtain the target application currently running at the front end of the terminal; According to the target application, the operation area and the visual area corresponding to the target application are matched in the database.

3. The adjustment method according to claim 2, characterized in that: According to the target application, matching the operation area and the visual area corresponding to the target application in the database includes: Obtaining identification information of the target application; Invoking the identification information segmentation rule in the database, and segmenting the identification information of the target application based on the identification information segmentation rule to obtain a plurality of initial character combinations; Calling the character combination selection rule in the database, and selecting a first target character combination from the plurality of initial character combinations based on the character combination selection rule; Based on the correspondence between the character combination and the operation area and the visual area preset in the database, the operation area and the visual area of ​​the target application are obtained according to the second target character combination.

4. The adjustment method according to claim 2, characterized in that: Obtaining the video specifications of the target video to be played and the screen specifications of the terminal, and determining the size value of the floating interface for the target video according to the video specifications and the screen specifications, including: Calling the correspondence table of video resolution, terminal resolution and size value of floating interface preset in the database; Obtaining a target video resolution in the video specification of the target video, and calling a resolution character generation rule in the database to generate a first character combination according to the target video resolution; Acquire the target terminal resolution in the screen specification of the terminal, and call the resolution character generation rule in the database to generate a second character combination according to the target terminal resolution; calling the resolution character combination rule in the database, combining the first character combination and the second character combination to obtain a second target character combination; Based on the second target character combination, filtering out a third target character combination corresponding to the second target character combination in the correspondence table; The interface size conversion rule in the database is called to convert the third target character combination into a size value, and the size value obtained by the conversion is determined as the size value of the floating interface.

5. The adjustment method according to claim 1, characterized in that: Based on the determined size value of the floating interface, a target playback area is selected from the multiple valid playback areas, and a floating interface is generated in the target playback area to play the target video, including: Determine the size value of each of the effective playback areas, and determine in turn whether the size value of each of the effective playback areas is higher than the size value of the floating interface; If it is higher, then the effective playback area whose size value is higher than the size value of the floating interface is marked as the first playback area; If it is lower than, marking the effective playback area whose size value is higher than the size value of the floating interface as the second playback area; After all valid playback areas have been judged, the number of remaining valid playback areas is counted, and it is determined whether the number of remaining valid playback areas is zero; If it is zero, a second playback area with the largest size value is selected from the second playback areas as the target playback area, and a floating interface is generated based on the target playback area to play the target video; If it is not zero, a first playback area with the smallest size value is selected from the first playback areas as a target playback area, and a floating interface is generated based on the target playback area to play the target video.

6. The adjustment method according to claim 5, characterized in that: The method further comprises: selecting a second playback area with the largest size value from the second playback areas as a target playback area, and generating a floating interface based on the target playback area to play the target video, including: Selecting a second playback area with the largest size value from the second playback areas as a target playback area, and determining whether the size value of the target playback area is greater than a first threshold; If it is greater than the first threshold, taking the target playback area as a reference, using the size value of the target playback area, and using the overlay mode to generate a floating interface to play the target video; If it is not greater than the first threshold, the target playback area is used as a reference, the size value of the floating interface is adopted, and the floating interface is generated using a click mode to play the target video.

7. The adjustment method according to claim 1, characterized in that: After selecting a target playback area from the multiple valid playback areas based on the determined size range of the floating interface and generating a floating interface in the target playback area to play the target video, the adjustment method further includes: Detecting the operating area and the visual area in real time; The position of the floating interface is dynamically adjusted in real time according to the operating area and the visual area detected in real time.

8. A device for adjusting a video floating window, characterized in that: The following steps are involved: An acquisition unit, used to acquire an operation area of ​​a user on the terminal when the user uses the terminal, and to acquire a visual area where the user needs to view content; A removal unit, used to remove the operation area and the visual area on the interface of the terminal to obtain a plurality of valid playback areas; A determination unit, used to obtain the video specifications of the target video to be played and the screen specifications of the terminal, and determine the size value of the floating interface for the target video according to the video specifications and the screen specifications, wherein the video specifications at least involve the resolution of the target video, and the screen specifications at least involve the resolution of the terminal screen; A generating unit is used to select a target playback area from the multiple valid playback areas based on the determined size value of the floating interface, and generate a floating interface in the target playback area to play the target video.

9. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Application program debugging method, mobile terminal and computer readable storage medium

    CN110908899A

  • Information suspension display method, device and equipment and computer storage medium

    CN113609418A

  • Method and device for creating panoramic picture based on large screen, intelligent terminal and medium

    CN114518860A

  • Video playing suspension interface adjusting method and device and computer equipment

    CN116668758A

  • Webpage display method, system and medium

    US20240037164A1