WO2022166591A1 - 直播资源的播放方法、装置、存储介质以及电子设备 - Google Patents

直播资源的播放方法、装置、存储介质以及电子设备 Download PDF

Info

Publication number
WO2022166591A1
WO2022166591A1 PCT/CN2022/072804 CN2022072804W WO2022166591A1 WO 2022166591 A1 WO2022166591 A1 WO 2022166591A1 CN 2022072804 W CN2022072804 W CN 2022072804W WO 2022166591 A1 WO2022166591 A1 WO 2022166591A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
resource
live broadcast
streams
stream
Prior art date
Application number
PCT/CN2022/072804
Other languages
English (en)
French (fr)
Inventor
杨承龙
Original Assignee
北京金山云网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山云网络技术有限公司 filed Critical 北京金山云网络技术有限公司
Publication of WO2022166591A1 publication Critical patent/WO2022166591A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data

Definitions

  • the present disclosure relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and an electronic device for playing live broadcast resources.
  • the data packets are stored in the remote file system, and the data packets are downloaded and played after receiving the playback instruction.
  • the process of downloading the data packets will take a certain amount of time, and the delay time may be There are some errors, and at the same time, the download of the data package may not be successful, resulting in the data package cannot be played.
  • the present disclosure provides a method, device, storage medium and electronic device for playing live broadcast resources, so as to at least solve the technical problem of low accuracy of controlling live broadcast resources for delayed playback in the related art.
  • a method for playing live broadcast resources including: acquiring a target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource; In the case of the target live broadcast resource, convert the target live broadcast resources into resource streams of multiple code rates; store the resource streams of the multiple code rates to the local disk; monitor whether the time reaches the target live broadcast according to the target delay information The target playback time of the resource; when the time reaches the target playback time, the resource stream of the target bit rate in the resource streams of the multiple bit rates in the local disk is sent to the target of the target live broadcast resource resource player.
  • the method before acquiring the target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource, the method further includes: displaying a delay information input page, wherein the delay information input page It is used to input the delay time and prohibited broadcast content of the live broadcast resources according to the live broadcast domain name; obtain the live broadcast domain name, delay time and prohibited broadcast content entered on the delay information input page with the corresponding relationship; store the live broadcast with the corresponding relationship Domain name and delay configuration file, wherein the delay configuration file records the delay time and prohibited content corresponding to the live broadcast domain name.
  • acquiring the target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource includes: receiving the target live broadcast resource sent by the target domain name; Acquire a target configuration file corresponding to the target domain name; and determine the target delay time recorded in the target configuration file as the target delay information.
  • storing the resource streams of the multiple code rates to the local disk includes: determining a plurality of resource packages included in the resource streams of each code rate in the resource streams of the multiple code rates Receiving time of each resource package of ; and storing the resource streams of the plurality of code rates in the local disk, as well as the resource package identifier and the receiving time having a corresponding relationship.
  • sending the resource streams of the target bit rate in the resource streams of the multiple bit rates in the local disk to the target resource player of the target live resource includes: according to the target bit rate
  • the receiving time of the resource packs included in the resource stream is from front to back, and the target resource packs are sequentially extracted from the local disk; it is detected whether the target resource packs include the target forbidden content recorded in the target configuration file; In the case of detecting that the target resource package includes the target prohibited content, delete the target resource package; in the case of detecting that the target resource package does not include the target prohibited content, delete the target resource package.
  • the target resource package is sent to the target resource player.
  • sending the resource streams of the target bit rate in the resource streams of the multiple bit rates in the local disk to the target resource player of the target live resource comprises: obtaining the target resource player the indicated target code rate; obtain the target resource stream corresponding to the target code rate from the resource streams of the multiple code rates stored in the local disk; send the target resource stream to the target resource player.
  • sending the resource stream of the target code rate in the resource streams of the multiple code rates in the local disk to the target resource player of the target live resource includes: from multiple resource transmission protocols. , obtain the target resource transmission protocol supported by the target resource player and with the highest transmission efficiency; use the target resource transmission protocol to encode the resource stream of the target code rate to obtain an encoded resource stream; The stream is sent to the target resource player of the target live resource.
  • a device for playing live broadcast resources including: a first acquisition module configured to obtain a target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource; a conversion module, configured to convert the target live broadcast resources into resource streams of multiple code rates when the target delay information is obtained; a first storage module, configured to convert the resources of the multiple code rates The stream is stored on the local disk; the monitoring module is configured to monitor whether the time reaches the target playback time of the target live broadcast resource according to the target delay information; the sending module is configured to, when the time reaches the target playback time, sends The resource stream of the target code rate in the resource streams of the multiple code rates in the local disk is sent to the target resource player of the target live broadcast resource.
  • a storage medium is also provided, where the storage medium includes a stored program, and the above method is executed when the program runs.
  • an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the above method through the computer program.
  • the target live broadcast resource to be played and the target delay information corresponding to the target live broadcast resource are obtained; when the target delay information is obtained, the target live broadcast resource is converted into a resource stream of multiple bit rates ; Store the resource streams of multiple bit rates to the local disk; monitor whether the time reaches the target playback time of the target live resource according to the target delay information; when the time reaches the target playback time, store the multiple bit rates in the local disk.
  • the obtained target live resource is converted into a resource stream of multiple bit rates and stored in the local disk.
  • the resource stream is directly extracted from the local disk and sent, which can accurately control the delay time, and there is no situation that the resource stream cannot be obtained, which ensures the delay playback success rate of the live resource.
  • it can also provide resource streams with multiple bit rates for the target resource player, so as to provide the resource player with more playback options, thus achieving the technical effect of improving the accuracy of controlling the live broadcast resource for delayed playback, thereby solving the problem. This solves the technical problem of low accuracy in controlling live broadcast resources for delayed playback.
  • FIG. 1 is a schematic diagram of a hardware environment of a method for playing live resources according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for playing live resources according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a storage process of an index file according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a process for detecting prohibited content according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a delayed playback process of live broadcast resources according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of an apparatus for playing live resources according to an embodiment of the present disclosure.
  • FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • an embodiment of a method for playing live broadcast resources is provided.
  • the above-mentioned method for playing live resources can be applied to a hardware environment composed of a terminal 101 and a server 103 as shown in FIG. 1 .
  • the server 103 is connected to the terminal 101 through the network, and can be used to provide services (such as game services, application services, etc.) for the terminal or the client installed on the terminal, and a database can be set on the server or independently of the server,
  • the above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like.
  • the method for playing live resources in the embodiment of the present disclosure may be executed by the server 103 , may also be executed by the terminal 101 , or may be executed jointly by the server 103 and the terminal 101 .
  • the terminal 101 may also execute the method for playing live resources according to the embodiment of the present disclosure by a client installed on the terminal 101 .
  • FIG. 2 is a flowchart of a method for playing live resources according to an embodiment of the present disclosure. As shown in FIG. 2 , the method may include the following steps:
  • Step S202 acquiring target live broadcast resources to be played and target delay information corresponding to the target live broadcast resources
  • Step S204 in the case of acquiring the target delay information, convert the target live broadcast resource into resource streams of multiple bit rates;
  • Step S206 storing the resource streams of the multiple code rates to a local disk
  • Step S208 monitoring whether the time reaches the target playback time of the target live broadcast resource according to the target delay information
  • Step S210 when the time reaches the target playback time, send the resource stream of the target bit rate in the resource streams of the multiple bit rates in the local disk to the target resource player of the target live resource .
  • the acquired target live broadcast resources are converted into resource streams of multiple bit rates and stored in the local disk, and when the monitoring time reaches the target playback time corresponding to the target live broadcast resources, the data is directly transferred from the local disk.
  • Extracting the resource stream for sending can accurately control the delay time, and there will be no situation where the resource stream cannot be obtained, which ensures the success rate of delayed playback of live resources, and can also provide multiple bit rates for the target resource player.
  • Resource stream so as to provide more playback options for resource players, thus achieving the technical effect of improving the accuracy of controlling live broadcast resources for delayed playback, and solving the technology of low accuracy of controlling live broadcast resources for delayed playback question.
  • the above-mentioned method for playing live broadcast resources can be applied to, but not limited to, a streaming media server with a delayed live broadcast function.
  • the target live broadcast resources to be played may include, but are not limited to, video resources, audio resources, and the like.
  • video resources For example: live video of sports events, live video of entertainment programs, live video of news consultation, live broadcast of radio programs and so on.
  • the target delay information is used to indicate the delay time of the target live broadcast resource in the live broadcast process, the prohibited content, and the like.
  • the method before acquiring the target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource, the method further includes:
  • S13 Store the live domain name and the delay configuration file having a corresponding relationship, wherein the delay configuration file records the delay time and prohibited broadcast content corresponding to the live broadcast domain name.
  • a delay information input page is provided to obtain delay information.
  • the delay information input page can be, but is not limited to, a page on any type of application with a delay information input function. For example, it can be displayed on a plug-in, application program, applet, or software as a live broadcast.
  • the controller provides input scenarios for control information.
  • the delay information of the live broadcast resource can be configured according to the live broadcast domain name of the live broadcast resource but is not limited to, and the live broadcast resources sent from different live broadcast domain names can be configured with different delay information according to the requirements of the live broadcast domain name.
  • the live broadcast domain name may include, but is not limited to, the IP address, URL, etc. of the sending end of the live broadcast resource.
  • acquiring the target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource includes:
  • S23 Determine the target delay time recorded in the target configuration file as the target delay information.
  • the corresponding delay time may be obtained, but not limited to, according to the live broadcast domain name as the delay information.
  • the delay configuration file corresponding to each live broadcast domain name is pre-configured and stored in the local disk.
  • the corresponding target configuration file is obtained from the configuration file, and the recorded target delay time is determined as the target delay information to control the delayed playback of the target live broadcast resource.
  • the bit rate may, but is not limited to, refer to the bit rate, which may represent the number of transmitted bits per unit time, and convert the target live resource into resource streams with multiple bit rates, which can quickly and conveniently provide the player with Provide resource streams of different bit rates to meet various playback needs of the player.
  • the resource streams of multiple bit rates obtained after the conversion of the target live broadcast resources are stored in the local disk of the local disk server, which can save the time for obtaining resources from the remote end, and can control more accurately
  • the process of delayed playback ensures that the resources to be played can be successfully obtained and played.
  • storing the resource streams of the multiple bit rates to the local disk includes:
  • the resource package identifier and the receiving time having the corresponding relationship may be stored in the local disk, but not limited to, as the playback index of the live resource.
  • FIG. 3 is a schematic diagram of a storage process of an index file according to an embodiment of the present disclosure.
  • live broadcast resources are received and converted into resource streams of multiple bit rates, and stored in a local disk
  • the receiving time of the data packets in the live resource is recorded, an index of the data packet and the receiving time is constructed, and the index is stored in the local disk to control the delayed playback process of the live resource.
  • the server may, but is not limited to, automatically monitor the playback time of the target live broadcast resource.
  • the method of monitoring whether the time reaches the target playback time of the target live resource can be, but is not limited to, calculating the current system time minus the target delay time, and judging whether there is a resource package at the time, and if so, determining that the time reaches the target playback time .
  • the monitoring of the playback time by the server may be triggered by, but not limited to, the above-mentioned index file that records the resource package identifiers and the receiving time with the corresponding relationship.
  • the server can monitor the change of the index file.
  • the server monitors the change of the index file, it obtains the target delay information of the target live resource corresponding to the index file, and according to the target delay. time information to monitor the playback time of the target live broadcast resources.
  • step S210 if the time reaches the target playback time, the resource stream of the target bit rate is sent to the target resource player for playback.
  • the first resource package that should be played can be found, but not limited to, according to the above-mentioned index file and the target code rate to be played, and the following live resources are sent sequentially from the resource package. package to the player for playback.
  • sending the resource stream of the target code rate in the resource streams of the multiple code rates in the local disk to the target resource player of the target live broadcast resource includes:
  • the target resource package after the target resource package is extracted from the local disk, it can be detected for the prohibited content. If the target resource package belongs to the prohibited content, it can be deleted without sending and playing. If the package does not belong to the prohibited content, it can be sent and played.
  • the target prohibited broadcast content recorded in the target configuration file may be, but not limited to, the prohibited broadcast start time and the prohibited broadcast duration, and it is detected whether the target resource package includes the target prohibited broadcast content recorded in the target configuration file.
  • the method can be, but is not limited to, calculating the prohibited broadcast time period according to the prohibited broadcast start time and the prohibited broadcast duration. Before sending the target resource package, check whether the receiving time of the target resource package is within the prohibited broadcast time period. Within the time period, the target resource package is not sent, and the processing of the next target resource package is continued.
  • FIG. 4 is a schematic diagram of a process for detecting prohibited broadcast content according to an embodiment of the present disclosure.
  • monitor the local disk for changes (generated or updated) in the delayed broadcast configuration file create a delayed live broadcast task, and obtain the delayed broadcast configuration file.
  • Time duration configuration, playback bit rate, playback protocol calculate the playback start time of the resource stream, and then find the first live broadcast data packet that should be played according to the index file and playback bit rate configuration.
  • Live broadcast data packets the player uses RTMP, HLS or FLV protocol to obtain live broadcast data packets for playback.
  • sending the resource stream of the target code rate in the resource streams of the multiple code rates in the local disk to the target resource player of the target live broadcast resource includes:
  • S53 Send the target resource stream to the target resource player.
  • the resource player can specify the target bit rate to be played, or can also determine the bit rate suitable for transmission in the current network environment according to the current network conditions sent by the target resource player, so as to obtain the indicated bit rate by the target resource player. For example, when the network condition is good, the larger bit rate can be determined as the target bit rate, and when the network condition is poor, the smaller bit rate can be determined as the target bit rate, so that the live broadcast resources can be played more smoothly .
  • sending the resource stream of the target code rate in the resource streams of the multiple code rates in the local disk to the target resource player of the target live broadcast resource includes:
  • S63 Send the encoded resource stream to the target resource player of the target live broadcast resource.
  • the above-mentioned multiple resource transfer protocols may include, but are not limited to, RTMP (Real Time Messaging Protocol, real-time message transfer protocol), HLS (HTTP Live Streaming), FLV (FlashVideo, streaming media format) protocol and the like.
  • RTMP Real Time Messaging Protocol, real-time message transfer protocol
  • HLS HTTP Live Streaming
  • FLV FlashVideo, streaming media format
  • the player selects the resource transmission protocol that it supports and has the highest transmission efficiency as the target resource transmission protocol.
  • Using the target resource transmission protocol to encode and send the resource stream of the target code rate can ensure high resource transmission efficiency and improve resource playback experience.
  • the present disclosure also provides an embodiment.
  • the embodiment provides a delayed playback method of streaming media live broadcast, which can increase the length of the delayed live broadcast and improve the accuracy of the delay time. It can improve the stability of delayed live broadcast, reduce the complexity of the process, and reduce the cost of delayed live broadcast.
  • This method can also convert the source stream bit rate to meet the needs of different scenarios, and can also pull streams in different ways, supporting RTMP, HLS, FLV and other protocols to meet different technical requirements.
  • the streaming media server receives the live broadcast resource, stores the live broadcast resource in the local disk, and simultaneously constructs an index between each resource package in the live broadcast resource and the receiving time of the resource package. Calculate when playback of the delayed stream should occur. After the playback time is reached, find the first resource package that needs to be played according to the index, and push it to the client for playback according to the configured bit rate.
  • the controller can set the content to be prohibited from playing through the HTTP interface, and the streaming media server checks whether the acquired resource package is the prohibited content. If it is the prohibited content, the resource package is skipped.
  • FIG. 5 is a schematic diagram of a delayed playback process of live resources according to an embodiment of the present disclosure.
  • the streaming media server may include, but is not limited to, the following modules: a receiving storage module, configured to receive live resources, and store them Stored on local disk.
  • the record index module is set to establish the corresponding relationship between the live resource and the receiving time of the live resource and record it in the index file, so as to find the corresponding resource package according to the time, and also record the delay of the live resource in the index file. time.
  • the playback control module is set to receive a broadcast prohibition command, set the broadcast prohibition time, and realize the playback control function. Find the sending module, set it to find the live broadcast resources to be played, and send the live broadcast resources to the player according to the set bit rate.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solutions of the present disclosure can be embodied in the form of software products in essence or the parts that make contributions to related technologies.
  • the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ), including several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
  • FIG. 6 is a schematic diagram of an apparatus for playing live resources according to an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus may include:
  • the first obtaining module 602 is configured to obtain the target live broadcast resource to be played and target delay information corresponding to the target live broadcast resource;
  • the conversion module 604 is configured to convert the target live broadcast resources into resource streams of multiple bit rates when the target delay information is obtained;
  • the first storage module 606 is configured to store the resource streams of the multiple code rates to the local disk
  • the monitoring module 608 is configured to monitor whether the time reaches the target playback time of the target live broadcast resource according to the target delay information
  • the sending module 610 is configured to send the resource stream of the target bit rate in the resource streams of the multiple bit rates in the local disk to the target of the target live broadcast resource when the time reaches the target playback time resource player.
  • the first obtaining module 602 in this embodiment may be configured to perform step S202 in this embodiment of the present disclosure
  • the converting module 604 in this embodiment may be configured to perform step S204 in this embodiment of the present disclosure
  • the first storage module 606 in this embodiment may be configured to perform step S206 in this embodiment of the present disclosure
  • the monitoring module 608 in this embodiment may be configured to perform step S208 in this embodiment of the present disclosure.
  • the sending module in this embodiment 610 may be set to perform step S210 in the embodiment of the present disclosure.
  • the acquired target live broadcast resources are converted into resource streams with multiple bit rates and stored in the local disk.
  • the monitoring time reaches the target playback time corresponding to the target live broadcast resources
  • the resource streams are directly extracted from the local disk and performed. Sending can accurately control the delay time, and there will be no situation where the resource stream cannot be obtained, which ensures the delay playback success rate of the live resource, and can also provide the target resource player with resource streams of various bit rates, thus
  • the resource player is provided with more playback options, thereby achieving the technical effect of improving the accuracy of controlling live broadcast resources for delayed playback, and solving the technical problem of low accuracy of controlling live broadcast resources for delayed playback.
  • the apparatus further comprises:
  • the display module is configured to display a delay information input page before acquiring the target live broadcast resource to be played and the target delay information corresponding to the target live broadcast resource, wherein the delay information input page is set to input live broadcast according to the live broadcast domain name Resource delay time and prohibited content;
  • the second acquisition module is configured to acquire the live domain name, the delay time and the prohibited content entered on the delay information input page with a corresponding relationship;
  • the second storage module is configured to store a live domain name and a delay configuration file with a corresponding relationship, wherein the delay configuration file records the delay time and prohibited broadcast content corresponding to the live broadcast domain name.
  • the first obtaining module includes:
  • a receiving unit configured to receive the target live broadcast resource sent by the target domain name
  • a first obtaining unit configured to obtain a target configuration file corresponding to the target domain name from a live broadcast domain name and a delay configuration file having a corresponding relationship
  • the first determining unit is configured to determine the target delay time recorded in the target configuration file as the target delay information.
  • the first storage module includes:
  • a second determining unit configured to determine the receiving time of each resource packet in the multiple resource packets included in the resource streams at each code rate in the multiple code rate resource streams;
  • the storage unit is configured to store the resource streams of the plurality of code rates, and the resource package identifiers and the receiving time in the corresponding relationship in the local disk.
  • the sending module includes:
  • an extraction unit configured to sequentially extract the target resource package from the local disk according to the reception time of the resource package included in the resource stream of the target code rate
  • a detection unit configured to detect whether the target resource package includes the target prohibited content recorded in the target configuration file
  • a deletion unit configured to delete the target resource package when it is detected that the target resource package includes the target prohibited content
  • a first sending unit configured to send the target resource package to the target resource player when it is detected that the target resource package does not include the target prohibited content.
  • the sending module includes:
  • a second obtaining unit configured to obtain the target code rate indicated by the target resource player
  • the 3rd acquisition unit is set to obtain the target resource stream corresponding to the target code rate from the resource stream of the multiple code rates stored in the local disk;
  • the second sending unit is configured to send the target resource stream to the target resource player.
  • the sending module includes:
  • a fourth obtaining unit configured to obtain the target resource transfer protocol supported by the target resource player and with the highest transmission efficiency from a plurality of resource transfer protocols
  • an encoding unit configured to use the target resource transmission protocol to encode the resource stream of the target code rate to obtain an encoded resource stream
  • the third sending unit is configured to send the encoded resource stream to the target resource player of the target live broadcast resource.
  • the above modules may run in the hardware environment as shown in FIG. 1 , and may be implemented by software or hardware, wherein the hardware environment includes a network environment.
  • an electronic device configured to implement the above-mentioned method for playing live broadcast resources.
  • FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device may include: one or more (only one is shown in the figure) a processor 701 , a memory 703 , and a transmission Apparatus 705 , as shown in FIG. 7 , the electronic device may further include an input and output device 707 .
  • the memory 703 can be set to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for playing live resources in the embodiment of the present disclosure, and the processor 701 runs the software programs and modules stored in the memory 703, Thus, various functional applications and data processing are executed, that is, the above-mentioned method for playing live broadcast resources is implemented.
  • Memory 703 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • memory 703 may further include memory located remotely from processor 701, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the above-mentioned transmission device 705 is configured to receive or send data via a network, and may also be configured to transmit data between the processor and the memory. Specific examples of the above-mentioned networks may include wired networks and wireless networks.
  • the transmission device 705 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable so as to communicate with the Internet or a local area network.
  • the transmission device 705 is a radio frequency (Radio Frequency, RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • the memory 703 is configured to store application programs.
  • the processor 701 can call the application program stored in the memory 703 through the transmission device 705 to perform the following steps:
  • the resource stream of the target bit rate in the resource streams of the multiple bit rates in the local disk is sent to the target resource player of the target live resource.
  • a solution for delayed playback of live broadcast resources Convert the acquired target live resources into resource streams with multiple bit rates and store them in the local disk.
  • the monitoring time reaches the target playback time corresponding to the target live resources
  • the resource streams are directly extracted from the local disk and sent, which can accurately Control the delay time, and there will be no situation where the resource stream cannot be obtained, which ensures the success rate of delayed playback of live resources, and can also provide resource streams with multiple bit rates for the target resource player.
  • More playback options are provided, thereby achieving the technical effect of improving the accuracy of controlling live broadcast resources for delayed playback, thereby solving the technical problem of low accuracy of controlling live broadcast resources for delayed playback.
  • FIG. 7 is only a schematic diagram, and the electronic device can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a Mobile Internet Devices (MID) , PAD and other electronic equipment.
  • FIG. 7 does not limit the structure of the above electronic device.
  • the electronic device may also include more or fewer components than those shown in FIG. 7 (eg, network interfaces, display devices, etc.), or have a different configuration than that shown in FIG. 7 .
  • Embodiments of the present disclosure also provide a storage medium.
  • the above-mentioned storage medium may be used to execute the program code of the method for playing live resources.
  • the above-mentioned storage medium may be located on at least one network device among multiple network devices in the network shown in the above-mentioned embodiment.
  • the storage medium is configured to store program codes for performing the following steps:
  • the resource stream of the target bit rate in the resource streams of the multiple bit rates in the local disk is sent to the target resource player of the target live resource.
  • the above-mentioned storage medium may include, but is not limited to, a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk, or an optical disk, etc.
  • Various media that can store program code may include, but is not limited to, a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk, or an optical disk, etc.
  • Various media that can store program code may include, but is not limited to, a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk, or an optical disk, etc.
  • Various media that can store program code may include, but is not limited to, a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random
  • the integrated units in the above-mentioned embodiments are implemented in the form of software functional units and sold or used as independent products, they may be stored in the above-mentioned computer-readable storage medium.
  • the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the part that contributes to the related technology, or all or part of the technical solutions.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the disclosed client may be implemented in other manners.
  • the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the target live broadcast resource to be played and the target delay information corresponding to the target live broadcast resource are obtained; when the target delay information is obtained, the target live broadcast resource is converted into a resource stream of multiple bit rates ; Store the resource streams of multiple bit rates to the local disk; monitor whether the time reaches the target playback time of the target live resource according to the target delay information; when the time reaches the target playback time, store the multiple bit rates in the local disk.
  • the obtained target live resource is converted into a resource stream of multiple bit rates and stored in the local disk.
  • the resource stream is directly extracted from the local disk and sent, which can accurately control the delay time, and there is no situation that the resource stream cannot be obtained, which ensures the delay playback success rate of the live resource.
  • it can also provide resource streams with multiple bit rates for the target resource player, so as to provide the resource player with more playback options, thus achieving the technical effect of improving the accuracy of controlling the live broadcast resource for delayed playback, thereby solving the problem. This solves the technical problem of low accuracy in controlling live broadcast resources for delayed playback.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开涉及一种直播资源的播放方法、装置、存储介质以及电子设备,其中,该方法包括:获取待播放的目标直播资源和目标直播资源对应的目标延时信息;在获取到目标延时信息的情况下,将目标直播资源转换为多个码率的资源流;将多个码率的资源流存储到本地磁盘;根据目标延时信息监控时间是否到达目标直播资源的目标播放时间;在时间达到目标播放时间的情况下,将本地磁盘中的多个码率的资源流中目标码率的资源流发送至目标直播资源的目标资源播放器。本公开解决了控制直播资源进行延时播放的准确度较低的技术问题。

Description

直播资源的播放方法、装置、存储介质以及电子设备
本公开要求于2021年2月5日提交中国专利局、申请号为202110162673.7、发明名称为“一种直播资源的延时播放方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及计算机领域,尤其涉及一种直播资源的播放方法、装置、存储介质以及电子设备。
背景技术
目前对直播资源进行延时播放的技术中,将数据包存放于远端文件系统,接收到播放指令后再将数据包下载进行播放,下载数据包的过程会有一定耗时,延时时间可能存在一些误差,同时下载数据包有可能不成功,导致该数据包无法播放。
发明内容
本公开提供了一种直播资源的播放方法、装置、存储介质以及电子设备,以至少解决相关技术中控制直播资源进行延时播放的准确度较低的技术问题。
根据本公开实施例的一个方面,提供了一种直播资源的播放方法,包括:获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;将所述多个码率的资源流存储到本地磁盘;根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
在一实施方式中,在获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息之前,所述方法还包括:显示延时信息输入页面,其中,所述延时信息输入页面用于按照直播域名输入直播资源的延时时间和禁播内容;获取在所述延时信息输入页面上输入的具有 对应关系的直播域名,延时时间和禁播内容;存储具有对应关系的直播域名和延时配置文件,其中,所述延时配置文件中记录了直播域名对应的延时时间和禁播内容。
在一实施方式中,获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息包括:接收目标域名发送的所述目标直播资源;从具有对应关系的直播域名和延时配置文件获取所述目标域名对应的目标配置文件;将所述目标配置文件中记录的目标延时时间确定为所述目标延时信息。
在一实施方式中,将所述多个码率的资源流存储到所述本地磁盘包括:确定所述多个码率的资源流中每个码率的资源流所包括的多个资源包中的每个资源包的接收时间;在所述本地磁盘中存储所述多个码率的资源流,以及具有对应关系的资源包标识和接收时间。
在一实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:按照所述目标码率的资源流所包括的资源包的接收时间从前到后,从所述本地磁盘中依次提取目标资源包;检测所述目标资源包中是否包括了所述目标配置文件中所记录的目标禁播内容;在检测到所述目标资源包中包括所述目标禁播内容的情况下,删除所述目标资源包;在检测到所述目标资源包中未包括所述目标禁播内容的情况下,将所述目标资源包发送至所述目标资源播放器。
在一实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:获取所述目标资源播放器所指示的所述目标码率;从所述本地磁盘存储的所述多个码率的资源流中获取所述目标码率对应的目标资源流;将所述目标资源流发送至所述目标资源播放器。
在一实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:从多个资源传输协议中,获取所述目标资源播放器所支持的且传输效率最高的目标资源传输协议;使用所述目标资源传输协议对所述目标码率的资源流进行编码,得到编码资源流;将所述编码资源流发送至 所述目标直播资源的目标资源播放器。
根据本公开实施例的另一方面,还提供了一种直播资源的播放装置,包括:第一获取模块,设置为获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;转换模块,设置为在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;第一存储模块,设置为将所述多个码率的资源流存储到本地磁盘;监控模块,设置为根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;发送模块,设置为在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
根据本公开实施例的另一方面,还提供了一种存储介质,该存储介质包括存储的程序,程序运行时执行上述的方法。
根据本公开实施例的另一方面,还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器通过计算机程序执行上述的方法。
在本公开实施例中,采用获取待播放的目标直播资源和目标直播资源对应的目标延时信息;在获取到目标延时信息的情况下,将目标直播资源转换为多个码率的资源流;将多个码率的资源流存储到本地磁盘;根据目标延时信息监控时间是否到达目标直播资源的目标播放时间;在时间达到目标播放时间的情况下,将本地磁盘中的多个码率的资源流中目标码率的资源流发送至目标直播资源的目标资源播放器的方式,将获取到的目标直播资源转换为多个码率的资源流存储到本地磁盘中,在监控到时间达到该目标直播资源对应的目标播放时间时,直接从本地磁盘提取资源流进行发送,能够精准控制延时时间,并且不会出现无法获取到资源流的情况,保证了直播资源的延时播放成功率,同时还可以为目标资源播放器提供多种码率的资源流,从而为资源播放器提供更多的播放选择,从而实现了提高控制直播资源进行延时播放的准确度的技术效果,进而解决了控制直播资源进行延时播放的准确度较低的技术问题。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是根据本公开实施例的直播资源的播放方法的硬件环境的示意图;
图2是根据本公开实施例的一种直播资源的播放方法的流程图;
图3是根据本公开实施例的一种索引文件的存储过程的示意图;
图4是根据本公开实施例的一种检测禁播内容的过程的示意图;
图5是根据本公开实施例的一种直播资源延时播放过程的示意图;
图6是根据本公开实施例的一种直播资源的播放装置的示意图;
图7是根据本公开实施例的一种电子设备的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的 过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本公开实施例的一方面,提供了一种直播资源的播放的方法实施例。
在本实施例中,上述直播资源的播放方法可以应用于如图1所示的由终端101和服务器103所构成的硬件环境中。如图1所示,服务器103通过网络与终端101进行连接,可用于为终端或终端上安装的客户端提供服务(如游戏服务、应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器103提供数据存储服务,上述网络包括但不限于:广域网、城域网或局域网,终端101并不限定于PC、手机、平板电脑等。本公开实施例的直播资源的播放方法可以由服务器103来执行,也可以由终端101来执行,还可以是由服务器103和终端101共同执行。其中,终端101执行本公开实施例的直播资源的播放方法也可以是由安装在其上的客户端来执行。
图2是根据本公开实施例的一种直播资源的播放方法的流程图,如图2所示,该方法可以包括以下步骤:
步骤S202,获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
步骤S204,在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
步骤S206,将所述多个码率的资源流存储到本地磁盘;
步骤S208,根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
步骤S210,在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
通过上述步骤S202至步骤S210,将获取到的目标直播资源转换为 多个码率的资源流存储到本地磁盘中,在监控到时间达到该目标直播资源对应的目标播放时间时,直接从本地磁盘提取资源流进行发送,能够精准控制延时时间,并且不会出现无法获取到资源流的情况,保证了直播资源的延时播放成功率,同时还可以为目标资源播放器提供多种码率的资源流,从而为资源播放器提供更多的播放选择,从而实现了提高控制直播资源进行延时播放的准确度的技术效果,进而解决了控制直播资源进行延时播放的准确度较低的技术问题。
在本实施例中,上述直播资源的播放方法可以但不限于应用于具有延时直播功能的流媒体服务器。
在步骤S202提供的技术方案中,待播放的目标直播资源可以但不限于包括视频资源,音频资源等等。比如:体育赛事视频直播,娱乐节目视频直播,新闻咨询视频直播,广播节目直播等等。
在本实施例中,目标延时信息用于指示目标直播资源在在直播过程中的延时时间,禁播内容等等。
在一种实施方式中,在获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息之前,还包括:
S11,显示延时信息输入页面,其中,所述延时信息输入页面用于按照直播域名输入直播资源的延时时间和禁播内容;
S12,获取在所述延时信息输入页面上输入的具有对应关系的直播域名,延时时间和禁播内容;
S13,存储具有对应关系的直播域名和延时配置文件,其中,所述延时配置文件中记录了直播域名对应的延时时间和禁播内容。
在本实施例中,提供了一种延时信息输入页面来获取延时信息。该延时信息输入页面可以但不限于是任何类型具有延时信息输入功能的应用上的页面,比如:可以但不限于在插件、应用程序、小程序、软件上显示延时信息输入页面为直播控制人员提供控制信息的输入场景。
在本实施例中,直播资源的延时信息可以但不限于是按照直播资 源的直播域名配置的,从不同直播域名发送来的直播资源可以按照直播域名的要求配置不同的延时信息。直播域名可以但不限于包括:直播资源发送端的IP地址,URL等等。
在一种实施方式中,获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息包括:
S21,接收目标域名发送的所述目标直播资源;
S22,从具有对应关系的直播域名和延时配置文件获取所述目标域名对应的目标配置文件;
S23,将所述目标配置文件中记录的目标延时时间确定为所述目标延时信息。
在本实施例中,可以但不限于按照直播域名获取相应的延时时间作为延时信息。比如:在接收各个直播域名发送的直播资源之前,预先在本地磁盘中配置并存储了各个直播域名对应的延时配置文件,在接收到某目标域名发送的目标直播资源时,从存储的延时配置文件中获取其对应的目标配置文件,将其中记录的目标延时时间确定为目标延时信息用来控制目标直播资源的延时播放。
在步骤S204提供的技术方案中,码率可以但不限于指比特率,可以表示单位时间内传送比特的数目,将目标直播资源转换为多个码率的资源流,能够快速便捷地为播放器提供不同码率的资源流,满足播放器的各种播放需求。
在步骤S206提供的技术方案中,将目标直播资源转换后得到的多个码率的资源流存储到本地磁盘服务器的本地磁盘中,能够节省从远端获取资源的时间,也能够更加精确地控制延时播放的过程,确保能够成功获取到需要播放的资源进行播放。
在一种实施方式中,将所述多个码率的资源流存储到所述本地磁盘包括:
S31,确定所述多个码率的资源流中每个码率的资源流所包括的多个资源包中的每个资源包的接收时间;
S32,在所述本地磁盘中存储所述多个码率的资源流,以及具有对应关系的资源包标识和接收时间。
在本实施例中,具有对应关系的资源包标识和接收时间作为直播资源的播放索引可以但不限于被存储在本地磁盘中。
在本实施例中,具有对应关系的资源包标识和接收时间可以但不限于以索引文件的形式存储在本地磁盘中。图3是根据本公开实施例的一种索引文件的存储过程的示意图,如图3所示,在直播开始时接收直播资源并将其转换为多个码率的资源流,在本地磁盘中存储多个码率的资源流,记录直播资源中数据包的接收时间,构建出数据包与接收时间的索引,在本地磁盘中存储该索引用于控制直播资源的延时播放过程。
在步骤S208提供的技术方案中,服务器可以但不限于自动对目标直播资源的播放时间进行监控。监控时间是否到达目标直播资源的目标播放时间的方式可以但不限于为计算当前系统时间减去目标延时时间的时间,并判断该时间是否有资源包,如果有,则确定时间达到目标播放时间。
在本实施例中,可以但不限于通过上述记录了具有对应关系的资源包标识和接收时间的索引文件来触发服务器对播放时间的监控,比如:将具有对应关系的资源包标识和接收时间以索引文件的形式存储在本地磁盘中后,服务器能够监听到索引文件有变动,当服务器监听到索引文件有变动时,则获取索引文件对应的目标直播资源的目标延时信息,并根据该目标延时信息对目标直播资源的播放时间进行监控。
在步骤S210提供的技术方案中,如果时间到了目标播放时间,则将目标码率的资源流发送给目标资源播放器进行播放。
在本实施例中,当时间达到目标播放时间时,可以但不限于根据上述索引文件以及需要播放的目标码率找到第一个应该播放的资源包,从该资源包开始依次发送之后的直播资源包给播放器进行播放。
在一种实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包 括:
S41,按照所述目标码率的资源流所包括的资源包的接收时间从前到后,从所述本地磁盘中依次提取目标资源包;
S42,检测所述目标资源包中是否包括了所述目标配置文件中所记录的目标禁播内容;
S43,在检测到所述目标资源包中包括所述目标禁播内容的情况下,删除所述目标资源包;
S44,在检测到所述目标资源包中未包括所述目标禁播内容的情况下,将所述目标资源包发送至所述目标资源播放器。
在本实施例中,从本地磁盘中提取出目标资源包后可以对其进行禁播内容的检测,如果该目标资源包属于禁播内容,则可以将其删除不进行发送播放,如果该目标资源包不属于禁播内容,则可以进行发送播放。
在本实施例中,目标配置文件中所记录的目标禁播内容可以但不限于禁播起始时间以及禁播时长,检测目标资源包中是否包括了目标配置文件中所记录的目标禁播内容的方式可以但不限于为根据禁播起始时间与禁播时长算出禁播时间段,在发送目标资源包之前,检查该目标资源包的接收时间是否在禁播时间段内,如果在禁播时间段内,则不发送该目标资源包,继续处理下一个目标资源包。
图4是根据本公开实施例的一种检测禁播内容的过程的示意图,如图4所示,监听本地磁盘中延播配置文件有变动(生成或更新),创建延时直播任务,获取到延时时长配置,播放码率,播放协议,计算资源流的播放起始时间,之后根据索引文件以及播放码率配置找到第一个应该播放的直播数据包,从该数据包开始,依次发送之后的直播数据包,播放器使用RTMP,HLS或者FLV协议获取直播数据包进行播放。同时还可以获取用户设置的禁播内容,包括禁播起始时间以及禁播时长。根据禁播起始时间与禁播时长算出禁播时间段,在发送直播数据包之前,检查该直播数据包的接收时间是否在禁播时间段内,如果在禁播时间段内,则不发送该数据包,继续处理下一个直播数据包。 如果不在禁播时间段内,则发送该数据包,并继续计算下一个直播数据包,直至直播结束。
在一种实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:
S51,获取所述目标资源播放器所指示的所述目标码率;
S52,从所述本地磁盘存储的所述多个码率的资源流中获取所述目标码率对应的目标资源流;
S53,将所述目标资源流发送至所述目标资源播放器。
在本实施例中,资源播放器可以指定需要播放的目标码率,或者也可以根据目标资源播放器发送的当前网络状况确定适合在当前网络环境下传输的码率从而得到目标资源播放器所指示的目标码率,比如:网络状况较好时可以将较大码率确定为目标码率,网络状况较差时可以将较小码率确定为目标码率,从而使得直播资源能够更加顺畅的播放。
在一种实施方式中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:
S61,从多个资源传输协议中,获取所述目标资源播放器所支持的且传输效率最高的目标资源传输协议;
S62,使用所述目标资源传输协议对所述目标码率的资源流进行编码,得到编码资源流;
S63,将所述编码资源流发送至所述目标直播资源的目标资源播放器。
在本实施例中,上述多个资源传输协议可以但不限于包括RTMP(Real Time Messaging Protocol,实时消息传输协议),HLS(HTTP Live Streaming),FLV(FlashVideo,流媒体格式)协议等等。
在本实施例中,根据目标资源播放器为其选择其支持的且传输效率最高的资源传输协议作为目标资源传输协议。使用该目标资源传输协议对目标码率的资源流进行编码发送,能够保证资源传输的效率较高,提高资源的播放体验。
本公开还提供了一种实施例,该实施例为提高直播资源的延时时间的准确性,提供了一种流媒体直播的延迟播放方式,可以增加延时直播长度,提高延时时间的准确性,提高延时直播的稳定性,降低流程复杂度,同时降低延时直播的成本。该方式还可以对源流码率进行转换,适应不同场景的需求,并且也可以以不同方式进行拉流,支持RTMP,HLS,FLV等多种协议,满足不同技术要求。
在该方式中,流媒体服务器接收直播资源,将直播资源存储于本地磁盘中,同时构建直播资源中各个资源包与该资源包的接收时间之间的索引。计算何时应该进行延时流的播放。达到播放时间后,根据索引找到第一个需要播放的资源包,按照配置的码率推送给客户端进行播放。在直播过程中,控制人员可通过HTTP接口设置禁止播放内容,流媒体服务器检查获取到的资源包是否为被禁止播放的内容,如果为被禁止播放的内容,则跳过该资源包。
图5是根据本公开实施例的一种直播资源延时播放过程的示意图,如图5所示,流媒体服务器可以但不限于包括以下模块:接收存储模块,设置为接收直播资源,并将其存储于本地磁盘中。记录索引模块,设置为建立直播资源与该直播资源的接收时间之间的对应关系记录到索引文件中,便于根据时间找到相应的资源包,同时也会在索引文件中记录该直播资源的延时时间。播放控制模块,设置为接收禁播命令,设置禁播时间,实现播放控制功能。查找发送模块,设置为查找需要播放的直播资源,将直播资源按照设定的码率发送给播放器。
通过上述过程,减少了将直播资源存储到分布式文件系统或者数据库带来的带宽以及存储费用等存储成本。多种码率的数据包相比固定码率数据包,存储、带宽费用成倍增长,存储于本地磁盘也可以减少这一部分的消耗。不同码率的播放可以满足观众的不同清晰度的要求。同时直播资源存储于本地磁盘,访问本地磁盘相对于访问网络数 据会快一些,提升直播延时的精准度。将直播资源存储于磁盘而不是内存中,也可以大大提升直播延时的时间长度。不同的拉流协议其适用场景不同,可以让用户选择最符合其业务需求的协议进行播放。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
根据本公开实施例的另一个方面,还提供了一种设置为实施上述直播资源的播放方法的直播资源的播放装置。图6是根据本公开实施例的一种直播资源的播放装置的示意图,如图6所示,该装置可以包括:
第一获取模块602,设置为获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
转换模块604,设置为在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
第一存储模块606,设置为将所述多个码率的资源流存储到本地磁盘;
监控模块608,设置为根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
发送模块610,设置为在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
需要说明的是,该实施例中的第一获取模块602可以设置为执行本公开实施例中的步骤S202,该实施例中的转换模块604可以设置为执行本公开实施例中的步骤S204,该实施例中的第一存储模块606可以设置为执行本公开实施例中的步骤S206,该实施例中的监控模块608可以设置为执行本公开实施例中的步骤S208,该实施例中的发送模块610可以设置为执行本公开实施例中的步骤S210。
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现。
通过上述模块,将获取到的目标直播资源转换为多个码率的资源流存储到本地磁盘中,在监控到时间达到该目标直播资源对应的目标播放时间时,直接从本地磁盘提取资源流进行发送,能够精准控制延时时间,并且不会出现无法获取到资源流的情况,保证了直播资源的延时播放成功率,同时还可以为目标资源播放器提供多种码率的资源流,从而为资源播放器提供更多的播放选择,从而实现了提高控制直播资源进行延时播放的准确度的技术效果,进而解决了控制直播资源进行延时播放的准确度较低的技术问题。
在一种实施方式中,所述装置还包括:
显示模块,设置为在获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息之前,显示延时信息输入页面,其中,所述延时信息输入页面设置为按照直播域名输入直播资源的延时时间和禁播内容;
第二获取模块,设置为获取在所述延时信息输入页面上输入的具有对应关系的直播域名,延时时间和禁播内容;
第二存储模块,设置为存储具有对应关系的直播域名和延时配置 文件,其中,所述延时配置文件中记录了直播域名对应的延时时间和禁播内容。
在一种实施方式中,所述第一获取模块包括:
接收单元,设置为接收目标域名发送的所述目标直播资源;
第一获取单元,设置为从具有对应关系的直播域名和延时配置文件获取所述目标域名对应的目标配置文件;
第一确定单元,设置为将所述目标配置文件中记录的目标延时时间确定为所述目标延时信息。
在一种实施方式中,所述第一存储模块包括:
第二确定单元,设置为确定所述多个码率的资源流中每个码率的资源流所包括的多个资源包中的每个资源包的接收时间;
存储单元,设置为在所述本地磁盘中存储所述多个码率的资源流,以及具有对应关系的资源包标识和接收时间。
在一种实施方式中,所述发送模块包括:
提取单元,设置为按照所述目标码率的资源流所包括的资源包的接收时间从前到后,从所述本地磁盘中依次提取目标资源包;
检测单元,设置为检测所述目标资源包中是否包括了所述目标配置文件中所记录的目标禁播内容;
删除单元,设置为在检测到所述目标资源包中包括所述目标禁播内容的情况下,删除所述目标资源包;
第一发送单元,设置为在检测到所述目标资源包中未包括所述目标禁播内容的情况下,将所述目标资源包发送至所述目标资源播放器。
在一种实施方式中,所述发送模块包括:
第二获取单元,设置为获取所述目标资源播放器所指示的所述目标码率;
第三获取单元,设置为从所述本地磁盘存储的所述多个码率的资 源流中获取所述目标码率对应的目标资源流;
第二发送单元,设置为将所述目标资源流发送至所述目标资源播放器。
在一种实施方式中,所述发送模块包括:
第四获取单元,设置为从多个资源传输协议中,获取所述目标资源播放器所支持的且传输效率最高的目标资源传输协议;
编码单元,设置为使用所述目标资源传输协议对所述目标码率的资源流进行编码,得到编码资源流;
第三发送单元,设置为将所述编码资源流发送至所述目标直播资源的目标资源播放器。
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。
根据本公开实施例的另一个方面,还提供了一种设置为实施上述直播资源的播放方法的电子设备。
图7是根据本公开实施例的一种电子设备的结构框图,如图7所示,该电子设备可以包括:一个或多个(图中仅示出一个)处理器701、存储器703、以及传输装置705,如图7所示,该电子设备还可以包括输入输出设备707。
其中,存储器703可设置为存储软件程序以及模块,如本公开实施例中的直播资源的播放方法和装置对应的程序指令/模块,处理器701通过运行存储在存储器703内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的直播资源的播放方法。存储器703可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器703可进一步包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括 但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述的传输装置705设置为经由一个网络接收或者发送数据,还可以设置为处理器与存储器之间的数据传输。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置705包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置705为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。
其中,具体地,存储器703设置为存储应用程序。
处理器701可以通过传输装置705调用存储器703存储的应用程序,以执行下述步骤:
获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
将所述多个码率的资源流存储到本地磁盘;
根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
采用本公开实施例,提供了一种直播资源的延时播放的方案。将获取到的目标直播资源转换为多个码率的资源流存储到本地磁盘中,在监控到时间达到该目标直播资源对应的目标播放时间时,直接从本地磁盘提取资源流进行发送,能够精准控制延时时间,并且不会出现无法获取到资源流的情况,保证了直播资源的延时播放成功率,同时还可以为目标资源播放器提供多种码率的资源流,从而为资源播放器提供更多的播放选择,从而实现了提高控制直播资源进行延时播放的 准确度的技术效果,进而解决了控制直播资源进行延时播放的准确度较低的技术问题。
本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
本领域普通技术人员可以理解,图7所示的结构仅为示意,电子设备可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等电子设备。图7其并不对上述电子设备的结构造成限定。例如,电子设备还可包括比图7中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图7所示不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令电子设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
本公开的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以用于执行直播资源的播放方法的程序代码。
在本实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。
在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
将所述多个码率的资源流存储到本地磁盘;
根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。
在本公开的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本公开所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。
工业实用性
在本公开实施例中,采用获取待播放的目标直播资源和目标直播资源对应的目标延时信息;在获取到目标延时信息的情况下,将目标直播资源转换为多个码率的资源流;将多个码率的资源流存储到本地磁盘;根据目标延时信息监控时间是否到达目标直播资源的目标播放时间;在时间达到目标播放时间的情况下,将本地磁盘中的多个码率的资源流中目标码率的资源流发送至目标直播资源的目标资源播放器的方式,将获取到的目标直播资源转换为多个码率的资源流存储到本地磁盘中,在监控到时间达到该目标直播资源对应的目标播放时间时,直接从本地磁盘提取资源流进行发送,能够精准控制延时时间,并且不会出现无法获取到资源流的情况,保证了直播资源的延时播放成功率,同时还可以为目标资源播放器提供多种码率的资源流,从而为资源播放器提供更多的播放选择,从而实现了提高控制直播资源进行延时播放的准确度的技术效果,进而解决了控制直播资源进行延时播放的准确度较低的技术问题。

Claims (10)

  1. 一种直播资源的播放方法,包括:
    获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
    在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
    将所述多个码率的资源流存储到本地磁盘;
    根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
    在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
  2. 根据权利要求1所述的方法,其中,在获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息之前,所述方法还包括:
    显示延时信息输入页面,其中,所述延时信息输入页面用于按照直播域名输入直播资源的延时时间和禁播内容;
    获取在所述延时信息输入页面上输入的具有对应关系的直播域名,延时时间和禁播内容;
    存储具有对应关系的直播域名和延时配置文件,其中,所述延时配置文件中记录了直播域名对应的延时时间和禁播内容。
  3. 根据权利要求2所述的方法,其中,获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息包括:
    接收目标域名发送的所述目标直播资源;
    从具有对应关系的直播域名和延时配置文件获取所述目标域名对 应的目标配置文件;
    将所述目标配置文件中记录的目标延时时间确定为所述目标延时信息。
  4. 根据权利要求1至3任意一项所述的方法,其中,将所述多个码率的资源流存储到所述本地磁盘包括:
    确定所述多个码率的资源流中每个码率的资源流所包括的多个资源包中的每个资源包的接收时间;
    在所述本地磁盘中存储所述多个码率的资源流,以及具有对应关系的资源包标识和接收时间。
  5. 根据权利要求4所述的方法,其中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:
    按照所述目标码率的资源流所包括的资源包的接收时间从前到后,从所述本地磁盘中依次提取目标资源包;
    检测所述目标资源包中是否包括了所述目标配置文件中所记录的目标禁播内容;
    在检测到所述目标资源包中包括所述目标禁播内容的情况下,删除所述目标资源包;
    在检测到所述目标资源包中未包括所述目标禁播内容的情况下,将所述目标资源包发送至所述目标资源播放器。
  6. 根据权利要求1至5任意一项所述的方法,其中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:
    获取所述目标资源播放器所指示的所述目标码率;
    从所述本地磁盘存储的所述多个码率的资源流中获取所述目标码率对应的目标资源流;
    将所述目标资源流发送至所述目标资源播放器。
  7. 根据权利要求1至5任意一项所述的方法,其中,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器包括:
    从多个资源传输协议中,获取所述目标资源播放器所支持的且传输效率最高的目标资源传输协议;
    使用所述目标资源传输协议对所述目标码率的资源流进行编码,得到编码资源流;
    将所述编码资源流发送至所述目标直播资源的目标资源播放器。
  8. 一种直播资源的播放装置,包括:
    第一获取模块,设置为获取待播放的目标直播资源和所述目标直播资源对应的目标延时信息;
    转换模块,设置为在获取到所述目标延时信息的情况下,将所述目标直播资源转换为多个码率的资源流;
    第一存储模块,设置为将所述多个码率的资源流存储到本地磁盘;
    监控模块,设置为根据所述目标延时信息监控时间是否到达所述目标直播资源的目标播放时间;
    发送模块,设置为在时间达到所述目标播放时间的情况下,将所述本地磁盘中的所述多个码率的资源流中目标码率的资源流发送至所述目标直播资源的目标资源播放器。
  9. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7任一项中所述的方法。
  10. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器通过所述计算机程序执行上述权利要求1至7任一项中所述的方法。
PCT/CN2022/072804 2021-02-05 2022-01-19 直播资源的播放方法、装置、存储介质以及电子设备 WO2022166591A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110162673.7 2021-02-05
CN202110162673.7A CN114885181B (zh) 2021-02-05 2021-02-05 一种直播资源的延时播放方法和装置

Publications (1)

Publication Number Publication Date
WO2022166591A1 true WO2022166591A1 (zh) 2022-08-11

Family

ID=82666788

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072804 WO2022166591A1 (zh) 2021-02-05 2022-01-19 直播资源的播放方法、装置、存储介质以及电子设备

Country Status (2)

Country Link
CN (1) CN114885181B (zh)
WO (1) WO2022166591A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577827A (zh) * 2009-04-22 2009-11-11 北京大学 一种延时播放控制方法及系统
CN108574851A (zh) * 2017-12-11 2018-09-25 北京金山云网络技术有限公司 推送方法、装置、流媒体服务器及计算机可读存储介质
CN108966008A (zh) * 2018-08-02 2018-12-07 腾讯科技(深圳)有限公司 直播视频回放方法及装置
CN109218809A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种流媒体的播放方法和装置
CN110662114A (zh) * 2019-09-30 2020-01-07 广州华多网络科技有限公司 视频处理方法、装置、电子设备及存储介质
CN111541903A (zh) * 2020-01-14 2020-08-14 深圳市华曦达科技股份有限公司 直播加速方法、源站端、边缘节点、客户端及直播系统
CN112153404A (zh) * 2020-09-23 2020-12-29 北京达佳互联信息技术有限公司 码率调整方法、检测方法、装置、设备及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519372B (zh) * 2014-12-19 2017-11-21 深圳市九洲电器有限公司 一种流媒体播放的切换方法和系统
CN111182335B (zh) * 2019-10-18 2021-08-20 腾讯科技(深圳)有限公司 一种流媒体处理方法、装置、设备及计算机可读存储介质
CN111803917A (zh) * 2020-06-30 2020-10-23 北京金山云网络技术有限公司 资源的处理方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577827A (zh) * 2009-04-22 2009-11-11 北京大学 一种延时播放控制方法及系统
CN109218809A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种流媒体的播放方法和装置
CN108574851A (zh) * 2017-12-11 2018-09-25 北京金山云网络技术有限公司 推送方法、装置、流媒体服务器及计算机可读存储介质
CN108966008A (zh) * 2018-08-02 2018-12-07 腾讯科技(深圳)有限公司 直播视频回放方法及装置
CN110662114A (zh) * 2019-09-30 2020-01-07 广州华多网络科技有限公司 视频处理方法、装置、电子设备及存储介质
CN111541903A (zh) * 2020-01-14 2020-08-14 深圳市华曦达科技股份有限公司 直播加速方法、源站端、边缘节点、客户端及直播系统
CN112153404A (zh) * 2020-09-23 2020-12-29 北京达佳互联信息技术有限公司 码率调整方法、检测方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN114885181B (zh) 2023-07-07
CN114885181A (zh) 2022-08-09

Similar Documents

Publication Publication Date Title
US10116572B2 (en) Method, device, and system for acquiring streaming media data
CN103581699B (zh) 视频播放方法、流媒体服务器及流媒体播放系统
CN105100961B (zh) 视频缩略图生成方法及生成装置
CN103916679B (zh) 一种用于提供视频信息的方法、设备与系统
CN105451071B (zh) 一种视频流的处理方法、装置和系统
US20130179547A1 (en) Method and device for playing stream media video content
US9356985B2 (en) Streaming video to cellular phones
US11005975B2 (en) Rapid optimization of media stream bitrate
CN102036058A (zh) 视频监控系统中视频切换的方法、服务器、终端及系统
Lei et al. Design and implementation of streaming media processing software based on RTMP
CN104683734A (zh) 一种视频监控的内容适配方法、系统及中心服务器、装置
WO2023061060A1 (zh) 音视频码流的调度方法、系统、介质及电子装置
CN112839238A (zh) 投屏播放方法、装置和存储介质
CN103024491A (zh) 移动终端的视频播放方法和系统
JP6116240B2 (ja) 送信装置、送信方法、及びプログラム
WO2015077983A1 (zh) 在家庭网络中播放媒体的装置和方法
CN103561013B (zh) 流媒体的数据分发系统
CN113132194A (zh) 一种信息流转方法、装置、设备、服务器及存储介质
WO2022166591A1 (zh) 直播资源的播放方法、装置、存储介质以及电子设备
CN109587517B (zh) 一种多媒体文件的播放方法及装置、服务器及存储介质
CN108989426B (zh) 基于hls协议的拉流方法、系统及客户端和存储介质
CN112532719B (zh) 信息流的推送方法、装置、设备及计算机可读存储介质
CN107066398B (zh) 分发装置以及信息装置
WO2015052559A1 (en) Multimedia playing control method, apparatus for the same and system
KR102079339B1 (ko) 클라우드 시스템상의 컨텐츠를 디엘엔에이로 연결된 디바이스로 전달하는 전자 장치 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22748870

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22748870

Country of ref document: EP

Kind code of ref document: A1