CN113691865A - Multimedia playing method and system - Google Patents

Multimedia playing method and system Download PDF

Info

Publication number
CN113691865A
CN113691865A CN202110975949.3A CN202110975949A CN113691865A CN 113691865 A CN113691865 A CN 113691865A CN 202110975949 A CN202110975949 A CN 202110975949A CN 113691865 A CN113691865 A CN 113691865A
Authority
CN
China
Prior art keywords
played
playing
multimedia stream
video
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110975949.3A
Other languages
Chinese (zh)
Inventor
陈林兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202110975949.3A priority Critical patent/CN113691865A/en
Publication of CN113691865A publication Critical patent/CN113691865A/en
Pending legal-status Critical Current

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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44012Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a multimedia playing method and a multimedia playing system, wherein the multimedia playing method comprises the following steps: determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged; preloading a next material to be played in the multimedia stream in the process of playing the material; and after the material is played, playing the next material to be played. The method is used for improving the fluency in switching the pictures and the videos.

Description

Multimedia playing method and system
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a multimedia playing method and system.
Background
In the software development process, a hybrid development mode of an embedded web view (webview) is usually adopted to develop an android application of a terminal. In the process of playing advertisements through webview, particularly when pictures and videos are switched back and forth, the fluency is low, and even a phenomenon of screen blackness occurs.
Disclosure of Invention
The invention provides a multimedia playing method and a multimedia playing system, which are used for improving the fluency during switching between pictures and videos.
In a first aspect, an embodiment of the present invention provides a multimedia playing method, including:
determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
In a possible implementation manner, if the next material to be played is a video, the preloading the next material to be played in the multimedia stream in the process of playing the material includes:
and in the process of playing the material, associating the video address of the next material to be played with the video label in the hidden state, and rendering the next material to be played in a silent mode.
In a possible implementation manner, if the currently played material is a picture, the silent rendering of the next material to be played includes:
and rendering the next material to be played in a silent mode according to the playing time length of the currently played material.
In a possible implementation manner, if the currently played material is a video, the silent rendering of the next material to be played includes:
and rendering the next material to be played in a silent mode according to the time length which is less than the playing time length of the next material to be played.
In a possible implementation manner, after the playing of the material is completed, playing a next material to be played includes:
after the material is played, the video label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played again.
In one possible implementation manner, after the next material to be played is played, the method further includes:
and releasing the association relation between the video address of the next material to be played and the video label in the display state, and adjusting the video label from the display state to the hidden state.
In a possible implementation manner, if the next material to be played is a picture, the preloading the next material to be played in the multimedia stream in the process of playing the material includes:
and in the process of playing the material, associating the picture address of the next material to be played with the picture tag in a hidden state, and rendering the next material to be played in a silent mode.
In a possible implementation manner, after the playing of the material is completed, playing a next material to be played includes:
after the material is played, the picture label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played.
In a possible implementation manner, if the currently played material is a video and the material is a first one of the multimedia streams, after the determining the currently played material in the multimedia stream, the method further includes:
determining a thumbnail of the material and a thumbnail address of the thumbnail;
associating the thumbnail address with a picture label in a hidden state, rendering the thumbnail, adjusting the picture label from the hidden state to a display state, and displaying the rendered thumbnail;
in the process of displaying the thumbnail, associating the video address of the material with the video label in the hidden state, and rendering the material in a silent mode;
and replaying the material subjected to silent rendering.
In a second aspect, an embodiment of the present invention provides a multimedia playing system, including:
the system comprises a webpage end, a server end and a mobile terminal;
the webpage side is configured to produce a multimedia stream according to a plurality of materials provided by a user, and determine an HTML file corresponding to the multimedia stream, wherein the multimedia stream is embedded in the HTML file and comprises a plurality of materials which are arranged in sequence;
the server is configured to pack the HTML file and the multimedia stream and store the packed data;
the mobile terminal is configured to acquire the HTML file and the multimedia stream corresponding to the multimedia stream from the packed data, and start a webview to carry the HTML file, so that the webview plays each material in the multimedia stream by calling a playing component;
the mobile terminal is further configured to:
determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
The invention has the following beneficial effects:
the embodiment of the invention provides a multimedia playing method and a multimedia playing system, and the method comprises the steps of firstly, determining a currently played material in a multimedia stream comprising a plurality of sequentially arranged materials to be played, and then preloading a next material to be played in the multimedia stream in the process of playing the material, namely, loading the next material to be played in the multimedia stream in advance.
Drawings
Fig. 1 is a flowchart of a method for playing multimedia according to an embodiment of the present invention;
fig. 2 is a flowchart of a method after step S101 in a multimedia playing method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for playing multimedia according to an embodiment of the present invention;
fig. 4 is a block diagram of a multimedia playing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a multimedia playing system according to an embodiment of the present invention;
fig. 6 is a block diagram of a multimedia playing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. And the embodiments and features of the embodiments may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of the word "comprise" or "comprises", and the like, in the context of this application, is intended to mean that the elements or items listed before that word, in addition to those listed after that word, do not exclude other elements or items.
It should be noted that the sizes and shapes of the figures in the drawings are not to be considered true scale, but are merely intended to schematically illustrate the present invention. And the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout.
In the prior art, an Android Application Package (APK) of a terminal is often developed by adopting a hybrid development mode of embedded webview, and the APK can be applied to an advertisement design and playing system. However, in the process of playing advertisements through webview, pictures and videos are switched back and forth, and the phenomena of low fluency and even black screen occur.
In view of this, embodiments of the present invention provide a multimedia playing method and system, which are used to improve fluency of pictures and videos.
Fig. 1 is a flowchart of a method for playing multimedia according to an embodiment of the present invention, where the method includes:
s101: determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
the currently played material may be any one of a plurality of sequentially arranged materials to be played included in the multimedia stream. The specific number of the plurality of materials to be played in the sequential arrangement included in the multimedia stream may be set according to the actual application requirement, and is not limited herein. The multimedia stream may be an advertisement, which may include four attributes including pictures, video, text, and web pages.
S102: preloading a next material to be played in the multimedia stream in the process of playing the material;
in the process of playing the currently played material, preloading a next material to be played in the multimedia stream, for example, the multimedia stream includes a material a, a material B, and a material C which are sequentially arranged, and in the process of playing the material a, preloading the material B, and in the process of playing the material B, preloading the material C. In addition, the next material to be played can be rendered in advance, and then the next material to be played is preloaded.
S103: and after the material is played, playing the next material to be played.
And after the material is played, playing the next material to be played. Due to the fact that the next material to be played is preloaded in the process of playing the material, the currently played material can be quickly switched to the next material to be played subsequently when the next material to be played is played, and therefore fluency in the process of playing the multimedia stream is improved when the currently played material is switched to the next material to be played, and the multimedia playing effect is guaranteed.
In the embodiment of the present invention, according to the specific attribute of the next material to be played, the following two implementation manners may be used to preload the next material to be played, but the present invention is not limited to the following two implementation manners.
It should be noted that, the playing of each material in the multimedia stream can be controlled by two video tags, i.e., video1 and video2, and two picture tags, i.e., img1 and img2, wherein each tag can have two states, i.e., a hidden state and a displayed state. For example, a video address in the multimedia stream is given to a corresponding video tag, and a video corresponding to the video address can be played, and for example, a picture address in the multimedia stream is given to a corresponding picture tag, and a picture corresponding to the picture address can be played. Therefore, the playing of each material in the multimedia stream can be realized through the video tag and the picture tag. Before playing the multimedia stream, corresponding initialization processing needs to be performed on each video tag and each picture tag, and each video tag and each picture tag are all adjusted to be in a hidden state.
In a first implementation manner, if the next material to be played is a video, step S102: in the process of playing the material, preloading a material to be played next in the multimedia stream, including:
and in the process of playing the material, associating the video address of the next material to be played with the video label in the hidden state, and rendering the next material to be played in a silent mode.
If the next material to be played is a video, in the process of playing the material, the video address of the next material to be played and the video tag in the hidden state can be associated, correspondingly, the next material to be played corresponding to the video address is placed in the video tag, and because the video tag is in the hidden state, the next material to be played can be subjected to silent rendering under the silent state which is not sensed by the user. Because the resources occupied by the video are often large, the time required for directly rendering the video is long, and the silent rendering is carried out on the next played material in the process of playing the material, so that the preloading of the next played material is realized, the fluency of the multimedia stream when the currently played material is switched to the video is improved, and the display effect is ensured.
In this embodiment of the present invention, if the currently played material is a picture and the next material to be played is a video, the silent rendering of the next material to be played includes:
and rendering the next material to be played in a silent mode according to the playing time length of the currently played material.
If the currently played material is a picture and the next material to be played is a video, the next material to be played can be rendered in a silent manner according to the playing duration of the currently played material. The silent rendering may be performed on the next material to be played in a time period during which the currently played material is played, for example, the currently played material is played in a time period a, and correspondingly, the silent rendering is performed on the next material to be played in the time period a. Because the resources occupied by the video are often large, the time required for directly rendering the video is long, and in the process of playing the currently played material, the silent rendering is performed on the next played material according to the playing time of the currently played material, so that the preloading of the next played material is realized, the fluency of the material in the multimedia stream when the video is switched from the picture is improved, and the display effect is ensured.
In this embodiment of the present invention, if the currently played material is a video and the next material to be played is a video, the silent rendering of the next material to be played includes:
and rendering the next material to be played in a silent mode according to the time length which is less than the playing time length of the next material to be played.
If the currently played material is a video and the next material to be played is a video, the next material to be played can be rendered in a silent manner according to the time length which is less than the playing time length of the next material to be played. For example, in the process of playing the currently played material, the next material to be played is loaded for only 500ms, so as to skip the flashing stage of the next material to be played, and ensure the playing effect of the next material to be played. And after 500ms of loading the material to be played next, interrupting the loading of the material to be played next. Because the time length of the silent rendering of the next material to be played is less than the playing time length of the next material to be played, the occupation of resources in the rendering process of the next material to be played is reduced, and the playing efficiency is improved.
In this embodiment of the present invention, if the next material to be played is a video, no matter whether the currently played material is a video or a picture, step S103: after the material is played, playing the next material to be played, including:
after the material is played, the video label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played again.
After the currently played material is played, the video tag can be adjusted from the hidden state to the display state, accordingly, the sound of the next material to be played after silent rendering is opened, and the corresponding progress bar is dragged to the initial position, so that the next material to be played after silent rendering is played again.
In this embodiment of the present invention, after the next material to be played is played, the method further includes:
and releasing the association relation between the video address of the next material to be played and the video label in the display state, and adjusting the video label from the display state to the hidden state.
After the next material to be played is played, the association relationship between the video address of the next material to be played and the video tag in the display state can be released, and accordingly, the material content corresponding to the video address to be played in the next video tag can be emptied, so that the occupation of equipment resources is avoided. Besides, when the association relation is released, the mute can be kept, and the video label is adjusted from the display state to the hidden state. Therefore, the video tag adjusted to the hidden state is convenient for subsequent binding with other video addresses to control subsequent video playing.
It should be noted that, if the currently played material is a video and the next material to be played is also a video, the video tag associated with the video address of the currently played material is different from the video tag associated with the video address of the next material to be played, for example, one of the video tags is video1 and the other video tag is video 2. Therefore, even if two continuous materials to be played are videos, each material is associated with different video tags, so that the video playing of each material is respectively controlled, and the playing performance is improved.
In a second implementation manner, if the next material to be played is a picture, step S102: in the process of playing the material, preloading a material to be played next in the multimedia stream, including:
and in the process of playing the material, associating the picture address of the next material to be played with the picture tag in a hidden state, and rendering the next material to be played in a silent mode.
In the process of playing the material, whether the played material is a video or a picture, the picture address of the next material to be played and the picture tag in the hidden state can be associated, correspondingly, the next material to be played corresponding to the picture address is placed in the picture tag, and the picture tag is in the hidden state, so that in the process of playing the material, the next material to be played can be subjected to silent rendering in a state which is not sensed by a user, preloading of the next material to be played is realized, and therefore, the fluency of the multimedia stream when the current material to be played is switched to the picture is improved, and the display effect is guaranteed.
It should be noted that, if the currently played material is a picture and the next material to be played is also a picture, the picture tags associated with the picture addresses of the currently played material are different from the picture tags associated with the picture addresses of the next material to be played, for example, one of the picture tags is img1 and the other picture tag is img 2. Therefore, even if two continuous materials to be played are pictures, each material is associated with different picture labels, so that the respective control of playing the pictures of each material is realized, and the playing performance is improved.
In addition, because the resources occupied by the pictures are often small, even if the time required for direct rendering is often short, in the actual playing process, when a plurality of materials to be played continuously are all pictures, the picture addresses of the corresponding materials can be associated with the picture tags in the hidden state to realize the playing control of the corresponding materials, and even if the picture tags in the hidden state are associated with and occupied by other picture addresses, the previous picture address associated with the corresponding picture tag can be replaced by the picture address of the material to be played, so that the playing control of the corresponding material is realized.
In the embodiment of the present invention, in the second implementation manner, step S103: after the material is played, playing the next material to be played, including:
after the material is played, the picture label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played.
After the materials are played, the picture labels can be adjusted from the hidden state to the display state, so that the next material to be played after the previous silent rendering can be played.
In the embodiment of the present invention, as shown in fig. 2, if the currently played material is a video and the material is the first material in the multimedia stream, in step S101: after determining the currently played material in the multimedia stream, the method further comprises:
s201: determining a thumbnail of the material and a thumbnail address of the thumbnail;
s202: associating the thumbnail address with a picture label in a hidden state, rendering the thumbnail, adjusting the picture label from the hidden state to a display state, and displaying the rendered thumbnail;
s203: in the process of displaying the thumbnail, associating the video address of the material with the video label in the hidden state, and rendering the material in a silent mode;
s204: and replaying the material subjected to silent rendering.
In the specific implementation process, the specific implementation process from step S201 to step S204 is as follows:
if the currently played material is a video and the material is the first material in the multimedia stream, that is, the currently played material is the first material to be played in the multimedia stream and the material is the video. After determining a material currently played in the multimedia stream, determining a thumbnail of the material and a thumbnail address of the thumbnail, where when the material is a video, the thumbnail of the material may be a first frame image in the video, or may be a key frame image in the video, which is not limited herein. And then, associating the thumbnail address with the picture label in the hidden state, rendering the thumbnail, adjusting the picture label from the hidden state to the display state, and displaying the rendered thumbnail. And then, in the process of displaying the thumbnail, associating the video address of the material with the video label in the hidden state, and rendering the material in a silent mode. In addition, in an initial state, when the first material in the multimedia stream in the related technology is a video, the video often carries a triangle symbol, and if the video is directly played, the use experience of a user is seriously influenced.
In the process of displaying the thumbnail, associating the video address of the material with the video tag in the hidden state, and accordingly, placing the material in the video tag, wherein the video tag is in the hidden state, so that the material can be silently rendered in the process of displaying the thumbnail, and the silently rendering of the material in the silent state can be controlled. That is to say, in the process of shielding by the thumbnail, the video material to be played is subjected to silent rendering, so that the video material to be played is preloaded. After hundreds of milliseconds, the picture tag is adjusted from the display state to the hidden state, and the video tag associated with the video address of the material is adjusted from the hidden state to the display state, accordingly, the sound of the video tag is turned on, the corresponding progress bar is restored to the initial position, and the video material subjected to silent rendering is replayed, so that the black screen phenomenon caused when the first video material in the multimedia stream is directly played in the initial state is avoided, and the playing effect of the video is ensured.
Next, when an advertisement is played, a page has two video tags including video1 and video2 and two picture tags including img1 and img2, where each tag may have two states of a hidden state and a displayed state, the currently played material is, for example, the first material in the multimedia stream, and fig. 3 is a schematic flow chart of a method for controlling playing of the corresponding material. Since the whole process has been described in detail in the foregoing, it is not described herein again.
It should be noted that the multimedia playing method described above may be applied to android mixed playing, and the webview calls the relevant playing component to play each material in the multimedia stream, or may be applied to android native playing, and directly calls the relevant playing component to play each material in the multimedia stream. In practical applications, the material in the multimedia stream can be played in a corresponding manner by combining with the preloading method mentioned in the embodiments of the present invention, which is not described in detail herein.
Based on the same inventive concept, as shown in fig. 4, an embodiment of the present invention further provides a multimedia playing apparatus, including:
the device comprises a determining unit 1, a playing unit and a playing control unit, wherein the determining unit is used for determining currently played materials in a multimedia stream, and the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
the preloading unit 2 is used for preloading a next material to be played in the multimedia stream in the process of playing the material;
and the playing unit 3 is used for playing the next material to be played after the material is played.
Since the principle of the multimedia playing apparatus for solving the problem is similar to the multimedia playing method, the implementation of the multimedia playing apparatus can refer to the implementation of the multimedia playing method, and repeated details are not repeated.
The multimedia playing device provided by the embodiment of the invention can be an advertisement pushing machine and can also be a roadside indicator, correspondingly, the multimedia stream can be an advertisement which needs to be pushed to a user by a corresponding device, and the multimedia playing device can also be any product or part with a multimedia playing function, such as a mobile phone, a tablet personal computer, a television, a notebook computer, a navigator and the like. Other essential components of the multimedia playing device are understood by those skilled in the art, and are not described herein again, nor should they be construed as limiting the present invention.
In one possible implementation manner, if the next material to be played is a video, the preloading unit 2 is configured to:
and in the process of playing the material, associating the video address of the next material to be played with the video label in the hidden state, and rendering the next material to be played in a silent mode.
In one possible implementation manner, if the currently played material is a picture, the preloading unit 2 is configured to:
and rendering the next material to be played in a silent mode according to the playing time length of the currently played material.
In one possible implementation manner, if the currently played material is a video, the preloading unit 2 is configured to:
and rendering the next material to be played in a silent mode according to the time length which is less than the playing time length of the next material to be played.
In one possible implementation manner, the playing unit 3 is configured to:
after the material is played, the video label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played again.
In one possible implementation manner, after the next material to be played is played, the apparatus further includes a release unit, where the release unit is configured to:
and releasing the association relation between the video address of the next material to be played and the video label in the display state, and adjusting the video label from the display state to the hidden state.
In one possible implementation manner, if the next material to be played is a picture, the preloading unit 2 is configured to:
and in the process of playing the material, associating the picture address of the next material to be played with the picture tag in a hidden state, and rendering the next material to be played in a silent mode.
In one possible implementation manner, the playing unit 3 is configured to:
after the material is played, the picture label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played.
In one possible implementation manner, if the currently played material is a video and the material is the first material in the multimedia stream, after the determining unit is configured to determine the currently played material in the multimedia stream, the playing unit 3 is further configured to:
determining a thumbnail of the material and a thumbnail address of the thumbnail;
associating the thumbnail address with a picture label in a hidden state, rendering the thumbnail, adjusting the picture label from the hidden state to a display state, and displaying the rendered thumbnail;
in the process of displaying the thumbnail, associating the video address of the material with the video label in the hidden state, and rendering the material in a silent mode;
and replaying the material subjected to silent rendering.
Based on the same inventive concept, as shown in fig. 5, an embodiment of the present invention further provides a multimedia playing system, including:
the webpage end 10, the server end 20 and the mobile terminal 30;
the webpage end 10 is configured to produce a multimedia stream according to a plurality of materials provided by a user, and determine an HTML file corresponding to the multimedia stream, wherein the multimedia stream is embedded in the HTML file, and the multimedia stream includes a plurality of materials arranged in sequence;
the server 20 is configured to pack the HTML file and the multimedia stream, and store the packed data;
the mobile terminal 30 is configured to obtain the HTML file and the multimedia stream corresponding to the multimedia stream from the packed data, and start a webview to carry the HTML file, so that the webview plays each material in the multimedia stream by calling a playing component;
the mobile terminal 30 is further configured to:
determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
In a specific implementation process, the web page 10 is configured to produce a multimedia stream according to a plurality of materials provided by a user, determine a hypertext Markup Language (HTML) file corresponding to the multimedia stream, where the multimedia stream may be embedded in the HTML file, the multimedia stream includes a plurality of materials arranged in sequence, where "sequence" represents a sequence to be played, and a playlist representing the sequence to be played of each material in the multimedia stream may be embedded in the HTML file. Therefore, the user can make the corresponding multimedia stream on the webpage according to the actual requirement, and the personalized playing requirement of the user is ensured.
The server 20 is configured to pack the HTML file and the multimedia stream, and store the packed data, that is, the server can be used to pack all pictures and video materials used by the HTML file and the multimedia stream.
The mobile terminal 30 is configured to obtain the HTML file and the multimedia stream corresponding to the multimedia stream from the packaged data, where the HTML file, the multimedia stream, and all the materials included in the multimedia stream may be obtained by the mobile terminal, and then the mobile terminal starts a webview to carry the HTML file, so that the webview may play each material in the multimedia stream by calling a playing component.
The mobile terminal 30 may be a terminal based on an android operating system, and the mobile terminal 30 may be an advertisement push machine, and may also be a product or a component having a playing function, such as a roadside indicator.
The multimedia playing system further includes a verification gateway 40, where the verification gateway 40 is configured to verify the legitimacy of the web page 10 and the mobile terminal 30, if the web page 10 is legal, the web page 10 may produce a corresponding multimedia stream, and if the mobile terminal 30 is legal, the mobile terminal 30 may perform playing management on the multimedia stream. In addition, the verification gateway 40 verifies the validity of the web page 10, which may be verification of login identity of an administrator, the verification gateway 40 verifies the validity of the mobile terminal 30, which may be verification of registration information of the mobile terminal 30, and of course, other methods may be used for verification according to actual application needs, which is not limited herein.
Since the principle of the multimedia playing system for solving the problem is similar to the multimedia playing method, the implementation of the multimedia playing system can refer to the implementation of the multimedia playing method, and repeated details are not repeated.
Based on the same inventive concept, as shown in fig. 6, an embodiment of the present invention further provides a multimedia playing apparatus, including:
a memory 100 and a processor 200;
wherein the memory 100 is used for storing a computer program;
the processor 200 is configured to execute the computer program in the memory 100 to implement the steps comprising:
playing the material;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
Alternatively, the processor 200 may be a central processing unit, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
Alternatively, the Memory 100 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 100 is used for storing data required by the processor 200 during operation, i.e. storing a computer program executable by the processor 200, and the processor 200 executes the method shown in fig. 1 by executing the computer program stored in the memory 100. The number of the memory 100 is one or more, and the number of the processor 200 is one or more.
The apparatus may be configured to perform the method provided in the embodiment shown in fig. 1, for example: determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged; preloading a next material to be played in the multimedia stream in the process of playing the material; and after the material is played, playing the next material to be played. Therefore, regarding the functions that can be realized by the functional modules in the apparatus, reference may be made to the corresponding description in the embodiment shown in fig. 1, which is not repeated herein.
The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions run on a computer, the computer is enabled to execute the foregoing multimedia playing method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A multimedia playing method, comprising:
determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
2. The method of claim 1, wherein if the next material to be played is a video, the preloading the next material to be played in the multimedia stream during the playing of the material comprises:
and in the process of playing the material, associating the video address of the next material to be played with the video label in the hidden state, and rendering the next material to be played in a silent mode.
3. The method of claim 2, wherein if the currently played material is a picture, the silent rendering of the next material to be played comprises:
and rendering the next material to be played in a silent mode according to the playing time length of the currently played material.
4. The method of claim 2, wherein if the currently played material is a video, the silent rendering of the next material to be played comprises:
and rendering the next material to be played in a silent mode according to the time length which is less than the playing time length of the next material to be played.
5. The method according to claim 3 or 4, wherein playing the next material to be played after the playing of the material is completed comprises:
after the material is played, the video label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played again.
6. The method of claim 5, wherein after the next material to be played is played, the method further comprises:
and releasing the association relation between the video address of the next material to be played and the video label in the display state, and adjusting the video label from the display state to the hidden state.
7. The method of claim 1, wherein if the next material to be played is a picture, the preloading the next material to be played in the multimedia stream during the playing of the material comprises:
and in the process of playing the material, associating the picture address of the next material to be played with the picture tag in a hidden state, and rendering the next material to be played in a silent mode.
8. The method of claim 7, wherein playing the next material to be played after the playing of the material is completed comprises:
after the material is played, the picture label is adjusted from the hidden state to the display state, and the material to be played next after silent rendering is played.
9. The method of any of claims 1-4 and 6-8, wherein if the currently playing material is a video and the material is the first of the multimedia streams, after the determining the currently playing material in the multimedia stream, the method further comprises:
determining a thumbnail of the material and a thumbnail address of the thumbnail;
associating the thumbnail address with a picture label in a hidden state, rendering the thumbnail, adjusting the picture label from the hidden state to a display state, and displaying the rendered thumbnail;
in the process of displaying the thumbnail, associating the video address of the material with the video label in the hidden state, and rendering the material in a silent mode;
and replaying the material subjected to silent rendering.
10. A multimedia playback system, comprising:
the system comprises a webpage end, a server end and a mobile terminal;
the webpage side is configured to produce a multimedia stream according to a plurality of materials provided by a user, and determine an HTML file corresponding to the multimedia stream, wherein the multimedia stream is embedded in the HTML file and comprises a plurality of materials which are arranged in sequence;
the server is configured to pack the HTML file and the multimedia stream and store the packed data;
the mobile terminal is configured to acquire the HTML file and the multimedia stream corresponding to the multimedia stream from the packed data, and start a webview to carry the HTML file, so that the webview plays each material in the multimedia stream by calling a playing component;
the mobile terminal is further configured to:
determining currently played materials in a multimedia stream, wherein the multimedia stream comprises a plurality of materials to be played which are sequentially arranged;
preloading a next material to be played in the multimedia stream in the process of playing the material;
and after the material is played, playing the next material to be played.
CN202110975949.3A 2021-08-24 2021-08-24 Multimedia playing method and system Pending CN113691865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110975949.3A CN113691865A (en) 2021-08-24 2021-08-24 Multimedia playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110975949.3A CN113691865A (en) 2021-08-24 2021-08-24 Multimedia playing method and system

