[go: up one dir, main page]

CN112367295B - Plug-in display method and device, storage medium and electronic equipment - Google Patents

Plug-in display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112367295B
CN112367295B CN202011104814.1A CN202011104814A CN112367295B CN 112367295 B CN112367295 B CN 112367295B CN 202011104814 A CN202011104814 A CN 202011104814A CN 112367295 B CN112367295 B CN 112367295B
Authority
CN
China
Prior art keywords
plug
displayed
storage
sticker
module
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.)
Active
Application number
CN202011104814.1A
Other languages
Chinese (zh)
Other versions
CN112367295A (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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202011104814.1A priority Critical patent/CN112367295B/en
Publication of CN112367295A publication Critical patent/CN112367295A/en
Application granted granted Critical
Publication of CN112367295B publication Critical patent/CN112367295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to the technical field of information display, in particular to a plug-in display method and device, a computer readable storage medium and electronic equipment, wherein the method comprises the following steps: obtaining an insert to be displayed; packaging the plug-in to be displayed into a video stream in the form of a sticker; and detecting the attribute change of the plug-in to be displayed in real time, and updating the sticker according to the attribute change. The technical scheme of the embodiment of the disclosure can overcome the defect of high development cost of the plug-in display method in the prior art.

Description

Plug-in display method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of information display, and in particular relates to a plug-in display method and device, a computer readable storage medium and electronic equipment.
Background
With the development of live services, live content is more abundant, terminals for watching videos are more numerous, and some content is more and more popular to be displayed in a live broadcast room in the form of plug-ins.
In the prior art, when the content of the plug-in needs to be displayed, a new window needs to be developed in the live broadcast window to display the plug-in, and the development cost is high.
Therefore, there is a need to design a new plug-in display method.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a plug-in display method and device, a computer readable storage medium and an electronic device, so as to overcome the defect of high development cost of the plug-in display method in the prior art at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a plug-in display method, including:
obtaining an insert to be displayed;
packaging the plug-in to be displayed into a video stream in the form of a sticker;
and detecting the attribute change of the plug-in to be displayed in real time, and updating the sticker according to the attribute change.
In an exemplary embodiment of the present disclosure, the attribute change includes a change of a to-be-displayed screen of a to-be-displayed plug-in, the detecting, in real time, the attribute change of the to-be-displayed plug-in, and updating the sticker according to the attribute change includes:
detecting the change of the picture to be displayed of the plug-in to be displayed in real time, and updating the sticker.
In an exemplary embodiment of the present disclosure, the method further comprises:
responding to the triggering operation of a user on the sticker, and determining parameter information of the triggering operation;
and obtaining a target plug-in unit obtained by processing the plug-in unit to be displayed according to the parameter information, and updating the sticker according to the target plug-in unit.
In one exemplary embodiment of the present disclosure, obtaining an insert to be presented includes:
acquiring storage parameters of the plug-in to be displayed;
and obtaining the plug-in to be displayed in a storage library according to the storage parameters.
In an exemplary embodiment of the present disclosure, the storage library includes a first storage module and a second storage module, and the obtaining the plug-in to be displayed in the storage library according to the storage parameter includes:
respectively acquiring index numbers of the first storage module and the second storage module;
and obtaining the plug-in to be displayed in a storage library according to the index number and the storage parameter.
In an exemplary embodiment of the disclosure, the packaging the plug-in to be displayed into a video stream in a form of a sticker includes:
the plug-in is packaged into a video stream in the form of a sticker by a video sticker software development kit.
According to one aspect of the present disclosure, there is provided a plug-in display method, which is characterized in that the method is executed by a service end, and includes:
acquiring a preset effect diagram, and developing an insert to be displayed according to the preset effect diagram;
storing the plug-in to be displayed in a storage library, and acquiring storage information of the plug-in to be displayed;
and sending the storage information to a playing end, so that the playing end obtains and displays the plug-in to be displayed according to the storage information.
In an exemplary embodiment of the present disclosure, developing the plug-in to be displayed according to the preset effect graph includes:
and acquiring a preset interface library, and developing the plug-in to be displayed according to the preset effect graph by utilizing the preset interface library.
In an exemplary embodiment of the present disclosure, the storage library includes a first storage module and a second storage module, and storing the plug-in to be exposed to the storage library includes:
respectively acquiring index numbers of the first storage module and the second storage module;
determining the storage position of the plug-in to be displayed according to the index number;
and storing the plug-in to be displayed to a storage library according to the storage position.
According to one aspect of the present disclosure, there is provided an insert display device comprising:
the acquisition module is used for acquiring the plug-in to be displayed;
the packaging module packages the plug-in to be displayed into a video stream in the form of a sticker;
and the display module is used for detecting the attribute change of the plug-in to be displayed in real time and updating the sticker according to the attribute change.
According to one aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a plug-in presentation method as set forth in any one of the preceding claims.
According to one aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the plug-in presentation method as claimed in any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the plug-in display method provided by the embodiment of the disclosure, a plug-in to be displayed is obtained; packaging the plug-in to be displayed into a video stream in the form of a sticker; compared with the prior art, when the content of the plug-in is displayed, the display of the content of the plug-in is completed on the live interface in the form of the plug-in, and the update of the plug-in can be realized by detecting the attribute change of the plug-in real time, so that a new window is not required to be developed again on the live interface to display the content of the plug-in to be displayed when the content of the plug-in to be displayed is displayed, and the development cost is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort. In the drawings:
FIG. 1 schematically illustrates a flow chart of a method presented by a play-end plug-in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a block diagram of a video decal software development kit in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method presented by a service side plug-in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a frame diagram of an apparatus for performing a plug-in presentation method in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates an overall flow diagram of a plug-in presentation method in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a schematic composition of an insert presentation device in an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a schematic composition of another insert presentation device in an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a structural schematic diagram of a computer system suitable for use in implementing the electronic device of the exemplary embodiments of the present disclosure;
fig. 9 schematically illustrates a schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In the present exemplary embodiment, first, a plug-in display method is provided, which is executed by a playing end and a service end together. Referring to fig. 1, the plug-in display method executed by the playing end may include the following steps:
s110, obtaining an insert to be displayed;
s120, packaging the plug-in to be displayed into a video stream in the form of a sticker;
s130, detecting the attribute change of the plug-in to be displayed in real time, and updating the sticker according to the attribute change.
Compared with the prior art, in the plug-in display method provided by the embodiment, when plug-in content is displayed, the plug-in content is displayed on the live interface in the form of the sticker, and the update of the sticker can be realized by detecting the attribute change of the plug-in real time, so that a new window is not required to be developed again on the live interface to display the plug-in when the content of the plug-in to be displayed is displayed, and the development cost is saved.
The steps of the plug-in display method in the present exemplary embodiment will be described in more detail with reference to the drawings and the embodiments.
In step S110, a plug-in to be displayed is acquired.
In an example embodiment of the present disclosure, storage parameters of a plug-in to be displayed may be first obtained, where the storage parameters may include information such as a file name, a mutex name, an initial position and a size of the plug-in to be displayed; and then obtaining the plug-in to be displayed from the storage library according to the storage information.
A plug-in is a program written by an application program interface that complies with certain specifications. It can only run under a program-specified system platform (possibly supporting multiple platforms simultaneously) and cannot run separately from the specified platform.
In this example real-time manner, the plug-in to be displayed may be obtained by developing the obtained preset effect graph by using a preset interface library, where the preset interface library may be a pyqt interface library, or may be another interface library, for example, a c++ interface library, and in this example embodiment, the present invention is not limited specifically.
In this example embodiment, the storage library may include a first storage module and a second storage module, and when the plug-in to be displayed is acquired, index numbers of the first storage module and the second storage module may be acquired respectively, where the index numbers include 0 and 1, when the storage modules are in a readable state, that is, when the complete plug-in information has been stored, the index number is 1, and when the plug-in information stored in the storage modules is read, that is, when the storage modules are in a writable state, the index number is 0, and when the plug-in to be displayed is acquired, the plug-in to be displayed is acquired in the storage module with the index number of 1 according to the storage parameter. Through the index number and the two storage modules, namely the first storage module and the second storage module, no conflict exists between reading and writing, blocking is prevented, and response speed is fast.
In step S120, the plug-in to be displayed is encapsulated into a video stream in the form of a sticker.
In an example embodiment of the present disclosure, the plug-in may be packaged into a video stream in the form of a sticker by a video sticker software development kit, that is, the content to be displayed of the plug-in to be displayed is packaged into the video stream in the form of an image, and in particular, referring to fig. 2, the video sticker software development kit 200 may include an add sticker interface 210, a delete sticker interface 220, a set sticker position and size interface 230, a set sticker other attribute interface 240, a repository management module 250, an operation screen update module 260, and a response module 270.
In this example embodiment, since the plug-in developed by the pyqt interface library is a widget, when a newly-built plug-in to be displayed needs to be displayed, the add-on sticker interface 210 may be invoked to add the widget corresponding to the plug-in to be displayed to the video sticker; when the plug-in being displayed needs to be canceled, the paper deleting interface 220 can be called to delete the paper of the widget corresponding to the plug-in to be canceled.
In this example embodiment, the setup decal position and size interface settings 230 may be invoked when the plug-in to be displayed is first displayed, and the initialized position and size of the decal of the plug-in to be displayed. In this exemplary embodiment, the video sticker software development kit may further provide a set sticker other attribute interface 240, for providing some interfaces according to the service needs, for controlling the display or hiding of the sticker, for controlling whether the sticker can be resized, etc.
In this example embodiment, the shared memory file management module 250 is used to create a repository that can store plug-ins to be exposed. The size of the created memory bank may be 16KB + plug-in width plug-in height 4*2. Where 16Kb is the reserved size, in this example embodiment, only the first 1 byte may be used to hold the index number of the last updated memory module in the business process. Plug-in width x 4 is RGBA (Red Green Blue) and Alpha color space) data memory block with transparent channel; the purpose of multiplying by two is to open up two storage modules with the same size, namely the first storage module and the second storage module, so that when the service end writes the plug-in picture to the storage modules, the playing end can read the other written storage module without blocking each other.
In step S130, the attribute change of the plug-in to be displayed is detected in real time, and the sticker is updated according to the attribute change.
In this example embodiment, the server detects in real time whether the plug-in to be displayed has an attribute change, where the attribute change includes a change in a picture to be displayed of the plug-in to be displayed, that is, when a change in the picture of the plug-in to be displayed is detected, the decal in the video stream is updated according to the picture change. Wherein the property change may also include a size change, a color change, etc., and is not particularly limited in this exemplary embodiment. A specific update may be performed by the plug-in update module 260.
In this example embodiment, the to-be-displayed screen of the to-be-displayed plug-in may include a plurality of images, and the plurality of images may change with time, and correspond to a change in an attribute of the to-be-displayed plug-in, that is, the to-be-displayed plug-in is displayed, for example, a first image is displayed at a first time, a second image is displayed at a second time, and when the change in the attribute of the to-be-displayed plug-in from the first time to the second time is detected, the first image in the video stream is replaced with the second image.
Specifically, describing the above-described attribute change as an example of a screen change in detail, when the plug-in screen to be displayed is updated, one free memory module is taken out from the two memory modules to perform a write operation. And in the starting process, a written memory module is taken out at regular time according to the starting frame rate to perform reading operation, and the read data is rendered into the video preview. Two mutex object mutex locks are created by the createMutex function to identify between processes whether the two memory modules described above are being used. The index value of the storage module in the present disclosure is 0 or 1, corresponding to two storage modules, a first storage module and a second storage module, and when writing, the service end can preferentially determine whether the memory block of index+1%2 is idle.
In this exemplary embodiment, a WaitForSingleObject function without blocking may be used to determine whether the memory module corresponding to the mutex lock is idle, if so, the memory module corresponding to the mutex lock is marked as "idle", and writing of the picture data is started, the index value is updated to the index number of the memory module currently written, and then the ReleaseMutex identifies that the memory module is already written. And obtaining the latest written memory blocks by similar operation in the starting process, preferentially judging whether the memory blocks of the index are idle or not, and judging whether the memory blocks of the index+1%2 are idle or not if not, wherein all the memory blocks are idle.
In this exemplary embodiment, when the attribute of the plug-in to be displayed changes, step S120 is repeated, and the obtained sticker is replaced with the original sticker to complete updating.
In another example embodiment of the present disclosure, when a playing end detects a triggering operation of a user on the sticker, parameter information of the triggering operation is determined, then the parameter information may be sent to a service end, then a target plug-in obtained by the service end after processing the plug-in to be displayed according to the parameter information is obtained, and the sticker is updated according to the target plug-in.
The triggering operation may be an operation by a user through a mouse click, a finger touch, or the like, and is not particularly limited in this example embodiment. After receiving the triggering operation, acquiring parameter information of the triggering operation, when the triggering operation is a mouse clicking operation, the parameter information can comprise coordinates of a mouse clicking position, a service end receives the coordinates, and notifies an plugin after coordinate mapping, a plugin service performs corresponding processing to obtain a target plugin, and the target plugin is stored in a storage library. And then the playing end acquires the target plug-in from the storage library and executes the steps to finish updating the sticker.
Further, referring to fig. 3, the above plug-in display method executed by the service end may include the following steps:
step S310, a preset effect diagram is obtained, and the plug-in to be displayed is developed according to the preset effect diagram;
step S320, storing the plug-in to be displayed in a storage library, and acquiring the storage information of the plug-in to be displayed;
step S330, the storage information is sent to a playing end, so that the playing end obtains and displays the plug-in to be displayed according to the storage information.
The steps of the plug-in display method in the present exemplary embodiment will be described in more detail with reference to the drawings and the embodiments.
In step S310, a preset effect diagram is obtained, and the plug-in to be displayed is developed according to the preset effect diagram.
In an example embodiment of the present disclosure, a service side may first obtain a preset effect diagram, and then develop a plug-in to be displayed by using a preset interface library, where the preset interface library may be a pyqt library, or may be another interface library such as c++, and in this example embodiment, the present disclosure is not limited specifically.
In step S320, the plug-in to be displayed is stored in a storage library, and the storage information of the plug-in to be displayed is obtained.
In an example embodiment of the present disclosure, the storage repository may include a first storage module and a second storage module, when the plug-in to be displayed is obtained, the service end may respectively obtain the index numbers of each second storage module of the first storage module, where the index numbers include 0 and 1, when the storage module is in a readable state, that is, when the storage module has already stored complete plug-in information, the index number is 1, when the latest stored plug-in information of the storage module is read, that is, when the storage module is in a writable state, the index number is 0, determine that the storage module with the index number of 0 is the storage location of the plug-in to be displayed, and then the service end may store the storage module with the index number of 0 in the plug-in to be displayed, and obtain the storage information of the plug-in to be displayed, where the specific details of the storage information are described in detail in the plug-in display method executed by the playing end.
In step S330, the storage information is sent to a playing end, so that the playing end obtains and displays the plug-in to be displayed according to the storage information.
In an example embodiment of the present disclosure, after the storage information is obtained, the service end may send the storage information to the playing end, where the playing end obtains the plug-in to be displayed according to the storage repository, and encapsulates the plug-in to be displayed in a video stream in a form of a sticker and displays the plug-in.
In another example embodiment of the present disclosure, the service side receives parameter information of a triggering operation sent by the development side, and the service side processes the plug-in to be displayed according to the parameter information to obtain a target plug-in, and stores the target plug-in a storage library.
Referring to fig. 4, the plug-in presentation method of the present disclosure may be commonly performed by a service end 410, a play end, and a viewer end 430, wherein the service end 410 may include a sticker plug-in UI module 411, a video sticker development kit 412, and a communication module 413. The service end 410 is configured to send and store the plug-in to the storage library according to the pattern preset effect diagram, the playing end may include a sticker frame data reading module 421, a sticker preview display module 422, and a parameter information sending module 423, the playing end 420 is configured to read the plug-in to be displayed, and say that the plug-in to be displayed is displayed in the video stream in a laminated manner, and the viewer end 430 is configured to view the plug-in.
Specifically, the sticker plug-in UI module 411 is configured to develop a plug-in to be displayed according to a preset effect diagram by using a preset interface library, where the plug-in to be displayed may be hidden or displayed, for example, as a gift progress plug-in, that is, a hidden plug-in, for being displayed in a video stream in a combined manner. The video sticker software development kit 412 is used to provide a module for a business developer to add a sticker to a video stream, and by calling the add-on interface, the plug-in to be displayed written using the interface library can be displayed in the video stream. The communication module 413 is used for communication between the service end 410 and the playing end, for example, a piece of posting paper is added to send information such as a sticker id, a shared memory file name, a mutex name, an initial position and a size of the plug-in unit from the service end 410 to the playing end. The player side is operable to delete a sticker to inform the business side 410 of the sticker id. The sticker frame data reading module 421 is used for reading the module of the plug-in to be displayed from a storage library, the data in the storage library comprises two storage modules and an index number of the latest plug-in frame, and the latest plug-in frame data is read through the index number. The decal preview display module 422 is used to display video and decal windows, which may be rendered using a dx engine. The parameter information sending module 423 is configured to send parameter information of the triggering operation to the service end 410, and the service end 410 performs corresponding processing according to the parameter information.
The viewer side 430 is the terminal where the user views the video and does not have to develop each side if the service is done in a video sticker. The viewer side may include a PC side 432, which is a computer commonly known as windows and mac system, etc.; mobile terminal 433, such as android phone and ios phone; web 431, e.g., google, IE browser, etc.
Referring to fig. 5, the whole process of the plug-in display method of the present disclosure may include steps S510 to S580, specifically, step S510 may be performed first, and a plug-in to be displayed may be developed according to a preset effect diagram using a preset interface library; then step S520 is executed, the plug-in to be displayed is added to the communication module, then step S530 may be executed, a repository is established through a video sticker software development kit, step S540 is executed, and a signal for adding a sticker is sent to the playing end; and then executing steps S550 and S560, the business end stores the plug-in to be displayed in a storage library, the playing end reads the plug-in to be displayed, and finally executing steps S570 and S580, packaging the plug-in to be displayed in a video stream in a form of a sticker, and the audience end views the content of the plug-in to be displayed. The details of steps S510 to S580 are described in detail above, and reference may be made to steps S110 to S130, and steps S310 to S330, which are not described herein.
The following describes embodiments of the apparatus of the present disclosure that may be used to perform the plug-in display methods described above in the present disclosure. In addition, in an exemplary embodiment of the present disclosure, an insert display device is also provided. Referring to fig. 6, the card display 600 includes: the module 610, the module 620, and the module 630 are obtained.
Wherein, the obtaining module 610 may be configured to obtain an insert to be displayed; the matching module 620 may be configured to package the plug-in to be displayed into a video stream in a form of a sticker; the computing module 630 may be configured to detect a change in an attribute of the plug-in to be displayed in real time, and update the sticker according to the change in the attribute.
Still further, referring to fig. 7, the disclosure further provides a plug-in display device 700, which is executed by a service end and may include a development module 710, a storage module 720, and a sending module 730. Wherein:
the development module 710 is configured to obtain a preset effect diagram, and develop the plug-in to be displayed according to the preset effect diagram; the storage module 720 may be configured to store the plug-in to be displayed in a storage library, and obtain storage information of the plug-in to be displayed; the sending module 730 may be configured to send the storage information to a playing end, so that the playing end obtains and displays the plug-in to be displayed according to the storage information.
Since each functional module of the plug-in display device according to the exemplary embodiment of the present disclosure corresponds to a step of the exemplary embodiment of the plug-in display method described above, for details not disclosed in the embodiments of the device of the present disclosure, please refer to the embodiments of the plug-in display method described above in the present disclosure.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, in the exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-described plug-in display is also provided.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to such an embodiment of the present disclosure is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 8, the electronic device 800 is embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting the different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.
Wherein the storage unit stores program code that is executable by the processing unit 810 such that the processing unit 810 performs steps according to various exemplary embodiments of the present disclosure described in the above section of the present specification. For example, the processing unit 810 may perform step S110 as shown in fig. 1: obtaining an insert to be displayed; s120: packaging the plug-in to be displayed into a video stream in the form of a sticker; s130: and detecting the attribute change of the plug-in to be displayed in real time, and updating the sticker according to the attribute change.
Storage unit 820 may include readable media in the form of volatile storage units such as Random Access Memory (RAM) 821 and/or cache memory unit 822, and may further include Read Only Memory (ROM) 823.
The storage unit 820 may also include a program/utility 824 having a set (at least one) of program modules 825, such program modules 825 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 830 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 870 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 800, and/or any device (e.g., router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 850. Also, electronic device 800 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 over bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 800, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
Referring to fig. 9, a program product 900 for implementing the above-described method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of displaying a package, comprising:
acquiring storage parameters of plug-in units to be displayed;
obtaining the plug-in to be displayed in a storage library according to the storage parameters;
packaging the plug-in to be displayed into a video stream in the form of a sticker;
detecting the attribute change of the plug-in to be displayed in real time, and updating the sticker according to the attribute change;
responding to the triggering operation of a user on the sticker, and determining parameter information of the triggering operation;
obtaining a target plug-in which is obtained after the plug-in to be displayed is processed according to the parameter information, and updating the sticker according to the target plug-in;
the storage library comprises a first storage module and a second storage module, and the plug-in to be displayed is obtained from the storage library according to the storage parameters, and the method comprises the following steps:
respectively acquiring index numbers of the first storage module and the second storage module;
and obtaining the plug-in to be displayed in a storage library according to the index number and the storage parameter.
2. The method according to claim 1, wherein the attribute change includes a change in a display to be displayed of a plug-in to be displayed, the detecting the attribute change of the plug-in to be displayed in real time and updating the sticker according to the attribute change includes:
detecting the change of the picture to be displayed of the plug-in to be displayed in real time, and updating the sticker.
3. The method of claim 1, wherein said encapsulating the plug-in to be displayed in a video stream in the form of a sticker, comprises:
the plug-in is packaged into a video stream in the form of a sticker by a video sticker software development kit.
4. A method of displaying a package, comprising:
acquiring a preset effect diagram, and developing an insert to be displayed according to the preset effect diagram;
storing the plug-in to be displayed in a storage library, and acquiring storage information of the plug-in to be displayed;
the storage information is sent to a playing end, so that the playing end obtains the plug-in to be displayed according to the storage information and packages the plug-in to be displayed into a video stream in the form of a sticker for displaying;
the storage library comprises a first storage module and a second storage module, and the plug-in to be displayed is stored in the storage library, and the method comprises the following steps:
respectively acquiring index numbers of the first storage module and the second storage module;
determining the storage position of the plug-in to be displayed according to the index number;
storing the plug-in to be displayed to a storage library according to the storage position;
wherein, the package of the plug-in to be displayed in the form of a sticker into a video stream for displaying comprises:
responding to the triggering operation of a user on the sticker, and determining parameter information of the triggering operation;
and obtaining a target plug-in unit obtained by processing the plug-in unit to be displayed according to the parameter information, and updating the sticker according to the target plug-in unit.
5. The method according to claim 4, wherein the method further comprises:
and receiving parameter information of triggering operation, and processing the plug-in to be displayed according to the parameter information to obtain a target plug-in.
6. The method of claim 4, wherein developing the plug-in to be displayed according to the preset effect graph comprises:
and acquiring a preset interface library, and developing the plug-in to be displayed according to the preset effect graph by utilizing the preset interface library.
7. An insert display device, comprising:
the acquisition module is used for acquiring the storage parameters of the plug-in to be displayed and acquiring the plug-in to be displayed from the storage library according to the storage parameters;
the packaging module packages the plug-in to be displayed into a video stream in the form of a sticker;
the display module is used for detecting the attribute change of the plug-in to be displayed in real time and updating the sticker according to the attribute change;
the plug-in display device is also used for responding to the triggering operation of the user on the sticker and determining parameter information of the triggering operation;
obtaining a target plug-in which is obtained after the plug-in to be displayed is processed according to the parameter information, and updating the sticker according to the target plug-in;
the storage library comprises a first storage module and a second storage module, and the plug-in to be displayed is obtained from the storage library according to the storage parameters, and the method comprises the following steps:
respectively acquiring index numbers of the first storage module and the second storage module;
and obtaining the plug-in to be displayed in a storage library according to the index number and the storage parameter.
8. An insert display device, comprising:
the development module is used for acquiring a preset effect diagram and developing the plug-in to be displayed according to the preset effect diagram;
the storage module is used for storing the plug-in to be displayed to a storage library and acquiring the storage information of the plug-in to be displayed;
the sending module is used for sending the storage information to a playing end, so that the playing end obtains the plug-in to be displayed according to the storage information and packages the plug-in to be displayed into a video stream in a paper-sticking mode for displaying;
the storage library comprises a first storage module and a second storage module, and the plug-in to be displayed is stored in the storage library, and the method comprises the following steps:
respectively acquiring index numbers of the first storage module and the second storage module;
determining the storage position of the plug-in to be displayed according to the index number;
storing the plug-in to be displayed to a storage library according to the storage position;
wherein, the package of the plug-in to be displayed in the form of a sticker into a video stream for displaying comprises:
responding to the triggering operation of a user on the sticker, and determining parameter information of the triggering operation;
and obtaining a target plug-in unit obtained by processing the plug-in unit to be displayed according to the parameter information, and updating the sticker according to the target plug-in unit.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the plug-in presentation method according to any one of claims 1 to 3 or 4 to 6.
10. An electronic device, comprising:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the plug-in presentation method of any of claims 1 to 3 or 4 to 6.
CN202011104814.1A 2020-10-15 2020-10-15 Plug-in display method and device, storage medium and electronic equipment Active CN112367295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011104814.1A CN112367295B (en) 2020-10-15 2020-10-15 Plug-in display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011104814.1A CN112367295B (en) 2020-10-15 2020-10-15 Plug-in display method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112367295A CN112367295A (en) 2021-02-12
CN112367295B true CN112367295B (en) 2023-04-28

Family

ID=74507877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011104814.1A Active CN112367295B (en) 2020-10-15 2020-10-15 Plug-in display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112367295B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992935B (en) * 2021-12-24 2022-06-14 北京达佳互联信息技术有限公司 Live broadcast preview method and device, electronic equipment, storage medium and product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324696A (en) * 2019-07-12 2019-10-11 广州华多网络科技有限公司 Method of river diversion, device, computer equipment and the storage medium of live broadcast service
CN111324252A (en) * 2020-02-06 2020-06-23 网易(杭州)网络有限公司 Display control method and device in live broadcast platform, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089144A (en) * 2018-06-28 2018-12-25 北京潘达互娱科技有限公司 A kind of method, apparatus, electronic equipment and storage medium sending paster present
CN109495790A (en) * 2018-11-30 2019-03-19 北京字节跳动网络技术有限公司 Paster adding method, device, electronic equipment and readable medium based on editing machine
CN109660855B (en) * 2018-12-19 2021-11-02 北京达佳互联信息技术有限公司 Sticker display method, device, terminal and storage medium
CN110825395B (en) * 2019-10-23 2023-04-07 中冶赛迪信息技术(重庆)有限公司 Multi-plug-in layered deployment system, device and medium
CN111309231B (en) * 2020-02-20 2022-03-04 网易(杭州)网络有限公司 Information display method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324696A (en) * 2019-07-12 2019-10-11 广州华多网络科技有限公司 Method of river diversion, device, computer equipment and the storage medium of live broadcast service
CN111324252A (en) * 2020-02-06 2020-06-23 网易(杭州)网络有限公司 Display control method and device in live broadcast platform, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112367295A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US20210303108A1 (en) System and method for on-screen graphical user interface encapsulation and reproduction
CN109618177B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN107832108B (en) Rendering method and device of 3D canvas webpage elements and electronic equipment
CN112272109A (en) Network topological graph generation method, equipment and system
CN111158820B (en) Control click event processing method and device, electronic equipment and storage medium
CN108269222A (en) A kind of window rendering intent and terminal
CN110362371B (en) View level control method, device and system, computer equipment and medium
CN112799801A (en) Method, device, equipment and medium for drawing simulation mouse pointer
US20250224862A1 (en) Techniques for replaying a mobile application session
CN114222185B (en) Video playing method, terminal equipment and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN115510508A (en) Page information protection method and device and electronic equipment
CN113268221B (en) File matching method, device, storage medium and computer equipment
CN114237481A (en) Handwriting display processing method, system, device, equipment and storage medium
US20240073488A1 (en) Live video processing method and apparatus, device and medium
CN117389438A (en) Page display method, device and electronic equipment
CN110971955A (en) Page processing method and device, electronic equipment and storage medium
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN111292392A (en) Unity-based image display method, apparatus, device and medium
CN116347144B (en) Special effect rendering method, special effect rendering device, storage medium and equipment
CN111083552A (en) Thumbnail generation method, device, equipment and medium
CN111741348A (en) Method, system, equipment and storage medium for controlling webpage video playing
CN117234655B (en) Method, device, equipment and medium for running Linux desktop program based on android system
CN115174993B (en) Method, apparatus, device and storage medium for video production
US11886893B2 (en) Method and device for capturing screen and terminal

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