[go: up one dir, main page]

CN119767068A - Method, device, computer equipment and storage medium for adjusting video floating window - Google Patents

Method, device, computer equipment and storage medium for adjusting video floating window Download PDF

Info

Publication number
CN119767068A
CN119767068A CN202411906202.2A CN202411906202A CN119767068A CN 119767068 A CN119767068 A CN 119767068A CN 202411906202 A CN202411906202 A CN 202411906202A CN 119767068 A CN119767068 A CN 119767068A
Authority
CN
China
Prior art keywords
target
area
video
size value
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411906202.2A
Other languages
Chinese (zh)
Inventor
郭红岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huizhong Zhilian Technology Co ltd
Original Assignee
Beijing Huizhong Zhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huizhong Zhilian Technology Co ltd filed Critical Beijing Huizhong Zhilian Technology Co ltd
Priority to CN202411906202.2A priority Critical patent/CN119767068A/en
Publication of CN119767068A publication Critical patent/CN119767068A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and a device for adjusting a video floating window, computer equipment and a storage medium. And 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 specifications, the optimal playing area is selected, and the user experience is improved. Overall, the technical scheme realizes intelligent adjustment of the suspension interface, can obtain the best playing effect without user intervention, simplifies the operation flow, improves the user experience, and meets the user requirements.

Description