Publications (1)

Publication Number Publication Date
CN113691865A true CN113691865A (en) 2021-11-23

Family

ID=78581966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110975949.3A Pending CN113691865A (en) 2021-08-24 2021-08-24 Multimedia playing method and system

Country Status (1)

Country Link
CN (1) CN113691865A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023125467A1 (en) * 2021-12-30 2023-07-06 北京字跳网络技术有限公司 Image processing method and apparatus, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648027A (en) * 2013-12-04 2014-03-19 福建星网视易信息***有限公司 Digital media terminal and media file play method
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium
CN110032702A (en) * 2019-04-08 2019-07-19 腾讯科技(深圳)有限公司 Webpage display process, device, equipment and storage medium
CN110784747A (en) * 2019-12-06 2020-02-11 成都新潮传媒集团有限公司 Synchronous playing method of advertisement player
CN111552473A (en) * 2020-04-27 2020-08-18 腾讯科技(深圳)有限公司 Application processing method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648027A (en) * 2013-12-04 2014-03-19 福建星网视易信息***有限公司 Digital media terminal and media file play method
CN109753617A (en) * 2019-01-14 2019-05-14 广州虎牙信息科技有限公司 A kind of page display method, equipment and storage medium
CN110032702A (en) * 2019-04-08 2019-07-19 腾讯科技(深圳)有限公司 Webpage display process, device, equipment and storage medium
CN110784747A (en) * 2019-12-06 2020-02-11 成都新潮传媒集团有限公司 Synchronous playing method of advertisement player
CN111552473A (en) * 2020-04-27 2020-08-18 腾讯科技(深圳)有限公司 Application processing method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023125467A1 (en) * 2021-12-30 2023-07-06 北京字跳网络技术有限公司 Image processing method and apparatus, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN108066986B (en) Streaming media determining method and device and storage medium
JP6469313B2 (en) Information processing method, terminal, and computer storage medium
US11620784B2 (en) Virtual scene display method and apparatus, and storage medium
CN108320319B (en) Cartoon synthesis method, device and equipment and computer readable storage medium
US10319411B2 (en) Device and method for playing an interactive audiovisual movie
CN108427589B (en) Data processing method and electronic equipment
US10257563B2 (en) Automatic generation of network pages from extracted media content
WO2022068639A1 (en) Method, apparatus, and device for video-based interaction, and storage medium
CN107295376A (en) Merging method, device and the jettison system of advertisement of advertisement and positive
US20230128553A1 (en) Multimedia information display method and apparatus, electronic device, and storage medium
CN112637623A (en) Live broadcast processing method and device and electronic equipment
CN113691865A (en) Multimedia playing method and system
CA2786098A1 (en) System and method for remote presentation provision
CN113254822A (en) Object editing method and device, electronic equipment and storage medium
CN104933592B (en) Mobile memory medium comprising the composite content for being combined with advertising message and utilize its advertising method
CN116049453A (en) Picture set playing method and device, equipment and medium thereof
CN115412536A (en) Content display method and device, electronic equipment and readable storage medium
CN110968373A (en) Page switching implementation method and device, storage medium and processor
CN115134663A (en) Information display method, device and system and electronic equipment
CN111901620B (en) Live playback video generation method and device, electronic equipment and storage medium
CN112738562B (en) Method, device and computer storage medium for transparent display of browser page
RU2739262C1 (en) Information presentation control method
CN114567806A (en) Cross-page switching method and system
CN114282081A (en) Media file display processing method and device, electronic equipment and readable storage medium
CN110351599B (en) Animation file playing method and device and terminal equipment

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