CN111954072B - Multimedia playing method, device, multimedia player and medium - Google Patents

Multimedia playing method, device, multimedia player and medium Download PDF

Info

Publication number
CN111954072B
CN111954072B CN201910407067.XA CN201910407067A CN111954072B CN 111954072 B CN111954072 B CN 111954072B CN 201910407067 A CN201910407067 A CN 201910407067A CN 111954072 B CN111954072 B CN 111954072B
Authority
CN
China
Prior art keywords
video object
multimedia
video
available
current
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
CN201910407067.XA
Other languages
Chinese (zh)
Other versions
CN111954072A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201910407067.XA priority Critical patent/CN111954072B/en
Publication of CN111954072A publication Critical patent/CN111954072A/en
Application granted granted Critical
Publication of CN111954072B publication Critical patent/CN111954072B/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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a multimedia playing method, a multimedia playing device, a multimedia player and a medium. The method is applied to a multimedia player and comprises the following steps: if the multimedia playing requirement of the current page is monitored, determining whether an available video object exists in a video object pool; if the video object pool has available video objects, acquiring the available video objects from the video object pool; embedding the acquired available video object into the current page according to the multimedia playing parameters; and playing the current multimedia in the current page. By the technical scheme provided by the embodiment of the invention, not only can the multiplexing of a single video object be realized, but also the multiplexing scene of multiple video objects can be met by introducing the video object pool into the multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, and a new idea is provided for playing multimedia based on the web page.

Description

Multimedia playing method, device, multimedia player and medium
Technical Field
The embodiment of the invention relates to the technical field of multimedia, in particular to a multimedia playing method, a multimedia playing device, a multimedia player and a medium.
Background
With the continuous development of the internet, videos gradually become the main content of internet browsing of users. The specific playing of the video resource may include that the user jumps to the video detail page through the search result page and the video list page, and the mobile terminal web page plays the short video and the small video through the video player. However, when the user jumps to the video detail page for video playing through the search result page and the video list page, the player needs to create different video objects, which consumes page resources, resulting in low page loading efficiency.
Disclosure of Invention
The embodiment of the invention provides a multimedia playing method, a multimedia playing device, a multimedia player and a medium, and aims to improve page loading efficiency.
In a first aspect, an embodiment of the present invention provides a multimedia playing method, which is applied to a multimedia player, and the method includes:
if the multimedia playing requirement of the current page is monitored, determining whether an available video object exists in a video object pool;
if the video object pool has available video objects, acquiring the available video objects from the video object pool;
embedding the acquired available video object into the current page according to the multimedia playing parameters;
and playing the current multimedia in the current page.
In a second aspect, an embodiment of the present invention further provides a multimedia playing apparatus configured in a multimedia player, where the apparatus includes:
the available object determining module is used for determining whether an available video object exists in the video object pool or not if the multimedia playing requirement of the current page is monitored;
the available object acquisition module is used for acquiring an available video object from the video object pool if the video object pool has the available video object;
the available object insertion module is used for embedding the acquired available video object into the current page according to the multimedia playing parameters;
and the playing module is used for playing the current multimedia in the current page.
In a third aspect, an embodiment of the present invention further provides a multimedia player, where the multimedia player includes:
one or more processors;
a memory 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 multimedia playing method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the multimedia playing method according to the first aspect.
According to the multimedia playing method, the multimedia playing device, the multimedia player and the media provided by the embodiment of the invention, when the multimedia playing requirement of the current page is monitored and the available video objects in the video object pool are determined, the available video objects obtained from the video object pool are embedded into the current page according to the multimedia playing parameters, so that the current multimedia can be played on the current page. Not only can the multiplexing of a single video object be realized, but also a scene of multiplexing multiple video objects can be met by introducing a video object pool into the multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, the problem that the page loading efficiency is low in the existing multimedia playing based on the web page is solved, and a new thought is provided for the multimedia playing based on the web page.
Drawings
Fig. 1 is an overall architecture diagram of a multimedia player to which an embodiment of the present invention is applicable;
fig. 2 is a flowchart of a multimedia playing method according to an embodiment of the present invention;
fig. 3 is a flowchart of a multimedia playing method according to a second embodiment of the present invention;
fig. 4A is a flowchart of a multimedia playing method according to a third embodiment of the present invention;
fig. 4B is a schematic diagram of communication between service plug-ins according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a multimedia playing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a multimedia player according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before describing the embodiments of the present invention, the overall architecture of the multimedia player in the embodiments of the present invention is described. As shown in fig. 1, the multimedia player of the present embodiment may include a basic part, and the basic part includes, but is not limited to, a style (css), a configuration (config), a log (log), a tool method (util), a dependent library (lib), a unit test (test), and the like. Optionally, the multimedia player may further include three basic classes of Event (Event), Base (Base), and play (sPlayer). Wherein, the Event (Event) class is used for providing Event capability for the player; the Base (Base) class provides the native capabilities of the player, which may include, for example, setting and retrieving native properties of the player, binding native events of the player, etc.; the play (sPlayer) class is used to provide the player with the capability to handle services, such as inserting video objects, triggering events, setting parameters, installing package plug-ins, etc.
Optionally, the multimedia player may further include a video object pool (vSore) for managing video objects. Further, the video object pool may provide functions of creating video objects, recycling video objects, multiplexing video objects, and limiting the number of video objects. The multiplexing of the video objects can enable the page to have better performance, and the limitation of the number of the video objects can prevent the page from crashing.
With the development of video services, in order to utilize video resources to the maximum extent, logics of other services such as multimode search, media information delivery and the like need to be added to video logics, so that the coupling degree between a player and a service is high, and the mutual influence is large. In this embodiment, a plug-in mechanism is introduced into the multimedia player, that is, the logic of each service is loaded into the player in the form of a plug-in (plugin), so that the coupling degree can be reduced, and the expandability of the player is improved.
Optionally, the multimedia player of this embodiment may further include a player agent (plug), and the player agent has the same function as the player. Different service plug-ins have different player agents, and each service plug-in can only operate respective player agent, so that the mutual influence among the service plug-ins can be reduced.
Example one
Fig. 2 is a flowchart of a multimedia playing method according to an embodiment of the present invention, which is applicable to a situation of playing multimedia, and is particularly applicable to playing multimedia by using a multimedia player with the architecture shown in fig. 1 when playing multimedia based on a web page, so as to solve a problem of low page loading efficiency in the existing multimedia playing based on a web page. The scheme of the embodiment of the invention is executed by a multimedia player, and the method can be executed by a multimedia playing device which can be realized in a hardware and/or software mode and can be integrated in the multimedia player. Referring to fig. 2, the method may specifically include:
s210, if the multimedia playing requirement of the current page is monitored, whether an available video object exists in the video object pool is determined.
In this embodiment, the current page is a detail page including one or more multimedia. Further, the current page is a single application page, that is, the current page has only one multimedia player, and the execution subject of the embodiment is specifically the multimedia player corresponding to the current page.
Monitoring the multimedia playing requirement of the current page may include the following two cases: 1) when the multimedia player monitors a certain trigger mechanism, determining that the current page has a multimedia playing requirement; 2) the multimedia player monitors that the current page generates a multimedia playing requirement based on a certain trigger mechanism. Optionally, the trigger mechanism may be a trigger operation that the user acts on the current page, such as the user clicking a play button, clicking or double-clicking the current page, and the like; the current multimedia to be played in the current page can meet the service logic playing condition; or the user may jump from a search results page or video listing page to the current page, etc.
One or more video objects may be included in the video object pool, but the present embodiment is more applicable to the case of multiple video objects. Illustratively, the video object pool may provide functions such as creating video objects, reclaiming video objects, multiplexing video objects, and limiting the number of video objects. Optionally, different video objects may be used to play different multimedia at the same time, for example, different playing windows exist in the same page at the same time, and different multimedia is played at the same time; but one video object cannot play different multimedia at the same time. That is, either the video object being used or the video object that is used but not recycled into the video object pool is an unavailable video object. And all the video objects which are not used in the video object pool are available video objects.
Further, in order to facilitate the multimedia player to quickly determine whether there are video objects available in the video object pool, optionally, the video object pool may display the used video objects (including those being used and not recycled to the video object pool) in a color different from the unused video objects, or the video object pool may be used only to store the unused video objects, etc.
And S220, if the video object pool has the available video object, acquiring the available video object from the video object pool.
In this embodiment, if it is determined that there are available video objects in the video object pool, one or more available video objects may be obtained from the video object pool. If it is determined that no available video object exists in the video object pool, judging whether the number of the existing video objects in the video object pool reaches a preset video object number threshold value; if yes, displaying that the video cannot be played temporarily, or circularly inquiring whether an available video object exists in the video object pool or not at a preset time period; and if not, controlling the video object pool to create a new video object as an available video object for playing the current multimedia in the current page, wherein the created new video object is also used for subsequently playing the multimedia in the current page.
For example, after determining whether there is a video object available in the video object pool, the method may further include: and if no available video object exists in the video object pool and the number of the existing video objects in the multimedia player is less than the threshold value of the number of the video objects, creating a new video object. The threshold value of the number of the video objects is a preset upper limit value of the video objects which can be created for the multimedia player of the current page.
Further, if the number of available video objects in the video object pool is less than the number of video objects required by the multimedia playing requirement of the current page, and the number of existing video objects in the multimedia player is less than the threshold value of the number of video objects, the available video objects can be acquired from the video object pool, and the video object pool is controlled to create new video objects.
And S230, embedding the acquired available video object into the current page according to the multimedia playing parameters.
In this embodiment, the multimedia playing parameters may be default of the system, may also be preset, and may include, but are not limited to, a playing mode, playing information (such as audio information, text information, and image information), a playing duration, a resolution, and a volume.
Specifically, after the available video object is obtained from the video object pool, the multimedia playing parameter may be used as a parameter in the available video object, and the available video object with the specific parameter value is embedded in the current page.
Further, if two or more available video objects are obtained from the video object pool, embedding the obtained available video objects into the current page according to the multimedia playing parameters may be: and respectively embedding the obtained multiple available video objects into different playing windows in the current page according to the multimedia playing parameters.
And S240, playing the current multimedia in the current page.
Specifically, after the acquired available video object is embedded into the current page according to the multimedia playing parameters, the current multimedia can be played in the current page by operating the available video object with the specific parameter values.
Illustratively, after playing the current multimedia in the current page, the method may further include: and after the current multimedia is played on the current page, recycling the used available video objects into the video object pool. Specifically, after the current multimedia is played on the current page, the available video objects recycled from the video object pool can be controlled. Further, the multimedia playing parameters can be removed from the used available video objects for controlling the video object pool, and the used available video objects with the multimedia playing parameters removed can be recycled.
According to the technical scheme provided by the embodiment of the invention, when the multimedia playing requirement of the current page is monitored and the available video objects in the video object pool are determined, the available video objects obtained from the video object pool are embedded into the current page according to the multimedia playing parameters, so that the current multimedia can be played on the current page. According to the scheme, not only can multiplexing of a single video object be realized, but also a scene of multiplexing of multiple video objects can be met by introducing the video object pool into the multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, the problem that the page loading efficiency is low in the existing multimedia playing based on the web page is solved, and a new thought is provided for the multimedia playing based on the web page.
Example two
Fig. 3 is a flowchart of a multimedia playing method according to a second embodiment of the present invention, and this embodiment further explains, on the basis of the foregoing embodiment, whether there is an available video object in the video object pool. Referring to fig. 3, the method may specifically include:
s310, if the multimedia playing requirement of the current page is monitored, the type of the current video object to be used is determined according to the type of the current multimedia to be played.
In this embodiment, the multimedia types may be main service type multimedia and other service type multimedia, respectively. The main service type multimedia refers to main service logic loaded on a current page, namely multimedia contents mainly browsed by a user, such as short videos; the other business type multimedia refers to logic of other business such as media information loaded on the current page, such as advertisement. Optionally, according to the service logic playing requirement, other service-type multimedia may be inserted into the main service-type multimedia, such as before, after, or in the middle of playing the main service-type multimedia.
Optionally, different types of video objects are required for playing different types of multimedia. That is, the main service type video object is used to play the main service type multimedia, and the other service type video objects are used to play the other service type multimedia, that is, in this embodiment, the main service video object is isolated from the other service type video objects, so as to reduce the influence of the other service type multimedia on the main service type multimedia. The current video object type is a type of a video object required to be used for playing the current multimedia, and may be at least one of a main service type and other service types.
Specifically, if the multimedia playing requirement of the current page is monitored, the type of the current multimedia to be played is determined; and determining the type of the current video object to be used according to the type of the current multimedia to be played.
S320, determining whether the video object pool has available video objects belonging to the current video object type.
In this embodiment, the video object pool may include a plurality of video objects, and the further video object pool may include a unique main business type video object and at least one other business type video object.
Specifically, after determining the current video object type to be used, a query may be made from the video object pool to determine whether there is an available video object belonging to the current video object type in the video object pool.
For example, determining whether there are video objects available in the video object pool that belong to the current video object type may include: 1) and if the current video object type is the main service type video object, determining whether the video object pool has a unique main service type video object. Specifically, if the current video object type is a main business type video object, the current video object type can be queried from a video object pool to determine whether a unique main business type video object exists in the video object pool; if the video object pool has a unique main business type video object and the unique main business type video object is not used, the unique main business type video object can be used as an available video object; if the only main business type video object is used, whether the only main business type video object in the video object pool is available or not can be inquired in a circulating mode according to a preset time period. In addition, if there is no unique main service type video object in the video object pool, it can be determined that the multimedia playing requirement of the current page is monitored for the first time, a multimedia player is instantiated for the current page, and the unique main service type video object is created.
2) And if the current video object type is other service type video objects, determining whether any other service type video object exists in the video object pool. Specifically, if the current video object type is other business type video objects, the current video object type can be queried from the video object pool to determine whether any other business type video object exists in the video object pool; if any other business type video object exists in the video object pool and is not used, the video object can be used as an available video object; and if the video object pool has no other service type video objects which are not used and the number of the existing video objects in the multimedia player is less than the threshold value of the number of the video objects, creating a new video object as the other service type video objects for use.
3) If the number of the current multimedia to be played is two or more, and the types of the current multimedia to be played include a main service type multimedia and other service type multimedia, and correspondingly, the types of the current video objects include a main service type video object and other service type video objects, the processes of 1) and 2) above can be executed at the same time.
And S330, if the video object pool has the available video object, acquiring the available video object from the video object pool.
And S340, embedding the acquired available video object into the current page according to the multimedia playing parameters.
And S350, playing the current multimedia in the current page.
According to the technical scheme provided by the embodiment of the invention, when the multimedia playing requirement of the current page is monitored, the type of the current video object to be used can be determined according to the type of the current multimedia to be played, and the current video object can be inquired in the video object pool to determine whether the available video object belongs to the type of the current video object; when the video object pool is determined to have available video objects, the available video objects obtained from the video object pool are embedded into the current page according to the multimedia playing parameters, so that the current multimedia can be played on the current page. According to the scheme, not only can multiplexing of a single video object be realized, but also a scene of multiplexing of multiple video objects can be met by introducing the video object pool into the multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, the problem that the page loading efficiency is low in the existing multimedia playing based on the web page is solved, and a new thought is provided for the multimedia playing based on the web page. In addition, the main service video object is isolated from other service type video objects, so that the influence of other service type multimedia on the main service type multimedia can be reduced.
EXAMPLE III
Fig. 4A is a flowchart of a multimedia playing method according to a third embodiment of the present invention, which is further optimized based on the foregoing embodiments. Referring to fig. 4A, the method may specifically include:
s410, when the multimedia playing requirement of the current page is monitored for the first time, the multimedia player is instantiated.
Instantiation refers to a process of embodying an abstract conceptual class to a real object of the class. In this embodiment, instantiation is a process of creating a video object with classes in object-oriented programming; optionally, the instantiation process generally consists of a class name, an object name, and the like.
It should be noted that, since the current page is a single application page in this embodiment, the multimedia player can be instantiated only once in the life cycle of the whole page. That is, the instance of the multimedia player is unique as long as the current page has not changed (e.g., no refresh operation).
S420, in the instantiation process of the multimedia player, a video object is created, other service plug-ins are loaded, and a player agent is created for the other service plug-ins for use by the other service plug-ins.
In this embodiment, the created video object may be the only main business type video object, and may also be other business type video objects. Optionally, the created video objects may be multiplexed. The multiplexing of the video objects is explained by taking the main service type video object as an example, and when the current page is determined to have the main service type multimedia playing requirement and the video object pool has the only main service type video object which is not used, the main service type multimedia can be played based on the main service type video object; after the main service type multimedia playing is monitored, the video object pool can be controlled to recover the main service type video object; and then, if the current page is monitored to have the main service type multimedia playing requirement again, the main service type video object can be obtained from the video object pool, and the main service type multimedia is played based on the main service type video object.
The main service type multimedia can be loaded into the multimedia player in a plug-in mode, and can also be loaded into the multimedia player in other modes; and other service type multimedia is loaded into the multimedia player in the form of plug-in. The player agent has the same function as the player. Optionally, different service plugins have different player agents, and each service plugin can only operate its own player agent.
Specifically, in the instantiation process of the multimedia player, after the video object is created, in order to utilize the video resource to the maximum extent, the logic of other services can be loaded into the multimedia player in the form of plug-ins; and introducing respective player agents for each other service plug-in unit for use by other service plug-in units, thereby avoiding the problem of mutual influence when a plurality of service plug-in units operate the same multimedia player together.
It should be noted that, a plug-in mechanism is introduced into the multimedia player, that is, the logic of each service is loaded into the player in the form of a plug-in, which can reduce the coupling degree, improve the expandability of the player, and facilitate the addition and deletion of subsequent services. In addition, the introduction of a respective player agent for each service plug-in can reduce the interaction between the service plug-ins.
In order to make the whole multimedia playing smoothly, the state of each service plug-in needs to be known in real time. Illustratively, the multimedia player can realize communication with each other service plug-in through event delivery, and the other service plug-ins can communicate with each other for relay through a player agent. For example, as shown in fig. 4B, the player agent 1 operated by the service plug-in 1 can communicate with the player agent 2 operated by the service plug-in 2, so as to realize the communication between the service plug-in 1 and the service plug-in 2.
S430, if the multimedia playing requirement of the current page is monitored, determining whether an available video object exists in the video object pool.
And S440, if the video object pool has available video objects, acquiring the available video objects from the video object pool.
S450, embedding the acquired available video object into the current page according to the multimedia playing parameters.
And S460, playing the current multimedia in the current page.
It should be noted that, in this embodiment, the processes S410 and S420 of instantiating the multimedia player may also be executed independently, or may also be executed before the current multimedia is played in the current page in S430 to S460.
According to the technical scheme provided by the embodiment of the invention, when the multimedia playing requirement of the current page is monitored for the first time, the multimedia player can be instantiated, and a video object is created in the instantiation process; and the logic of each service is loaded into the player in a plug-in mode, so that the coupling degree is reduced, the expandability of the player is improved, and the addition, deletion and the like of subsequent services are facilitated. In addition, the introduction of a respective player agent for each service plug-in can reduce the interaction between the service plug-ins. According to the scheme, the process of playing the current multimedia in the current page is realized, not only can the multiplexing of a single video object be realized, but also a scene of multiplexing multiple video objects can be met by introducing a video object pool into a multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, the problem that the page loading efficiency is low in the existing multimedia playing based on the web page is solved, and a new thought is provided for the multimedia playing based on the web page.
Example four
Fig. 5 is a schematic structural diagram of a multimedia playing apparatus according to a fourth embodiment of the present invention, where the apparatus can be used in a multimedia player, and the apparatus can execute a multimedia playing method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 5, the apparatus includes:
an available object determining module 510, configured to determine whether there is an available video object in the video object pool if a multimedia playing requirement of the current page is monitored;
an available object obtaining module 520, configured to obtain an available video object from the video object pool if the video object pool has the available video object;
an available object insertion module 530, configured to embed the obtained available video object into the current page according to the multimedia playing parameter;
and a playing module 540, configured to play the current multimedia in the current page.
According to the technical scheme provided by the embodiment of the invention, when the multimedia playing requirement of the current page is monitored and the available video objects in the video object pool are determined, the available video objects obtained from the video object pool are embedded into the current page according to the multimedia playing parameters, so that the current multimedia can be played on the current page. Not only can the multiplexing of a single video object be realized, but also a scene of multiplexing multiple video objects can be met by introducing a video object pool into the multimedia player; meanwhile, the page loading efficiency can be improved through the reusable player with multiple video objects, the problem that the page loading efficiency is low in the existing multimedia playing based on the web page is solved, and a new thought is provided for the multimedia playing based on the web page.
For example, the available objects determination module 510 may include:
the type determining unit is used for determining the type of the current video object to be used according to the type of the current multimedia to be played;
an available object determination unit for determining whether there is an available video object belonging to the current video object type in the video object pool.
For example, the available object determination unit may be specifically configured to:
if the current video object type is a main service type video object, determining whether a unique main service type video object exists in a video object pool;
and if the current video object type is other service type video objects, determining whether any other service type video object exists in the video object pool.
Illustratively, the apparatus may further include:
and the video object creating module is used for creating a new video object if no available video object exists in the video object pool and the number of the existing video objects in the multimedia player is less than the threshold value of the number of the video objects after determining whether the available video objects exist in the video object pool.
Illustratively, the apparatus may further include:
and the video object recovery module is used for recovering the used available video objects into the video object pool after the current multimedia is played in the current page and the current multimedia is played in the current page.
Illustratively, the apparatus may further include:
the instantiation module is used for instantiating the multimedia player when the multimedia playing requirement of the current page is monitored for the first time;
and the instantiation processing module is used for creating a video object, loading other service plug-ins and creating player agents for the other service plug-ins in the instantiation process of the multimedia player for the use of the other service plug-ins.
Illustratively, the other service plug-ins communicate by taking the player agent as a relay.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a multimedia player according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary multimedia player 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 6 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 6, the multimedia player 12 is in the form of a general purpose computing device. The components of the multimedia player 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples various system components including the memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The multimedia player 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the multimedia player 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The multimedia player 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The multimedia player 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the multimedia player 12, and/or with any devices (e.g., network card, modem, etc.) that enable the multimedia player 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the multimedia player 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the multimedia player 12 via the bus 18. It should be understood that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the multimedia player 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, implementing a multimedia playing method provided by an embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program is used for executing a multimedia playing method when executed by a processor, and the method includes:
if the multimedia playing requirement of the current page is monitored, determining whether an available video object exists in a video object pool;
if the video object pool has available video objects, acquiring the available video objects from the video object pool;
embedding the acquired available video object into the current page according to the multimedia playing parameters;
and playing the current multimedia in the current page.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer 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.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A multimedia playing method applied to a multimedia player in a web page, the method comprising:
if the multimedia playing requirement of the current page is monitored, determining whether an available video object exists in a video object pool; wherein different video objects can be used to play different multimedia simultaneously, and one video object cannot play different multimedia simultaneously;
if the video object pool has available video objects, acquiring the available video objects from the video object pool;
embedding the acquired available video object into the current page according to the multimedia playing parameters;
and playing the current multimedia in the current page.
2. The method of claim 1, wherein determining whether a video object is available in the pool of video objects comprises:
determining the type of a current video object to be used according to the type of the current multimedia to be played;
it is determined whether there is an available video object in the video object pool that belongs to the current video object type.
3. The method of claim 2, wherein determining whether there are video objects available in the video object pool that belong to the current video object type comprises:
if the current video object type is a main service type video object, determining whether a unique main service type video object exists in a video object pool;
and if the current video object type is other service type video objects, determining whether any other service type video object exists in the video object pool.
4. The method of claim 1, wherein after determining whether there are video objects available in the video object pool, further comprising:
and if no available video object exists in the video object pool and the number of the existing video objects in the multimedia player is less than the threshold value of the number of the video objects, creating a new video object.
5. The method of claim 1, further comprising, after playing the current multimedia in the current page:
and after the current multimedia is played on the current page, recycling the used available video objects into the video object pool.
6. The method of claim 1, further comprising:
when the multimedia playing requirement of the current page is monitored for the first time, the multimedia player is instantiated;
in the instantiation process of the multimedia player, a video object is created, other service plug-ins are loaded, and a player agent is created for the other service plug-ins for use by the other service plug-ins.
7. The method of claim 6, wherein other service plugins communicate with the player agent as a relay.
8. A multimedia playing apparatus configured in a multimedia player in a web page, the apparatus comprising:
the available object determining module is used for determining whether an available video object exists in the video object pool or not if the multimedia playing requirement of the current page is monitored; wherein different video objects can be used to play different multimedia simultaneously, and one video object cannot play different multimedia simultaneously;
the available object acquisition module is used for acquiring an available video object from the video object pool if the video object pool has the available video object;
the available object insertion module is used for embedding the acquired available video object into the current page according to the multimedia playing parameters;
and the playing module is used for playing the current multimedia in the current page.
9. A multimedia player, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the multimedia playback method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a multimedia playback method according to any one of claims 1 to 7.
CN201910407067.XA 2019-05-16 2019-05-16 Multimedia playing method, device, multimedia player and medium Active CN111954072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910407067.XA CN111954072B (en) 2019-05-16 2019-05-16 Multimedia playing method, device, multimedia player and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910407067.XA CN111954072B (en) 2019-05-16 2019-05-16 Multimedia playing method, device, multimedia player and medium

Publications (2)

Publication Number Publication Date
CN111954072A CN111954072A (en) 2020-11-17
CN111954072B true CN111954072B (en) 2022-04-15

Family

ID=73335854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910407067.XA Active CN111954072B (en) 2019-05-16 2019-05-16 Multimedia playing method, device, multimedia player and medium

Country Status (1)

Country Link
CN (1) CN111954072B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113286189A (en) * 2021-04-23 2021-08-20 北京奇艺世纪科技有限公司 Video playing method, device, server and storage medium
CN113573121B (en) * 2021-07-13 2023-04-21 富途网络科技(深圳)有限公司 Video playing method, device and storage medium
CN114025218B (en) * 2021-09-14 2024-04-02 百果园技术(新加坡)有限公司 Card type video interaction method, device, equipment and storage medium
CN114125560A (en) * 2021-11-23 2022-03-01 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625696A (en) * 2009-08-03 2010-01-13 孟智平 Method and system for constructing and generating video elements in webpage
CN105872002A (en) * 2015-12-22 2016-08-17 乐视云计算有限公司 Video program obtaining method and system, and device
CN105898364A (en) * 2016-05-26 2016-08-24 北京小米移动软件有限公司 Video playing processing method, device, terminal and system
CN106790754A (en) * 2016-12-26 2017-05-31 腾讯科技(深圳)有限公司 The player method and server of a kind of media information
CN107071542A (en) * 2017-04-18 2017-08-18 百度在线网络技术(北京)有限公司 Video segment player method and device
CN107295415A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Video broadcasting method and device
CN107465946A (en) * 2016-06-03 2017-12-12 中兴通讯股份有限公司 Video broadcasting method, device, system and terminal device
CN107656957A (en) * 2017-05-11 2018-02-02 腾讯科技(北京)有限公司 Promotional content method for pushing, device, system and storage medium
CN108804184A (en) * 2018-05-29 2018-11-13 维沃移动通信有限公司 A kind of display control method and terminal device
CN109121005A (en) * 2018-09-30 2019-01-01 联想(北京)有限公司 The processing method and electronic equipment of multi-medium data
CN109640169A (en) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2496689A (en) * 2011-11-21 2013-05-22 Inspired Labs Ltd Using metadata to provide embedded media on third-party webpages according to viewing settings
EP2981940A1 (en) * 2013-04-01 2016-02-10 Netmeno Method and system for dynamically creating and transferring data corresponding to a benefit from a web page to a mobile application by using a web-based marker
US20160344946A1 (en) * 2015-05-22 2016-11-24 Peter Michalik Screen System
US10268897B2 (en) * 2017-03-24 2019-04-23 International Business Machines Corporation Determining most representative still image of a video for specific user

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625696A (en) * 2009-08-03 2010-01-13 孟智平 Method and system for constructing and generating video elements in webpage
CN105872002A (en) * 2015-12-22 2016-08-17 乐视云计算有限公司 Video program obtaining method and system, and device
CN107295415A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Video broadcasting method and device
CN105898364A (en) * 2016-05-26 2016-08-24 北京小米移动软件有限公司 Video playing processing method, device, terminal and system
CN107465946A (en) * 2016-06-03 2017-12-12 中兴通讯股份有限公司 Video broadcasting method, device, system and terminal device
CN106790754A (en) * 2016-12-26 2017-05-31 腾讯科技(深圳)有限公司 The player method and server of a kind of media information
CN107071542A (en) * 2017-04-18 2017-08-18 百度在线网络技术(北京)有限公司 Video segment player method and device
CN107656957A (en) * 2017-05-11 2018-02-02 腾讯科技(北京)有限公司 Promotional content method for pushing, device, system and storage medium
CN108804184A (en) * 2018-05-29 2018-11-13 维沃移动通信有限公司 A kind of display control method and terminal device
CN109121005A (en) * 2018-09-30 2019-01-01 联想(北京)有限公司 The processing method and electronic equipment of multi-medium data
CN109640169A (en) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Also Published As

Publication number Publication date
CN111954072A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN111954072B (en) Multimedia playing method, device, multimedia player and medium
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN109120964B (en) Message pushing method and device for video set, computer equipment and storage medium
KR100965708B1 (en) System and method for providing access to user interface information
CN110865888B (en) Resource loading method and device, server and storage medium
US20190258822A1 (en) Efficient application feedback collection
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
CN110825456A (en) Loading time calculation method and device, computer equipment and storage medium
CN111831618A (en) Data writing method, data reading method, device, equipment and storage medium
CN112040312A (en) Split-screen rendering method, device, equipment and storage medium
CN107526623B (en) Data processing method and device
CN111813465B (en) Information acquisition method, device, medium and equipment
CN115328742B (en) Container information monitoring method and device, storage medium and electronic equipment
CN109302639B (en) Bullet screen message distribution method, bullet screen message distribution device, terminal and storage medium
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
CN109413507B (en) Method, device, terminal and medium for processing reference relationship between barrage library and live broadcast room
CN111143602A (en) Case clue association method and system, electronic device and storage medium
CN115225950A (en) Video playing control method and device
CN115237716A (en) Event recording and statistical method and device for operating system
CN114928566A (en) Client function testing method and device, storage medium and electronic equipment
CN109348303B (en) Bullet screen message distribution method, bullet screen message distribution device, terminal and storage medium
CN108848398B (en) Method, device, terminal and storage medium for distributing local barrage messages
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
KR20170086760A (en) Electronic device performing emulation-based forensic analysis and method of performing forensic analysis using the same
CN114390349B (en) Video playing control method, device, terminal and storage medium

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