Video floating window adjusting method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of video floating window adjustment processing technologies, and in particular, to a method and apparatus for adjusting a video floating window, a computer device, and a storage medium.
Background
With the diversification of functions of terminal devices, the suspension interface plays video, which is a common requirement of users. However, current levitation interfaces are typically of a fixed size and position, and require manual adjustment by the user to avoid affecting other operations. This manual operation results in a poor user experience.
Disclosure of Invention
The invention mainly aims to provide a method, a device, computer equipment and a storage medium for adjusting a video floating window, so as to solve the problem of poor experience caused by manual adjustment when a user plays a video by using a floating interface.
The invention provides a method for adjusting a video floating window, which comprises the steps of obtaining an operation area on a terminal when a user uses the terminal, obtaining a visual area of the user needing to view content, removing the operation area and the visual area on an interface of the terminal to obtain a plurality of effective playing areas, obtaining a video specification of a target video to be played and a screen specification of the terminal, and determining a size value of a floating interface for the target video according to the video specification and the screen specification, wherein the video specification at least relates to the resolution of the target video, the screen specification at least relates to the resolution of a screen of the terminal, selecting one target playing area in the plurality of effective playing areas based on the determined size value of the floating interface, and generating the floating interface in the target playing area to play the target video.
Further, the method for acquiring the operation area on the terminal when the user uses the terminal and the visual area of the content to be checked by the user comprises the steps of acquiring a target application running at the current front end of the terminal, and matching the operation area and the visual area corresponding to the target application in a database according to the target application.
Further, according to the target application, matching an operation area and a visual area corresponding to the target application in a database, wherein the matching comprises the steps of obtaining identification information of the target application, calling an identification information segmentation rule in the database, segmenting the identification information of the target application based on the identification information segmentation rule to obtain a plurality of initial character combinations, calling a character combination selection rule in the database, selecting a first target character combination from the initial character combinations based on the character combination selection rule, and obtaining the operation area and the visual area of the target application based on the corresponding relation between the preset character combination in the database, the operation area and the visual area of the target application based on the second target character combination.
Further, acquiring video specifications of target videos to be played and screen specifications of the terminals, determining size values of a suspension interface for the target videos according to the video specifications and the screen specifications, wherein the method comprises the steps of calling a corresponding relation table of preset video resolutions and terminal resolutions in a database and size values of the suspension interface, acquiring target video resolutions in the video specifications of the target videos, calling resolution character generation rules in the database, generating first character combinations according to the target video resolutions, acquiring target terminal resolutions in the screen specifications of the terminals, calling resolution character generation rules in the database, generating second character combinations according to the target terminal resolutions, calling resolution character combination rules in the database, combining the first character combinations with the second character combinations to obtain second target character combinations, screening out third target character combinations corresponding to the second target character combinations in the corresponding relation table based on the second target character combinations, calling resolution character generation rules in the database, converting the size of the interface into the size of the suspension interface, and determining the size values of the suspension interface.
Further, a target playing area is selected from the plurality of effective playing areas based on the determined size values of the suspension interfaces, and the suspension interfaces are generated in the target playing areas to play the target video, wherein the method comprises the steps of determining the size value of each effective playing area, sequentially judging whether the size value of each effective playing area is higher than the size value of the suspension interface, marking the effective playing area with the size value higher than the size value of the suspension interface as a first playing area if the size value is higher than the size value of the suspension interface, marking the effective playing area with the size value higher than the size value of the suspension interface as a second playing area if the size value is lower than the size value of the suspension interface, counting the number of remaining effective playing areas after all the effective playing areas are judged, judging whether the number of the remaining effective playing areas is zero, screening the second playing area with the largest size value from the second playing area as the target playing area if the size value is zero, generating the suspension interface based on the target playing area, playing the video based on the first playing area and the selected target playing area if the size value is not zero, and playing the video based on the first playing area is selected as the target playing area.
Further, screening a second playing area with the largest size value from the second playing area as a target playing area, generating a suspension interface based on the target playing area to play the target video, wherein the second playing area with the largest size value is screened from the second playing area to serve as the target playing area, judging whether the size value of the target playing area is larger than a first threshold value or not, if so, generating the suspension interface by using a covering mode by using the size value of the target playing area as a reference, playing the target video, and if not, generating the suspension interface by using a transparent click mode by using the size value of the suspension interface as a reference, and playing the target video.
Further, a first playing area with the smallest size value is selected from the first playing areas to serve as a target playing area, a suspension interface is generated based on the target playing area to play the target video, the first playing area with the smallest size value is selected from the first playing areas to serve as a target playing area, the size value of the target playing area is used as a reference, a suspension interface is generated by using a covering mode to play the target video, or the first playing area with the smallest size value is selected from the first playing areas to serve as a target playing area, the size value of the suspension interface is used as a reference, and the suspension interface is generated by using a covering mode to play the target video.
Further, after selecting a target playing area from the plurality of effective playing areas based on the determined size range of the floating interface and generating a floating interface in the target playing area to play the target video, the adjusting method further comprises the steps of detecting the operation area and the visual area in real time, and dynamically adjusting the position of the floating interface in real time according to the operation area and the visual area detected in real time.
Further, the position of the suspension interface is dynamically adjusted in real time, wherein the position of the suspension interface is dynamically adjusted in real time by acquiring the touch frequency of the user on the terminal within a historical time from the current moment, judging whether the touch frequency exceeds a second threshold, if so, adopting an instant displacement mode to dynamically adjust the position of the suspension interface in real time, and if not, adopting a sliding mode to dynamically adjust the position of the suspension interface in real time.
The invention further provides a device for adjusting the video suspension window, which is characterized by comprising an acquisition unit, a rejection unit and a determination unit, wherein the acquisition unit is used for acquiring an operation area on a terminal when a user uses the terminal and acquiring a visual area of the user needing to view content, the rejection unit is used for rejecting the operation area and the visual area on an interface of the terminal to obtain a plurality of effective playing areas, the determination unit is used for acquiring a video specification of a target video to be played and a screen specification of the terminal and determining a size value of a suspension interface for the target video according to the video specification and the screen specification, the video specification at least relates to the resolution of the target video, the screen specification at least relates to the resolution of a screen of the terminal, and the generation unit is used for selecting one target playing area from the plurality of effective playing areas and generating the suspension interface in the target playing area based on the determined size value of the suspension interface so as to play the target video.
The invention also provides a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the methods described above when the computer program is executed.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
According to the method, the device, the computer equipment and the storage medium for adjusting the video suspension window, the operation area of the user on the terminal and the visual area of the content to be checked are obtained, and a plurality of effective playing areas are obtained after the areas are removed. The technical effect of the step is that the operation area and the visual area of the user are accurately identified, and a basis is provided for the generation of a subsequent suspension interface. And then, determining the size value of the suspension interface according to the video specification and the terminal screen specification, and then selecting a target playing area from a plurality of effective playing areas to generate a suspension interface playing target video. The technical effect of the step is that the size of the suspension interface is automatically determined according to the video and screen specifications, the most suitable playing area is selected, automatic adjustment is realized, and user experience is improved.
In general, the technical effects of the whole technical scheme are integrated, and the method automatically adjusts the size and the position of the suspension interface by intelligently identifying the operation and the visual area of the user, so that the user can realize the optimal playing effect without manual intervention. By the technical scheme, user experience can be improved, operation flow is simplified, the requirement of a user on playing video on a suspension interface is met, and more convenient and comfortable film watching experience is provided for the user.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a method for adjusting a video floating window according to an embodiment of the present invention;
FIG. 2 is a block diagram of an adjusting device for a video floating window according to an embodiment of the present invention;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, an embodiment of the present invention provides a method for adjusting a video floating window, including the following steps:
S1, acquiring an operation area on a terminal when a user uses the terminal, and acquiring a visual area of the content to be checked by the user.
S2, eliminating the operation area and the visual area on the interface of the terminal to obtain a plurality of effective playing areas.
S3, acquiring a video specification of a target video to be played and a screen specification of the terminal, and determining a size value of a suspension interface for the target video according to the video specification and the screen specification, wherein the video specification at least relates to the resolution of the target video, and the screen specification at least relates to the resolution of the terminal screen.
And S4, selecting a target playing area from the plurality of effective playing areas based on the determined size value of the floating interface, and generating a floating interface in the target playing area so as to play the target video.
That is, firstly, the method obtains a plurality of effective playing areas after removing the areas by obtaining the operation area of the user on the terminal and the visual area needing to view the content. The technical effect of the step is that the operation area and the visual area of the user are accurately identified, and a basis is provided for the generation of a subsequent suspension interface.
And then, determining the size value of the suspension interface according to the video specification and the terminal screen specification, and then selecting a target playing area from a plurality of effective playing areas to generate a suspension interface playing target video. The technical effect of the step is that the size of the suspension interface is automatically determined according to the video and screen specifications, the most suitable playing area is selected, automatic adjustment is realized, and user experience is improved.
In general, the technical effects of the whole technical scheme are integrated, and the method automatically adjusts the size and the position of the suspension interface by intelligently identifying the operation and the visual area of the user, so that the user can realize the optimal playing effect without manual intervention. By the technical scheme, user experience can be improved, operation flow is simplified, the requirement of a user on playing video on a suspension interface is met, and more convenient and comfortable film watching experience is provided for the user.
In one example, acquiring an operation area on a terminal when a user uses the terminal and acquiring a visual area of the content to be checked by the user comprises acquiring a target application running at the current front end of the terminal, and matching the operation area and the visual area corresponding to the target application in a database according to the target application.
In this example, the technical solution first implements a method of intelligently adjusting a floating window by acquiring an operation area of a user on a terminal and a visual area where content needs to be viewed. Firstly, a target application running at the current front end of a terminal is obtained. The technical effect of this step is to accurately capture the application currently being used by the user, and to provide accurate information for subsequent determination of the user's operating area and visual area. Then, the corresponding operation region and visual region are matched in the database according to the target application. The technical effect of the step is that the preset operation area and the visual area in the database are matched according to the characteristics of the target application, so that the requirement of a user is more accurately determined, and more reference basis is provided for the adjustment of a subsequent floating window. The technical effects of the whole technical scheme are integrated, and the user operation area and the vision area are intelligently obtained by combining the characteristics of the target application, so that the intelligent adjustment of the floating window is realized. The technical scheme can more accurately meet the requirements of users, improves the user experience, and enables the suspension interface to play videos more intelligently and conveniently. Through automatic matching operation area and vision area, the user need not manual adjustment, can enjoy best broadcast effect, has promoted user experience's convenience and travelling comfort.
In one example, according to the target application, matching an operation area and a visual area corresponding to the target application in a database includes obtaining identification information of the target application, calling an identification information segmentation rule in the database, segmenting the identification information of the target application based on the identification information segmentation rule to obtain a plurality of initial character combinations, calling a character combination selection rule in the database, selecting a first target character combination from the plurality of initial character combinations based on the character combination selection rule, and obtaining the operation area and the visual area of the target application based on a corresponding relation between a preset character combination in the database, the operation area and the visual area according to the second target character combination.
In this example, the technical solution enables intelligent adjustment of the floating window by matching the operating area and the visual area of the target application. First, identification of the target application is achieved by acquiring identification information of the target application. The technical effect of the step is that the identification information of the target application is accurately captured, and an accurate basis is provided for the subsequent matching operation area and the visual area. And then, calling an identification information segmentation rule in the database to segment the identification information of the target application, so as to obtain a plurality of initial character combinations. A character set selection rule is then invoked to select a first target character set from the plurality of initial character sets. The technical effect of this step is that the target character combination is accurately determined through regular segmentation and selection, providing a basis for subsequent acquisition of the operation region and the visual region. And finally, acquiring the operation area and the visual area of the target application according to the target character combination based on the corresponding relation between the character combination preset in the database and the operation area and the visual area. The technical effect of the step is that the target character combination, the corresponding operation area and the corresponding visual area are accurately matched according to the preset rule, and the intelligent adjustment of the floating window is realized. The technical effect of the whole technical scheme is integrated, and intelligent adjustment of the floating window is realized by intelligently matching the operation area and the visual area of the target application. According to the technical scheme, through automatic matching of the operation area and the visual area, a user can enjoy the optimal playing effect without manual adjustment, and convenience and comfortableness of user experience are improved.
In one example, obtaining a video specification of a target video to be played and a screen specification of the terminal, determining a size value of a suspension interface for the target video according to the video specification and the screen specification, wherein the method comprises the steps of calling a corresponding relation table of preset video resolution, terminal resolution and size value of the suspension interface in a database, obtaining the target video resolution in the video specification of the target video, calling a resolution character generation rule in the database, generating a first character combination according to the target video resolution, obtaining the target terminal resolution in the screen specification of the terminal, calling a resolution character generation rule in the database, generating a second character combination according to the target terminal resolution, calling a resolution character combination rule in the database, combining the first character combination with the second character combination to obtain a second target character combination, screening a third target character combination corresponding to the second target character combination in the corresponding relation table based on the second target character combination, calling a size conversion rule in the database, converting the size of the interface into the size value of the suspension interface, and determining the size value of the suspension interface.
In the example, the technical scheme determines the size value for the suspension interface by acquiring the resolution specifications of the target video and the terminal, so that intelligent matching of the size of the suspension interface is realized. Firstly, a corresponding relation table of preset video resolution and a suspension interface size value in a database is called, and a reference is provided for subsequent matching. The technical effect of this step is that a correspondence between video resolution and the size of the suspension interface is established, providing a basis for subsequent size determination. And then, respectively acquiring the resolutions of the target video and the terminal, and generating corresponding character combinations according to the resolution character generation rule. And then calling a resolution character combination rule, and combining the two character combinations to obtain a second target character combination. The technical effect of this step is that the characteristics of the target video and the terminal are determined by the character generation and combination of the resolution, and the basis is provided for the subsequent size determination. And finally, screening a corresponding third target character combination from the corresponding relation table according to the second target character combination, and then calling an interface size conversion rule to convert the third target character combination into a size value, and determining the size value as the size value of the suspension interface. The technical effect of this step is that the size value of the suspension interface is intelligently determined according to the character combination and the corresponding relation table, so that the suspension interface is adapted to the characteristics of the target video and the terminal. The technical effect of the whole technical scheme is integrated, and the intelligent determination of the size of the suspension interface is realized by intelligently matching the resolution specifications of the target video and the terminal. The technical scheme can more accurately meet the requirements of users, improves the user experience, enables the size of the suspension interface to be matched with the characteristics of the target video and the terminal, and improves the convenience and the comfort of the user experience.
In one example, a target playing area is selected from the plurality of effective playing areas based on the determined size value of the suspension interface, and a suspension interface is generated in the target playing area to play the target video, wherein the method comprises the steps of determining the size value of each effective playing area, sequentially judging whether the size value of each effective playing area is higher than the size value of the suspension interface, marking the effective playing area with the size value higher than the size value of the suspension interface as a first playing area if the size value is higher than the size value of the suspension interface, marking the effective playing area with the size value higher than the size value of the suspension interface as a second playing area if the size value is lower than the size value of the suspension interface, counting the number of remaining effective playing areas after all the effective playing areas are judged, judging whether the number of the remaining effective playing areas is zero, screening the second playing area with the largest size value from the second playing area as the target playing area if the size value is zero, generating the suspension interface based on the target playing area, playing the suspension video based on the target playing area if the size value is not zero, and playing the first playing area is selected as the target playing area.
In this example, the technical solution realizes intelligent selection of the playing area and generation of the suspension interface by determining the size value of the suspension interface and selecting one target playing area from a plurality of effective playing areas to generate the suspension interface. Firstly, determining the size value of each effective playing area, and judging whether the size value of each effective playing area is higher than the size value of the suspension interface in sequence. And if the size value is lower than the size value of the suspension interface, marking the effective playing area as a second playing area. After the judgment processing, the number of the remaining effective playing areas is counted, and whether the number of the remaining effective playing areas is zero is judged.
And if the number of the remaining effective playing areas is zero, selecting the area with the largest size value from the second playing area as a target playing area, and generating a suspension interface based on the target playing area so as to play the target video. The process ensures that the largest available area can still be selected for video playing under the condition that a large enough space is not available, thereby improving the viewing experience of users. If the number of the remaining effective playing areas is not zero, selecting the area with the smallest size value from the first playing area as a target playing area, and generating a suspension interface based on the target playing area so as to play the target video. This procedure ensures that the playback is preferentially selected for the region that is suitable and does not take up too much space, thereby reducing interference with the user's operating region.
Through the steps, the position and the size of the video suspension window are dynamically adjusted, so that the video suspension window can meet video playing requirements and avoid interference with other operations of a user on the terminal. The whole technical scheme carries out regional screening and adjustment in an automatic mode, so that user experience is greatly improved, and tedious operation of manual adjustment is avoided. Meanwhile, based on selection logic of an effective playing area, the scheme ensures that a suspension interface can be reasonably distributed under different terminal and video specifications, and screen space is utilized to the maximum extent. In summary, the video floating window using convenience and user experience are effectively improved through accurate size calculation and region selection.
In one example, a second playing area with the largest size value is screened from the second playing area to serve as a target playing area, a suspension interface is generated based on the target playing area to play the target video, the second playing area with the largest size value is screened from the second playing area to serve as a target playing area, whether the size value of the target playing area is larger than a first threshold value is judged, if the size value of the target playing area is larger than the first threshold value, the size value of the target playing area is used as a reference, a suspension interface is generated in a covering mode to play the target video, if the size value of the suspension interface is not larger than the first threshold value, the suspension interface is generated in a transmission mode to play the target video.
In this example, first, a region having the largest size value is selected from the second play region as a target play region, and it is determined whether the size value of the target play region is larger than a first threshold. If the size value of the target playing area is larger than the first threshold, the size value of the target playing area is adopted by taking the target playing area as a reference, and a suspension interface is generated by using a coverage mode so as to play the target video. The overlay mode may ensure that the video is played over a larger area, providing better visual effects while maximizing the use of screen space. If the size value of the target playing area is not larger than the first threshold, the size value of the suspension interface is adopted by taking the target playing area as a reference, and the suspension interface is generated by using a click mode so as to play the target video. The video suspension interface can be made transparent through the click mode, and a user can watch the video and can still operate other functions of the area without affecting the overall user operation experience.
Through the steps, the method and the device have the advantages that under the condition that a large enough space is not available, the available area with the largest size is preferentially selected for playing, and the coverage mode or the click mode is dynamically selected according to the size of the area, so that the flexibility and the user experience of video playing are further improved. The whole technical scheme ensures that video playing meets the watching requirement and does not hinder other operations of users through intelligently judging and adjusting the size and the mode of the suspension interface, thereby greatly improving the use convenience and the user satisfaction of the terminal equipment.
In summary, according to the scheme, through accurate calculation and flexible adjustment, under different terminal and video specifications, the suspension interface is ensured to be reasonably distributed and the playing mode is switched, the screen space is utilized to the maximum extent, and the flexibility and the user experience of video playing are improved. Meanwhile, through intelligently selecting the playing area and the mode, the operation of manual adjustment of a user is reduced, and the use convenience is enhanced.
In one example, the method comprises the steps of selecting a first playing area with the smallest size value from the first playing areas as a target playing area, generating a suspension interface based on the target playing area to play the target video, selecting the first playing area with the smallest size value from the first playing area as a target playing area, adopting the size value of the target playing area as a reference, and generating the suspension interface in a covering mode to play the target video.
In one example, the method comprises the steps of selecting a first playing area with the smallest size value from the first playing areas as a target playing area, generating a suspension interface based on the target playing area to play the target video, selecting the first playing area with the smallest size value from the first playing area as a target playing area, adopting the size value of the suspension interface as a reference of the target playing area, and generating the suspension interface in a covering mode to play the target video.
In a first exemplary embodiment, first, a region with the smallest size value is selected from the first playing region, and the selected region is used as the target playing region. The minimum size value of these regions is also greater than the size value of the levitation interface. And then, taking the target playing area as a reference, adopting the size value of the target playing area, and generating a suspension interface by using a coverage mode so as to play the target video. This means that even if the first playing area with the smallest size is selected, the area is still larger than the size value of the suspension interface, so that the suspension interface has enough space in the target playing area. The coverage mode generates a suspension interface, so that the target playing area is completely covered during video playing, interference from other interface elements is avoided, and visual effect and user experience are improved.
And the second example is similar to the first example in that the area with the smallest size value is selected from the first playing area as the target playing area, and the smallest size value of the areas is also larger than the size value of the suspension interface. When the suspension interface is generated, the size value of the suspension interface is used as a reference, but the size value of the suspension interface is adopted instead of the size value of the target playing area, and the suspension interface is generated by using the coverage mode so as to play the target video. The method ensures that the size of the suspended video window is consistent, provides uniform viewing experience, and simultaneously ensures that the suspended interface cannot exceed the target playing area, thereby avoiding interference with other interface operations.
The two example schemes enable the generation and playback of video floating windows by different methods. The first method preferably uses screen space to adjust the hover interface to the size of the target play area, ensuring that the maximized viewing experience is provided in the smallest area. The second method maintains the consistent size of the floating window, ensures the consistency of the video playing window, and is regardless of the size of the target playing area.
In summary, these two exemplary schemes provide effective solutions in different scenarios by intelligently screening and adjusting the play area, respectively. The first approach provides a more flexible play option by reducing interference to other operations by utilizing a larger size minimum area. The second approach provides a unified viewing experience by maintaining a consistent window size. The two methods have advantages and disadvantages, can be flexibly selected and applied according to specific requirements, and remarkably improve the flexibility and user experience of video playing. The whole technical scheme reduces the requirement of manual adjustment of a user through automatic and intelligent processing, and improves the use convenience and user satisfaction of terminal equipment.
In one example, after selecting one of the plurality of active playing areas based on the determined size range of the floating interface and generating a floating interface within the target playing area to play the target video, the adjusting method further includes detecting the operation area and the visual area in real time, and dynamically adjusting the position of the floating interface in real time according to the operation area and the visual area detected in real time.
In this example, the technical solution first selects a target playing area within the determined size range of the floating interface, and generates a floating interface within the target playing area to play the target video. And then, the technical scheme also comprises the steps of detecting the operation area and the visual area in real time, and dynamically adjusting the position of the suspension interface in real time according to the operation area and the visual area detected in real time. Specifically, the position of the suspension interface is adjusted in real time according to the operation and visual requirements of the user, so that the suspension interface can be correspondingly adjusted according to the real-time operation and visual requirements of the user, and the interactivity and the comfort of the user and the video content are enhanced. By integrating the technical effects of the whole technical scheme, the intelligent matching and personalized adjustment of the playing area and the suspension interface are realized by selecting the target playing area, generating the suspension interface and dynamically adjusting the position of the suspension interface in real time, so that the convenience and experience of watching videos of users are improved. According to the technical scheme, the suspension interface can be adjusted in real time according to the requirements and the operation conditions of the user, so that the user can obtain better interaction experience when watching the video.
In one example, the real-time dynamic adjustment of the position of the suspension interface comprises the steps of obtaining the touch frequency of the user on the terminal within a history period from the current moment, judging whether the touch frequency exceeds a second threshold, if so, adopting an instant displacement mode to dynamically adjust the position of the suspension interface in real time, and if not, adopting a sliding mode to dynamically adjust the position of the suspension interface in real time.
In this example, the step of dynamically adjusting the position of the hover interface in real time includes the steps of first selecting a target play area from a plurality of active play areas based on a determined size range of the hover interface, and generating the hover interface within the target play area to play the target video, and then the adjusting method further includes detecting the operation area and the visual area in real time. And dynamically adjusting the position of the suspension interface in real time according to the operation area and the visual area detected in real time.
And when the real-time dynamic adjustment is carried out, acquiring the touch frequency of the user to the terminal in the historical time from the current moment. And judging whether the touch frequency exceeds a second threshold value. And if the touch frequency exceeds the second threshold, dynamically adjusting the position of the suspension interface in real time by adopting an instant displacement mode. The instant displacement mode ensures that the suspension interface can be rapidly adapted to frequent touch operation of users, is suitable for the demands of young users, and avoids the occurrence of dysphoria caused by too slow adjustment speed. And if the touch frequency does not exceed the second threshold value, dynamically adjusting the position of the suspension interface in real time in a sliding mode. The sliding mode is more gentle, the operation rhythm of the elderly user is adapted, and discomfort and dizziness caused by rapid flickering are avoided.
Through these steps, the scheme implements personalized adjustment strategies for different user groups (such as the elderly and young). For young users with higher touch frequency, the quick instant displacement mode ensures the flexibility and response speed of the interface, and improves the user experience and the operation efficiency. For the old user with lower touch frequency, the gentle sliding mode ensures that the interface adjusting process is more comfortable, and the uncomfortable feeling caused by the rapid change of the interface is reduced.
In summary, according to the exemplary scheme, the touch frequency of the user is intelligently detected, and the position of the suspension interface is dynamically adjusted so as to adapt to the requirements of different user groups. By combining the instant displacement and the sliding mode, the scheme improves the use convenience and the user satisfaction of the suspension interface. Aiming at different operation habits and demands of old people and young people, a personalized interface adjustment mode is provided, and adaptability and user experience of the terminal equipment are remarkably improved. The whole technical scheme realizes the intellectualization, individuation and humanization of the suspension interface through real-time monitoring and dynamic adjustment, and greatly improves the use convenience and satisfaction of users.
Referring to fig. 2, an embodiment of the present invention provides an adjusting apparatus for a video floating window, including:
an acquiring unit 1, configured to acquire an operation area on a terminal when a user uses the terminal, and acquire a visual area in which the user needs to view content;
A rejecting unit 2, configured to reject the operation area and the visual area on the interface of the terminal, so as to obtain a plurality of effective playing areas;
A determining unit 3, configured to obtain a video specification of a target video to be played and a screen specification of the terminal, and determine a size value of a suspension interface for the target video according to the video specification and the screen specification, where the video specification at least relates to a resolution of the target video, and the screen specification at least relates to a resolution of a screen of the terminal;
and the generating unit 4 is used for selecting one target playing area from the plurality of effective playing areas based on the determined size value of the floating interface, and generating the floating interface in the target playing area so as to play the target video.
In this embodiment, for specific implementation of each unit in the above embodiment of the apparatus, please refer to the description in the above embodiment of the method, and no further description is given here.
Referring to fig. 3, in an embodiment of the present invention, there is further provided a computer device, which may be a server, and an internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a display screen, an input device, a network interface, and a database connected by a system bus. Wherein the computer is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. 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 for communicating with an external terminal through a network connection. Which computer program, when being executed by a processor, carries out the above-mentioned method.
It will be appreciated by those skilled in the art that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present inventive arrangements and is not intended to limit the computer devices to which the present inventive arrangements are applicable.
An embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method. It is understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a nonvolatile readable storage medium.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present invention and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual 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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (10)

