CN111954041A - Video loading method, computer equipment and readable storage medium - Google Patents

Video loading method, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111954041A
CN111954041A CN201910407049.1A CN201910407049A CN111954041A CN 111954041 A CN111954041 A CN 111954041A CN 201910407049 A CN201910407049 A CN 201910407049A CN 111954041 A CN111954041 A CN 111954041A
Authority
CN
China
Prior art keywords
information
playing
video
loading
component
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
CN201910407049.1A
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201910407049.1A priority Critical patent/CN111954041A/en
Publication of CN111954041A publication Critical patent/CN111954041A/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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • 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/8166Monomedia components thereof involving executable data, e.g. software
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention discloses a video loading method, computer equipment and a readable storage medium, and belongs to the field of internet. After the playing request is obtained, the player can be called according to the playing request to obtain the playing information corresponding to the playing request, the player is adopted to analyze the playing information and load the playing information in advance, the time for loading all the display information is shortened, the experience effect of a user is improved, and after the player plays the first frame data of the playing information, the live broadcast assembly is loaded, so that all the display information is displayed in the playing interface. According to the technical scheme, the playing information is loaded in advance before all the information is not loaded, so that a user can feel the played content in advance before all the pages are not loaded, and the purpose of improving the interactive experience of the user is achieved.

Description

Video loading method, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of internet, and in particular, to a video loading method, a computer device, and a readable storage medium.
Background
With the development of internet technology, people using the internet to watch live broadcast have gradually become popular. People often find that the live broadcast platform has too long loading time for live broadcast video in a live broadcast room when watching live broadcast video, and a user who opens the live broadcast room for the first time and watches the video usually needs to wait for several seconds to watch live broadcast pictures. This phenomenon is particularly noticeable when the user's net speed is poor.
The reason that the video initialization loading speed of the live broadcast room is too low is mainly that after all information of video information, audio information, attention information, gift information, barrage information and publishing information needs to be acquired, a display interface is loaded, time consumption is long, and watching experience of a user is influenced.
Disclosure of Invention
Aiming at the problem of low video initialization speed of the existing live broadcast room, a video loading method, computer equipment and a readable storage medium which aim at quick loading are provided.
The invention provides a video loading method, which comprises the following steps:
acquiring a playing request, calling a player according to the playing request, and acquiring playing information corresponding to the playing request;
adopting the player to analyze the playing information and loading the playing information;
and after the player plays the first frame data of the playing information, loading a live broadcast component.
Preferably, the obtaining of the playing information corresponding to the playing request includes:
and pulling the network state of the optimal node by adopting a video loading protocol to acquire the playing information corresponding to the playing request.
Preferably, the step of, in response to acquiring the playing information, analyzing the playing information by using the player and loading the playing information, includes:
analyzing the playing information by adopting the player;
and loading and correcting the playing information.
Preferably, the playing information includes: video information and audio information.
Preferably, the step of parsing the playing information by using the player includes:
and analyzing the image of the video information by adopting a Metal interface.
Preferably, the step of loading and correcting the playing information includes:
video information or audio information in the playing information is preloaded according to the analyzed sequence;
and aligning the time stamp of the first type of information loaded in advance and the time stamp of the second type of information loaded subsequently, and playing the playing information.
Preferably, when the first type of information is audio information, before loading the second type of information, that is, video information, the method includes:
and acquiring a key frame picture of the latest time period, and playing the key frame picture before loading the first frame data.
Preferably, the step of loading and correcting the playing information includes:
and correcting the playing mode of the current playing interface according to the playing mode of the playing information, and loading the playing information.
Preferably, the first frame data is video first frame data.
Preferably, the live component is selected from at least one of: the system comprises an entrance special effect component, a bullet screen component, a contribution list component, a ranking list component, an attention component, a skin component, a prop component and a notice component.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program characterized in that: which when executed by a processor implements the steps of the above-described method.
The beneficial effects of the above technical scheme are that:
according to the technical scheme, after the playing request is obtained, the player can be called according to the playing request to obtain the playing information corresponding to the playing request, the player is adopted to analyze the playing information and load the playing information in advance, the time for loading all the display information is shortened, the experience effect of a user is improved, and after the player plays the first frame data of the playing information, the live broadcast assembly is loaded, so that all the display information is displayed in the playing interface. According to the technical scheme, the playing information is loaded in advance before all the information is not loaded, so that the initialization of the client is completed, a user can feel the played content in advance before all the pages are not loaded, and the purpose of improving the user interaction experience is achieved.
Drawings
FIG. 1 is a block diagram of one embodiment of a system block diagram for video loading in accordance with the present invention;
FIG. 2 is a flowchart of a video loading method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for parsing and loading playback information according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for loading and correcting playback information according to an embodiment of the present invention;
FIG. 5 is a diagram of an embodiment of a Gaussian blur pattern picture;
FIG. 6 is a diagram of another embodiment of a Gaussian blur pattern picture;
FIG. 7 is a block diagram of one embodiment of a video loading system according to the present invention;
fig. 8 is a schematic hardware structure diagram of a computer device for executing a video loading method according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present invention and to distinguish each step, and thus should not be construed as limiting the present invention.
The video of the embodiment of the application may be presented on clients such as large-scale video playing devices, game machines, desktop computers, smart phones, tablet computers, MP3(movingpicture expeerpercgroupandioudiolayer iii) players, MP4(movingpicture expeerpercgroupandioudiolayer rlv) players, laptop portable computers, e-book readers, and other display terminals.
The video in the embodiment of the application can be applied to not only the video playing program of the match type, but also any application scene capable of presenting the video, for example, the video can be applied to some job-seeking programs, some relatives, entertainment programs of multi-party confrontation, and the like. The embodiment of the present application takes the application of the video to the football-like live video playing program as an example, but is not limited to this.
In the embodiment of the application, a user at a live broadcast end (i.e., a stream push end) can send live broadcast information to each watching end (i.e., a stream pull end) through the server after processing the live broadcast information, and each watching end plays the live broadcast information again. Referring to fig. 1, fig. 1 is a system architecture diagram of video loading according to an embodiment of the present application. As shown in fig. 1, a user a transmits live broadcast information to a server W through a wireless network, users B and C watch live broadcast video of the user a through the wireless network, and users D and E watch live broadcast video of the user a through a wired network and transmit respective barrage information to the server W. Only one server W is shown here, and the application scenario here may also include multiple servers in communication with each other. The server W may be a cloud server or a local server. In the embodiment of the present application, the server W is placed on the cloud side. If the user A sends the live broadcast information, the server W processes the live broadcast information and forwards the live broadcast information to the user A, the user B, the user C, the user D and the user E. It should be noted that: the device of the user a is not limited to the illustrated mobile device, and all intelligent terminals capable of performing push streaming/live broadcasting are applicable.
The invention provides a video loading method for solving the defect of low initial loading speed of the existing client. Referring to fig. 2, which is a schematic flow chart of a video loading method according to a preferred embodiment of the present invention, it can be seen that the video loading method provided in this embodiment mainly includes the following steps:
s1, acquiring a playing request, calling a player according to the playing request, and acquiring playing information corresponding to the playing request;
before a player of an existing client executes a playing operation, the player needs to request a playing address from a live broadcast server according to a playing request triggered by a user, the live broadcast server analyzes the playing address through an operator server and then sends the playing address to the player, and the player acquires corresponding playing information according to the playing address. The process of obtaining the playing address consumes long time due to the complex process, thereby prolonging the time for initializing the client. The playing request in this step includes the playing address, and the player can directly acquire the playing information according to the playing address, so that the time for acquiring the playing address is saved, namely the time for initializing the client is shortened.
It should be noted that, the obtaining of the playing information corresponding to the playing request may include:
and pulling the network state of the optimal node by adopting a video loading protocol to acquire the playing information corresponding to the playing request. The video loading protocol may include parameters such as network status (e.g., network _ status, display _ network _ status), play address (e.g., display _ h264, display _ h265), horizontal/vertical screen status (broadcast _ type), and extensible parameters (extra _ parameters). The Network state when the optimal node is pulled according to the Network condition parameters, an external Router (Router) jumps to a live broadcast room according to a video loading protocol, a process of loading the broadcast information is executed, namely, the broadcast address is not required to be pulled again, the broadcast address is the optimal node of a Content Delivery Network (CDN), the time for pulling the broadcast address is shortened, and the purpose of accelerating the loading of the broadcast information is achieved.
S2, analyzing the playing information by adopting the player and loading the playing information;
wherein the playing information may include: video information, and/or audio information.
The existing client needs to control the player to execute playing operation after acquiring all loading information (such as playing information, entrance special effect information, barrage information, property information, announcement information and the like), which consumes long time and has poor experience effect for users. In this step, in order to shorten the waiting time before playing the information, the player is adopted to preferentially load the video information and the audio information, and the video information and the audio information are played first, so as to improve the interaction effect of the user.
In practical application, the video information and the audio information can be loaded at the same time preferentially. Any type of information, video information and audio information, may also be preferentially loaded.
As shown in fig. 3, the step of acquiring the play information response, parsing the play information by using the player and loading the play information in the step S2 includes:
s21, analyzing playing information by using the player;
by way of example, and not limitation, step S21 may include:
and analyzing the image of the video information by adopting a Metal interface, thereby improving the image rendering speed.
The Metal interface is a low-level rendering application programming interface, provides the lowest level required by software, and ensures that the software can run on different graphic chips. The Metal improves the processor performance and can fully exert the performance.
The central processing unit or the graphic processor may also be used to parse the image of the video information at step S21.
And S22, loading and correcting the playing information.
Referring to fig. 4, the step of loading and correcting the playing information in step S22 may specifically include:
s221, video information or audio information in the playing information is preloaded according to the analyzed sequence;
s222, aligning the time stamp of the first type of information loaded in advance with the time stamp of the second type of information loaded subsequently, and playing the playing information.
It should be noted that, when the first type of information is video information, the second type of information is audio information; when the first type of information is audio information, the second type of information is video information. The above-mentioned timestamp alignment method is a technical method recognized in the industry.
In order to ensure the playing synchronization of the video information and the audio information, after one type of information is loaded in advance, the time stamp of the video information needs to be aligned with the time stamp of the audio information, so as to ensure the consistency of the other type of information loaded and played subsequently with the previous type of information in time sequence.
When the first type information is audio information, before loading the second type information, i.e. video information in step S22, the method may include:
and acquiring a key frame picture of the latest time period, and playing the key frame picture before loading the first frame data. It should be noted that: the key frame pictures in the recent time period are live broadcast room pictures corresponding to the play request and presented in the live broadcast list page when the user triggers the play request through the client, and before the first frame of video data appears, the gaussian fuzzy pattern of the pictures is displayed (as shown in fig. 5 and 6), so that the user experience is improved. The key frame picture can also be a cover picture of a live broadcast room corresponding to the playing request.
The step of loading and correcting the playing information in step S23 may further include:
and correcting the playing mode of the current playing interface according to the playing mode of the playing information, and loading the playing information.
Considering that a user has two states of a horizontal screen and a vertical screen when watching a live broadcast, in order to prevent the play mode of the loaded video information from being inconsistent with the play mode of the play interface (namely the play interface is the horizontal screen and the loaded video is the vertical screen, or the play interface is the vertical screen and the loaded video is the horizontal screen), the page live broadcast mode of the current main broadcast end can be obtained before the loaded video information, and the play mode of the client play interface is switched to the play interface consistent with the live broadcast mode of the live broadcast end according to the live broadcast mode so as to adapt to the current live broadcast mode and keep the play video interface consistent with the live broadcast video interface mode.
And S3, after the player plays the first frame data of the playing information, loading a live broadcast assembly.
Wherein the live component may be selected from at least one of: the system comprises components such as an entrance special effect component, a bullet screen component, a contribution list component, a ranking list component, an attention component, a skin component, a prop component and a notice component.
It should be noted that the first frame data is video first frame data.
In this embodiment, after the play request is obtained, the player may be called according to the play request to obtain the play information corresponding to the play request, and the player is adopted to analyze the play information and pre-load the play information, so that the time for loading all the display information is shortened, and the experience effect of the user is improved. According to the technical scheme, the playing information is loaded in advance before all the information is not loaded, so that the initialization of the client is completed, a user can feel the played content in advance before all the pages are not loaded, and the purpose of improving the user interaction experience is achieved.
As shown in fig. 7, a video loading system 1 includes: a play unit 11 and a loading unit 12, wherein:
the playing unit 11 is configured to obtain a playing request, call a player according to the playing request, and obtain playing information corresponding to the playing request;
it should be noted that, the obtaining of the playing information corresponding to the playing request may include:
and pulling the network state of the optimal node by adopting a video loading protocol to acquire the playing information corresponding to the playing request.
Before a player of an existing client executes a playing operation, the player needs to request a playing address from a live broadcast server according to a playing request triggered by a user, the live broadcast server analyzes the playing address through an operator server and then sends the playing address to the player, and the player acquires corresponding playing information according to the playing address. The process of obtaining the playing address takes long time, thereby prolonging the time of client initialization. In the embodiment, the playing request obtained by the playing unit 11 includes the playing address, and the player can directly obtain the playing information according to the playing address, so that the time for obtaining the playing address is saved, that is, the time for initializing the client is shortened.
A loading unit 12, configured to analyze the playing information by using the player and load the playing information;
wherein the playing information may include: video information, and/or audio information.
The loading unit 12 may pre-load the video information or the audio information in the playing information according to the analyzed sequence; and aligning the time stamp of the first type of information loaded in advance and the time stamp of the second type of information loaded subsequently, and playing the playing information.
It should be noted that: the above-mentioned timestamp alignment method is a technical method recognized in the industry.
In order to ensure the playing synchronization of the video information and the audio information, after one type of information is loaded in advance, the time stamp of the video information needs to be aligned with the time stamp of the audio information, so as to ensure the consistency of the other type of information loaded and played subsequently with the previous type of information in time sequence.
The loading unit 12 may acquire the key frame picture in the latest time period before loading the second type of information, that is, the video information, and play the key frame picture before loading the first frame data. It should be noted that: the key frame pictures in the recent time period are live broadcast room pictures corresponding to the play request and presented in the live broadcast list page when the user triggers the play request through the client, and before the first frame of video data appears, the gaussian fuzzy pattern of the pictures is displayed (as shown in fig. 5 and 6), so that the user experience is improved. The key frame picture can also be a cover picture of a live broadcast room corresponding to the playing request.
The loading unit 12 is further configured to load a live component after the player plays the first frame data of the playing information.
Wherein the live component may be selected from at least one of: the system comprises an entrance special effect component, a bullet screen component, a contribution list component, a ranking list component, an attention component, a skin component, a prop component and a notice component.
It should be noted that the first frame data is video first frame data.
In this embodiment, after the play request is obtained, the player may be called according to the play request to obtain the play information corresponding to the play request, and the player is adopted to analyze the play information and pre-load the play information, so that the time for loading all the display information is shortened, and the experience effect of the user is improved. According to the technical scheme, the playing information is loaded in advance before all the information is not loaded, so that a user can feel the played content in advance before all the pages are not loaded, and the purpose of improving the interactive experience of the user is achieved.
As shown in fig. 8, a computer device 2, the computer device 2 comprising:
a memory 21 for storing executable program code; and
a processor 22 for calling the executable program code in the memory 21, the execution steps including the above-mentioned video loading method.
In fig. 8, one processor 22 is taken as an example.
The memory 21, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the video loading method in the embodiment of the present application (for example, the playing unit 11 and the loading unit 12 shown in fig. 7). The processor 22 executes various functional applications and data processing of the computer device 2 by executing the nonvolatile software programs, instructions and modules stored in the memory 21, namely, implements the video loading method of the above-described method embodiment.
The memory 21 may include a program storage area and a data storage area, wherein the program storage area may store an application program required for at least one function of the operating system; the storage data area may store playback information of the user on the computer device 2. Further, the memory 21 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 21 optionally includes memory 21 located remotely from the processor 22, and these remote memories 21 may be connected to the video loading system 1 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 21, and when executed by the one or more processors 22, perform the video loading method in any of the above-described method embodiments, for example, perform the above-described method steps S1 to S3 in fig. 2, method steps S21 to S22 in fig. 3, and method steps S221 to S222 in fig. 4, and implement the functions of the playback unit 11 and the loading unit 12 shown in fig. 7.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The computer device 2 of the embodiment of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
The present embodiment provides a non-volatile computer-readable storage medium, which stores computer-executable instructions, which are executed by one or more processors, such as one processor 22 in fig. 8, so that the one or more processors 22 may execute the video loading method in any of the above method embodiments, for example, execute the above-described method steps S1 to S3 in fig. 2, method steps S21 to S22 in fig. 3, and method steps S221 to S222 in fig. 4, so as to implement the functions of the playback unit 11 and the loading unit 12 shown in fig. 7.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on at least two network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The first embodiment,
The video loading method can be applied to a main broadcasting end, and after a user initiates a live broadcasting request through the main broadcasting end, the main broadcasting end can call a player according to the playing request; video information of a user is collected through a camera, audio information of the user is collected through a microphone, the video information and the audio information are synthesized into a video streaming media file and uploaded to a server, and therefore live broadcast operation of the live broadcast server is facilitated; after the anchor terminal acquires the playing information fed back by the server, the player is adopted to analyze and load the playing information, and the playing mode of the current playing interface is corrected according to the playing mode of the playing information so as to ensure that the playing mode of the first frame of video information is adaptive to the playing and playing of the current live broadcast terminal, and if the playing mode of the first frame of video information is inconsistent with the playing and playing of the current live broadcast terminal, the corrected first frame of video information is played; if the video information is consistent with the video information, playing the first frame of video information, and loading other live broadcast components, such as: a gift component, a barrage component, an attention component, a public announcement component, and the like.
Example II,
The video loading method can be applied to a pull stream end, and after a user of the pull stream end initiates a live broadcast request to a server, the pull stream end can call a player to initialize a cache region of the player according to the play request; after the stream pulling end acquires the playing information fed back by the server, the player is adopted to analyze and load the playing information, and the playing mode of the current playing interface is corrected according to the playing mode of the playing information so as to ensure that the playing mode of the first frame of video information is adaptive to the playing and playing of the current live broadcast end, and if the playing mode of the first frame of video information is inconsistent with the playing and playing of the current live broadcast end, the corrected first frame of video information is played; if the video information is consistent with the video information, playing the first frame of video information, and loading other live broadcast components, such as: a gift component, a barrage component, an attention component, a public announcement component, and the like.
It should be noted that the video loading method can be applied not only to a live scene, but also to a carousel scene or a closed-play scene.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A video loading method, comprising the steps of:
acquiring a playing request, calling a player according to the playing request, and acquiring playing information corresponding to the playing request;
adopting the player to analyze the playing information and loading the playing information;
and after the player plays the first frame data of the playing information, loading a live broadcast component.
2. The video loading method according to claim 1, wherein obtaining the playing information corresponding to the playing request comprises:
and pulling the network state of the optimal node by adopting a video loading protocol to acquire the playing information corresponding to the playing request.
3. The video loading method according to claim 1, wherein the step of parsing the playing information and loading the playing information by using the player comprises:
analyzing the playing information by adopting the player;
and loading and correcting the playing information.
4. The video loading method according to claim 1, 2 or 3, wherein the playback information comprises: video information and audio information.
5. The video loading method according to claim 3, wherein the step of parsing the playing information by using the player comprises:
and analyzing the image of the video information by adopting a Metal interface.
6. The video loading method according to claim 4, wherein the step of loading and correcting the playback information comprises:
video information or audio information in the playing information is preloaded according to the analyzed sequence;
and aligning the time stamp of the first type of information loaded in advance and the time stamp of the second type of information loaded subsequently, and playing the playing information.
7. The video loading method according to claim 6, wherein when the first type of information is audio information, before loading the second type of information, i.e. video information, the method comprises:
and acquiring a key frame picture of the latest time period, and playing the key frame picture before loading the first frame data.
8. The video loading method according to claim 4, wherein the step of loading and correcting the playback information comprises:
and correcting the playing mode of the current playing interface according to the playing mode of the playing information, and loading the playing information.
9. The video loading method according to claim 1, wherein the first frame data is video first frame data.
10. The video loading method of claim 1, wherein the live component is selected from at least one of: the system comprises an entrance special effect component, a bullet screen component, a contribution list component, a ranking list component, an attention component, a skin component, a prop component and a notice component.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 10 when executing the computer program.
12. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 10.
CN201910407049.1A 2019-05-15 2019-05-15 Video loading method, computer equipment and readable storage medium Pending CN111954041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910407049.1A CN111954041A (en) 2019-05-15 2019-05-15 Video loading method, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910407049.1A CN111954041A (en) 2019-05-15 2019-05-15 Video loading method, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111954041A true CN111954041A (en) 2020-11-17

