Live broadcast start method, device and program product

By using the start-up fragmentation determined by the preset delay threshold in the DASH protocol, the problem of long start-up time during the start-up process of live streaming is solved, and the terminal can render and play the first frame of the picture with one request, improving user experience.

CN114630157BActive Publication Date: 2024-08-23DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210279320.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2024-08-23
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

In the existing technology, the process of starting a live streaming broadcast requires multiple HTTP requests, resulting in a long start-up time and affecting the user's viewing experience.

Method used

On the basis of the DASH protocol, the start-up fragments are determined by preset delay thresholds, including media presentation description MPD files, initialization fragments and media fragments corresponding to the delay threshold. The server sends them to the terminal in one go, and the terminal uses the fragments Render and play the first frame of the movie.

Benefits of technology

The terminal only needs to initiate a broadcast start request to render and play the first frame, which significantly reduces the broadcast start time and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630157B
    Figure CN114630157B
Patent Text Reader

Abstract

The live broadcast start method, device and program product provided by the embodiments of the present disclosure include: a server will receive a live broadcast start request for streaming media initiated by a terminal, and determine a start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold; the terminal will receive the start segment sent by the server and use the start segment to render the first frame of the streaming media live broadcast; this solution improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, effectively reducing the start time and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of video processing, and in particular to a live broadcast initiation method, device, and program product. Background Art

[0002] With the diversification of entertainment life, streaming live broadcast has become an important part of people's entertainment life. The international standard Dynamic Adaptive Streaming over HTTP (DASH) is a common media resource distribution protocol for streaming live broadcast.

[0003] In the prior art, when a user terminal needs to start live broadcasting of a certain streaming media, it needs to initiate a Media Presentation Description (MPD) request, an Initialization Segment request, and a Media Segment request in sequence based on the DASH protocol. The user terminal can only render and play the first frame of the live broadcast after receiving the response of the live broadcast server to each request. However, the start-up time required for the rendering and playback process of the first frame of the live broadcast is relatively long, which seriously affects the user's viewing experience. Summary of the invention

[0004] In response to the above problems, the embodiments of the present disclosure provide a live broadcast start method, device and program product. The live broadcast start process is improved on the basis of the DASH protocol, so that the user terminal only needs to initiate a live broadcast start request once to achieve the rendering and playback of the first frame of the live broadcast, which effectively reduces the live broadcast start time and improves the user experience.

[0005] In a first aspect, an embodiment of the present disclosure provides a live broadcast start method, which is applied to a server and includes:

[0006] A live broadcast start request for streaming media initiated by a receiving terminal;

[0007] Determine the start segment according to the preset delay threshold; wherein the start segment includes the media presentation description MPD file, the initialization segment, and the media segment corresponding to the delay threshold;

[0008] The start-up segment is sent to the terminal. The start-up segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0009] In a second aspect, an embodiment of the present disclosure provides a live broadcast start method, which is applied to a terminal and includes:

[0010] Send a live streaming start request to the server;

[0011] Receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0012] The start segment is used to render and play the first frame of the streaming media.

[0013] In a third aspect, an embodiment of the present disclosure provides a live broadcast start device, which is applied to a server and includes:

[0014] The first transceiver module is used to receive a request for starting live broadcast of streaming media initiated by a terminal;

[0015] A start segment determination module is used to determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0016] The first transceiver module is also used to send the start segment to the terminal, and the start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0017] According to a fourth aspect, an embodiment of the present disclosure provides a live broadcast start device, which is applied to a terminal and includes:

[0018] The second transceiver module is used to send a live broadcast start request of the streaming media to the server;

[0019] The second transceiver module is also used to receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0020] The playback module is used to render and play the first frame of the streaming media using the start segment.

[0021] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and

[0022] Memory;

[0023] The memory stores computer-executable instructions;

[0024] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method as described in any one of the first aspect or the second aspect.

[0025] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when a processor executes the computer execution instructions, the method as described in any one of the first aspect or the second aspect is implemented.

[0026] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the method described in any one of the first aspect or the second aspect.

[0027] The live broadcast start method, device and program product provided by the embodiments of the present disclosure, wherein the server will receive a live broadcast start request for streaming media initiated by the terminal, and determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold; the terminal will receive the start segment sent by the server and use the start segment to render the first frame of the streaming media live broadcast. The method provided by the embodiments of the present disclosure improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, which effectively reduces the start time and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 A data flow diagram of a live broadcast start method in the prior art;