1. A method for adjusting a video floating window, comprising the steps of:
acquiring an operation area on a terminal when a user uses the terminal, and acquiring a visual area of the content to be checked by the user;
Removing the operation area and the visual area on the interface of the terminal to obtain a plurality of effective playing areas;
acquiring a video specification of a target video to be played and a screen specification of the terminal, and determining a size value of a suspension interface for the target video according to the video specification and the screen specification, wherein the video specification at least relates to the resolution of the target video, and the screen specification at least relates to the resolution of the terminal screen;
and selecting a target playing area from the plurality of effective playing areas based on the determined size value of the floating interface, and generating a floating interface in the target playing area so as to play the target video.
2. The adjustment method according to claim 1, characterized in that acquiring an operation area on a terminal when the terminal is used by a user, and acquiring a visual area where the user needs to view content, comprises:
Acquiring a target application running at the current forefront end of the terminal;
And according to the target application, matching an operation area and a visual area corresponding to the target application in a database.
3. The adjustment method according to claim 2, characterized in that matching in a database the operation area and the visual area corresponding to the target application according to the target application comprises:
acquiring identification information of the target application;
Invoking an 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;
Invoking character combination selection rules in the database, and selecting a first target character combination from a plurality of initial character combinations based on the character combination selection rules;
and acquiring the operation area and the visual area of the target application according to the second target character combination based on the corresponding relation between the preset character combination in the database and the operation area and the visual area.
4. The adjustment method according to claim 2, wherein obtaining a video specification of a target video to be played and a screen specification of the terminal, and determining a size value of a hover interface for the target video according to the video specification and the screen specification, comprises:
calling a corresponding relation table of preset video resolution, terminal resolution and size values of a suspension interface in a database;
Acquiring target video resolution in the video specification of the target video, calling a resolution character generation rule in the database, and generating a first character combination according to the target video resolution;
Acquiring target terminal resolution in the screen specification of the terminal, calling a resolution character generation rule in the database, and generating a second character combination according to the target terminal resolution;
Invoking a resolution character combination rule in the database, and combining the first character combination and the second character combination to obtain a second target character combination;
Screening a third target character combination corresponding to the second target character combination from the corresponding relation table based on the second target character combination;
and calling an interface size conversion rule in the database, converting the third target character combination into a size value, and determining the size value obtained by conversion as the size value of the suspension interface.
5. The adjustment method according to claim 1, wherein selecting a target playing area among the plurality of effective playing areas based on the determined size value of the hover interface, and generating a hover interface within the target playing area to play the target video, comprises:
Determining the size value of each effective playing area, and sequentially judging whether the size value of each effective playing area is higher than the size value of the suspension interface;
If the size value is higher than the size value of the suspension interface, marking the effective playing area with the size value higher than the size value of the suspension interface as a first playing area;
if the size value is lower than the size value of the suspension interface, marking an effective playing area with the size value higher than the size value of the suspension interface as a second playing area;
after all the effective playing areas are judged, counting the number of the remaining effective playing areas, and judging whether the number of the remaining effective playing areas is zero or not;
If the size value is zero, screening a second playing area with the largest size value from the second playing area to serve as a target playing area, and generating a suspension interface based on the target playing area to play the target video;
And if the size value is not zero, selecting a first playing area with the smallest size value from the first playing areas as a target playing area, and generating a suspension interface based on the target playing area so as to play the target video.
6. The adjustment method according to claim 5, wherein selecting a second play area with a largest size value from the second play areas as a target play area, and generating a hover interface based on the target play area to play the target video, comprises:
Screening a second playing area with the largest size value from the second playing area as a target playing area, and judging whether the size value of the target playing area is larger than a first threshold value or not;
if the size of the target playing area is larger than the first threshold, generating a suspension interface by using a coverage mode by taking the target playing area as a reference and adopting the size value of the target playing area so as to play the target video;
If the size value of the floating interface is not larger than the first threshold, the size value of the floating interface is adopted by taking the target playing area as a reference, and the floating interface is generated by using a click mode so as to play the target video.
7. The adjustment method according to claim 1, characterized in that after selecting one of the plurality of effective play areas based on the determined size range of the hover interface and generating a hover interface within the target play area to play the target video, the adjustment method further comprises:
detecting the operation area and the visual area in real time;
and dynamically adjusting the position of the suspension interface in real time according to the operation area and the visual area detected in real time.
8. An adjusting device for a video floating window is characterized by comprising the following steps:
The terminal comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an operation area on a terminal when a user uses the terminal and acquiring a visual area of the content to be checked by the user;
the rejecting unit is used for rejecting the operation area and the visual area on the interface of the terminal to obtain a plurality of effective playing areas;
The device comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for obtaining a video specification of a target video to be played and a screen specification of the terminal, and determining a size value of a suspension interface for the target video according to the video specification and the screen specification, wherein the video specification at least relates to the resolution of the target video, and the screen specification at least relates to the resolution of the terminal screen;
and the generating unit is used for selecting one target playing area from the plurality of effective playing areas based on the determined size value of the floating interface, and generating the floating interface in the target playing area so as to play the target video.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202411906202.2A 2024-12-23 2024-12-23 Method, device, computer equipment and storage medium for adjusting video floating window Pending CN119767068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411906202.2A CN119767068A (en) 2024-12-23 2024-12-23 Method, device, computer equipment and storage medium for adjusting video floating window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411906202.2A CN119767068A (en) 2024-12-23 2024-12-23 Method, device, computer equipment and storage medium for adjusting video floating window

