CN111954072A - A kind of multimedia playback method, device, multimedia player and medium - Google Patents
A kind of multimedia playback method, device, multimedia player and medium Download PDFInfo
- Publication number
- CN111954072A CN111954072A CN201910407067.XA CN201910407067A CN111954072A CN 111954072 A CN111954072 A CN 111954072A CN 201910407067 A CN201910407067 A CN 201910407067A CN 111954072 A CN111954072 A CN 111954072A
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000008569 process Effects 0.000 claims description 12
- 238000004064 recycling Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000003780 insertion Methods 0.000 claims description 3
- 230000037431 insertion Effects 0.000 claims description 3
- 239000003795 chemical substances by application Substances 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000007792 addition Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种多媒体播放方法、装置、多媒体播放器和介质。其中,该方法应用于多媒体播放器,该方法包括:若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象;若所述视频对象池有可用视频对象,则从视频对象池中获取可用视频对象;根据多媒体播放参数将获取的可用视频对象嵌入所述当前页面;在所述当前页面中播放当前多媒体。通过本发明实施例提供的技术方案,不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,为基于web页面播放多媒体提供了一种新思路。
The embodiments of the present invention disclose a multimedia playing method, a device, a multimedia player and a medium. Wherein, the method is applied to a multimedia player, and the method includes: if the multimedia playback requirement of the current page is monitored, determining whether there is an available video object in the video object pool; Obtaining available video objects from the object pool; embedding the obtained available video objects in the current page according to the multimedia playback parameters; and playing the current multimedia in the current page. Through the technical solutions provided by the embodiments of the present invention, not only the multiplexing of a single video object can be realized, but also by introducing a video object pool into the multimedia player, the scene of multiplexing multiple video objects can also be satisfied; The object player can improve page loading efficiency and provide a new idea for playing multimedia based on web pages.
Description
技术领域technical field
本发明实施例涉及多媒体技术领域,尤其涉及一种多媒体播放方法、装置、多媒体播放器和介质。Embodiments of the present invention relate to the field of multimedia technologies, and in particular, to a multimedia playback method, device, multimedia player, and medium.
背景技术Background technique
随着互联网的不断发展,视频逐渐成为用户上网浏览的主要内容。具体播放视频资源可包括下述操作,用户通过搜索结果页和视频列表页跳转到视频详情页,移动端web页面通过视频播放器来播放短视频和小视频等。然而,在用户通过搜索结果页和视频列表页跳转到视频详情页进行视频播放时,播放器需要创建不同视频对象,耗费页面资源,导致页面加载效率低。With the continuous development of the Internet, video has gradually become the main content for users to browse the Internet. The specific playback of video resources may include the following operations: the user jumps to the video details page through the search result page and the video list page, and the mobile web page uses the video player to play short videos and small videos. However, when the user jumps to the video detail page to play the video 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.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种多媒体播放方法、装置、多媒体播放器和介质,以提高页面加载效率。Embodiments of the present invention provide a multimedia playback method, device, multimedia player and medium, so as to improve page loading efficiency.
第一方面,本发明实施例提供了一种多媒体播放方法,应用于多媒体播放器,该方法包括:In a first aspect, an embodiment of the present invention provides a multimedia playback method, which is applied to a multimedia player, and the method includes:
若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象;If the multimedia playback requirement of the current page is monitored, determine whether there is an available video object in the video object pool;
若所述视频对象池有可用视频对象,则从视频对象池中获取可用视频对象;If the video object pool has available video objects, then obtain the available video objects from the video object pool;
根据多媒体播放参数将获取的可用视频对象嵌入所述当前页面;Embed the obtained available video object in the current page according to the multimedia playback parameters;
在所述当前页面中播放当前多媒体。Play the current multimedia in the current page.
第二方面,本发明实施例还提供了一种多媒体播放装置,配置于多媒体播放器中,该装置包括:In a second aspect, an embodiment of the present invention also provides a multimedia playback device, which is configured in the multimedia player, and the device includes:
可用对象确定模块,用于若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象;The available object determination module is used to determine whether there is an available video object in the video object pool if the multimedia playback requirement of the current page is monitored;
可用对象获取模块,用于若所述视频对象池有可用视频对象,则从视频对象池中获取可用视频对象;An available object acquisition module, used for acquiring an available video object from the video object pool if there is an available video object in the video object pool;
可用对象插入模块,用于根据多媒体播放参数将获取的可用视频对象嵌入所述当前页面;An available object insertion module for embedding the acquired available video object in the current page according to multimedia playback parameters;
播放模块,用于在所述当前页面中播放当前多媒体。A playing module is used to play the current multimedia in the current page.
第三方面,本发明实施例还提供了一种多媒体播放器,该多媒体播放器包括:In a third aspect, an embodiment of the present invention also provides a multimedia player, the multimedia player comprising:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;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 playback 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, and when the program is executed by a processor, implements the multimedia playback method described in the first aspect.
本发明实施例提供的一种多媒体播放方法、装置、多媒体播放器和介质,在监测到当前页面的多媒体播放需求,且确定视频对象池中有可用的视频对象时,通过根据多媒体播放参数将从视频对象池中获取的可用视频对象嵌入当前页面,可实现在当前页面播放当前多媒体。不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,解决了现有的基于web页面播放多媒体存在页面加载效率低下的问题,为基于web页面播放多媒体提供了一种新思路。In the multimedia playback method, device, multimedia player and medium provided by the embodiments of the present invention, when the multimedia playback requirement of the current page is monitored and it is determined that there are available video objects in the video object pool, the multimedia playback parameters will The available video objects obtained in the video object pool are embedded in the current page, so that the current multimedia can be played on the current page. Not only can single video object multiplexing be realized, but also multi-video object multiplexing scenarios can be satisfied by introducing video object pool in multimedia player; meanwhile, page loading efficiency can be improved through reusable multi-video object player , which solves the problem of low page loading efficiency in the existing multimedia playback based on web pages, and provides a new idea for playing multimedia based on web pages.
附图说明Description of drawings
图1为本发明实施例所适用的一种多媒体播放器的整体架构图;1 is an overall architecture diagram of a multimedia player to which an embodiment of the present invention is applicable;
图2为本发明实施例一中提供的一种多媒体播放方法的流程图;2 is a flowchart of a multimedia playback method provided in Embodiment 1 of the present invention;
图3为本发明实施例二中提供的一种多媒体播放方法的流程图;3 is a flowchart of a multimedia playback method provided in Embodiment 2 of the present invention;
图4A为本发明实施例三中提供的一种多媒体播放方法的流程图;4A is a flowchart of a multimedia playback method provided in Embodiment 3 of the present invention;
图4B为本发明实施例三中提供的一种业务插件之间通信的示意图;4B is a schematic diagram of communication between service plug-ins provided in Embodiment 3 of the present invention;
图5为本发明实施例四中提供的一种多媒体播放装置的结构示意图;5 is a schematic structural diagram of a multimedia playback device provided in Embodiment 4 of the present invention;
图6为本发明实施例五中提供的一种多媒体播放器的结构示意图。FIG. 6 is a schematic structural diagram of a multimedia player provided in Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在介绍本发明各实施例之前,先对本发明实施例中多媒体播放器的整体架构进行说明。如图1所示,本实施例的多媒体播放器可以包括基础部分,且基础部分包括但不限于样式(css)、配置(config)、日志(log)、工具方法(util)、依赖的库(lib)以及单元测试(test)等。可选的,多媒体播放器还可以包括事件(Event)、基础(Base)以及播放(sPlayer)三个基本类。其中,事件(Event)类用于为播放器提供事件能力;基础(Base)类提供播放器的原生能力,例如可以包括设置和获取播放器的原生属性、绑定播放器的原生事件等;播放(sPlayer)类用于为播放器提供处理业务的能力,比如插入视频对象、触发事件、设置参数、安装包插件等。Before introducing the embodiments of the present invention, the overall architecture of the multimedia player in the embodiments of the present invention will be described first. As shown in FIG. 1 , the multimedia player of this embodiment may include a basic part, and the basic part includes but is not limited to style (css), configuration (config), log (log), tool method (util), dependent library ( lib) and unit tests (test), etc. Optionally, the multimedia player may further include three basic classes, Event, Base, and Player. Among them, the event (Event) class is used to provide the player with event capabilities; the base (Base) class provides the player's native capabilities, such as setting and obtaining the player's native properties, binding the player's native events, etc.; play The (sPlayer) class is used to provide the player with the ability to process services, such as inserting video objects, triggering events, setting parameters, and installing package plug-ins.
可选的,多媒体播放器还可以包括用于管理视频对象的视频对象池(vSore)。进一步的,该视频对象池可提供创建视频对象、回收视频对象、复用视频对象以及限制视频对象数量等功能。其中,复用视频对象可让页面拥有更好的性能,限制视频对象数量可防止页面崩溃。Optionally, the multimedia player may further include a video object pool (vSore) for managing video objects. Further, the video object pool can provide functions such as creating video objects, recycling video objects, multiplexing video objects, and limiting the number of video objects. Among them, multiplexing video objects can make the page have better performance, and limiting the number of video objects can prevent the page from crashing.
随着视频业务的发展,为了最大限度的利用视频资源,需要在视频逻辑中加入多模搜索、媒介信息投放等其他业务的逻辑,进而会导致播放器和业务之间耦合度高,相互影响大。本实施例中,在多媒体播放器中引入了插件机制,也就是说每个业务的逻辑以插件(plugin)的形式加载到播放器中,可降低耦合度,且提高了播放器的可扩展性。With the development of video services, in order to maximize the use of video resources, it is necessary to add other business logics such as multi-mode search, media information delivery, etc. . In this embodiment, a plug-in mechanism is introduced into the multimedia player, that is to say, the logic of each service is loaded into the player in the form of a plug-in, which can reduce the coupling degree and improve the scalability of the player. .
可选的,本实施例的多媒体播放器还可以包括播放器代理(plug),播放器代理具有和播放器相同的功能。其中,不同业务插件具有不同的播放器代理,且每个业务插件只能操作各自的播放器代理,进而可降低各业务插件之间的相互影响。Optionally, the multimedia player in this embodiment may further include a player proxy (plug), and the player proxy has the same function as the player. Wherein, different service plug-ins have different player agents, and each service plug-in can only operate its own player agent, thereby reducing the mutual influence among the service plug-ins.
实施例一Example 1
图2为本发明实施例一中提供的一种多媒体播放方法的流程图,本实施例可适用于对多媒体进行播放的情况,尤其适用于在基于web页面进行播放多媒体时,采用图1所示架构的多媒体播放器播放多媒体,以解决现有的基于web页面播放多媒体存在页面加载效率低下的问题。本发明实施例的方案由多媒体播放器来执行,该方法可以由多媒体播放装置来执行,该装置可采用硬件和/或软件的方式实现,并可集成于多媒体播放器中。参见图2,该方法具体可以包括:FIG. 2 is a flowchart of a method for playing multimedia provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of playing multimedia, and is especially suitable for playing multimedia based on a web page. The multimedia player of the architecture plays multimedia, so as to solve the problem of low page loading efficiency in the existing multimedia player based on web pages. The solutions of the embodiments of the present invention are implemented by a multimedia player, and the method can be implemented by a multimedia playing device, which can be implemented in hardware and/or software, and can be integrated in the multimedia player. Referring to Figure 2, the method may specifically include:
S210,若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象。S210, if the multimedia playback requirement of the current page is monitored, determine whether there is an available video object in the video object pool.
本实施例中,当前页面为包括一个或多个多媒体的详情页面。进一步的,当前页面为一个单体应用页面,也就是说当前页面有且仅有一个多媒体播放器,且本实施例的执行主体具体为当前页面所对应的多媒体播放器。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 to say, the current page has one and only one multimedia player, and the execution body of this embodiment is specifically the multimedia player corresponding to the current page.
监测到当前页面的多媒体播放需求可以包括下述两种情况:1)多媒体播放器监测到某一触发机制,则确定当前页面具有多媒体播放需求;2)多媒体播放器监测到当前页面基于某一触发机制产生多媒体播放需求。可选的,触发机制可以是用户作用于当前页面的触发操作,如用户点击播放按键,单击或双击当前页面等;还可以是当前页面中即将播放的当前多媒体满足业务逻辑播放条件;也可以是用户从搜索结果页面或视频列表页面跳转至当前页面等。Monitoring the multimedia playback requirements of the current page may include the following two situations: 1) the multimedia player detects a certain trigger mechanism, and determines that the current page has multimedia playback requirements; 2) the multimedia player detects that the current page is based on a certain trigger The mechanism generates multimedia playback requirements. Optionally, the trigger mechanism may be a trigger operation performed by the user on the current page, such as the user clicking the play button, clicking or double-clicking the current page, etc.; it may also be that the current multimedia to be played on the current page meets the business logic playback conditions; or It is the user jumping from the search result page or the video list page to the current page, etc.
视频对象池中可包括一个或多个视频对象,而本实施例更适用于多个视频对象的情况。示例性的,视频对象池可提供创建视频对象、回收视频对象、复用视频对象以及限制视频对象数量等功能。可选的,不同视频对象可同时被用于播放不同多媒体,例如同一页面中同时存在不同播放窗口,同时播放不同多媒体;但一个视频对象不能同时播放不同多媒体。也就是说,正在被使用的视频对象,或者被使用但未回收到视频对象池中的视频对象均为不可用视频对象。而视频对象池中未被使用的视频对象均为可用视频对象。The video object pool may include one or more video objects, and this embodiment is more applicable to the case of multiple video objects. Exemplarily, the video object pool may provide functions such as creating video objects, recycling video objects, multiplexing video objects, and limiting the number of video objects. Optionally, different video objects can be used to play different multimedia at the same time, for example, different playback windows exist in the same page at the same time, and different multimedia are played at the same time; but one video object cannot play different multimedia at the same time. That is to say, the video objects that are being used, or the video objects that are used but not recycled into the video object pool are all unavailable video objects. The unused video objects in the video object pool are all available video objects.
进一步的,为了便于多媒体播放器快速确定视频对象池中是否具有可用视频对象,可选的,视频对象池可将被使用的视频对象(包括正在被使用以及未回收到视频对象池的)以区别于未被使用的视频对象的颜色显示,或者视频对象池只用于存储未被使用的视频对象等。Further, in order to facilitate the multimedia player to quickly determine whether there are available video objects in the video object pool, optionally, the video object pool can use video objects (including those that are being used and those that have not been recycled to the video object pool) to be distinguished. The color display of unused video objects, or the video object pool is only used to store unused video objects, etc.
S220,若视频对象池有可用视频对象,则从视频对象池中获取可用视频对象。S220, if there are available video objects in the video object pool, obtain the available video objects 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 acquired from the video object pool. If it is determined that there are no available video objects in the video object pool, it is determined whether the number of existing video objects in the video object pool has reached the preset threshold of the number of video objects; Whether there is an available video object in the video object pool; if not, control the video object pool to create a new video object as an available video object for playing the current multimedia in the current page, and the created new video object is also Used for subsequent playback of multimedia in the current page.
示例性的,确定视频对象池中是否有可用视频对象之后,还可以包括:若视频对象池中无可用视频对象,且多媒体播放器中的已有视频对象数量小于视频对象数量阈值,则创建新的视频对象。其中,视频对象数量阈值为预先设定的能够为当前页面的多媒体播放器创建的视频对象的上限值。Exemplarily, after determining whether there are available video objects in the video object pool, it may further include: if there are no available video objects in the video object pool, and the number of existing video objects in the multimedia player is less than the threshold of the number of video objects, creating a new video object. video object. The threshold for the number of video objects is a preset upper limit of video objects that 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 playback requirements of the current page, and the number of existing video objects in the multimedia player is less than the threshold of the number of video objects, it can be obtained from the video object pool. A new video object can be created with a video object while controlling the video object pool.
S230,根据多媒体播放参数将获取的可用视频对象嵌入当前页面。S230, embed the acquired available video object into the current page according to the multimedia playback parameters.
本实施例中,多媒体播放参数可以是系统默认的,还可以是预先设置的,可以包括但不限于播放方式、播放信息(如音频信息、文本信息以及图像信息等)、播放时长、分辨率、以及音量等。In this embodiment, the multimedia playback parameters may be system default or preset, and may include but are not limited to playback mode, playback information (such as audio information, text information, and image information, etc.), playback duration, resolution, and volume, etc.
具体的,在从视频对象池中获取可用视频对象之后,可以将多媒体播放参数作为可用视频对象中的参数,并将带有具体参数值的可用视频对象嵌入当前页面中。Specifically, after obtaining the available video objects from the video object pool, the multimedia playback parameters can be used as parameters in the available video objects, and the available video objects with specific parameter values can be embedded in the current page.
进一步的,若从视频对象池中所获取的可用视频对象为两个或两个以上,则根据多媒体播放参数将获取的可用视频对象嵌入当前页面可以为:根据多媒体播放参数将获取的多个可用视频对象分别嵌入当前页面中的不同的播放窗口中。Further, if the available video objects obtained from the video object pool are two or more, then embedding the obtained available video objects in the current page according to the multimedia playback parameters may be: a plurality of available video objects obtained according to the multimedia playback parameters The video objects are embedded in different playback windows in the current page respectively.
S240,在当前页面中播放当前多媒体。S240, play the current multimedia in the current page.
具体的,在根据多媒体播放参数将获取的可用视频对象嵌入当前页面之后,通过运行带有具体参数值的可用视频对象,即可实现在当前页面中播放当前多媒体。Specifically, after the obtained available video object is embedded in the current page according to the multimedia playback parameters, the current multimedia can be played on the current page by running the available video object with specific parameter values.
示例性的,在当前页面中播放当前多媒体之后,还可以包括:在当前页面播放完当前多媒体之后,将使用的可用视频对象回收到视频对象池中。具体的,在当前页面播放完当前多媒体之后,可以控制视频对象池回收使用的可用视频对象。进一步可以为控制视频对象池从使用的可用视频对象中去除多媒体播放参数,并回收去除多媒体播放参数的使用的可用视频对象。Exemplarily, after playing the current multimedia on the current page, the method may further include: after the current page finishes playing the current multimedia, recycling the used available video objects into the video object pool. Specifically, after the current page finishes playing the current multimedia, the video object pool can be controlled to recycle the available video objects used. Further, the multimedia playback parameters may be removed from the used available video objects for the control of the video object pool, and the available video objects used for which the multimedia playback parameters are removed may be recovered.
本发明实施例提供的技术方案,在监测到当前页面的多媒体播放需求,且确定视频对象池中有可用的视频对象时,通过根据多媒体播放参数将从视频对象池中获取的可用视频对象嵌入当前页面,可实现在当前页面播放当前多媒体。本方案,不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,解决了现有的基于web页面播放多媒体存在页面加载效率低下的问题,为基于web页面播放多媒体提供了一种新思路。According to the technical solution provided by the embodiment of the present invention, when the multimedia playback requirement of the current page is monitored and it is determined that there are available video objects in the video object pool, the available video objects obtained from the video object pool are embedded in the current page according to the multimedia playback parameters. page, which can play the current multimedia on the current page. This solution can not only realize the multiplexing of a single video object, but also meet the multiplexing of multiple video objects by introducing a video object pool into the multimedia player; The page loading efficiency solves the problem of low page loading efficiency in the existing multimedia playback based on web pages, and provides a new idea for playing multimedia based on web pages.
实施例二Embodiment 2
图3为本发明实施例二中提供的一种多媒体播放方法的流程图,本实施例在上述实施例的基础上,进一步对确定视频对象池中是否有可用视频对象进行解释说明。参见图3,该方法具体可以包括:FIG. 3 is a flowchart of a multimedia playback method provided in Embodiment 2 of the present invention. Based on the foregoing embodiments, this embodiment further explains determining whether there are available video objects in the video object pool. Referring to Figure 3, the method may specifically include:
S310,若监测到当前页面的多媒体播放需求,则根据待播放的当前多媒体类型,确定待使用的当前视频对象类型。S310, if the multimedia playback requirement of the current page is monitored, the current video object type to be used is determined according to the current multimedia type to be played.
本实施例中,多媒体类型可分别主业务型多媒体,以及其他业务型多媒体。其中,主业务型多媒体是指加载于当前页面的主业务逻辑,即用户主要浏览的多媒体内容,如短视频;其他业务型多媒体是指加载于当前页面的媒介信息等其他业务的逻辑,如广告。可选的,依据业务逻辑播放需求,可将其他业务型多媒体插入主业务型多媒体中,如播放主业务型多媒体之前、之后或中间等。In this embodiment, the multimedia types may be main business multimedia and other business multimedia respectively. Among them, main business multimedia refers to the main business logic loaded on the current page, that is, the multimedia content that users mainly browse, such as short videos; other business multimedia refers to the logic of other businesses such as media information loaded on the current page, such as advertisements . Optionally, 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, according to service logic playback requirements.
可选的,播放不同类型的多媒体,需采用不同类型的视频对象。也就是说,采用主业务型视频对象播放主业务型多媒体,采用其他业务型视频对象播放其他业务型多媒体,即本实施例中,将主业务视频对象与其他业务型视频对象隔离,进而降低其他业务型多媒体对主业务型多媒体的影响。当前视频对象类型即为播放当前多媒体所需使用的视频对象的类型,可以为主业务型和其他业务型中的至少一种。Optionally, to play different types of multimedia, different types of video objects need to be used. That is to say, the main service type video object is used to play the main service type multimedia, and other service type video objects are used to play other service type multimedia. The impact of business multimedia on main business multimedia. The current video object type is the type of the video object used to play the current multimedia, and it can be at least one of the main service type and other service types.
具体的,若监测到当前页面的多媒体播放需求,则确定待播放的当前多媒体类型;并根据待播放的当前多媒体类型,确定待使用的当前视频对象类型。Specifically, if the multimedia playback requirement of the current page is monitored, the current multimedia type to be played is determined; and the current video object type to be used is determined according to the current multimedia type to be played.
S320,确定视频对象池中否有属于当前视频对象类型的可用视频对象。S320: Determine whether there is an available video object belonging to the current video object type in the video object pool.
本实施例中,视频对象池中可以包括多个视频对象,进一步的视频对象池中可以包括唯一的主业务型视频对象,以及至少一个其他业务型视频对象。In this embodiment, the video object pool may include multiple video objects, and further video object pools may include a unique main service type video object and at least one other service type video object.
具体的,在确定待使用的当前视频对象类型之后,可以从视频对象池中查询,以确定视频对象池中否有属于当前视频对象类型的可用视频对象。Specifically, after the current video object type to be used is determined, the video object pool may be queried to determine whether there is an available video object belonging to the current video object type in the video object pool.
示例性的,确定视频对象池中否有属于当前视频对象类型的可用视频对象,可以包括:1)若当前视频对象类型是主业务型视频对象,则确定视频对象池中是否有唯一的主业务型视频对象。具体的,若当前视频对象类型是主业务型视频对象,则可以从视频对象池中查询,以确定视频对象池中是否有唯一的主业务型视频对象;若视频对象池中有唯一的主业务型视频对象,且该唯一的主业务型视频对象未被使用,则可以将唯一的主业务型视频对象作为可用视频对象;若该唯一的主业务型视频对象已被使用,则可以以预设时间周期循环查询视频对象池中该唯一的主业务型视频对象是否可用。此外,若视频对象池中没有唯一的主业务型视频对象,则可以确定是首次监测到当前页面的多媒体播放需求,为当前页面进行多媒体播放器实例化,并创建唯一的主业务型视频对象。Exemplarily, determining whether there is an available video object belonging to the current video object type in the video object pool may include: 1) if the current video object type is a main service type video object, then determining whether there is a unique main service in the video object pool type video object. Specifically, if the current video object type is a main service type video object, the video object pool can be queried to determine whether there is a unique main service type video object in the video object pool; if there is a unique main service type video object in the video object pool type video object, and the only main service type video object is not used, the only main service type video object can be used as the available video object; if the only main service type video object has been used, it can be preset The time period cyclically inquires whether the unique main service type video object in the video object pool is available. In addition, if there is no unique main service type video object in the video object pool, it can be determined that the multimedia playback requirement of the current page is monitored for the first time, the multimedia player is instantiated for the current page, and a unique main service type video object is created.
2)若当前视频对象类型是其他业务型视频对象,则确定视频对象池中是否有任一其他业务型视频对象。具体的,若当前视频对象类型是其他业务型视频对象,则可以从视频对象池中查询,以确定视频对象池中是否有任一其他业务型视频对象;若视频对象池中有任一其他业务型视频对象,且该任一其他业务型视频对象未被使用,则可以将其作为可用视频对象;若视频对象池中没有未被使用的其他业务型视频对象,且多媒体播放器中的已有视频对象数量小于视频对象数量阈值,则创建新的视频对象作为其他业务型视频对象供使用。2) If the current video object type is other service type video objects, determine whether there is any other service type video objects in the video object pool. Specifically, if the current video object type is other business video objects, you can query the video object pool to determine whether there are any other business video objects in the video object pool; if there are any other business video objects in the video object pool type video object, and any other service type video object is not used, it can be used as an available video object; if there are no other unused service type video objects in the video object pool, and there are existing video objects in the multimedia player If the number of video objects is less than the threshold of the number of video objects, a new video object is created for use as other business video objects.
3)若待播放的当前多媒体为两个或两个以上,且待播放的当前多媒体类型包括主业务型多媒体和其他业务型多媒体,对应的,当前视频对象类型包括主业务型视频对象和其他业务型视频对象,则可以同时执行上述1)和2)的过程。3) If the current multimedia to be played is two or more, and the current multimedia type to be played includes the main service type multimedia and other service type multimedia, correspondingly, the current video object type includes the main service type video object and other services. type video object, the processes of 1) and 2) above can be performed at the same time.
S330,若视频对象池有可用视频对象,则从视频对象池中获取可用视频对象。S330, if there are available video objects in the video object pool, obtain the available video objects from the video object pool.
S340,根据多媒体播放参数将获取的可用视频对象嵌入当前页面。S340, embed the acquired available video object into the current page according to the multimedia playback parameters.
S350,在当前页面中播放当前多媒体。S350, play the current multimedia in the current page.
本发明实施例提供的技术方案,在监测到当前页面的多媒体播放需求时,可根据待播放的当前多媒体类型确定待使用的当前视频对象类型,并在视频对象池中查询,以确定是否有属于当前视频对象类型的可用视频对象;在确定视频对象池中有可用的视频对象时,通过根据多媒体播放参数将从视频对象池中获取的可用视频对象嵌入当前页面,可实现在当前页面播放当前多媒体。本方案,不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,解决了现有的基于web页面播放多媒体存在页面加载效率低下的问题,为基于web页面播放多媒体提供了一种新思路。此外,通过将主业务视频对象与其他业务型视频对象隔离,可降低其他业务型多媒体对主业务型多媒体的影响。According to the technical solution provided by the embodiment of the present invention, when the multimedia playback requirement of the current page is monitored, the current video object type to be used can be determined according to the current multimedia type to be played, and the video object pool can be queried to determine whether there is any Available video objects of the current video object type; when it is determined that there are available video objects in the video object pool, by embedding the available video objects obtained from the video object pool into the current page according to the multimedia playback parameters, the current multimedia can be played on the current page. . This solution can not only realize the multiplexing of a single video object, but also meet the multiplexing of multiple video objects by introducing a video object pool into the multimedia player; The page loading efficiency solves the problem of low page loading efficiency in the existing multimedia playback based on web pages, and provides a new idea for playing multimedia based on web pages. In addition, by isolating the main service video object from other service video objects, the influence of other service multimedia on the main service multimedia can be reduced.
实施例三Embodiment 3
图4A为本发明实施例三中提供的一种多媒体播放方法的流程图,本实施例在上述实施例的基础上,进一步的优化。参见图4A,该方法具体可以包括:FIG. 4A is a flowchart of a method for playing multimedia provided in Embodiment 3 of the present invention. This embodiment is further optimized on the basis of the foregoing embodiment. Referring to Figure 4A, the method may specifically include:
S410,在首次监测到当前页面的多媒体播放需求时,对多媒体播放器进行实例化。S410, when the multimedia playback requirement of the current page is monitored for the first time, instantiate the multimedia player.
其中,实例化是指将一个抽象的概念类,具体到该类实物的过程。本实施例中,实例化即为在面向对象的编程中,用类创建视频对象的过程;可选的,实例化过程中一般由类名和对象名等构成。Among them, instantiation refers to the process of making an abstract conceptual class concrete into the object of this class. In this embodiment, instantiation is a process of creating a video object with a class in object-oriented programming; optionally, the instantiation process is generally composed of a class name and an object name.
需要说明的是,由于本实施例中当前页面为一个单体应用页面,因此多媒体播放器在整个页面的生命周期内只能被实例化一次。也就是说,只要当前页面未发生变化(例如没有刷新操作),多媒体播放器的实例具有唯一性。It should be noted that, since the current page in this embodiment is a single application page, the multimedia player can only be instantiated once in the life cycle of the entire page. That is, as long as the current page does not change (eg, there is no refresh operation), the instance of the multimedia player is unique.
S420,在多媒体播放器实例化过程中,创建视频对象,加载其他业务插件,并为其他业务插件创建播放器代理,供其他业务插件使用。S420, during the instantiation process of the multimedia player, create a video object, load other service plug-ins, and create a player proxy for other service plug-ins for use by other service plug-ins.
本实施例中,创建的视频对象可以是唯一的主业务型视频对象,还可以是其他业务型视频对象。可选的,创建的视频对象是可以复用的。以主业务型视频对象为例对视频对象的复用进行说明,在确定当前页面具有主业务型多媒体播放需求,且视频对象池中具有未被使用的唯一的主业务型视频对象,则可以基于该主业务型视频对象播放主业务型多媒体;并在监测到主业务型多媒体播放完之后,可以控制视频对象池回收主业务型视频对象;之后若再次监测到当前页面具有主业务型多媒体播放需求时,可以从视频对象池中获取主业务型视频对象,并基于该主业务型视频对象播放主业务型多媒体。In this embodiment, the created video object may be the only main service type video object, and may also be other service type video objects. Optionally, the created video object can be reused. Taking the main service type video object as an example to illustrate the multiplexing of video objects, when it is determined that the current page has the main service type multimedia playback requirement, and the video object pool has a unique main service type video object that is not used, it can be determined based on the main service type video object. The main service type video object plays the main service type multimedia; and after monitoring that the main service type multimedia is played, it can control the video object pool to recycle the main service type video object; then if it is detected again that the current page has the main service type multimedia playback requirement At the time, the main service type video object can be obtained from the video object pool, and the main service type multimedia can be played based on the main service type video object.
主业务型多媒体可以以插件形式加载到多媒体播放器中,还可以以其他形式加载到多媒体播放器中;而其它业务型多媒体则以插件的形式加载到多媒体播放器中。播放器代理具有和播放器相同的功能。可选的,不同业务插件具有不同的播放器代理,且每个业务插件只能操作各自的播放器代理。Main business multimedia can be loaded into the multimedia player in the form of a plug-in, and can also be loaded into the multimedia player in other forms; and other business multimedia can be loaded into the multimedia player in the form of a plug-in. The player proxy has the same functionality as the player. Optionally, different service plug-ins have different player agents, and each service plug-in 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 maximize the use of video resources, the logic of other services can be loaded into the multimedia player in the form of plug-ins; The respective player agents are used by other service plug-ins, which can avoid the problem of mutual influence when multiple service plug-ins operate the same multimedia player together.
需要说明的是,在多媒体播放器中引入了插件机制,也就是说每个业务的逻辑以插件的形式加载到播放器中,可降低耦合度,且提高了播放器的可扩展性,同时便于后续业务的增添和删除等。此外,为每个业务插件引入各自的播放器代理,可降低各业务插件之间的相互影响。It should be noted that the plug-in mechanism is introduced in the multimedia player, that is to say, 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 scalability of the player, and facilitate the Subsequent business additions and deletions, etc. In addition, introducing its own player agent for each service plug-in can reduce the mutual influence among the service plug-ins.
为了使得整个多媒体播放的顺利进行,需要实时获知各业务插件的状态。示例性的,多媒体播放器可通过事件传递实现与每个其他业务插件之间的通信,而其他业务插件之间可以播放器代理为中继进行通信。例如,图4B所示,业务插件1操作的播放器代理1,可与业务插件2操作的播放器代理2进行通信,进而可实现业务插件1与业务插件2之间的通信。In order to make the entire multimedia playback run smoothly, it is necessary to know the status of each service plug-in in real time. Exemplarily, the multimedia player can communicate with each other service plug-in through event transfer, and the player proxy can be used as a relay for communication between other service plug-ins. 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 , thereby realizing the communication between the service plug-in 1 and the service plug-in 2 .
S430,若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象。S430, if the multimedia playback requirement of the current page is monitored, determine whether there is an available video object in the video object pool.
S440,若视频对象池有可用视频对象,则从视频对象池中获取可用视频对象。S440, if there are available video objects in the video object pool, obtain the available video objects from the video object pool.
S450,根据多媒体播放参数将获取的可用视频对象嵌入当前页面。S450, embed the acquired available video object into the current page according to the multimedia playback parameters.
S460,在当前页面中播放当前多媒体。S460, play the current multimedia in the current page.
需要说明的是,本实施例中,对多媒体播放器进行实例化的过程S410和S420也可独立执行,也可以在S430至S460实现在当前页面中播放当前多媒体之前执行。It should be noted that, in this embodiment, the processes S410 and S420 of instantiating the multimedia player may also be performed independently, or may be performed before S430 to S460 implement the playback of the current multimedia on the current page.
本发明实施例提供的技术方案,在首次监测到当前页面的多媒体播放需求时,可对多媒体播放器进行实例化,且在实例化过程中,创建视频对象;并将每个业务的逻辑以插件的形式加载到播放器中,降低了耦合度,且提高了播放器的可扩展性,同时便于后续业务的增添和删除等。此外,为每个业务插件引入各自的播放器代理,可降低各业务插件之间的相互影响。之后本方案实现在当前页面中播放当前多媒体的过程,不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,解决了现有的基于web页面播放多媒体存在页面加载效率低下的问题,为基于web页面播放多媒体提供了一种新思路。According to the technical solution provided by the embodiment of the present invention, when the multimedia playback requirement of the current page is monitored for the first time, the multimedia player can be instantiated, and in the instantiation process, a video object is created; It can be loaded into the player in the form of , which reduces the coupling degree, improves the scalability of the player, and facilitates the addition and deletion of subsequent services. In addition, introducing its own player agent for each service plug-in can reduce the mutual influence among the service plug-ins. Afterwards, this solution realizes the process of playing the current multimedia in the current page, which can not only realize the multiplexing of a single video object, but also meet the scene of multiple video object multiplexing by introducing a video object pool into the multimedia player; The multi-video object player used can improve page loading efficiency, solve the problem of low page loading efficiency in the existing web page-based multimedia playback, and provide a new idea for web-based multimedia playback.
实施例四Embodiment 4
图5为本发明实施例四中提供的一种多媒体播放装置的结构示意图,该装置可多媒体播放器中,该装置可执行本发明任意实施例所提供的多媒体播放方法,具备执行方法相应的功能模块和有益效果。如图5所示,该装置包括:5 is a schematic structural diagram of a multimedia playback device provided in Embodiment 4 of the present invention. The device can be used as a multimedia player. The device can execute the multimedia playback method provided by any embodiment of the present invention, and has functions corresponding to the execution method. Modules and beneficial effects. As shown in Figure 5, the device includes:
可用对象确定模块510,用于若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象;The available
可用对象获取模块520,用于若视频对象池有可用视频对象,则从视频对象池中获取可用视频对象;The available
可用对象插入模块530,用于根据多媒体播放参数将获取的可用视频对象嵌入当前页面;The available
播放模块540,用于在当前页面中播放当前多媒体。The playing module 540 is configured to play the current multimedia in the current page.
本发明实施例提供的技术方案,在监测到当前页面的多媒体播放需求,且确定视频对象池中有可用的视频对象时,通过根据多媒体播放参数将从视频对象池中获取的可用视频对象嵌入当前页面,可实现在当前页面播放当前多媒体。不仅可实现单一视频对象复用,而且通过在多媒体播放器中引入视频对象池,也可满足多视频对象复用的场景;同时通过可复用的多视频对象的播放器,能够提高页面加载效率,解决了现有的基于web页面播放多媒体存在页面加载效率低下的问题,为基于web页面播放多媒体提供了一种新思路。According to the technical solution provided by the embodiment of the present invention, when the multimedia playback requirement of the current page is monitored and it is determined that there are available video objects in the video object pool, the available video objects obtained from the video object pool are embedded in the current page according to the multimedia playback parameters. page, which can play the current multimedia on the current page. Not only can single video object multiplexing be realized, but also multi-video object multiplexing scenarios can be satisfied by introducing video object pool in multimedia player; meanwhile, page loading efficiency can be improved through reusable multi-video object player , which solves the problem of low page loading efficiency in the existing multimedia playback based on web pages, and provides a new idea for playing multimedia based on web pages.
示例性的,可用对象确定模块510可以包括:Exemplarily, the available
类型确定单元,用于根据待播放的当前多媒体类型,确定待使用的当前视频对象类型;a type determination unit for determining the current video object type to be used according to the current multimedia type to be played;
可用对象确定单元,用于确定视频对象池中否有属于当前视频对象类型的可用视频对象。The available object determination unit is used for determining whether there is an available video object belonging to the current video object type in the video object pool.
示例性的,可用对象确定单元具体可以用于:Exemplarily, the available object determination unit can be specifically used for:
若当前视频对象类型是主业务型视频对象,则确定视频对象池中是否有唯一的主业务型视频对象;If the current video object type is a main service video object, determine whether there is a unique main service video object in the video object pool;
若当前视频对象类型是其他业务型视频对象,则确定视频对象池中是否有任一其他业务型视频对象。If the current video object type is other service-type video objects, it is determined whether there are any other service-type video objects in the video object pool.
示例性的,上述装置还可以包括:Exemplarily, the above device may further include:
视频对象创建模块,用于在确定视频对象池中是否有可用视频对象之后,若视频对象池中无可用视频对象,且多媒体播放器中的已有视频对象数量小于视频对象数量阈值,则创建新的视频对象。The video object creation module is used to create a new video object after determining whether there is an available video object in the video object pool, if there is no available video object in the video object pool, and the number of existing video objects in the multimedia player is less than the threshold of the number of video objects. video object.
示例性的,上述装置还可以包括:Exemplarily, the above device may further include:
视频对象回收模块,用于在所述当前页面中播放当前多媒体之后,在当前页面播放完当前多媒体之后,将使用的可用视频对象回收到视频对象池中。The video object recycling module is configured to recycle the used available video objects into the video object pool after the current multimedia is played in the current page and after the current multimedia is played on the current page.
示例性的,上述装置还可以包括:Exemplarily, the above device may further include:
实例化模块,用于在首次监测到当前页面的多媒体播放需求时,对多媒体播放器进行实例化;The instantiation module is used to instantiate the multimedia player when the multimedia playback requirement of the current page is monitored for the first time;
实例化处理模块,用于在多媒体播放器实例化过程中,创建视频对象,加载其他业务插件,并为其他业务插件创建播放器代理,供其他业务插件使用。The instantiation processing module is used to create a video object, load other service plug-ins, and create a player proxy for other service plug-ins for use by other service plug-ins during the instantiation process of the multimedia player.
示例性的,其他业务插件之间以播放器代理为中继进行通信。Exemplarily, the player agent is used as a relay for communication between other service plug-ins.
实施例五Embodiment 5
图6为本发明实施例五提供的一种多媒体播放器的结构示意图。图6示出了适于用来实现本发明实施方式的示例性多媒体播放器12的框图。图6显示的设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of a multimedia player according to Embodiment 5 of the present invention. Figure 6 shows a block diagram of an
如图6所示,多媒体播放器12以通用计算设备的形式表现。多媒体播放器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,存储器28,连接不同系统组件(包括存储器28和处理单元16)的总线18。As shown in FIG. 6, the
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
多媒体播放器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被多媒体播放器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。The
存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。多媒体播放器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/
多媒体播放器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该多媒体播放器12交互的设备通信,和/或与使得该多媒体播放器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,多媒体播放器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与多媒体播放器12的其它模块通信。应当明白,尽管图6中未示出,可以结合多媒体播放器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
处理单元16通过运行存储在存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的多媒体播放方法。The
实施例六Embodiment 6
本发明实施例六还提供了一种计算机可读存储介质,其上存储有计算机程序(或称为计算机可执行指令),该程序被处理器执行时用于执行一种多媒体播放方法,该方法包括:Embodiment 6 of the present invention also provides a computer-readable storage medium on which a computer program (or referred to as a computer-executable instruction) is stored. When the program is executed by a processor, it is used to execute a multimedia playback method. The method include:
若监测到当前页面的多媒体播放需求,则确定视频对象池中是否有可用视频对象;If the multimedia playback requirement of the current page is monitored, determine whether there is an available video object in the video object pool;
若视频对象池有可用视频对象,则从视频对象池中获取可用视频对象;If there are available video objects in the video object pool, obtain the available video objects from the video object pool;
根据多媒体播放参数将获取的可用视频对象嵌入当前页面;Embed the obtained available video object into the current page according to the multimedia playback parameters;
在当前页面中播放当前多媒体。Play the current multimedia in the current page.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, 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), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as "C" language or similar programming language. 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 kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (10)
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 true CN111954072A (en) | 2020-11-17 |
| CN111954072B 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) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113286189A (en) * | 2021-04-23 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Video playing method, device, server and storage medium |
| CN113573121A (en) * | 2021-07-13 | 2021-10-29 | 富途网络科技(深圳)有限公司 | Video playing method, device and storage medium |
| CN114025218A (en) * | 2021-09-14 | 2022-02-08 | 百果园技术(新加坡)有限公司 | 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 |
| CN119697453A (en) * | 2023-09-25 | 2025-03-25 | 北京字跳网络技术有限公司 | Player multiplexing method, device, electronic device and storage medium |
Citations (15)
| 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 |
| US20130132823A1 (en) * | 2011-11-21 | 2013-05-23 | Inspiredlabs Ltd. | Metadata augmentation of web pages |
| US20160048861A1 (en) * | 2013-04-01 | 2016-02-18 | 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 |
| 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 |
| US20160344946A1 (en) * | 2015-05-22 | 2016-11-24 | Peter Michalik | Screen 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 |
| US20180276478A1 (en) * | 2017-03-24 | 2018-09-27 | International Business Machines Corporation | Determining Most Representative Still Image of a Video for Specific User |
| 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 |
-
2019
- 2019-05-16 CN CN201910407067.XA patent/CN111954072B/en active Active
Patent Citations (15)
| 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 |
| US20130132823A1 (en) * | 2011-11-21 | 2013-05-23 | Inspiredlabs Ltd. | Metadata augmentation of web pages |
| US20160048861A1 (en) * | 2013-04-01 | 2016-02-18 | 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 |
| 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 |
| US20180276478A1 (en) * | 2017-03-24 | 2018-09-27 | International Business Machines Corporation | Determining Most Representative Still Image of a Video for Specific User |
| 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 |
Non-Patent Citations (2)
| Title |
|---|
| JUI-CHIU CHIANG: "《A Fast H.264/AVC-Based Stereo Video Encoding Algorithm Based on Hierarchical Twp-Stage Neural Classification》", 《IEEE JOURNAL OF SELECTED TOPICS IN SIGNAL PROCESSING》 * |
| 洪江英: "《多媒体信息发布系统资源管理子系统的设计与实现》", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113286189A (en) * | 2021-04-23 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Video playing method, device, server and storage medium |
| CN113573121A (en) * | 2021-07-13 | 2021-10-29 | 富途网络科技(深圳)有限公司 | Video playing method, device and storage medium |
| WO2023284498A1 (en) * | 2021-07-13 | 2023-01-19 | 富途网络科技(深圳)有限公司 | Video playing method and apparatus, and storage medium |
| CN113573121B (en) * | 2021-07-13 | 2023-04-21 | 富途网络科技(深圳)有限公司 | Video playing method, device and storage medium |
| CN114025218A (en) * | 2021-09-14 | 2022-02-08 | 百果园技术(新加坡)有限公司 | Card type video interaction method, device, equipment 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 |
| CN119697453A (en) * | 2023-09-25 | 2025-03-25 | 北京字跳网络技术有限公司 | Player multiplexing method, device, electronic device and storage medium |
| CN119697453B (en) * | 2023-09-25 | 2025-10-03 | 北京字跳网络技术有限公司 | Player multiplexing method, device, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111954072B (en) | 2022-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111954072A (en) | A kind of multimedia playback method, device, multimedia player and medium | |
| CN109213611B (en) | Cross-process communication method, device, terminal and storage medium | |
| KR101292429B1 (en) | Fast booting an operating system from an off state | |
| US20190258822A1 (en) | Efficient application feedback collection | |
| CN111831441A (en) | Memory recovery method, device, storage medium and electronic device | |
| CN111831440B (en) | Memory recovery method, device, storage medium and electronic device | |
| CN109308241B (en) | Method, device, terminal device and storage medium for monitoring application startup process | |
| CN113342422B (en) | A Linux-compatible Android multi-application camera access method and device | |
| US11272012B2 (en) | Action processing associated with a cloud device | |
| CN110968395B (en) | Method for processing rendering instruction in simulator and mobile terminal | |
| CN109857537B (en) | Background service starting method, device, medium and electronic equipment | |
| CN114625439B (en) | Sub-application operation method, electronic device and storage medium based on micro-frontend architecture | |
| CN110727473B (en) | Resource control method, device, system, storage medium and electronic equipment | |
| KR20080044872A (en) | Systems and Methods for Processing Information or Data on Computers | |
| CN113507632A (en) | Video processing method, device, terminal and storage medium | |
| US9088767B2 (en) | Activities duplication via recorded video | |
| CN114647411B (en) | Programming interface loading method, device, electronic device and storage medium | |
| CN107885807A (en) | File saving method and device, intelligent tablet and storage medium | |
| CN108848398B (en) | Method, device, terminal and storage medium for distributing local barrage messages | |
| CN112817769A (en) | Game resource dynamic caching method and device, storage medium and electronic equipment | |
| KR20170086760A (en) | Electronic device performing emulation-based forensic analysis and method of performing forensic analysis using the same | |
| CN114827741B (en) | Live streaming management method, device, electronic device and storage medium | |
| CN113760396B (en) | Application running method, device, electronic device and storage medium | |
| CN110389862B (en) | A data storage method, device, equipment and storage medium | |
| CN114327947B (en) | Subscription message processing method, device, electronic device and autonomous driving vehicle |
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 |