[0030] Figure 2 A schematic diagram of a network architecture on which the present disclosure is based;

[0031] Figure 3 A flowchart of a live broadcast initiation method provided in an embodiment of the present disclosure;

[0032] Figure 4 A data flow diagram of a live broadcast start method provided in an embodiment of the present disclosure;

[0033] Figure 5 A data flow diagram of another live broadcast start method provided in an embodiment of the present disclosure;

[0034] Figure 6 A flowchart of another live broadcast initiation method provided in an embodiment of the present disclosure;

[0035] Figure 7 A structural block diagram of a live broadcast initiation device provided in an embodiment of the present disclosure;

[0036] Figure 8 A structural block diagram of another live broadcast initiation device provided in an embodiment of the present disclosure;

[0037] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0039] With the diversification of entertainment life, streaming live broadcast has become an important part of people's entertainment life. The international standard Dynamic Adaptive Streaming over HTTP (DASH) is a common media resource distribution protocol for streaming live broadcast.

[0040] In the prior art, when a user terminal needs to play a streaming media on demand, it needs to initiate a Media Presentation Description (MPD) request, an Initialization Segment request, and a Media Segment request in sequence based on the DASH protocol. The user terminal can only render and play the first frame of the current on-demand content after receiving the response of the live broadcast server to each request.

[0041] For example, Figure 1 FIG. 1 is a data flow diagram of a live broadcast start method in the prior art. Figure 1As shown, when the user triggers the live broadcast start operation of the streaming media through the terminal, the terminal will first initiate the first HTTP request to the server to request the MPD file; the server will return the MPD file to the terminal based on the first HTTP request, and the MPD file will include the template and related addresses of the subsequent segments. Then, the terminal will initiate a second HTTP request to the server to request the initialization segment; the server will return the initialization segment to the terminal based on the second HTTP request, and the initialization segment is used to decode the subsequent media segments. Finally, the terminal will initiate a third HTTP request to the server to request the media segment; the server will return the media segment to the terminal based on the third HTTP request, and the media segment includes the relevant screen content of the first frame.

[0042] At this point, the terminal can use the received MPD file, initialization segment and media segment to perform a series of rendering processes to obtain the first frame. At this point, the terminal will display the rendered first frame to the user for viewing, and the streaming media start-up process is completed. Of course, after the start-up process, the terminal will continue to request the relevant content of subsequent frames to enable users to watch streaming media on demand.

[0043] Obviously, if Figure 1 In the existing DASH protocol-based streaming media start-up process shown, the terminal needs to communicate with the server multiple times, and the start-up time is relatively long, which seriously affects the user's viewing experience.

[0044] To address this problem, according to an embodiment of the present disclosure, the live broadcast start process is improved on the basis of the DASH protocol, so that the terminal only needs to initiate a start request once to achieve rendering and playback of the first frame, effectively reducing the start time and improving the user experience.

[0045] refer to Figure 2 , Figure 2 A schematic diagram of a network architecture based on the present disclosure is shown in FIG. Figure 2 The network architecture shown may specifically include a first terminal, a second terminal and a server.

[0046] The first terminal and the second terminal are user terminals respectively, wherein the first terminal may be a terminal used by a user who uploads streaming media, and the second terminal may be a terminal used by a user who orders streaming media. Both the first terminal and the second terminal may be hardware devices with computing, communication and display functions, including but not limited to smart phones, desktop computers, tablet computers, etc.

[0047] Specifically, the server may be a server cluster arranged in the cloud, which provides a storage function of streaming media for streaming media providing users and a video-on-demand function for streaming media on-demand users through communication with the first terminal and the second terminal.

[0048] The live broadcast start method and device provided by the present disclosure are described in detail below through specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0049] It should be noted that the execution subject of the live broadcast start method provided in this embodiment is the aforementioned server. Figure 3 A flowchart of a live broadcast initiation method provided in an embodiment of the present disclosure.

[0050] like Figure 3 As shown, the live broadcast start method may include the following steps:

[0051] Step 301: A request for starting live broadcast of streaming media initiated by a receiving terminal.

[0052] Specifically, for streaming media, it should be uploaded to the server by the user providing the streaming media, and its media form includes but is not limited to: video media, audio media.

[0053] The terminal mentioned in this embodiment may be Figure 2 The second terminal shown is the terminal used by the on-demand user. The user can use the terminal to initiate an on-demand operation of the streaming media, and the terminal will generate a corresponding live broadcast start request according to the on-demand operation and send the live broadcast start request to the server.