Publications (1)

Publication Number Publication Date
CN119767068A true CN119767068A (en) 2025-04-04

Family

ID=95178374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411906202.2A Pending CN119767068A (en) 2024-12-23 2024-12-23 Method, device, computer equipment and storage medium for adjusting video floating window

Country Status (1)

Country Link
CN (1) CN119767068A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908899A (en) * 2019-11-08 2020-03-24 北京奇艺世纪科技有限公司 Application program debugging method, mobile terminal and computer readable storage medium
CN113609418A (en) * 2021-08-04 2021-11-05 咪咕数字传媒有限公司 Information suspension display method, device, device and computer storage medium
CN114518860A (en) * 2020-11-18 2022-05-20 深圳Tcl新技术有限公司 Method and device for creating panoramic picture based on large screen, intelligent terminal and medium
CN116668758A (en) * 2023-06-14 2023-08-29 郭红岩 Suspension interface adjusting method and device for video playing and computer equipment
US20240037164A1 (en) * 2020-12-20 2024-02-01 Inspur Suzhou Intelligent Technology Co., Ltd. Webpage display method, system and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908899A (en) * 2019-11-08 2020-03-24 北京奇艺世纪科技有限公司 Application program debugging method, mobile terminal and computer readable storage medium
CN114518860A (en) * 2020-11-18 2022-05-20 深圳Tcl新技术有限公司 Method and device for creating panoramic picture based on large screen, intelligent terminal and medium
US20240037164A1 (en) * 2020-12-20 2024-02-01 Inspur Suzhou Intelligent Technology Co., Ltd. Webpage display method, system and medium
CN113609418A (en) * 2021-08-04 2021-11-05 咪咕数字传媒有限公司 Information suspension display method, device, device and computer storage medium
CN116668758A (en) * 2023-06-14 2023-08-29 郭红岩 Suspension interface adjusting method and device for video playing and computer equipment

