Streaming media playback method, device, equipment and medium
By pre-cacheting the verification information of streaming media in the user terminal, and directly verifying the streaming media data locally, the problem of streaming media playback delay is solved, the user experience is improved and resources are saved.
Patent Information
- Application Number
- CN202310103795.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-30
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2043-01-30
AI Technical Summary
During the streaming media data transmission process, the user terminal needs to obtain the verification information of the streaming media data from the verification server, resulting in playback delay, especially when the network quality is poor, which affects the user experience.
The user terminal searches for the verification information of the streaming media to be played in the pre-cache verification information set, and verifies the streaming media data based on the information, eliminating the interaction process with the verification server.
By reducing the number of interactions with the verification server and the duration of the verification process, the user's streaming media playback experience is improved and network and computing resources are saved.
Smart Images

Figure CN116055772B_ABST
Abstract
Description
Background Art
[0002] In the process of streaming media data transmission, in order to reduce the cost of streaming media data transmission, a content distribution network with low bandwidth cost can be used to implement streaming media data transmission. Due to the poor network quality of the content distribution network with low bandwidth cost, after the user terminal obtains the streaming media data, it needs to verify the streaming media data through the verification server, and play the streaming media data after the verification is successful.
[0003] In the related art, after obtaining the streaming media data, the user terminal needs to obtain verification information of the streaming media data from the verification server. The interaction process between the user terminal and the verification server will cause delays in playing the streaming media, especially in the case of poor network quality. The playback delay of the streaming media data will be more serious, affecting the user's streaming media playback experience. Summary of the invention
[0004] The present disclosure provides a streaming media playback method, device, equipment and medium to at least solve the problem of low efficiency of the verification process in the streaming media playback process in the related art, which affects the user experience. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a streaming media playback method is provided, the method being applied to a user terminal, comprising:
[0006] After determining the current streaming media to be played, obtaining the streaming media data to be played;
[0007] Searching for verification information of the streaming media to be played in a pre-cached verification information set, and verifying the streaming media data to be played according to the verification information of the streaming media to be played, to obtain a verification result of the streaming media data to be played, wherein the verification information set includes verification information corresponding to each candidate streaming media in a playlist associated with the user terminal;
[0008] When the verification result indicates that the to-be-played streaming media data has passed the verification, the to-be-played streaming media data is played.
[0009] Optionally, the verification information corresponding to each candidate streaming media in the playlist includes verification information of a first part of the candidate streaming media in the playlist, and before verifying the streaming media data to be played according to the verification information of the streaming media to be played and obtaining the verification result of the streaming media data to be played, the method further includes:
[0010] In a case where the verification information set does not include the verification information of the streaming media data to be played, sending a first verification information acquisition request to the verification server, wherein the first verification information acquisition request is used to instruct to acquire verification information of a second part of candidate streaming media, wherein the second part of candidate streaming media includes the streaming media to be played;
[0011] receiving verification information of the second part of candidate streaming media sent by the verification server, and updating the verification information set according to the verification information of the second part of candidate streaming media to obtain an updated verification information set;
[0012] The verification information of the streaming media to be played is searched in the updated verification information set.
[0013] Optionally, before sending the first verification information acquisition request to the verification server, the method further includes:
[0014] Obtaining playback order information of each candidate streaming media in the playlist;
[0015] Based on the playback order information of each candidate streaming media, the streaming media to be played and at least one first target candidate streaming media are determined as the second part of candidate streaming media, and the first target candidate streaming media is a candidate streaming media whose playback order is after the streaming media to be played among the multiple candidate streaming media in the playlist.
[0016] Optionally, the method further includes:
[0017] In response to the operation of running the streaming media application, obtaining a playlist associated with the user terminal from the streaming media server;
[0018] Sending a second verification information acquisition request to a verification server according to the playlist, wherein the second verification information acquisition request is used to instruct to obtain verification information corresponding to the candidate streaming media in the playlist;
[0019] A verification information set is generated according to the verification information corresponding to each candidate streaming media in the playlist and sent by the verification server.
[0020] Optionally, sending a second verification information acquisition request to a verification server according to the playlist includes:
[0021] Generate the second verification information acquisition request according to all candidate streaming media in the playlist, and send the second verification information acquisition request to the verification server;
[0022] The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises:
[0023] Receive verification information corresponding to all candidate streaming media in the playlist respectively and sent by the verification server, and generate a verification information set according to the verification information corresponding to each candidate streaming media.
[0024] Optionally, sending a second verification information acquisition request to a verification server according to the playlist includes:
[0025] generating the second verification information acquisition request according to a third part of the candidate streaming media among the plurality of candidate streaming media, and sending the second verification information acquisition request to the verification server;
[0026] The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises:
[0027] Receive verification information corresponding to the third part of candidate streaming media in the playlist sent by the verification server, and generate a verification information set according to the verification information corresponding to the third part of candidate streaming media.
[0028] Optionally, the generating the second verification information acquisition request according to a third part of candidate streaming media among the multiple candidate streaming media includes:
[0029] Obtaining playback order information of each candidate streaming media in the playlist;
[0030] Based on the playback order information, the candidate streaming media located at the first playback position and at least one second target candidate streaming media are determined as the third part of candidate streaming media, and the second target candidate streaming media is a candidate streaming media whose playback order is after the candidate streaming media at the first playback position among the multiple candidate streaming media in the playlist.
[0031] According to a second aspect of an embodiment of the present disclosure, a streaming media playback device is provided, the device being a user terminal, comprising:
[0032] The acquisition module is configured to acquire the data of the streaming media to be played after determining the current streaming media to be played;
[0033] a verification module configured to search for verification information of the to-be-played streaming media in a pre-cached verification information set, and verify the to-be-played streaming media data according to the verification information of the to-be-played streaming media to obtain a verification result of the to-be-played streaming media data, wherein the verification information set includes verification information corresponding to each candidate streaming media in a playlist associated with the user terminal;
[0034] The playing module is configured to play the streaming media data to be played if the verification result indicates that the streaming media data to be played has passed the verification.
[0035] Optionally, the verification information corresponding to each candidate streaming media in the playlist includes verification information of the first part of the candidate streaming media in the playlist, and the device further includes an updating module configured to:
[0036] In a case where the verification information set does not include the verification information of the streaming media data to be played, sending a first verification information acquisition request to the verification server, wherein the first verification information acquisition request is used to instruct to acquire verification information of a second part of candidate streaming media, wherein the second part of candidate streaming media includes the streaming media to be played;
[0037] receiving verification information of the second part of candidate streaming media sent by the verification server, and updating the verification information set according to the verification information of the second part of candidate streaming media to obtain an updated verification information set;
[0038] The verification information of the streaming media to be played is searched in the updated verification information set.
[0039] Optionally, the device further includes a determination module configured to:
[0040] Obtaining playback order information of each candidate streaming media in the playlist;
[0041] Based on the playback order information of each candidate streaming media, the streaming media to be played and at least one first target candidate streaming media are determined as the second part of candidate streaming media, and the first target candidate streaming media is a candidate streaming media whose playback order is after the streaming media to be played among the multiple candidate streaming media in the playlist.
[0042] Optionally, the device further includes a generating module configured to:
[0043] In response to the operation of running the streaming media application, obtaining a playlist associated with the user terminal from the streaming media server;
[0044] Sending a second verification information acquisition request to a verification server according to the playlist, wherein the second verification information acquisition request is used to instruct to obtain verification information corresponding to the candidate streaming media in the playlist;
[0045] A verification information set is generated according to the verification information corresponding to each candidate streaming media in the playlist and sent by the verification server.
[0046] Optionally, the generating module is configured to:
[0047] Generate the second verification information acquisition request according to all candidate streaming media in the playlist, and send the second verification information acquisition request to the verification server;
[0048] The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises:
[0049] Receive verification information corresponding to all candidate streaming media in the playlist respectively and sent by the verification server, and generate a verification information set according to the verification information corresponding to each candidate streaming media.
[0050] Optionally, the generating module is configured to:
[0051] generating the second verification information acquisition request according to a third part of the candidate streaming media among the plurality of candidate streaming media, and sending the second verification information acquisition request to the verification server;
[0052] The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises:
[0053] Receive verification information corresponding to the third part of candidate streaming media in the playlist sent by the verification server, and generate a verification information set according to the verification information corresponding to the third part of candidate streaming media.
[0054] Optionally, the generating module is configured to:
[0055] Obtaining playback order information of each candidate streaming media in the playlist;
[0056] Based on the playback order information, the candidate streaming media located at the first playback position and at least one second target candidate streaming media are determined as the third part of candidate streaming media, and the second target candidate streaming media is a candidate streaming media whose playback order is after the candidate streaming media at the first playback position among the multiple candidate streaming media in the playlist.
[0057] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0058] processor;
[0059] a memory for storing instructions executable by the processor;
[0060] The processor is configured to execute the instructions to implement the streaming media playback method as described in the first aspect.
[0061] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the streaming media playback method as described in the first aspect.
[0062] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0063] In summary, the streaming media playback method, apparatus, device and medium provided by the embodiments of the present disclosure can, after determining the streaming media to be played, the user terminal does not need to obtain the verification information of the streaming media to be played from the verification server, but instead searches for the verification information of the streaming media to be played in the pre-cached verification information set. During the streaming media playback process, the interaction process between the user terminal and the verification server is omitted, the time of the verification process before playing the streaming media data is saved, and the user's streaming media playback experience is improved; wherein, the pre-cached verification information set includes the verification information corresponding to each candidate streaming media in the play list associated with the user terminal, which can reduce the number of interactions between the user terminal and the verification server, saving network resources, and computing power resources of the user terminal and the verification server.
[0064] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0066] Figure 1 is a schematic architecture diagram of a streaming media playback system according to an exemplary embodiment;
[0067] Figure 2 is a flow chart of a streaming media playback method according to an exemplary embodiment;
[0068] Figure 3 is a block diagram of another streaming media playback device according to an exemplary embodiment;
[0069] Figure 4 is a block diagram of a streaming media playback device according to an exemplary embodiment;
[0070] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0071] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0072] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0073] In the related art, in the scenario of using a low-bandwidth content distribution network for streaming media data transmission, for the streaming media to be played that is currently needed to be played, usually after the user terminal obtains the streaming media data from the streaming media distribution device of the streaming media distribution node, it sends a verification request to the verification server, and the verification server can return the verification information of the streaming media to be played to the user terminal; after the user terminal obtains the verification information of the streaming media to be played, it uses the verification information of the streaming media to be played to verify the streaming media data obtained from the streaming media distribution device, obtains the verification result, and determines whether to play the streaming media data based on the verification result. It can be understood that the streaming media distribution node can be a node of the content distribution network, and the content distribution network can be a content delivery network (Content Delivery Network PCDN) network based on peer-to-peer (P2P), that is, a PCDN network.
[0074] Among them, the user terminal executes the verification information acquisition process of the streaming media to be played from the verification server only after obtaining the streaming media data of the streaming media to be played, which increases the delay in playing the streaming media data. Especially in the case of poor network environment, the delay in playing the streaming media data will be more serious, resulting in a poor streaming media playback experience for the user.
[0075] In view of the above problems, the exemplary embodiment of the present disclosure provides a streaming media playback method, and the application scenarios of the streaming media playback method include but are not limited to: in the distribution scenario of streaming media data based on the PCDN network, after determining the current streaming media to be played, the streaming media data to be played can be obtained; the verification information of the streaming media to be played is searched in the pre-cached verification information set, and the streaming media data to be played is verified according to the verification information of the streaming media to be played, and the verification result of the streaming media data to be played is obtained; when the verification result indicates that the streaming media data to be played has passed the verification, the streaming media data to be played is played. Among them, the verification information set includes the verification information corresponding to each candidate streaming media in the play list associated with the user terminal. The verification information of the candidate streaming media that the user needs to play can be pre-cached, and when it is determined to play the current streaming media to be played, the streaming media to be played is directly verified according to the verification information of the pre-cached streaming media to be played, which saves the interaction process between the user terminal and the verification server, reduces the time consumption of playing after obtaining the streaming media data to be played, and improves the user's playback experience.
[0076] In order to implement the above-mentioned streaming media playback method, an exemplary embodiment of the present disclosure provides a streaming media playback system. Figure 1 FIG. 1 shows a schematic architecture diagram of the streaming media playback system. Figure 1 As shown, the streaming media playing system 100 may include a user terminal 110, a streaming media distribution device 120, a verification server 130 and a streaming media server 140. The user terminal 110 is a terminal device used by the user to play streaming media data. The terminal device can play streaming media data through a streaming media application. The streaming media application can be an application specifically used to play streaming media, or a web application. More specifically, the terminal device can be a smart phone, a personal computer, or a tablet computer. The streaming media distribution device 120 is an electronic device of a streaming media data distribution node of a content distribution network. More specifically, the electronic device can be a smart phone, a personal computer, a tablet computer or a server. The verification server 130 is a server that provides verification information of streaming media. The streaming media server 140 is a server deployed by the service provider of the streaming media playing software.
[0077] The user terminal 110 establishes connections with the streaming media distribution device 120, the verification server 130 and the streaming media server 140 through the network to achieve streaming media playback. It should be understood that the verification server 130 and the streaming media server 140 can be a single server or a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the verification server 130 and the streaming media server 140.
[0078] Figure 2is a flow chart of a streaming media playback method according to an exemplary embodiment. Figure 2 As shown, the streaming media playing method can be applied to a user terminal, comprising the following steps:
[0079] Step S201, after determining the current streaming media to be played, obtaining the streaming media data to be played;
[0080] Step S202, searching the pre-cached verification information set for the verification information of the streaming media to be played, and verifying the streaming media data to be played according to the verification information of the streaming media to be played, to obtain the verification result of the streaming media data to be played;
[0081] The verification information set includes verification information corresponding to each candidate streaming media in the playlist associated with the user terminal;
[0082] Step S203: When the verification result indicates that the streaming media data to be played has passed the verification, the streaming media data to be played is played.
[0083] In summary, the streaming media playback method provided by the embodiment of the present disclosure can, after determining the streaming media to be played, the user terminal does not need to obtain the verification information of the streaming media to be played from the verification server, but instead searches for the verification information of the streaming media to be played in the pre-cached verification information set. During the streaming media playback process, the interaction process between the user terminal and the verification server is omitted, the time of the verification process before playing the streaming media data is saved, and the user's streaming media playback experience is improved; wherein, the pre-cached verification information set includes the verification information corresponding to each candidate streaming media in the play list associated with the user terminal, which can reduce the number of interactions between the user terminal and the verification server, saving network resources, and computing power resources of the user terminal and the verification server.
[0084] The following Figure 2 The specific implementation methods of each step in the embodiment shown are described in detail:
[0085] In step S201, after determining the current streaming media to be played, the user terminal obtains the streaming media data to be played.
[0086] In the disclosed embodiments, the streaming media may be audio, video, or audio and video, and the streaming media data may be audio data, video data, or audio and video data. It can be understood that when the streaming media is audio, the streaming media data is audio data. The current streaming media to be played is the streaming media that needs to be played at the current moment.
[0087] In an optional implementation, after determining the current streaming media to be played, the process of the user terminal acquiring the streaming media data to be played may include: after determining the current streaming media to be played, the user terminal may send a streaming media data acquisition request to a streaming media distribution device, and the streaming media device acquisition request may include address information of the streaming media to be played; after receiving the streaming media data acquisition request, the streaming media distribution device may acquire the streaming media data to be played of the streaming media to be played according to the address information of the streaming media to be played in the streaming media data acquisition request, and send the streaming media data to be played to the user terminal, wherein the address information may be a uniform resource locator (Uniform Resource Locator, URL) of the streaming media.
[0088] In an optional implementation, the process of the user terminal determining the current streaming media to be played may include: determining the current streaming media to be played in response to a currently acquired streaming media playback operation, optionally, if the streaming media playback operation is a click operation on any candidate streaming media among multiple candidate streaming media associated with the user terminal, then the streaming media to be played includes the streaming media selected by the click operation; or, if the streaming media playback operation is a streaming media switching operation, the streaming media to be played is the streaming media that has not been played among the multiple candidate streaming media associated with the user terminal, wherein the multiple candidate streaming media associated with the user terminal may include: multiple candidate streaming media associated with a user account of the user terminal, the multiple candidate streaming media associated with the user account of the user terminal may be determined based on actual needs, and the embodiment of the present disclosure is not limited to this, for example, the streaming media similar to the streaming media content with the highest playback frequency of the user account is determined as the multiple candidate streaming media associated with the user account of the user terminal; or, randomly selecting multiple streaming media that have been played by the user terminal within a historical period as the multiple candidate streaming media associated with the user account of the user terminal; the streaming media that has not been played among the multiple candidate streaming media may be: the candidate streaming media whose playback order is located after the last played candidate streaming media.
[0089] For example, if the streaming media is audio, the streaming media playback operation can be a click operation on any audio in the audio play list, wherein the play list includes multiple candidate audios associated with the user terminal, and the audio to be played is the audio selected from the multiple candidate audios by the click operation; if the streaming media is a short video, the streaming media playback operation can be a switching operation on the short video, for example, a swipe up operation, and the short video to be played is a short video that has not been played among the multiple candidate short videos associated with the user terminal.
[0090] It should be noted that in the embodiment of the present disclosure, the user terminal plays streaming media through a streaming media application. After the streaming media application is started, the user terminal can obtain a playlist associated with the user terminal from a streaming media server in response to the operation of the streaming media application; further, the user terminal can send a second verification information acquisition request to the verification server according to the playlist, and the second verification information acquisition request is used to indicate the acquisition of verification information corresponding to the candidate streaming media in the playlist; according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server, a verification information set is generated; wherein the playlist includes multiple candidate streaming media, and the second verification information acquisition request is used to instruct the verification server to obtain verification information corresponding to the candidate streaming media in the playlist. After the streaming media application for playing streaming media is run, multiple candidate streaming media that can be played by the user terminal can be obtained, and verification information corresponding to the multiple candidate streaming media can be obtained from the verification server, so that each time the candidate streaming media is played, the streaming media data can be directly verified according to the verification information of the pre-cached candidate streaming media, saving the processing time of the verification process before playing the streaming media data, and improving the user's streaming media playback experience.
[0091] In an optional embodiment, the process in which the user terminal obtains a playlist associated with the user terminal from the streaming server in response to the running operation of the streaming application may include: the user terminal may generate a playlist acquisition request based on the user account of the user terminal in response to the running operation of the streaming application, and send the playlist acquisition request to the streaming server. The streaming server may obtain multiple candidate streaming media associated with the user account of the user terminal based on the user account in the playlist acquisition request, and obtain the playlist associated with the user terminal.
[0092] In an optional embodiment, the process of the user terminal sending a second verification information acquisition request to the verification server according to the playlist may include: generating a second verification information acquisition request according to all candidate streaming media in the playlist, and sending the second verification information acquisition request to the verification server; then the process of the user terminal generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server may include: receiving verification information corresponding to all candidate streaming media in the playlist sent by the verification server, and generating a verification information set according to the verification information corresponding to each candidate streaming media. When the streaming media application is started, the verification information of all candidate streaming media associated with the user terminal can be obtained at one time. When the candidate streaming media needs to be played, the user terminal can directly find the verification information of the streaming media to be played and verify the streaming media data to be played, further reducing the number of interactions between the user terminal and the verification server, saving network resources, and computing resources of the user terminal and the verification server.
[0093] In an optional embodiment, the process of the user terminal sending a second verification information acquisition request to the verification server according to the playlist may include: generating a second verification information acquisition request according to the third part of the candidate streaming media in the multiple candidate streaming media, and sending the second verification information acquisition request to the verification server; then the process of the user terminal generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server may include: receiving the verification information corresponding to the third part of the candidate streaming media in the playlist sent by the verification server, and generating a verification information set according to the verification information corresponding to the third part of the candidate streaming media. When the streaming media application is started, the verification information of some of the streaming media in all the candidate streaming media associated with the user terminal can be obtained first. In the scenario where the user has not completely played all the candidate streaming media in the playlist, the number of interactions between the user terminal and the verification server is reduced, while saving the storage resources of the user terminal.
[0094] In an optional embodiment, the process of a user terminal generating a second verification information acquisition request based on a third part of candidate streaming media among multiple candidate streaming media may include: randomly selecting a preset number of candidate streaming media in the playlist to obtain the third part of candidate streaming media, and generating a second verification information acquisition request based on the third part of candidate streaming media. Among them, the preset number can be determined based on actual needs, and the embodiment of the present disclosure is not limited to this. For example, the preset number can be 5. The verification information of some streaming media among all candidate streaming media associated with the user terminal can be quickly obtained, while reducing the number of interactions between the user terminal and the verification server and saving the storage resources of the user terminal, so that after the streaming media application is started, a candidate streaming media can be selected from the randomly selected preset number of candidate streaming media for playback, thereby improving the streaming media playback efficiency after the streaming media application is started, and further improving the user's streaming media playback experience.
[0095] In an optional implementation, the playlist sent by the streaming media server also includes play order information of multiple candidate streaming media. The play order information of the multiple candidate streaming media can be determined by the streaming media server based on the recommendation coefficient of each candidate streaming media, wherein the recommendation coefficient of the candidate streaming media can be determined based on the similarity between the candidate streaming media and the user's historically played streaming media. The similarity can be the streaming media content similarity or the streaming media attribute information similarity, etc. The present disclosure embodiment is not limited to this. It can be understood that the higher the similarity between the candidate streaming media and the user's historically played streaming media, the higher the recommendation coefficient of the candidate streaming media; the higher the recommendation coefficient of the candidate streaming media, the higher the playback order of the candidate streaming media.
[0096] Among them, the process of the user terminal generating a second verification information acquisition request according to the third part of the candidate streaming media among the multiple candidate streaming media may include: obtaining the playback order information of each candidate streaming media in the playlist; based on the playback order information, determining the candidate streaming media located at the first playback position and at least one second target candidate streaming media as the third part of the candidate streaming media, and the second target candidate streaming media is the candidate streaming media whose playback order is located after the candidate streaming media at the first playback position among the multiple candidate streaming media in the playlist. The number of second target candidate streaming media can be determined based on actual needs, and the embodiment of the present disclosure is not limited to this. For example, the number of second target candidate streaming media can be 3; when the streaming media application is started, when determining the playback order information of multiple candidate streaming media included in the playlist, the verification information of some candidate streaming media including the candidate streaming media at the first playback position among the multiple candidate streaming media can be obtained preferentially, and the number of interactions between the user terminal and the verification server can be reduced, and the storage resources of the user terminal can be saved, so that after the streaming media application is started, the candidate streaming media that the user is interested in can be played preferentially, thereby increasing the user's residence time in the streaming media application.
[0097] It should be noted that in the embodiment of the present disclosure, the playlist may contain address information of multiple candidate streaming media. The verification information acquisition request sent by the user terminal to the verification server carries the address information of the candidate streaming media. The verification server can determine the verification information of the candidate streaming media based on the address information of the candidate streaming media.
[0098] In step S202, the user terminal may search for verification information of the streaming media to be played in the pre-cached verification information set, and verify the streaming media data to be played according to the verification information of the streaming media to be played to obtain a verification result of the streaming media data to be played.
[0099] In an embodiment of the present disclosure, the verification information set includes verification information corresponding to each candidate streaming media in a playlist associated with a user terminal; wherein the verification information corresponding to each candidate streaming media in the playlist may include verification information of all candidate streaming media in the playlist associated with the user terminal; the verification information corresponding to each candidate streaming media in the playlist may also include verification information of the first part of candidate streaming media in the playlist associated with the user terminal, wherein the verification information corresponding to the first part of candidate streaming media is the verification information of part of the candidate streaming media obtained when the user terminal obtained verification information of part of the candidate streaming media last time.
[0100] In an optional implementation, the verification information set pre-cached in the user terminal may include: verification information of all candidate streaming media in a playlist associated with the user terminal, and the process of the user terminal searching for verification information of the streaming media to be played in the pre-cached verification information set may include: searching for verification information of the streaming media to be played in the verification information of all candidate streaming media.
[0101] In an optional implementation, the verification information set pre-cached in the user terminal may include: verification information of the first part of candidate streaming media in the playlist associated with the user terminal, then the process of the user terminal searching for verification information of the streaming media to be played in the pre-cached verification information set may include: searching for verification information of the streaming media to be played in the verification information of the first part of candidate streaming media.
[0102] The user terminal verifies the streaming media data to be played according to the verification information of the streaming media to be played, and the process of obtaining the verification result of the streaming media data to be played can be implemented based on a verification algorithm, and the verification algorithm can be a cyclic redundancy check (CRC) algorithm, such as: CRC32 algorithm.
[0103] In an optional implementation, there is a situation where the verification information of the first part of the candidate streaming media in the pre-cached playlist in the user terminal does not include the verification information of the streaming media data to be played. Before verifying the streaming media data to be played according to the verification information of the streaming media to be played and obtaining the verification result of the streaming media data to be played, the user terminal can also: send a first verification information acquisition request to the verification server when the verification information set does not include the verification information of the streaming media data to be played; receive the verification information of the second part of the candidate streaming media sent by the verification server, and update the verification information set according to the verification information of the second part of the candidate streaming media to obtain an updated verification information set; search for the verification information of the streaming media to be played in the updated verification information set. Among them, the first verification information acquisition request is used to indicate the acquisition of the verification information of the second part of the candidate streaming media, and the second part of the candidate streaming media includes the streaming media to be played. During the streaming media playback process, when it is determined that the verification information does not include the verification information of the streaming media data to be played, the verification information of the candidate streaming media that the user terminal needs to play can be obtained in batches from the verification server, reducing the number of interactions between the user terminal and the verification server while saving the storage resources of the user terminal.
[0104] In an optional implementation, before the user terminal sends a first verification information acquisition request to the verification server, the user terminal may also: obtain the playback order information of each candidate streaming media in the playlist; based on the playback order information of each candidate streaming media, determine the streaming media to be played and at least one first target candidate streaming media as the second part of the candidate streaming media, wherein the first target candidate streaming media is a candidate streaming media whose playback order is after the streaming media to be played among the multiple candidate streaming media in the playlist; the number of the first target candidate streaming media may be determined based on actual needs, and the embodiment of the present disclosure is not limited to this. For example, the number of the first target candidate streaming media may be 3. During the streaming media playback process, the verification information of some candidate streaming media including the current streaming media to be played among the multiple candidate streaming media may be obtained preferentially, and the number of interactions between the user terminal and the verification server may be reduced, and the storage resources of the user terminal may be saved, so that after the streaming media playback process, the candidate streaming media that the user is interested in may be played preferentially, further improving the user's residence time in the streaming media application.
[0105] For example, after the streaming media application is started, the playlist associated with the user terminal obtained by the user terminal includes 12 candidate streaming media, and the playlist contains the playback order information of the 12 candidate streaming media. The user terminal can first obtain the verification information of the first 4 candidate streaming media. When the streaming media to be played is the second candidate streaming media, the verification information of the second candidate streaming media can be directly obtained from the pre-cached verification information set, and the second candidate streaming media data can be verified; when the streaming media to be played is the fifth candidate streaming media, since the pre-cached verification information set does not contain the verification information of the fifth candidate streaming media, it is necessary to obtain the verification information of the fifth to eighth candidate streaming media from the verification server, and update the verification information set.
[0106] In step S203, when the verification result indicates that the streaming media data to be played has passed the verification, the streaming media data to be played is played.
[0107] In an optional implementation, when the verification result indicates that the streaming media data to be played has passed the verification, the process of playing the streaming media data to be played may include: decoding the streaming media data to be played to play the streaming media content corresponding to the streaming media data. If the streaming media to be played is a video or an audio and video, the decoded streaming media data to be played is used to render the display interface of the user terminal to play the video screen corresponding to the streaming media data to be played.
[0108] In a streaming media playback method provided by an embodiment of the present disclosure, Figure 3 As shown, the streaming media playing method may include the following steps:
[0109] Step S301, after determining the current streaming media to be played, obtaining the streaming media data to be played;
[0110] Step S302, determining whether the pre-cached verification information set contains verification information of the streaming media to be played;
[0111] Step S303, when the pre-cached verification information set includes the verification information of the streaming media to be played, searching the pre-cached verification information set for the verification information of the streaming media to be played;
[0112] Step S304: When the pre-cached verification information set does not include the verification information of the streaming media to be played, a first verification information acquisition request is sent to the verification server;
[0113] Step S305, receiving the verification information of the second part of the candidate streaming media sent by the verification server, and updating the verification information set according to the verification information of the second part of the candidate streaming media to obtain an updated verification information set; and searching the verification information of the streaming media to be played in the updated verification information set;
[0114] Step S306, verifying the streaming media data to be played according to the verification information of the streaming media to be played, and obtaining the verification result of the streaming media data to be played;
[0115] Step S307: When the verification result indicates that the streaming media data to be played has passed the verification, the streaming media data to be played is played.
[0116] Figure 4 is a block diagram of a streaming media playback device according to an exemplary embodiment. Figure 4 , the streaming media playback device 400 comprises:
[0117] The acquisition module 401 is configured to acquire the data of the streaming media to be played after determining the current streaming media to be played;
[0118] The verification module 402 is configured to search for verification information of the streaming media to be played in the pre-cached verification information set, and verify the streaming media data to be played according to the verification information of the streaming media to be played, and obtain a verification result of the streaming media data to be played, wherein the verification information set includes verification information corresponding to each candidate streaming media in the play list associated with the user terminal;
[0119] The playing module 403 is configured to play the streaming media data to be played if the verification result indicates that the streaming media data to be played has passed the verification.
[0120] Optionally, the verification information corresponding to each candidate streaming media in the playlist includes the verification information of the first part of the candidate streaming media in the playlist, such as Figure 4As shown, the streaming media playback device 400 further includes an updating module 404 configured to:
[0121] In the case that the verification information set does not include the verification information of the streaming media data to be played, sending a first verification information acquisition request to the verification server, where the first verification information acquisition request is used to instruct to obtain the verification information of the second part of candidate streaming media, where the second part of candidate streaming media includes the streaming media to be played;
[0122] receiving verification information of the second part of the candidate streaming media sent by the verification server, and updating the verification information set according to the verification information of the second part of the candidate streaming media to obtain an updated verification information set;
[0123] The verification information of the streaming media to be played is searched in the updated verification information set.
[0124] Optional, such as Figure 4 As shown, the streaming media playback device 400 further includes a determination module 405 configured to:
[0125] Get the playback order information of each candidate streaming media in the playlist;
[0126] Based on the playback order information of each candidate streaming media, the streaming media to be played and at least one first target candidate streaming media are determined as the second part of candidate streaming media. The first target candidate streaming media is a candidate streaming media whose playback order is after the streaming media to be played among multiple candidate streaming media in the playlist.
[0127] Optional, such as Figure 4 As shown, the streaming media playback device 400 further includes a generating module 406 configured to:
[0128] In response to the operation of running the streaming media application, obtaining a playlist associated with the user terminal from the streaming media server;
[0129] Sending a second verification information acquisition request to the verification server according to the playlist, where the second verification information acquisition request is used to instruct to obtain verification information corresponding to the candidate streaming media in the playlist;
[0130] A verification information set is generated according to the verification information corresponding to each candidate streaming media in the playlist and sent by the verification server.
[0131] Optionally, the generating module 406 is configured to:
[0132] Generate a second verification information acquisition request according to all candidate streaming media in the playlist, and send the second verification information acquisition request to the verification server;
[0133] Generate a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server, including:
[0134] Receive verification information corresponding to all candidate streaming media in the playlist sent by the verification server, and generate a verification information set according to the verification information corresponding to each candidate streaming media.
[0135] Optionally, the generating module 406 is configured to:
[0136] Generate a second verification information acquisition request according to a third part of the candidate streaming media among the multiple candidate streaming media, and send the second verification information acquisition request to the verification server;
[0137] Generate a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server, including:
[0138] Verification information corresponding to the third part of the candidate streaming media in the playlist is received from the verification server, and a verification information set is generated according to the verification information corresponding to the third part of the candidate streaming media.
[0139] Optionally, the generating module 406 is configured to:
[0140] Get the playback order information of each candidate streaming media in the playlist;
[0141] Based on the playback order information, the candidate streaming media located at the first playback position and at least one second target candidate streaming media are determined as the third part of candidate streaming media, and the second target candidate streaming media is the candidate streaming media whose playback order is after the candidate streaming media at the first playback position among the multiple candidate streaming media in the playlist.
[0142] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0143] The exemplary embodiment of the present disclosure also provides an electronic device, which may be a user terminal. Figure 5 The electronic device is described. It should be understood that the following reference Figure 5 The electronic device is described. It should be understood that Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0144] like Figure 5As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).
[0145] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps of various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 510 can perform the following steps: Figures 2 to 3 The method steps shown, etc.
[0146] The storage unit 520 may include a volatile storage unit, such as a random access storage unit (RAM) 521 and / or a cache storage unit 522 , and may further include a read-only storage unit (ROM) 523 .
[0147] The storage unit 520 may also include a program / utility 524 having a set (at least one) of program modules 525, such program modules 525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0148] The bus 530 may include a data bus, an address bus, and a control bus.
[0149] The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and such communication may be performed via an input / output (I / O) interface 540. The electronic device 500 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 580. As shown, the network adapter 580 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0150] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0151] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or implementations combining hardware and software aspects, which may be collectively referred to herein as "circuit", "module" or "system". Those skilled in the art will readily think of other implementations of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0152] In addition, the present disclosure also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the streaming media playback method provided in the above embodiment.
[0153] In addition, the present disclosure also provides a computer program product, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the streaming media playback method provided in the above embodiment.
[0154] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A streaming media playback method, characterized in that: The method is applied to a user terminal, comprising: After determining the current streaming media to be played, obtaining the streaming media data to be played; Searching for verification information of the to-be-played streaming media in a pre-cached verification information set; In a case where the verification information set does not include the verification information of the streaming media data to be played, sending a first verification information acquisition request to the verification server, wherein the first verification information acquisition request is used to instruct to acquire verification information of a second part of candidate streaming media, wherein the second part of candidate streaming media includes the streaming media to be played; receiving verification information of the second part of candidate streaming media sent by the verification server, and updating the verification information set according to the verification information of the second part of candidate streaming media to obtain an updated verification information set; Searching for the verification information of the to-be-played streaming media in the updated verification information set; Verifying the streaming media data to be played according to the verification information of the streaming media to be played, and obtaining a verification result of the streaming media data to be played, wherein the verification information set includes verification information corresponding to each candidate streaming media in the play list associated with the user terminal; When the verification result indicates that the to-be-played streaming media data has passed the verification, the to-be-played streaming media data is played.
2. The streaming media playback method according to claim 1, characterized in that: The verification information corresponding to each candidate streaming media in the playlist includes the verification information of the first part of the candidate streaming media in the playlist.
3. The streaming media playback method according to claim 2, characterized in that: Before sending the first verification information acquisition request to the verification server, the method further includes: Obtaining playback order information of each candidate streaming media in the playlist; Based on the playback order information of each candidate streaming media, the streaming media to be played and at least one first target candidate streaming media are determined as the second part of candidate streaming media, and the first target candidate streaming media is a candidate streaming media whose playback order is after the streaming media to be played among the multiple candidate streaming media in the playlist.
4. The streaming media playback method according to claim 1, characterized in that: The method further comprises: In response to the operation of running the streaming media application, obtaining a playlist associated with the user terminal from the streaming media server; Sending a second verification information acquisition request to a verification server according to the playlist, wherein the second verification information acquisition request is used to instruct to obtain verification information corresponding to the candidate streaming media in the playlist; A verification information set is generated according to the verification information corresponding to each candidate streaming media in the playlist and sent by the verification server.
5. The streaming media playback method according to claim 4, characterized in that: The sending a second verification information acquisition request to a verification server according to the playlist includes: Generate the second verification information acquisition request according to all candidate streaming media in the playlist, and send the second verification information acquisition request to the verification server; The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises: Receive verification information corresponding to all candidate streaming media in the playlist respectively and sent by the verification server, and generate a verification information set according to the verification information corresponding to each candidate streaming media.
6. The streaming media playback method according to claim 4, characterized in that: The sending a second verification information acquisition request to a verification server according to the playlist includes: generating the second verification information acquisition request according to a third part of the candidate streaming media among the plurality of candidate streaming media, and sending the second verification information acquisition request to the verification server; The generating a verification information set according to the verification information corresponding to each candidate streaming media in the playlist sent by the verification server comprises: Receive verification information corresponding to the third part of candidate streaming media in the playlist sent by the verification server, and generate a verification information set according to the verification information corresponding to the third part of candidate streaming media.
7. The streaming media playback method according to claim 6, characterized in that: The step of generating the second verification information acquisition request according to a third part of the candidate streaming media among the plurality of candidate streaming media includes: Obtaining playback order information of each candidate streaming media in the playlist; Based on the playback order information, the candidate streaming media located at the first playback position and at least one second target candidate streaming media are determined as the third part of candidate streaming media, and the second target candidate streaming media is a candidate streaming media whose playback order is after the candidate streaming media at the first playback position among the multiple candidate streaming media in the playlist.
8. A streaming media playback device, characterized in that: The device is a user terminal, comprising: The acquisition module is configured to acquire the data of the streaming media to be played after determining the current streaming media to be played; A verification module is configured to search for verification information of the streaming media to be played in a pre-cached verification information set; in a case where the verification information of the streaming media data to be played is not included in the verification information set, send a first verification information acquisition request to a verification server, the first verification information acquisition request being used to instruct acquisition of verification information of a second part of candidate streaming media, the second part of candidate streaming media including the streaming media to be played; receive the verification information of the second part of candidate streaming media sent by the verification server, and update the verification information set according to the verification information of the second part of candidate streaming media to obtain an updated verification information set; search for the verification information of the streaming media to be played in the updated verification information set; verify the streaming media data to be played according to the verification information of the streaming media to be played, and obtain a verification result of the streaming media data to be played, the verification information set including verification information corresponding to each candidate streaming media in a playlist associated with the user terminal; The playing module is configured to play the streaming media data to be played if the verification result indicates that the streaming media data to be played has passed the verification.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the streaming media playback method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the streaming media playing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Video data playing processing method and device, server and terminal
CN111182336A