[0054] Step 302: Determine the start segment according to the preset delay threshold; wherein the start segment includes the media presentation description MPD file, the initialization segment, and the media segment corresponding to the delay threshold.

[0055] Step 303: Send the start segment to the terminal. The start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0056] Specifically, the delay threshold refers to a parameter pre-set in the server, and the delay threshold is used to represent the minimum time difference between the timestamp of the latest frame of the streaming media and the start time of the media segment in the start segment. In an optional implementation, the specific value of the delay threshold can be determined according to actual conditions. For example, the delay threshold can be 8s. For example, the start segment includes an MP4 format file.

[0057] In this implementation, the server will no longer use the method of sending the MPD file, initialization segment and media segment to the terminal separately by responding to HTTP requests multiple times. Instead, after the server receives the live broadcast start request from the terminal, it will send the start segment including the media presentation description MPD file, the initialization segment and the media segment corresponding to the delay threshold to the terminal at one time.

[0058] This processing method greatly reduces the number of communication requests during the startup process, reduces the time required for startup, and improves user experience.

[0059] Since the delay threshold in the implementation manner of the present disclosure is preset by the server, in order to facilitate the terminal to subsequently request the data of the next frame of the streaming media, optionally, the start-up segment also includes: the segment sequence number of the media segment and the start time of the media segment; wherein the segment sequence number of the media segment and the start time of the media segment are used to generate a terminal request to obtain the next frame.

[0060] By carrying relevant information such as the start time and segment number of the media segment in the start segment, the terminal can use this information to calculate the segment number of the next frame of the media segment, so that it can directly request the next frame of the media segment from the server, thereby improving the efficiency of obtaining the next frame.

[0061] On the basis of the above-mentioned implementation modes, this implementation mode further provides two methods to implement the specific process of determining the start-up segment according to the preset delay threshold.

[0062] In one implementation, after receiving a live broadcast start request, the server triggers the generation process of the start segment to determine the start segment that meets the delay threshold:

[0063] Specifically, Figure 4 A data flow diagram of a live broadcast start method provided in an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, when the user performs a live broadcast start operation based on the terminal, the terminal sends a live broadcast start request to the server.

[0064] At this time, the server will firstly segment the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time.

[0065] Exemplarily, 4s can be used as a segmentation time, and the streaming media can be distributed and processed to obtain multiple media segments, such as media segment 1 [0s, 4s], media segment 2 [4s, 8s], media segment 3 [8s, 12s], media segment 4 [12s, 16s], etc.

[0066] Then, the server will select the target media segment corresponding to the delay threshold according to the preset delay threshold. Specifically, the target media segment can be selected in a traversal manner, such as:

[0067] First, the server selects the media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed.

[0068] Then, the server determines whether the time difference between the start time of the to-be-processed media segment and the timestamp of the latest frame in the streaming media is greater than the delay threshold;

[0069] If the delay is greater than the threshold, the media segment to be processed is used as the target media segment;

[0070] If it is not greater than the delay threshold, the media segment with the latest start time is selected from the unselected media segments according to the start time of each media segment as the media segment to be processed.

[0071] Taking the aforementioned selection of the target media segment from media segment 1 [0s, 4s], media segment 2 [4s, 8s], media segment 3 [8s, 12s], and media segment 4 [12s, 16s] as an example, if the delay threshold is 8s, the timestamp of the latest frame in the streaming media is 18s.

[0072] Since the start time of media segment 4 is 12s, which is the latest start time, the server will first use media segment 4 as the media segment to be processed. By subtracting the start time 12s of media segment 4 from the timestamp of the latest frame in the streaming media, which is 18s, it can be seen that the time difference between the two is 6s, which is less than the delay threshold of 8s. Media segment 4 does not meet the conditions for being the target media segment.

[0073] At this time, the server will use media segment 3 as the media segment to be processed, and re-subtract its start time 8s from the timestamp of the latest frame in the streaming media, which is 18s, to obtain a time difference of 10s. Since the time difference between media segment 3 and the timestamp of the latest frame in the streaming media is greater than the delay threshold of 8s, at this time, media segment 3 will be used as the target media segment and combined with the MPD file and the initialization segment to generate the start segment.

[0074] In other examples, if there is no media segment among the media segments whose time difference between the start time and the timestamp of the latest frame in the streaming media is greater than the delay threshold, the server uses the media segment with the earliest start time among the media segments as the target media segment.

[0075] For example, selecting a target media segment from media segment 1 [0s, 4s], media segment 2 [4s, 8s], media segment 3 [8s, 12s], and media segment 4 [12s, 16s], if the delay threshold is 20s, the timestamp of the latest frame in the streaming media is 17s.

[0076] At this point, it can be known that the server has traversed and determined that the time difference between the start time of each media segment and the timestamp of the latest frame in the streaming media is less than the delay threshold. At this time, the server will use media segment 1 [0s, 4s] as the target media segment to generate the start segment.

[0077] By traversing the media segments according to their start time, the server can quickly generate target media segments that meet the delay threshold. Then, the server generates a start segment based on the MPD file, the initialization segment, and the target media segment and sends it to the terminal.

[0078] In another specific process of determining the start segment according to a preset delay threshold, the server can pre-generate multiple start segments. After receiving a live broadcast start request, the server selects a start segment that meets the delay threshold from the multiple start segments and sends it to the terminal, thereby improving the efficiency of sending the start segment.

[0079] Specifically, Figure 5 A data flow diagram of another live broadcast initiation method provided in an embodiment of the present disclosure.

[0080] like Figure 5 As shown, first, the server will segment the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time. Subsequently, the server will generate a plurality of start segments according to each media segment; wherein different start segments include a media presentation description MPD file, an initialization segment, and different media segments.

[0081] For example, after the server completes encoding of the latest frame of the streaming media, the server will segment the existing streaming media to obtain multiple media segments including media segment 1 [0s, 4s], media segment 2 [4s, 8s], media segment 3 [8s, 12s], and media segment 4 [12s, 16s].

[0082] Then, the server will combine each media segment with the MPD file and the initialization segment respectively to obtain startup segment 1 [MPD file, initialization segment, media segment 1], startup segment 2 [MPD file, initialization segment, media segment 2], startup segment 3 [MPD file, initialization segment, media segment 3] and startup segment 4 [MPD file, initialization segment, media segment 4].

[0083] Then, the server will select a target start segment from each start segment according to the delay threshold. Specifically, the server will select a target media segment corresponding to the delay threshold according to the preset delay threshold, and use the start segment corresponding to the target media segment as the target start segment.

[0084] Exemplarily, similar to the aforementioned selection of the target media segment, the server selects the start segment corresponding to the media segment with the latest start time from the unselected start segments according to the start time of the media segments in each start segment as the start segment to be processed. Then, the server determines whether the time difference between the start time of the media segment of the start segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if it is greater than the delay threshold, the start segment to be processed is used as the target start segment; if it is not greater than the delay threshold, the server returns to the step of selecting the start segment corresponding to the media segment with the latest start time from the unselected start segments as the start segment to be processed.

[0085] Taking the aforementioned start-up fragment 1, start-up fragment 2, start-up fragment 3 and start-up fragment 4 as an example, if the delay threshold is 8s, the timestamp of the latest frame in the streaming media is 18s.

[0086] Since the start time of media segment 4 in start segment 4 is 12s, which is the latest start time, the server will first use start segment 4 as the start segment to be processed. By subtracting the start time 12s of media segment 4 from the timestamp of the latest frame in the streaming media, which is 18s, it can be seen that the time difference between the two is 6s, which is less than the delay threshold of 8s. Start segment 4 does not meet the conditions for being the target start segment.

[0087] At this time, the server will use the start segment 3 as the pending start segment, and re-subtract the start time 8s of the corresponding media segment 3 from the timestamp 18s of the latest frame in the streaming media to obtain a time difference of 10s. Since the time difference between the timestamp of the media segment 3 and the latest frame in the streaming media is greater than the delay threshold of 8s, at this time, the start segment 3 will be used as the target start segment.

[0088] Similarly, if there is no start segment among the start segments whose time difference between the start time of the media segment and the timestamp of the latest frame in the streaming media is greater than the delay threshold, the server uses the start segment with the earliest start time among the start segments as the target start segment.

[0089] By traversing the start time of each media segment in the start segment, the server can quickly determine the target start segment that meets the delay threshold. Subsequently, the server will update the target start segment in real time as the encoding of each frame of the streaming media is completed to ensure that the target start segment currently selected by the server meets the delay threshold, that is, the server updates the target start segment according to the timestamp of the latest frame of the streaming media.

[0090] Later, see Figure 5 As shown, since the server pre-stores the target start segment that meets the delay threshold in real time, when the server receives the live broadcast start request sent by the terminal, the server can directly send the target start segment to the terminal, so that the terminal can use the MPD file, initialization segment and target media segment in the target start segment to render and play the first frame.

[0091] This approach can further improve the server's response efficiency to live broadcast start requests, thereby enabling the terminal to quickly render and play the first frame.

[0092] The method provided in the embodiment of the present disclosure improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, which effectively reduces the start time and improves the user experience.

[0093] Based on the above implementation, Figure 6 A flowchart of another live broadcast start method provided by an embodiment of the present disclosure. Figure 6 As shown, the live broadcast start method may include the following steps:

[0094] Step 601: Send a live streaming start request to a server.

[0095] Step 602: Receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold.

[0096] Step 603: Render and play the first frame of the streaming media using the start segment.

[0097] Specifically, for streaming media, it should be the media uploaded to the server by the user, and its media form includes but is not limited to: video media, audio media. The terminal mentioned in this embodiment can be specifically Figure 2 The second terminal shown is the terminal used by the on-demand user.

[0098] The user can use the terminal to initiate a video-on-demand operation for streaming media, and the terminal will generate a corresponding live broadcast start request according to the video-on-demand operation and send the live broadcast start request to the server.

[0099] After the user sends a live broadcast start request to the server, the server will respond to the live broadcast start request according to the method provided in the above-mentioned implementation method, and will send the media presentation description MPD file, initialization segment, and media segments corresponding to the delay threshold to the terminal for the terminal to render and play.

[0100] In an optional embodiment, the start segment includes an MP4 format file.

[0101] The server's response process to the live broadcast start request can be found in the aforementioned implementation method, which will not be described in detail in this implementation method.

[0102] In this implementation, the terminal only needs to send a live broadcast start request once to obtain a start segment including an MPD file, an initialization segment, and a media segment corresponding to a delay threshold, thereby reducing the time required for starting and improving user experience.

[0103] Since the delay threshold in the embodiment of the present disclosure is preset by the server, in order to facilitate the terminal to subsequently request the data of the next frame of the streaming media, in an optional embodiment, the start-up segment also includes the segment sequence number of the media segment and the start time of the media segment; and the method also includes: generating a request for obtaining the next frame of the streaming media according to the segment sequence number of the media segment and the start time of the media segment; and sending the request for obtaining the next frame to the server.

[0104] By carrying relevant information such as the start time and segment number of the media segment in the start segment, the terminal can use this information to calculate the segment number of the next frame of the media segment, so that it can directly request the next frame of the media segment from the server, thereby improving the efficiency of obtaining the next frame.

[0105] The method provided in the embodiment of the present disclosure improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, which effectively reduces the start time and improves the user experience.

[0106] Corresponding to the video special effects processing method of the above embodiment, Figure 7 This is a structural block diagram of a live broadcast starter provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 7 , a live broadcast start device, applied to a server, comprising:

[0107] The first transceiver module 701 is used to receive a request for starting live broadcast of streaming media initiated by a terminal;

[0108] The start segment determination module 702 is used to determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0109] The first transceiver module 701 is further used to send the start segment to the terminal, and the start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0110] Optionally, the start-up segment further includes: a segment sequence number of the media segment and a start time of the media segment; wherein the segment sequence number of the media segment and the start time of the media segment are used to generate a request for the terminal to obtain the next frame.

[0111] Optionally, the start segment determination module 702 is specifically configured to:

[0112] The streaming media is segmented according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; according to a preset delay threshold, a target media segment corresponding to the delay threshold is selected; and according to the MPD file, the initialization segment and the target media segment, the start segment is generated.

[0113] Optionally, the start segment determination module 702 is specifically configured to:

[0114] According to the start time of each media segment, the media segment with the latest start time is selected from the unselected media segments as the media segment to be processed; determine whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, use the media segment to be processed as the target media segment; if not, return to the step of selecting, according to the start time of each media segment, the media segment with the latest start time from the unselected media segments as the media segment to be processed.

[0115] Optionally, if there is no media segment among the media segments whose start time and the time stamp of the latest frame in the streaming media have a time difference greater than the delay threshold, the start segment determination module 702 is also used to use the media segment with the earliest start time among the media segments as the target media segment.

[0116] Optionally, the start segment determination module 702 is specifically used for:

[0117] The streaming media is segmented according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; a plurality of start-up segments are generated according to each media segment; wherein different start-up segments include the MPD file, the initialization segment and different media segments; a target start-up segment is selected from each start-up segment according to a preset delay threshold; and the target start-up segment is used as the start-up segment sent to the terminal.

[0118] Optionally, the start segment determination module 702 is specifically configured to:

[0119] According to a preset delay threshold, a target media segment corresponding to the delay threshold is selected; and the start segment corresponding to the target media segment is used as the target start segment.

[0120] Optionally, the start segment determination module 702 is further configured to:

[0121] The target start segment is updated according to the timestamp of the latest frame of the streaming media.

[0122] Optionally, the start segment includes an MP4 format file.

[0123] The device provided in the embodiment of the present disclosure improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, which effectively reduces the start time and improves the user experience.

[0124] Corresponding to the video special effects processing method of the above embodiment, Figure 8 This is a structural block diagram of another live broadcast start-up device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 8 , a live broadcast start device, applied to a terminal, comprising:

[0125] The second transceiver module 801 is used to send a live broadcast start request of streaming media to the server;

[0126] The second transceiver module 801 is further used to receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0127] The playing module 802 is used to render and play the first frame of the streaming media using the start segment.

[0128] Optionally, the start segment includes an MP4 format file.

[0129] Optionally, the start segment also includes the segment sequence number of the media segment and the start time of the media segment;

[0130] The second transceiver module 801 is further used for:

[0131] Generate a request for obtaining the next frame of the streaming media according to the fragment sequence number of the media fragment and the start time of the media fragment; and send the request for obtaining the next frame to the server.

[0132] The device provided in the embodiment of the present disclosure improves the live broadcast start process based on the DASH protocol, so that the terminal only needs to initiate a start request once to achieve the rendering and playback of the first frame, which effectively reduces the start time and improves the user experience.

[0133] The electronic device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0134] refer to Fig. 9 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable streaming media players (Portable Media Players, PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0135] like Fig. 9 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0136] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0138] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0139] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0140] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0141] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or media library. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0142] A computer program product provided in this embodiment includes computer instructions, and the computer instructions are executed by a processor as the method described in any of the preceding items. The implementation principle and technical effect are similar, and are not described in detail in this embodiment.

[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0144] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0145] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0146] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] The following are some embodiments of the present disclosure.

[0148] In a first aspect, according to one or more embodiments of the present disclosure, a live broadcast start method is applied to a server; the method comprises:

[0149] A live broadcast start request for streaming media initiated by a receiving terminal;

[0150] Determine the start segment according to the preset delay threshold; wherein the start segment includes the media presentation description MPD file, the initialization segment, and the media segment corresponding to the delay threshold;

[0151] The start-up segment is sent to the terminal. The start-up segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0152] Optionally, the start-up segment further includes: a segment sequence number of the media segment and a start time of the media segment; wherein the segment sequence number of the media segment and the start time of the media segment are used to generate a request for the terminal to obtain the next frame.

[0153] Optionally, determining the start segment according to a preset delay threshold includes:

[0154] The streaming media is segmented according to the timestamp of each frame in the streaming media to obtain multiple continuous media segments with the same segmentation time; according to the preset delay threshold, the target media segment corresponding to the delay threshold is selected; according to the MPD file, the initialization segment and the target media segment, the start segment is generated.

[0155] Optionally, according to a preset delay threshold, selecting a target media segment corresponding to the delay threshold includes:

[0156] According to the start time of each media segment, the media segment with the latest start time is selected from the unselected media segments as the media segment to be processed; determine whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, use the media segment to be processed as the target media segment; if not, return to the step of selecting the media segment with the latest start time from the unselected media segments as the media segment to be processed according to the start time of each media segment.

[0157] Optionally, if there is no media segment among the media segments whose time difference between the start time and the timestamp of the latest frame in the streaming media is greater than the delay threshold, the method further includes: taking the media segment with the earliest start time among the media segments as the target media segment.

[0158] Optionally, the method further includes:

[0159] Segment the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; generate a plurality of start segments according to each media segment; wherein different start segments include a media presentation description MPD file, an initialization segment and different media segments; select a target start segment from each start segment according to a preset delay threshold;

[0160] Determining a start-up segment according to a preset delay threshold includes: using a target start-up segment as a start-up segment sent to a terminal.

[0161] Optionally, a target start segment is selected from each start segment according to a preset delay threshold, including: according to the preset delay threshold, a target media segment corresponding to the delay threshold is selected; and the start segment corresponding to the target media segment is used as the target start segment.

[0162] Optionally, the method further includes: updating the target start segment according to the timestamp of the latest frame of the streaming media.

[0163] Optionally, the start segment includes an MP4 format file.

[0164] In a second aspect, according to one or more embodiments of the present disclosure, a live broadcast start method is applied to a terminal; the method includes:

[0165] Send a live broadcast start request of streaming media to the server; receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold; use the start segment to render and play the first frame of streaming media.

[0166] Optionally, the start segment includes an MP4 format file.

[0167] Optionally, the start segment also includes the segment sequence number of the media segment and the start time of the media segment; the method also includes: generating a request to obtain the next frame of the streaming media according to the segment sequence number of the media segment and the start time of the media segment; and sending the request to obtain the next frame to the server.

[0168] In a third aspect, according to one or more embodiments of the present disclosure, a live broadcast start device is applied to a server, including:

[0169] The first transceiver module is used to receive a request for starting live broadcast of streaming media initiated by a terminal;

[0170] A start segment determination module is used to determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0171] The first transceiver module is also used to send the start segment to the terminal, and the start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast.

[0172] Optionally, the start-up segment further includes: a segment sequence number of the media segment and a start time of the media segment; wherein the segment sequence number of the media segment and the start time of the media segment are used to generate a request for the terminal to obtain the next frame.

[0173] Optionally, the start-up segment determination module is specifically used to:

[0174] The streaming media is segmented according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; according to a preset delay threshold, a target media segment corresponding to the delay threshold is selected; and according to the MPD file, the initialization segment and the target media segment, the start segment is generated.

[0175] Optionally, the start-up segment determination module is specifically used to:

[0176] According to the start time of each media segment, the media segment with the latest start time is selected from the unselected media segments as the media segment to be processed; determine whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, use the media segment to be processed as the target media segment; if not, return to the step of selecting, according to the start time of each media segment, the media segment with the latest start time from the unselected media segments as the media segment to be processed.

[0177] Optionally, if there is no media segment among the media segments whose start time and the time stamp of the latest frame in the streaming media have a time difference greater than the delay threshold, the start segment determination module is further used to use the media segment with the earliest start time among the media segments as the target media segment.

[0178] Optionally, the start-up segment determination module is specifically used for:

[0179] The streaming media is segmented according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; a plurality of start-up segments are generated according to each media segment; wherein different start-up segments include the MPD file, the initialization segment and different media segments; a target start-up segment is selected from each start-up segment according to a preset delay threshold; and the target start-up segment is used as the start-up segment sent to the terminal.

[0180] Optionally, the start-up segment determination module is specifically used to:

[0181] According to a preset delay threshold, a target media segment corresponding to the delay threshold is selected; and the start segment corresponding to the target media segment is used as the target start segment.

[0182] Optionally, the module for determining the start segment is further used to:

[0183] The target start segment is updated according to the timestamp of the latest frame of the streaming media.

[0184] Optionally, the start segment includes an MP4 format file.

[0185] In a fourth aspect, according to one or more embodiments of the present disclosure, a live broadcast start device is provided, and the device is applied to a terminal, including:

[0186] The second transceiver module is used to send a live broadcast start request of the streaming media to the server;

[0187] The second transceiver module is also used to receive the start segment returned by the server; wherein the start segment is generated by the server according to a preset delay threshold; the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold;

[0188] The playback module is used to render and play the first frame of the streaming media using the start segment.

[0189] Optionally, the start segment includes an MP4 format file.

[0190] Optionally, the start segment also includes the segment sequence number of the media segment and the start time of the media segment;

[0191] The second transceiver module is further used for:

[0192] Generate a request for obtaining the next frame of the streaming media according to the fragment sequence number of the media fragment and the start time of the media fragment; and send the request for obtaining the next frame to the server.

[0193] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0194] The memory stores computer-executable instructions;

[0195] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs any of the methods described above.

[0196] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method as described in any of the preceding items is implemented.

[0197] In a seventh aspect, according to one or more embodiments of the present disclosure, a computer program product includes computer instructions, and the computer instructions are executed by a processor according to any of the methods described in the preceding items.

[0198] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0199] In addition, although the operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0200] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A live broadcast start method, characterized in that: The method is applied to a server; The method comprises: A live broadcast start request for streaming media initiated by a receiving terminal; Determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold; Sending the start segment to the terminal, the start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast; The step of determining the start segment according to the preset delay threshold comprises: segmenting the streaming media according to the timestamps of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; selecting a target media segment corresponding to the delay threshold according to the preset delay threshold; and generating the start segment according to the MPD file, the initialization segment and the target media segment; The step of selecting a target media segment corresponding to a preset delay threshold according to the preset delay threshold comprises: selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed; judging whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, taking the media segment to be processed as the target media segment; if not, returning to the step of selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed.

2. The method according to claim 1, characterized in that The start segment also includes: the segment sequence number of the media segment and the start time of the media segment; The segment sequence number of the media segment and the start time of the media segment are used to generate an acquisition request of the terminal for the next frame.

3. The method according to claim 1, characterized in that If there is no media segment in the media segments whose time difference between the start time and the timestamp of the latest frame in the streaming media is greater than the delay threshold, the method further includes: The media segment with the earliest start time among the media segments is used as the target media segment.

4. The method according to claim 1, characterized in that: Also includes: Segmenting the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; Generate multiple start-up segments according to each media segment; wherein different start-up segments include the MPD file, the initialization segment and different media segments; According to the preset delay threshold, a target start segment is selected from each start segment; The step of determining the start segment according to the preset delay threshold comprises: The target start segment is used as the start segment sent to the terminal.

5. The method according to claim 4, characterized in that The step of selecting a target start-up segment from each start-up segment according to a preset delay threshold comprises: According to a preset delay threshold, selecting a target media segment corresponding to the delay threshold; The start segment corresponding to the target media segment is used as the target start segment.

6. The method according to claim 5, characterized in that Also includes: The target start segment is updated according to the timestamp of the latest frame of the streaming media.

7. The method according to any one of claims 1 to 6, characterized in that: The start segment includes an MP4 format file.

8. A live broadcast start method, characterized in that: The method is applied to a terminal; The method comprises: Send a live streaming start request to the server; Receive the start segment returned by the server; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to a delay threshold; the start segment is obtained by the server segmenting the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; according to a preset delay threshold, select a target media segment corresponding to the delay threshold; generated according to the MPD file, the initialization segment, and the target media segment; Rendering and playing the first frame of the streaming media using the start segment; Among them, the step of selecting a target media segment corresponding to a preset delay threshold according to the preset delay threshold includes: selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed; judging whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, taking the media segment to be processed as the target media segment; if not, returning to the step of selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed.

9. The method according to claim 8, characterized in that The start segment includes an MP4 format file.

10. The method according to claim 8 or 9, characterized in that: The start segment also includes the segment sequence number of the media segment and the start time of the media segment; The method further comprises: Generate a request for obtaining a next frame of the streaming media according to the fragment sequence number of the media fragment and the start time of the media fragment; Sending a request for obtaining the next frame to the server.

11. A live broadcast start device, characterized in that: The device is applied to a server; the device comprises: The first transceiver module is used to receive a request for starting live broadcast of streaming media initiated by a terminal; A start segment determination module is used to determine the start segment according to a preset delay threshold; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to the delay threshold; The first transceiver module is further used to send the start segment to the terminal, and the start segment is used to render the first frame of the live broadcast when the terminal starts the live broadcast; The step of determining the start segment according to the preset delay threshold comprises: segmenting the streaming media according to the timestamps of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; selecting a target media segment corresponding to the delay threshold according to the preset delay threshold; and generating the start segment according to the MPD file, the initialization segment and the target media segment; The step of selecting a target media segment corresponding to a preset delay threshold according to the preset delay threshold comprises: selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed; judging whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, taking the media segment to be processed as the target media segment; if not, returning to the step of selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed.

12. A live broadcast start device, characterized in that: The device is applied to a terminal; the device comprises: The second transceiver module is used to send a live broadcast start request of the streaming media to the server; The second transceiver module is further used to receive the start segment returned by the server; wherein the start segment includes a media presentation description MPD file, an initialization segment, and a media segment corresponding to a delay threshold; the start segment is obtained by the server segmenting the streaming media according to the timestamp of each frame in the streaming media to obtain a plurality of continuous media segments with the same segmentation time; according to a preset delay threshold, a target media segment corresponding to the delay threshold is selected; and is generated according to the MPD file, the initialization segment, and the target media segment; A playback module, used to render and play the first frame of the streaming media using the start segment; Among them, the step of selecting a target media segment corresponding to a preset delay threshold according to the preset delay threshold includes: selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed; judging whether the time difference between the start time of the media segment to be processed and the timestamp of the latest frame in the streaming media is greater than the delay threshold; if so, taking the media segment to be processed as the target media segment; if not, returning to the step of selecting a media segment with the latest start time from the unselected media segments according to the start time of each media segment as the media segment to be processed.

13. An electronic device, wherein: include: at least one processor; as well as Memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 10 is implemented.