Similar Documents

Publication Publication Date Title
US11081137B2 (en) Method and device for processing multimedia information
US20240179272A1 (en) Virtual image video call method, terminal device, and storage medium
US10257436B1 (en) Method for using deep learning for facilitating real-time view switching and video editing on computing devices
DE102019132052A1 (en) Intelligent Internet of Things menus with cameras
WO2023065849A1 (en) Screen brightness adjustment method and apparatus for electronic device, and electronic device
EP3993383A1 (en) Method and device for adjusting image quality, and readable storage medium
JP2019003661A (en) Relevance based visual media item modification
JP6563421B2 (en) Improved video conferencing cross-reference for related applications
CN114302226A (en) Intelligent cutting method for video picture
CN110113625A (en) Video broadcasting method, equipment and computer readable storage medium
CN106101526A (en) Screen recording method and device
CN105280160A (en) Method for adjusting the screen luminance of terminal, and terminal equipment
CN105279778A (en) Method and terminal for picture color filling
CN110855905A (en) Video processing method and device and electronic equipment
CN119586147A (en) Method and electronic device for enhancing video quality
CN111372139A (en) Image parameter adjustment method, television and storage medium
CN113342229A (en) Method and device for adjusting font size, terminal equipment and computer readable storage medium
CN110703976A (en) Clipping method, electronic device, and computer-readable storage medium
CN111104905B (en) Sitting posture adjusting method and device, electronic equipment and storage medium
CN111897466A (en) Data processing method and device, electronic equipment and storage medium
Polakovič et al. Adaptive multimedia content delivery in 5G networks using DASH and saliency information
CN119767068A (en) Method, device, computer equipment and storage medium for adjusting video floating window
CN114727050B (en) Video data generation method and device for multi-person continuous-microphone live conference
CN113891136A (en) Video playing method and device, electronic equipment and storage medium
CN120343328A (en) Adaptive video stream optimization and transmission method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination