CN114390333A - Interface content display method, device, equipment and storage medium - Google Patents

Interface content display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114390333A
CN114390333A CN202210122179.2A CN202210122179A CN114390333A CN 114390333 A CN114390333 A CN 114390333A CN 202210122179 A CN202210122179 A CN 202210122179A CN 114390333 A CN114390333 A CN 114390333A
Authority
CN
China
Prior art keywords
interface
sub
display
adjusting
control task
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.)
Granted
Application number
CN202210122179.2A
Other languages
Chinese (zh)
Other versions
CN114390333B (en
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.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte 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 Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202210122179.2A priority Critical patent/CN114390333B/en
Publication of CN114390333A publication Critical patent/CN114390333A/en
Application granted granted Critical
Publication of CN114390333B publication Critical patent/CN114390333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an interface content display method, an interface content display device, interface content display equipment and a storage medium, wherein the method comprises the following steps: when video playing is detected, adding a sub-interface in a display interface, and creating a refreshing control task; when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task; and when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream. According to the scheme, a video playing mechanism is optimized, so that the video stream can be played more smoothly, and the watching experience of a user is remarkably improved.

Description

Interface content display method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an interface content display method, device, equipment and storage medium.
Background
With the rapid development of the internet, particularly the mobile internet, mobile applications have been widely developed, and scenes of video playing at a mobile terminal are more and more, particularly, applications mainly playing short videos are more and more common. In order to improve user experience, it is a problem that people in the art pay more attention to ensure that short videos are played smoothly as far as possible, and frames are not dropped and are not jammed.
In the related art, when a video is played for a carrier based on a system control, a refresh request needs to be sent after video stream data is loaded, and when system resources are in shortage and a display interface displays pictures, obvious frame dropping and pause phenomena occur, so that the viewing experience of a user is influenced, and improvement is needed.
Disclosure of Invention
The embodiment of the invention provides an interface content display method, device, equipment and storage medium, solves the problems of frame dropping and blockage in the process of playing a video stream when system resources are in shortage, optimizes a video playing mechanism, enables the playing of the video stream to be smoother, and obviously improves the watching experience of a user.
In a first aspect, an embodiment of the present invention provides an interface content display method, where the method includes:
when video playing is detected, adding a sub-interface in a display interface, and creating a refreshing control task;
when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task;
and when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream.
In a second aspect, an embodiment of the present invention further provides an interface content display apparatus, including:
the interface adding module is configured to add a sub-interface in the display interface and create a refreshing control task when video playing is detected;
the interface adjusting module is configured to adjust the attribute value of the sub-interface through the refreshing control task when the generation of the video stream is detected;
and the interface generating module is used for sending a request refreshing instruction to the display module when the attribute value change is detected through the interface main thread, and is used for performing composite display on the generated video stream.
In a third aspect, an embodiment of the present invention further provides an interface content display device, where the interface content display device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the interface content display method according to the embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a storage medium storing computer-executable instructions, which are used for executing the interface content display method according to the embodiment of the present invention when executed by a computer processor.
According to the method for displaying the interface content, the refreshing triggering does not depend on video stream generation, smoothness of the interface display content can be guaranteed under the condition that system resources are in shortage, and watching experience of users is remarkably improved.
Drawings
Fig. 1 is a flow chart of an interface content display method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for displaying interface content according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for displaying interface content according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another method for displaying interface content according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another method for displaying interface content according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a sub-interface addition performed on a display interface according to an embodiment of the present invention;
FIG. 7 is a flow chart illustrating another method for displaying interface content according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating an alternative embodiment of adding sub-interfaces to a display interface;
fig. 9 is a block diagram of an interface content display apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an interface content display device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
Fig. 1 is a flow chart of an interface content display method provided in an embodiment of the present invention, which can be implemented by a computing device such as a server, an intelligent terminal, a notebook, a tablet computer, and the like, and specifically includes the following steps:
and S101, when video playing is detected, adding a sub-interface in a display interface, and creating a refresh control task.
The display interface is a picture displayed by the display equipment, and the display content of the display interface is a video picture in a video playing scene. And when video playing is detected, adding a sub-interface in the display interface. Specifically, when detecting that a video playing button in the display interface is triggered, adding a sub-interface in the display interface. Or, through a call interface provided by video software, when video playing is detected, a sub-interface is added in the display interface. In another embodiment, the display content in the display interface can also be monitored, and when the video playing screen is determined, a sub-interface is added in the display interface.
In an embodiment, the process of adding the sub-interface in the display interface may use a preset function, such as addView, to add, where different display interface layout modes correspond to different sub-interface addition methods. For example, for the display interfaces of the linear layout and the relative layout, the corresponding interface adding method is respectively adopted to add the sub-interfaces.
In one embodiment, interface refresh is controlled by creating a refresh control task. The refresh control task may be created when video playback is detected, may be created after system initialization, or may be created when video playback application startup is detected.
And S102, when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task.
In one embodiment, the decoding of the video data by the video decoding thread generates video frame data, and a plurality of consecutive video frames compose a video stream for rendering and playing. And when the generation of video stream data is detected, adjusting the attribute value of the sub-interface through a refreshing control task. The attribute values of the sub-interfaces characterize various relevant parameters of the sub-interfaces, such as transparency, size, layout angle and the like, namely, the attribute values of the sub-interfaces are changed through the running refresh control task.
And step S103, when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream.
In one embodiment, the attribute value of the sub-interface is changed through the refresh control task, and when the attribute value of the sub-interface is changed, the interface main thread detects that the interface content is changed, and correspondingly sends a refresh request instruction to the display module. The request refresh command may be a request for acquiring a vertical pulse signal issued by the display module, where the vertical pulse signal is also called a vertical signal and is a signal issued at a fixed time interval and generated by the display module for performing refresh unified processing. And when the interface main thread detects the vertical pulse signal, acquiring a video stream, rendering and drawing through a rendering thread, and finally synthesizing and displaying in a display interface.
According to the scheme, when video playing is detected, the sub-interface is added in the display interface, the refreshing control task is created, when video stream generation is detected, the attribute value of the sub-interface is adjusted through the refreshing control task, when the attribute value change is detected through the interface main thread, a request refreshing instruction is sent to the display module for performing composite display on the generated video stream, and according to the display method of the interface content, refreshing triggering does not depend on video stream generation, fluency of the interface display content can be guaranteed under the condition that system resources are in shortage, and watching experience of a user is remarkably improved.
Fig. 2 is a flow chart of another interface content display method provided in an embodiment of the present invention, and shows a manner of adjusting attribute values of a sub-interface through a refresh control task, as shown in fig. 2, the method specifically includes:
step S201, when video playing is detected, adding a sub-interface in a display interface, and creating a refresh control task.
And step S202, when the generation of the video stream is detected, adjusting the attribute value of the sub-interface at preset time intervals through the refreshing control task.
In one embodiment, the attribute values of the sub-interface are adjusted at regular intervals by a refresh control task. Optionally, the fixed time interval may be 20 milliseconds, or a refresh time interval obtained from the number of playing frames per second when the frame playing is not caused to be stuck and dropped according to the test.
Step S203, when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream.
Therefore, the attribute value of the sub-interface is adjusted at preset time intervals through the refresh control task, the generation of video stream data is not required to be used as a refresh trigger condition, and the problem that a picture is blocked due to the delay of a refresh trigger request caused by the shortage of system resources is solved.
Fig. 3 is a flow chart of another interface content display method provided in an embodiment of the present invention, which shows a specific manner for adjusting attribute values of a sub-interface through a refresh control task, and as shown in fig. 3, the method specifically includes:
and S301, when video playing is detected, adding a sub-interface in a display interface, and creating a refresh control task.
And step S302, when the generation of the video stream is detected, adjusting the transparency of the sub-interface at preset time intervals through the refreshing control task.
In one embodiment, when adjusting the attribute value of the sub-interface, the transparency attribute value is selected as the adjustment object. The transparency represents the transparency degree of the sub-interface, and can be represented by a value of 256 steps from 0 to 255, for example, 0 step represents full transparency, and 255 step represents opacity.
Optionally, the specific adjustment manner may be: randomly selecting the transparency value of the sub-interface in the set transparency value range, wherein the corresponding transparency values in the two adjacent adjusting processes are different in size; or, the transparency values of the sub-interfaces are sequentially subjected to incremental or decremental cyclic adjustment of the transparency values within the set transparency value range; or the transparency values of the sub-interfaces are sequentially selected between the set first transparency value and the set second transparency value.
The transparency value of the sub-interface is randomly selected in the set transparency value range, wherein the transparency value is represented by 0-order full transparency, and 255-order opaque, and may be in a range from 0 to 10. Meanwhile, in order to achieve the purpose of adjusting the attribute value of the sub-interface, the corresponding transparency values in the two adjacent adjusting processes are different in size. For example, taking the adjustment every 20 milliseconds as an example, assuming that the transparency value of the initial sub-interface is 0, the randomly selected value in the interval from 0 to 10 in the 20 th millisecond is 5, and accordingly, the transparency value of the sub-interface is adjusted to 5, and the randomly selected value in the interval from 0 to 10 in the 40 th millisecond is 2, and accordingly, the transparency value of the sub-interface is adjusted to 2.
In the method, for the cyclic adjustment manner of sequentially performing increment or decrement of the transparency value in the set transparency value range of the transparency value of the sub-interface, the transparency value may be in a range from 0 to 10, for example, 0-order represents full transparency, and 255-order represents opacity. For example, the incremental adjustment may be performed every 20 milliseconds, for example, assuming that the transparency value of the initial sub-interface is 0, 1 is selected in a manner that 20 milliseconds sequentially and incrementally select a value in a range from 0 to 10, and correspondingly, the transparency value of the sub-interface is adjusted to 1, and 2 is selected in a manner that 40 milliseconds sequentially and incrementally select a value in a range from 0 to 10, and correspondingly, the transparency value of the sub-interface is adjusted to 2. After 10 is selected in a mode of sequentially increasing the selected value from 0 to 10, 0 is selected when the transparency value of the sub-interface is selected next time. For example, the process of the decreasing loop adjustment may be, for example, performing adjustment every 20 milliseconds, assuming that the transparency value of the initial sub-interface is 10, then 9 is selected in a manner that 20 milliseconds sequentially and incrementally select a value in a range from 0 to 10, and accordingly, the transparency value of the sub-interface is adjusted to 9, and 8 is selected in a manner that 40 milliseconds sequentially and incrementally select a value in a range from 0 to 10, and accordingly, the transparency value of the sub-interface is adjusted to 8. After 0 is selected in a mode of sequentially increasing the selected value from 0 to 10, 10 is selected when the transparency value of the sub-interface is selected next time.
For a mode that the transparency value of the sub interface is sequentially selected between the set first transparency value and the set second transparency value, the transparency value is represented by full transparency in 0-order and opaque in 255-order, for example, the first transparency value may be 0, and the second transparency value may be 1. For example, taking the adjustment every 20 milliseconds as an example, assuming that the transparency value of the initial sub-interface is 0, the 20 th millisecond selects 1 of the numerical value, and correspondingly, the transparency value of the sub-interface is adjusted to 1, and the 40 th millisecond selects 0 of the numerical value, and correspondingly, the transparency value of the sub-interface is adjusted to 1, and so on.
Step S303, when the transparency change is detected through the interface main thread, sending a request refresh instruction to a display module for performing composite display on the generated video stream.
According to the method, when video playing is detected, a sub-interface is added in a display interface, a refreshing control task is created, when video stream generation is detected, the transparency of the sub-interface is adjusted at preset time intervals through the refreshing control task, when transparency change is detected through an interface main thread, a request refreshing instruction is sent to a display module and is used for performing composite display on the generated video stream, specifically, when transparency is adjusted, transparency values of the sub-interface are randomly selected in a set transparency value range interval, wherein corresponding transparency values in two adjacent adjusting processes are different in size; or, the transparency values of the sub-interfaces are sequentially subjected to incremental or decremental cyclic adjustment of the transparency values within the set transparency value range; according to the interface content display method, refreshing triggering does not depend on video stream generation, and under the condition of system resource shortage, transparency of the sub-interface can be adjusted at intervals to trigger interface refreshing, smoothness of interface display content is guaranteed, and watching experience of a user is remarkably improved.
Fig. 4 is a flow chart of another interface content display method provided in an embodiment of the present invention, and another specific manner is provided for adjusting attribute values of a sub-interface through a refresh control task, as shown in fig. 4, the method specifically includes:
step S401, when video playing is detected, adding a sub-interface in a display interface, and creating a refresh control task.
And S402, when the generation of the video stream is detected, adjusting the layout angle of the sub-interface at preset time intervals through the refreshing control task.
The layout angle is used as one of the attribute values of the sub-interface, and represents the layout direction style of the sub-interface. For example, four different directions are expressed in the upper direction, the lower direction, the left direction and the right direction, the layout direction of the sub-interface can be adjusted by rotating, and taking a square sub-interface as an example, a center point of the sub-interface is taken as a rotation reference point, and the sub-interface is rotated clockwise by 90 degrees to change the layout angle of the sub-interface.
Optionally, the manner of adjusting the layout angle of the sub-interface at preset time intervals through the refresh control task may be: and adjusting the layout angle of the sub-interface in sequence according to a preset rotating direction, wherein the rotating direction comprises a clockwise direction and an anticlockwise direction. The preset time is 20 milliseconds for example, and the sub-interface is rotated every 20 milliseconds to change the attribute value.
Step S403, when detecting the layout angle change through the interface main thread, sending a request refresh instruction to a display module for performing composite display on the generated video stream.
According to the method, when video playing is detected, the sub-interface is added in the display interface, the refreshing control task is created, when video stream generation is detected, the layout angle of the sub-interface is adjusted at preset time intervals through the refreshing control task, when the layout angle change is detected through the interface main thread, a request refreshing instruction is sent to the display module and used for performing composite display on the generated video stream, under the condition that system resources are in shortage, the interface refreshing can be triggered through adjustment of the layout angle of the sub-interface at intervals, the fluency of interface display content is guaranteed, and the watching experience of users is remarkably improved.
Fig. 5 is a flow chart of another interface content display method provided in an embodiment of the present invention, which shows a specific manner for adding a sub-interface in a display interface, and as shown in fig. 5, the method specifically includes:
step S501, when video playing is detected, identifying a playing interface in a current display interface, adding a sub-interface in an area which does not include the playing interface in the display interface, and creating a refreshing control task.
In one embodiment, when the sub-interface is added, the playing interface in the current display interface is identified, and the sub-interface is added in the area, which does not contain the playing interface, in the display interface. Illustratively, for a non-full screen play mode, a sub-interface addition is made in the area of the non-play interface. Fig. 6 is a schematic diagram of adding a sub-interface on a display interface according to an embodiment of the present invention. As shown in fig. 6, in the display interface 500, an area 501 of the playback interface and an area 502 of the non-playback interface are included, and when the sub-interface addition is performed, the sub-interface addition is added to an arbitrary position in the area 502, as shown in the illustrated example, at a position 503.
And step S502, when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task.
Step S503, when detecting the change of the attribute value through the interface main thread, sending a request refresh instruction to a display module for performing composite display on the generated video stream.
According to the method for displaying the interface content, the refreshing triggering does not depend on the generation of the video stream, the smoothness of the interface display content can be ensured under the condition that system resources are in shortage, the watching experience of a user is remarkably improved, and meanwhile, the interference on the normal playing content is avoided.
Fig. 7 is a flow chart of another interface content display method according to an embodiment of the present invention, which shows a specific manner of adding a sub-interface to a display interface, and as shown in fig. 7, the method specifically includes:
step S601, when video playing is detected, adding a sub-interface at a preset position of a display interface, wherein the preset position comprises an edge position of the display interface, and creating a refreshing control task.
In one embodiment, when the sub-interface is added, the sub-interface is added at a preset position of the display interface, wherein the preset position comprises an edge position of the display interface. Illustratively, in a full-screen playing mode, the sub-interface is added at the edge position of the display interface. Fig. 8 is another schematic diagram of adding a sub-interface to a display interface according to an embodiment of the present invention. As shown in fig. 8, in the display interface 600, a full-screen play interface is displayed, and the sub-interface is added at a peripheral position of the display interface 600, for example, at a position 601.
Step S602, when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task.
Step S603, when detecting the change of the attribute value through the interface main thread, sending a request refresh instruction to a display module for performing composite display on the generated video stream.
According to the method for displaying the interface content, the refreshing trigger does not depend on the generation of the video stream, the fluency of the interface display content can be ensured under the condition that system resources are in shortage, the watching experience of a user is remarkably improved, and meanwhile, the interference to normally played content is greatly reduced.
In one embodiment, the added sub-interface is a single-pixel background-free interface. Optionally, the sub-interface is a single-pixel background-free interface, so that a user cannot perceive the existence of the sub-interface when watching a video, and smooth playing of a video stream is ensured.
Fig. 9 is a structural block diagram of an interface content display apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the interface content display method according to the embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 9, the apparatus specifically includes: an interface adding module 101, an interface adjusting module 102, and an interface generating module 103, wherein,
the interface adding module 101 is configured to add a sub-interface in a display interface and create a refresh control task when video playing is detected;
the interface adjusting module 102 is configured to adjust the attribute value of the sub-interface through the refresh control task when the generation of the video stream is detected;
the interface generating module 103 is configured to send a request refresh instruction to the display module when detecting that the attribute value changes through the interface main thread, so as to perform composite display on the generated video stream.
According to the scheme, when video playing is detected, the sub-interface is added in the display interface, the refreshing control task is created, when video stream generation is detected, the attribute value of the sub-interface is adjusted through the refreshing control task, when the attribute value change is detected through the interface main thread, a request refreshing instruction is sent to the display module for performing composite display on the generated video stream, and according to the display method of the interface content, refreshing triggering does not depend on video stream generation, fluency of the interface display content can be guaranteed under the condition that system resources are in shortage, and watching experience of a user is remarkably improved.
In a possible embodiment, the interface adjusting module 102 is specifically configured to:
and adjusting the attribute value of the sub-interface at preset time intervals through the refreshing control task.
In a possible embodiment, the interface adjusting module 102 is specifically configured to:
adjusting the transparency of the sub-interface at preset time intervals through the refresh control task, wherein the method for adjusting the transparency of the sub-interface comprises any one of the following modes:
randomly selecting the transparency values of the sub-interfaces within a set transparency value range, wherein the corresponding transparency values in the two adjacent adjusting processes are different in size;
sequentially carrying out incremental or decremental cyclic adjustment on the transparency values of the sub-interfaces within the set transparency value range;
and sequentially selecting the transparency values of the sub-interfaces between the set first transparency value and the set second transparency value.
In a possible embodiment, the interface adjusting module 102 is specifically configured to:
adjusting the layout angle of the sub-interface at preset time intervals through the refresh control task, wherein the manner of adjusting the layout angle of the sub-interface comprises the following steps:
and adjusting the layout angles of the sub-interfaces in sequence according to a preset rotating direction, wherein the rotating direction comprises a clockwise direction and an anticlockwise direction.
In a possible embodiment, the interface adding module 101 is specifically configured to:
identifying a playing interface in a current display interface, and adding a sub-interface in an area which does not contain the playing interface in the display interface; or
Adding a sub-interface at a preset position of a display interface, wherein the preset position comprises the edge position of the display interface.
In one possible embodiment, the sub-interface is a single-pixel background-free interface.
In a possible embodiment, the interface generating module 103 is specifically configured to:
after a refresh request instruction is sent to a display module, the generated video stream data is read in response to a vertical pulse signal generated by the display module, and the video stream is compositely displayed through a rendering thread and the interface main thread.
Fig. 10 is a schematic structural diagram of an interface content display apparatus according to an embodiment of the present invention, as shown in fig. 10, the apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 10; the processor 201, the memory 202, the input device 203 and the output device 204 in the apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 10. The memory 202 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface content display method in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 202, that is, implements the interface content display method described above. The input device 203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the apparatus. The output device 204 may include a display device such as a display screen.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform an interface content display method described in the foregoing embodiment, and the method specifically includes:
when video playing is detected, adding a sub-interface in a display interface, and creating a refreshing control task;
when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task;
and when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream.
It should be noted that, in the embodiment of the interface content display apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The interface content display method is characterized by comprising the following steps:
when video playing is detected, adding a sub-interface in a display interface, and creating a refreshing control task;
when the generation of the video stream is detected, adjusting the attribute value of the sub-interface through the refreshing control task;
and when detecting the change of the attribute value through the interface main thread, sending a request refreshing instruction to a display module for performing composite display on the generated video stream.
2. The interface content display method according to claim 1, wherein the adjusting, by the refresh control task, the attribute value of the sub-interface includes:
and adjusting the attribute value of the sub-interface at preset time intervals through the refreshing control task.
3. The interface content display method according to claim 2, wherein adjusting the attribute value of the sub-interface at preset time intervals by the refresh control task includes:
adjusting the transparency of the sub-interface at preset time intervals through the refresh control task, wherein the method for adjusting the transparency of the sub-interface comprises any one of the following modes:
randomly selecting the transparency values of the sub-interfaces within a set transparency value range, wherein the corresponding transparency values in the two adjacent adjusting processes are different in size;
sequentially carrying out incremental or decremental cyclic adjustment on the transparency values of the sub-interfaces within the set transparency value range;
and sequentially selecting the transparency values of the sub-interfaces between the set first transparency value and the set second transparency value.
4. The interface content display method according to claim 2, wherein adjusting the attribute value of the sub-interface at preset time intervals by the refresh control task includes:
adjusting the layout angle of the sub-interface at preset time intervals through the refresh control task, wherein the manner of adjusting the layout angle of the sub-interface comprises the following steps:
and adjusting the layout angles of the sub-interfaces in sequence according to a preset rotating direction, wherein the rotating direction comprises a clockwise direction and an anticlockwise direction.
5. The interface content display method according to claim 1, wherein the adding of the sub-interface in the display interface includes:
identifying a playing interface in a current display interface, and adding a sub-interface in an area which does not contain the playing interface in the display interface; or
Adding a sub-interface at a preset position of a display interface, wherein the preset position comprises the edge position of the display interface.
6. The interface content display method according to any one of claims 1 to 5, wherein the sub-interface is a single-pixel background-free interface.
7. The interface content display method according to any one of claims 1 to 5, further comprising, after sending a request refresh command to the display module:
and reading the generated video stream data in response to the vertical pulse signal generated by the display module, and performing composite display on the video stream through a rendering thread and the interface main thread.
8. An interface content display apparatus, comprising:
the interface adding module is configured to add a sub-interface in the display interface and create a refreshing control task when video playing is detected;
the interface adjusting module is configured to adjust the attribute value of the sub-interface through the refreshing control task when the generation of the video stream is detected;
and the interface generating module is configured to send a request refreshing instruction to the display module when the attribute value change is detected through the interface main thread, and the request refreshing instruction is used for performing composite display on the generated video stream.
9. An interface content display device, the device comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the interface content display method of any one of claims 1-7.
10. A storage medium storing computer-executable instructions for performing the interface content display method of any one of claims 1-7 when executed by a computer processor.
CN202210122179.2A 2022-02-09 2022-02-09 Interface content display method, device, equipment and storage medium Active CN114390333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122179.2A CN114390333B (en) 2022-02-09 2022-02-09 Interface content display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122179.2A CN114390333B (en) 2022-02-09 2022-02-09 Interface content display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114390333A true CN114390333A (en) 2022-04-22
CN114390333B CN114390333B (en) 2024-04-02

Family

ID=81205861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122179.2A Active CN114390333B (en) 2022-02-09 2022-02-09 Interface content display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114390333B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120109902A1 (en) * 2010-10-29 2012-05-03 Verizon Patent And Licensing Inc. Content caching based on refresh and expiration times
US20140101586A1 (en) * 2012-10-09 2014-04-10 Matthias Kienzle Triggering a refresh of displayed content on a mobile device
JP2019184955A (en) * 2018-04-16 2019-10-24 シャープ株式会社 Video processing device, television receiver, control program, and recording medium
CN113204656A (en) * 2021-03-31 2021-08-03 北京达佳互联信息技术有限公司 Multimedia resource display method, device, equipment and storage medium
WO2021164445A1 (en) * 2020-02-19 2021-08-26 华为技术有限公司 Notification processing method, electronic apparatus, and system
CN113362783A (en) * 2020-03-06 2021-09-07 华为技术有限公司 Refresh rate switching method and electronic equipment
US11146847B1 (en) * 2020-08-08 2021-10-12 Haystack TV, Inc. Dynamic context-based video streaming overlay generation
CN113766324A (en) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 Video playing control method and device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120109902A1 (en) * 2010-10-29 2012-05-03 Verizon Patent And Licensing Inc. Content caching based on refresh and expiration times
US20140101586A1 (en) * 2012-10-09 2014-04-10 Matthias Kienzle Triggering a refresh of displayed content on a mobile device
JP2019184955A (en) * 2018-04-16 2019-10-24 シャープ株式会社 Video processing device, television receiver, control program, and recording medium
WO2021164445A1 (en) * 2020-02-19 2021-08-26 华为技术有限公司 Notification processing method, electronic apparatus, and system
CN113362783A (en) * 2020-03-06 2021-09-07 华为技术有限公司 Refresh rate switching method and electronic equipment
CN113766324A (en) * 2020-06-02 2021-12-07 深圳市万普拉斯科技有限公司 Video playing control method and device, computer equipment and storage medium
US11146847B1 (en) * 2020-08-08 2021-10-12 Haystack TV, Inc. Dynamic context-based video streaming overlay generation
CN113204656A (en) * 2021-03-31 2021-08-03 北京达佳互联信息技术有限公司 Multimedia resource display method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孔维昌: "基于Spring Cloud微服务架构的短视频社区的设计与实现", 《中国优秀硕士学位论文全文数据库电子期刊》 *
李华君;张超;陈婧;林悦;: "基于国产化平台的雷达回波视频软件绘制研究", 雷达与对抗, no. 02 *

Also Published As

Publication number Publication date
CN114390333B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN114390359B (en) Message display method and display equipment
CN103562862B (en) Global composition system
CN113141529B (en) Display device and media asset playing method
CN109656639B (en) Interface rolling method, device, equipment and medium
CN114302204B (en) Split-screen playing method and display device
CN114040254B (en) Display equipment and high concurrency message display method
US20230328205A1 (en) Video conference presentation method and apparatus, and terminal device and storage medium
CN112601109A (en) Audio playing method and display device
CN114390333B (en) Interface content display method, device, equipment and storage medium
CN105164723B (en) Sharing synthesis resource
CN116347166A (en) Display device and window display method
CN116980554A (en) Display equipment and video conference interface display method
CN112947783B (en) Display device
CN112256167A (en) Multimedia resource switching method and device, electronic equipment and storage medium
CN113766164B (en) Display equipment and signal source interface display method
CN113689856B (en) Voice control method for video playing progress of browser page and display equipment
CN115314757B (en) Display device and guide window display method
CN115150667B (en) Display device and advertisement playing method
CN115767196A (en) Display device and media asset playing method
CN118214904A (en) Display device and external device data display method based on browser
CN117806451A (en) Gesture recognition method and electronic equipment
CN118214903A (en) Display equipment and focus switching method
CN114143543A (en) Method for processing interpolation frame, display device, medium, and program product
CN116737287A (en) Display equipment and interface display method
CN117608426A (en) Display equipment and multi-application same-screen display method

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
GR01 Patent grant
GR01 Patent grant