Family

ID=73335523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910407049.1A Pending CN111954041A (en) 2019-05-15 2019-05-15 Video loading method, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111954041A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764870A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Ranking list obtaining method and device, electronic equipment and storage medium
CN112770168A (en) * 2020-12-23 2021-05-07 广州虎牙科技有限公司 Video playing method and related device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185929A1 (en) * 2004-02-21 2005-08-25 Samsung Electronics Co., Ltd Information storage medium having recorded thereon text subtitle data synchronized with AV data, and reproducing method and apparatus therefor
CN107911709A (en) * 2017-11-17 2018-04-13 广州酷狗计算机科技有限公司 live interface display method, device and terminal
CN107920281A (en) * 2016-10-08 2018-04-17 北京小唱科技有限公司 A kind of network direct broadcasting video loading method and terminal
CN108683957A (en) * 2018-04-25 2018-10-19 北京酷我科技有限公司 A kind of method and system of quick displaying live video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185929A1 (en) * 2004-02-21 2005-08-25 Samsung Electronics Co., Ltd Information storage medium having recorded thereon text subtitle data synchronized with AV data, and reproducing method and apparatus therefor
CN107920281A (en) * 2016-10-08 2018-04-17 北京小唱科技有限公司 A kind of network direct broadcasting video loading method and terminal
CN107911709A (en) * 2017-11-17 2018-04-13 广州酷狗计算机科技有限公司 live interface display method, device and terminal
CN108683957A (en) * 2018-04-25 2018-10-19 北京酷我科技有限公司 A kind of method and system of quick displaying live video

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770168A (en) * 2020-12-23 2021-05-07 广州虎牙科技有限公司 Video playing method and related device and equipment
CN112770168B (en) * 2020-12-23 2023-10-17 广州虎牙科技有限公司 Video playing method, related device and equipment
CN112764870A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Ranking list obtaining method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109547819B (en) Live list display method and device and electronic equipment
US11025967B2 (en) Method for inserting information push into live video streaming, server, and terminal
US10929460B2 (en) Method and apparatus for storing resource and electronic device
CN113038287B (en) Method and device for realizing multi-user video live broadcast service and computer equipment
CN109309842B (en) Live broadcast data processing method and device, computer equipment and storage medium
US20170171278A1 (en) Method and electronic device for continuously playing video
CN108769816B (en) Video playing method, device and storage medium
CN111083517B (en) Live broadcast room interaction method and device, electronic equipment, system and storage medium
US20170163702A1 (en) Android platform-based multimedia processing method and electronic device
CN114040243B (en) Live broadcasting room video playing method and device
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN112019905A (en) Live broadcast playback method, computer equipment and readable storage medium
US20170171277A1 (en) Method and electronic device for multimedia recommendation based on android platform
EP2903260A1 (en) Multi-speed playing method, device and system
CN106470353B (en) Multimedia data processing method and device and electronic equipment
CN111954041A (en) Video loading method, computer equipment and readable storage medium
CN112312145B (en) Access server, burst traffic caching method, system, computer device and readable storage medium
CN113873316B (en) Live broadcasting room video playing method and device
CN112492324A (en) Data processing method and system
CN112770168B (en) Video playing method, related device and equipment
CN114339444A (en) Method, device and equipment for adjusting playing time of video frame and storage medium
CN113784180A (en) Video display method, video pushing method, video display device, video pushing device, video display equipment and storage medium
CN113824983A (en) Data matching method, device, equipment and computer readable storage medium
US10328336B1 (en) Concurrent game functionality and video content
CN112019906A (en) Live broadcast method, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination