CN113132750A - Information sending method and device and server - Google Patents

Information sending method and device and server Download PDF

Info

Publication number
CN113132750A
CN113132750A CN202110415901.7A CN202110415901A CN113132750A CN 113132750 A CN113132750 A CN 113132750A CN 202110415901 A CN202110415901 A CN 202110415901A CN 113132750 A CN113132750 A CN 113132750A
Authority
CN
China
Prior art keywords
live broadcast
data
live
request
index information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110415901.7A
Other languages
Chinese (zh)
Inventor
李尾冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110415901.7A priority Critical patent/CN113132750A/en
Publication of CN113132750A publication Critical patent/CN113132750A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides an information sending method, an information sending device and a server, wherein after a live broadcast request from a terminal device is received, whether first live broadcast data corresponding to the live broadcast request exists in a cache is judged; and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment. In the method, after the server receives the live broadcast request, if the live broadcast data corresponding to the request exists in the cache, the index information is sent to the terminal equipment, and the index information is sent without waiting for the arrival of a new data slice, so that the timeliness of sending the index information is improved, and the live broadcast starting speed is further improved.

Description

Information sending method and device and server
Technical Field
The invention relates to the technical field of computers, in particular to an information sending method, an information sending device and a server.
Background
In a live broadcast scene, when a user wants to watch a live broadcast, an index request needs to be sent to a live broadcast server through terminal equipment, after the server receives the index request, the server needs to wait for a live broadcast end to send a new data slice, then index information is generated based on the new data slice, and then the index information is returned to the terminal equipment; and the terminal equipment acquires the live audio and video data based on the index information so as to watch the live broadcast. In the mode, the server needs to wait for the new data slice before sending the index information, so that the timeliness of sending the index information is reduced, and the start speed of live broadcasting is further reduced.
Disclosure of Invention
In view of this, the present invention provides an information sending method, an information sending device, and a server, so as to improve timeliness of index information sending and further improve a broadcast start speed of live broadcast.
In a first aspect, an embodiment of the present invention provides an information sending method, where the method includes: receiving a live broadcast request from terminal equipment; judging whether first live broadcast data corresponding to the live broadcast request exists in the cache; and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
Further, the step of sending the live broadcast index information corresponding to the live broadcast request to the terminal device includes: and sending the live broadcast index information corresponding to the first live broadcast data to the terminal equipment.
Further, the step of sending the live broadcast index information corresponding to the first live broadcast data to the terminal device includes: splicing and combining the linked list identification of the first direct broadcast data to obtain direct broadcast index information in a character string form corresponding to the first direct broadcast data; and sending the live broadcast index information to the terminal equipment.
Further, the step of sending the live broadcast index information corresponding to the live broadcast request to the terminal device includes: acquiring second live broadcast data with specified data volume; and sending the second live broadcast data and the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
Further, the step of obtaining second live data of a specified data volume includes: if the live broadcast request indicates that second live broadcast data needs to be acquired, extracting a numerical value of a specified data volume from the live broadcast request; and acquiring second live broadcast data with specified data volume.
Further, the step of obtaining second live data of a specified data volume includes: acquiring second live broadcast data with specified data volume from the cache; the second live data belongs to at least a part of the first live data.
Further, the step of obtaining second live data of a specified data volume includes: acquiring second live broadcast data with specified data volume from the third live broadcast data; wherein the third live data includes: and after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request.
Further, the step of obtaining second live data of a specified data volume includes: judging whether an account sending the live broadcast request has live broadcast watching permission or not; and if the account has the live broadcast watching permission, executing the step of acquiring second live broadcast data with the specified data volume.
Further, the method further comprises: if the first live broadcast data corresponding to the live broadcast request does not exist in the cache, receiving fourth live broadcast data corresponding to the live broadcast request; wherein the fourth live data includes: after receiving a live broadcast request, receiving live broadcast data corresponding to the live broadcast request; and sending the index information corresponding to the fourth live broadcast data to the terminal equipment.
In a second aspect, an embodiment of the present invention provides an information sending apparatus, where the apparatus includes: the live broadcast request receiving module is used for receiving a live broadcast request from the terminal equipment; the cache data judgment module is used for judging whether first direct broadcasting data corresponding to the direct broadcasting request exists in the cache; and the index information sending module is used for sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment if the first live broadcast data corresponding to the live broadcast request exists in the cache.
In a third aspect, an embodiment of the present invention provides a server, including a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the information sending method according to any one of the first aspect.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the information sending method of any one of the first aspect.
The embodiment of the invention has the following beneficial effects:
the invention provides an information sending method, an information sending device and a server, wherein after a live broadcast request from a terminal device is received, whether first live broadcast data corresponding to the live broadcast request exists in a cache is judged; and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment. In the method, after the server receives the live broadcast request, if the live broadcast data corresponding to the request exists in the cache, the index information is sent to the terminal equipment, and the index information is sent without waiting for the arrival of a new data slice, so that the timeliness of sending the index information is improved, and the live broadcast starting speed is further improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an information sending method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another information sending method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a further method for sending information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an information sending apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the current online video live broadcast, when a user wants to watch live broadcast online, an index request needs to be sent to a live broadcast server through terminal equipment, after the server receives the index request, the server needs to wait for a live broadcast end to send a new data slice, then index information is generated based on the new data slice, and then the index information is returned to the terminal equipment; and the terminal equipment acquires the live audio and video data based on the index information so as to watch the live broadcast. In the mode, the server needs to wait for a new data slice before sending the index information, so that the timeliness of index information sending is reduced, the live broadcast starting speed is further reduced, in addition, if a live broadcast end sends data which is blocked, the waiting time is longer, and the live broadcast can generate obvious blocking. Based on this, the information sending method, the information sending device and the server provided by the embodiment of the invention can be applied to equipment with online live broadcast service.
To facilitate understanding of the present embodiment, first, a detailed description is given of an information sending method disclosed in the embodiment of the present invention, where an execution subject of the present embodiment is a server, and as shown in fig. 1, the method includes the following steps:
step S102, receiving a live broadcast request from a terminal device;
the terminal device generally refers to a device for playing a live broadcast, for example, a mobile phone, a notebook computer, a tablet computer, and the like; the live broadcast generally refers to online live broadcast, that is, a live broadcast picture of a live broadcast terminal can be instantly displayed on a terminal device through a server, for example, live game broadcast, live release meeting broadcast, live news broadcast and the like. The live broadcast request generally carries parameters such as a live broadcast scene, a live broadcast type, live broadcast content, and a live broadcast requirement, for example, the live broadcast scene is a game live broadcast, the live broadcast type is a game live broadcast of a certain anchor, the live broadcast content is a game picture and an anchor picture of an online live broadcast, and the live broadcast requirement may be a parameter such as high definition. In actual implementation, after receiving a live broadcast request from a terminal device, a server can obtain live broadcast data corresponding to the live broadcast request and other live broadcast information according to parameters carried by the live broadcast request.
Step S104, judging whether first live broadcast data corresponding to the live broadcast request exists in the cache;
the cache generally refers to a cache device installed in a server, and is also called as a cache or a high-speed memory; the first live broadcast data generally refers to audio and video data live broadcast on line by a live broadcast end, and includes audio and video data live broadcast within preset time from live broadcast request time. Specifically, after the server receives the live broadcast request, the server starts to cache live broadcast data sent by the live broadcast end in the cache device of the server. It should be noted that if the server starts the corresponding live broadcast service, the live broadcast data will be continuously cached in the service memory of the server, and if the live broadcast service is closed, the service memory will not exist, that is, the live broadcast data cached in the caching device will not exist.
For example, if the first live data corresponding to the live request is 10: 00: 00 live broadcast data generated by a live broadcast end, if the time period of the live broadcast data in the cache is 10: 00: 00-10: 00: and 10, judging that the first live broadcast data corresponding to the live broadcast request exists in the cache.
And step S106, if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
The live broadcast index information can be understood as the storage address of each section of live broadcast data; the first live data and the live index information corresponding to the live request can be stored in a memory of the server in a cache manner. For example, when a user watches live broadcast online, the server may cache live broadcast data and corresponding live broadcast index information in a recent period of time.
Specifically, if first live broadcast data corresponding to a live broadcast request exists in the cache, the server may first send live broadcast index information corresponding to the live broadcast request to the terminal device, and since the server needs to wait for a live broadcast end to send a new data slice after receiving the live broadcast request, then index information is generated based on the new data slice, and then the index information is returned to the terminal device, there is a time delay in the middle, the live broadcast index information sent by the server includes live broadcast index information corresponding to part or all of live broadcast data already existing in the current cache, so that the terminal device can quickly receive the index information corresponding to the live broadcast data, and then quickly enter a live broadcast picture; certainly, the method further includes that after the server receives the live broadcast request, the server receives live broadcast index information corresponding to the live broadcast data, so that the terminal device can continuously receive the index information and continuously display the live broadcast data corresponding to the live broadcast request.
The invention provides an information sending method, which comprises the steps of firstly judging whether first direct broadcast data corresponding to a direct broadcast request exists in a cache after receiving the direct broadcast request from a terminal device; and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment. In the method, after the server receives the live broadcast request, if the live broadcast data corresponding to the request exists in the cache, the index information is sent to the terminal equipment, and the index information is sent without waiting for the arrival of a new data slice, so that the timeliness of sending the index information is improved, and the live broadcast starting speed is further improved.
The embodiment also provides another information sending method, and the embodiment is realized on the basis of the embodiment. The embodiment mainly describes a specific implementation manner of the step of sending the live broadcast index information corresponding to the live broadcast request to the terminal device. The method specifically comprises the following steps:
step 201, receiving a live broadcast request from a terminal device;
step 202, judging whether first live broadcast data corresponding to the live broadcast request exists in a cache;
and 203, if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending live broadcast index information corresponding to the first live broadcast data to the terminal equipment.
The first live data may include live data in the cache, and may further include live data received by the server after receiving the live request. For example, the first live broadcast data may be identified, specifically, the first live broadcast data is split sequentially according to a time sequence, each split data is identified, the identification information of the first live broadcast data is determined as corresponding live broadcast index information, and the live broadcast index information is sent to the terminal device. And the terminal equipment can acquire corresponding live broadcast data according to the received live broadcast index information.
In step 203, a possible implementation manner is as follows: splicing and combining the linked list identification of the first direct broadcast data to obtain direct broadcast index information in a character string form corresponding to the first direct broadcast data; and sending the live broadcast index information to the terminal equipment.
The first broadcast data is received and cached usually in a data slice mode, each data slice may contain 0.3 second or 0.5 second audio and video, and the server caches the data usually in a linked list mode, so that each slice of the first broadcast data can be independently arranged on a corresponding linked list, each linked list has a corresponding linked list identifier, and finally the linked list identifier of the first broadcast data is obtained. In order to enable the terminal device to recognize the received live broadcast index information, the linked list identifiers of the first live broadcast data can be spliced and combined to obtain the live broadcast index information in the character string form corresponding to the first live broadcast data, and the live broadcast index information is sent to the terminal device, so that the terminal device can obtain the storage address of the first live broadcast data according to the live broadcast index information.
For example, the server caches 20 seconds of live data, where the 20 seconds of live data are 100 data slices; setting each data slice on a corresponding linked list, wherein the linked list identification of the first broadcast data can be 1-1, 1-2, …, 1-100; the linked list identifier is spliced and combined to obtain live broadcast index information in a character string form corresponding to the first live broadcast data, such as live broadcast index information in a character string form of 1-1-2-3 … 100 and the like, and then the live broadcast index information is sent to the terminal device.
In the above manner, after receiving a live broadcast request from a terminal device, first determining whether first live broadcast data corresponding to the live broadcast request exists in a cache; if the first live broadcast data corresponding to the live broadcast request exists in the cache, firstly, the live broadcast index information corresponding to the first live broadcast data is sent to the terminal equipment. In the method, after the server receives the live broadcast request, the server judges the cache state of the server, the index information corresponding to the first live broadcast data can be quickly responded, and is firstly sent to the terminal equipment. In addition, splicing and combining the linked list identification of the first live broadcast data to obtain live broadcast index information in a character string form corresponding to the first live broadcast data; sending the live broadcast index information to the terminal equipment so that the terminal equipment can identify the live broadcast index information and further acquire live broadcast data; index information is sent without passively waiting for the arrival value of the new data slice, so that the timeliness of sending the index information is improved, and the start speed of live broadcasting is further improved.
The embodiment also provides another information sending method, and the embodiment is realized on the basis of the embodiment. This embodiment mainly describes another possible implementation manner of the step of sending the live broadcast index information corresponding to the live broadcast request to the terminal device, including:
step 301, acquiring second live broadcast data with specified data volume;
the specified data volume can be specifically set according to the requirements of the terminal device, for example, the specified data volume can be set according to a playing scene, if the live data of the playing request is live game, the definition of a live broadcast picture is required to be good, and second live broadcast data with a small data volume (for example, live broadcast data of 1-2 seconds) can be generally obtained at the moment so as to improve the definition of the live broadcast picture; for another example, if the live broadcast data of the play request is live lecture broadcast, the continuity of the live broadcast is required to be better, and at this time, second live broadcast data with a larger data amount (for example, live broadcast data of 4 to 5 seconds) is usually obtained, so as to improve that the user can watch relatively more lecture content. The second live data is usually live data of a period nearest to the current time, and the second live data needs to have continuity with the subsequently acquired live data. That is, the subsequently acquired live data is live data based on time after the second live data, for example, the second live data is live data of 5 seconds closest to the current time, and the subsequently acquired live data by the server is live data after 5 seconds.
In the related technology, after the terminal device starts playing and sends the live broadcast request, the index information is received at first, and then the corresponding live broadcast data is obtained according to the index information. Based on this problem, the above steps are a possible implementation:
if the live broadcast request indicates that second live broadcast data needs to be acquired, extracting a numerical value of a specified data volume from the live broadcast request; and acquiring second live broadcast data with specified data volume.
Usually, when the terminal device sends a live broadcast request, a parameter for acquiring second live broadcast data can be set; if the acquisition parameters are carried, the second live broadcast data are indicated to be acquired, and then a numerical value of a specified quantity can be extracted from the live broadcast request, wherein the numerical value can be the quantity of data slices of the second live broadcast data or the time of the second live broadcast data. Specifically, the second live data may be obtained from a current cache of the server according to a numerical value of the specified data volume, or the second live data may be obtained from live data newly received by the server according to the numerical value of the specified data volume. In addition, the second live broadcast data Of the specified data amount may be audio/video data Of a plurality Of or a specified number Of GOPs (Group Of pictures).
Another possible implementation: acquiring second live broadcast data with specified data volume from the cache; the second live data belongs to at least a part of the first live data.
Because the first live broadcast data corresponding to the live broadcast request exists in the cache, after the server receives the live broadcast request, in order to enable the terminal equipment to start broadcasting quickly and display a live broadcast picture, the second live broadcast data with specified data volume can be firstly obtained from the cache, and the specific specified data volume can be set according to the playing scene of the terminal equipment. The second live data may belong to at least a part of the first live data, or may be all of the first live data. The second live data typically belongs to a portion of the first live data.
Another possible implementation: acquiring second live broadcast data with specified data volume from the third live broadcast data; wherein the third live data includes: and after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request.
Of course, the second live data may not be acquired from the cache; second live data with a specified data volume can be directly obtained from third live data, wherein the third live data comprises: and after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request. Specifically, after the server receives the live broadcast request and waits for the live broadcast receiving end to return third live broadcast data, the server obtains live broadcast data corresponding to the live broadcast request from the received third live broadcast data. The method can acquire real-time live broadcast data so that a user can watch the latest live broadcast picture.
There is also a possible implementation: judging whether an account sending the live broadcast request has live broadcast watching permission or not; and if the account has the live broadcast watching permission, executing the step of acquiring second live broadcast data with the specified data volume.
After the server receives the live broadcast request, if first live broadcast data corresponding to the live broadcast request exists in the cache, whether an account sending the live broadcast request has live broadcast watching authority or not can be judged, specifically, whether the account sending the live broadcast request is a VIP (member) user or not can be judged in account information stored in the server, and when the account has the live broadcast watching authority, namely the user is a member user, a step of acquiring second live broadcast data with specified data volume is performed. Namely, the user can enjoy quick start-up when watching the live broadcast, and the time waiting for the broadcast is reduced.
And step 302, sending the second live broadcast data and the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
After the server acquires the second live broadcast data, the server can directly send the second live broadcast data and the live broadcast index information corresponding to the live broadcast request to the terminal equipment, so that the terminal equipment can immediately play a live broadcast picture displayed by the second live broadcast data, then acquire the corresponding live broadcast data according to the received live broadcast index information, and after the second live broadcast data is played, the server can play the live broadcast data corresponding to the live broadcast index information. According to the method, when the live broadcast index information is sent, part of live broadcast data in the cache is sent to the terminal equipment together, the time for the terminal equipment to wait for starting broadcast can be reduced, and the time for starting a screen is reduced.
It should be noted that, after receiving the live broadcast data, the server needs to encode the received live broadcast data in advance, and then sends the corresponding encoded live broadcast data to the terminal device according to the live broadcast index information sent by the terminal device.
In addition, the method further comprises:
(1) if the first live broadcast data corresponding to the live broadcast request does not exist in the cache, receiving fourth live broadcast data corresponding to the live broadcast request; wherein the fourth live data includes: after receiving a live broadcast request, receiving live broadcast data corresponding to the live broadcast request;
(2) and sending the index information corresponding to the fourth live broadcast data to the terminal equipment.
When a server is in live broadcasting, the server usually has no cache when a first user (a first terminal device) sends a live broadcasting request; the server will typically cache when a second user (second terminal device) sends a live request; therefore, if the first live data corresponding to the live request does not exist in the cache, it is necessary to wait for receiving fourth live data sent by the live terminal, where the fourth live data includes: after receiving a live broadcast request, receiving live broadcast data corresponding to the live broadcast request; the fourth live data is usually a preset amount of live data, and for example, the live end sends the live data every 20 seconds or 10 seconds. And then, sending the index information corresponding to the fourth live data to the terminal equipment so that the terminal equipment can acquire the fourth live data according to the index information and further play a live picture.
In the above mode, firstly, after the server receives the live broadcast request, the server can quickly respond to and send the index information by judging the cache state of the server, and the index information is sent without passively waiting for a new data slice, so that the timeliness of sending the index information is improved; in addition, the second live broadcast data with the specified data volume can be sent to the terminal equipment while the index information is sent, so that the terminal equipment can start broadcasting quickly, the first screen time is reduced, the live broadcast starting speed is improved, and the live broadcast experience of a user is improved.
Referring to the flow diagrams of the information transmission method shown in fig. 2 and fig. 3, a live scenario of p2p and a Content Delivery Network (CDN) server are taken as an example of an execution subject. As shown in fig. 2, after a CDN server receives a p2p index request (corresponding to the live broadcast request) sent by a terminal device (which may also be a play end), it is first determined whether live broadcast data cached in a memory of the server exists, and if so, group index information processing is performed on the live broadcast data cached, specifically, a linked list identifier of live broadcast data of a specified data amount in the live broadcast data cached may be spliced and combined to obtain live broadcast index information in a corresponding character string form, and then the live broadcast index information is sent to the terminal device; if not, group index information processing is carried out on the live broadcast data received by the CDN server, specifically, splicing and combining processing can be carried out on the linked list identification of the live broadcast data received by the CDN server, the corresponding live broadcast index information in the form of character strings is obtained, and then the live broadcast index information is sent to the terminal equipment.
As shown in fig. 3, after receiving the index request, the CDN server sends, to the playing end, live broadcast data (corresponding to the audio/video data of multiple gops in fig. 3) cached in the memory of the server and index information (corresponding to the audio/video slice index in fig. 3) corresponding to the index request, so that the playing end can start playing a live broadcast frame of the audio/video data of multiple gops; then, the playing end sends the index information (corresponding to the slicing request in fig. 3) to the server based on the index information corresponding to the index request, and then sends subsequent audio and video data to the playing end. The index request is used for the playing end to obtain slice index information; the slicing request is used for the playing end to obtain specific audio and video data.
The above-mentioned information transmission method has the same technical features as the information transmission method provided in the above-mentioned embodiment, so the same technical problems can be solved, and the same technical effects can be achieved.
Corresponding to the above method embodiment, this embodiment provides an information sending apparatus, as shown in fig. 4, the apparatus including:
a live broadcast request receiving module 41, configured to receive a live broadcast request from a terminal device;
a cache data judgment module 42, configured to judge whether there is first live data corresponding to the live request in the cache;
and an index information sending module 43, configured to send the live broadcast index information corresponding to the live broadcast request to the terminal device if the first live broadcast data corresponding to the live broadcast request exists in the cache.
The invention provides an information sending device, which is characterized in that after receiving a live broadcast request from a terminal device, whether first live broadcast data corresponding to the live broadcast request exists in a cache is judged; and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment. In the method, after the server receives the live broadcast request, if the live broadcast data corresponding to the request exists in the cache, the index information is sent to the terminal equipment, and the index information is sent without waiting for the arrival of a new data slice, so that the timeliness of sending the index information is improved, and the live broadcast starting speed is further improved.
Further, the index information sending module is further configured to: and sending the live broadcast index information corresponding to the first live broadcast data to the terminal equipment.
Further, the index information sending module is further configured to: splicing and combining the linked list identification of the first direct broadcast data to obtain direct broadcast index information in a character string form corresponding to the first direct broadcast data; and sending the live broadcast index information to the terminal equipment.
Further, the index information sending module further includes an obtaining unit, configured to obtain second live data of a specified data size; and the sending unit is used for sending the second live broadcast data and the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
Further, the obtaining unit is further configured to: if the live broadcast request indicates that second live broadcast data needs to be acquired, extracting a numerical value of a specified data volume from the live broadcast request; and acquiring second live broadcast data with specified data volume.
Further, the obtaining unit is further configured to: acquiring second live broadcast data with specified data volume from the cache; the second live data belongs to at least a part of the first live data.
Further, the obtaining unit is further configured to: acquiring second live broadcast data with specified data volume from the third live broadcast data; wherein the third live data includes: and after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request.
Further, the obtaining unit is further configured to: judging whether an account sending the live broadcast request has live broadcast watching permission or not; and if the account has the live broadcast watching permission, executing the step of acquiring second live broadcast data with the specified data volume.
Further, the above apparatus is configured to: if the first live broadcast data corresponding to the live broadcast request does not exist in the cache, receiving fourth live broadcast data corresponding to the live broadcast request; wherein the fourth live data includes: after receiving a live broadcast request, receiving live broadcast data corresponding to the live broadcast request; and sending the index information corresponding to the fourth live broadcast data to the terminal equipment.
The information sending device provided by the embodiment of the invention has the same technical characteristics as the information sending method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment also provides a server, which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the information sending method.
Referring to fig. 5, the server includes a processor 100 and a memory 101, the memory 101 stores machine executable instructions capable of being executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the information transmitting method.
Further, the server shown in fig. 5 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
Processor 100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 100. The Processor 100 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The present embodiments also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method of information transmission.
The information sending method, the information sending device, and the computer program product of the server provided by the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. An information sending method, characterized in that the method comprises:
receiving a live broadcast request from terminal equipment;
judging whether first live broadcast data corresponding to the live broadcast request exists in a cache;
and if the first live broadcast data corresponding to the live broadcast request exists in the cache, sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
2. The method of claim 1, wherein the step of sending the live index information corresponding to the live request to the terminal device comprises: and sending the live broadcast index information corresponding to the first live broadcast data to the terminal equipment.
3. The method according to claim 2, wherein the step of sending the live index information corresponding to the first live data to the terminal device includes:
splicing and combining the linked list identification of the first direct broadcast data to obtain the direct broadcast index information in a character string form corresponding to the first direct broadcast data;
and sending the live broadcast index information to the terminal equipment.
4. The method of claim 1, wherein the step of sending the live index information corresponding to the live request to the terminal device comprises:
acquiring second live broadcast data with specified data volume;
and sending the second live broadcast data and the live broadcast index information corresponding to the live broadcast request to the terminal equipment.
5. The method of claim 4, wherein the step of obtaining the second live data of the specified data volume comprises:
if the live broadcast request indicates that second live broadcast data needs to be acquired, extracting a numerical value of a specified data volume from the live broadcast request;
and acquiring second live broadcast data of the specified data volume.
6. The method of claim 4, wherein the step of obtaining the second live data of the specified data volume comprises:
acquiring second live broadcast data with specified data volume from the cache; wherein the second live data belongs to at least a part of the first live data.
7. The method of claim 4, wherein the step of obtaining the second live data of the specified data volume comprises:
acquiring second live broadcast data with specified data volume from the third live broadcast data; wherein the third live data comprises: and after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request.
8. The method of claim 4, wherein the step of obtaining the second live data of the specified data volume comprises:
judging whether an account sending the live broadcast request has live broadcast watching permission or not;
and if the account has the live broadcast watching permission, executing the step of acquiring second live broadcast data with specified data volume.
9. The method of claim 1, further comprising:
if the first live broadcast data corresponding to the live broadcast request does not exist in the cache, receiving fourth live broadcast data corresponding to the live broadcast request; wherein the fourth live data comprises: after receiving the live broadcast request, receiving live broadcast data corresponding to the live broadcast request;
and sending the index information corresponding to the fourth live data to the terminal equipment.
10. An information transmission apparatus, characterized in that the apparatus comprises:
the live broadcast request receiving module is used for receiving a live broadcast request from the terminal equipment;
the cache data judgment module is used for judging whether first live broadcast data corresponding to the live broadcast request exists in a cache;
and the index information sending module is used for sending the live broadcast index information corresponding to the live broadcast request to the terminal equipment if the first live broadcast data corresponding to the live broadcast request exists in the cache.
11. A server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 1 to 9.
12. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of transmitting information according to any one of claims 1 to 9.
CN202110415901.7A 2021-04-16 2021-04-16 Information sending method and device and server Pending CN113132750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110415901.7A CN113132750A (en) 2021-04-16 2021-04-16 Information sending method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110415901.7A CN113132750A (en) 2021-04-16 2021-04-16 Information sending method and device and server

Publications (1)

Publication Number Publication Date
CN113132750A true CN113132750A (en) 2021-07-16

Family

ID=76777370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110415901.7A Pending CN113132750A (en) 2021-04-16 2021-04-16 Information sending method and device and server

Country Status (1)

Country Link
CN (1) CN113132750A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604043A (en) * 2016-12-30 2017-04-26 Ut斯达康(深圳)技术有限公司 Internet-based live broadcast method and live broadcast server
CN107483976A (en) * 2017-09-26 2017-12-15 武汉斗鱼网络科技有限公司 Live management-control method, device and electronic equipment
CN109618179A (en) * 2019-01-21 2019-04-12 北京数码视讯软件技术发展有限公司 Ultra high-definition net cast quickly plays broadcasting method and device
CN110324727A (en) * 2019-07-16 2019-10-11 浙江大华技术股份有限公司 Computer readable storage medium, server and its method for responding playing request
CN110933476A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 HLS first screen time optimization scheme based on Relay
CN111726641A (en) * 2019-03-18 2020-09-29 北京奇虎科技有限公司 Live video playing processing method and device and server
WO2021017526A1 (en) * 2019-07-31 2021-02-04 上海幻电信息科技有限公司 Burst traffic processing method, computer device and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604043A (en) * 2016-12-30 2017-04-26 Ut斯达康(深圳)技术有限公司 Internet-based live broadcast method and live broadcast server
CN107483976A (en) * 2017-09-26 2017-12-15 武汉斗鱼网络科技有限公司 Live management-control method, device and electronic equipment
CN109618179A (en) * 2019-01-21 2019-04-12 北京数码视讯软件技术发展有限公司 Ultra high-definition net cast quickly plays broadcasting method and device
CN111726641A (en) * 2019-03-18 2020-09-29 北京奇虎科技有限公司 Live video playing processing method and device and server
CN110324727A (en) * 2019-07-16 2019-10-11 浙江大华技术股份有限公司 Computer readable storage medium, server and its method for responding playing request
WO2021017526A1 (en) * 2019-07-31 2021-02-04 上海幻电信息科技有限公司 Burst traffic processing method, computer device and readable storage medium
CN110933476A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 HLS first screen time optimization scheme based on Relay

Similar Documents

Publication Publication Date Title
US10764623B2 (en) Method and system for media adaption
CN106454407B (en) Video live broadcasting method and device
CN112188225B (en) Bullet screen issuing method for live broadcast playback and live broadcast video bullet screen playback method
EP3086561A1 (en) Information pushing method, device, and system
CN113453085B (en) Method and device for judging playing card pause and electronic terminal
CN106998485B (en) Video live broadcasting method and device
US11540028B2 (en) Information presenting method, terminal device, server and system
CN111541711B (en) Live broadcast data mixing method and device based on edge calculation
CN111510789B (en) Video playing method, system, computer equipment and computer readable storage medium
CN108881931B (en) Data buffering method and network equipment
CN106231367B (en) Beautifying processing method and device
CN111836074A (en) Live wheat-connecting method, device and system
CN110944217A (en) Live broadcast information processing method and device, server and storage medium
CN111202980A (en) Information transmission method, streaming media cloud platform and computer readable storage medium
CN114286128A (en) Live video parameter adjusting method, system, device, equipment and storage medium
CN108460042B (en) Page display method, related equipment and system
CN111741319B (en) Live broadcast data processing method and device and electronic equipment
CN113259694A (en) Data slicing method and device and electronic equipment
CN112243136B (en) Content playing method, video storage method and device
CN113132750A (en) Information sending method and device and server
CN115643441A (en) Video playing method, device, equipment, readable storage medium and program product
CN113824970B (en) Live broadcast data processing method and device and electronic equipment
CN107707938B (en) Method and device for reducing live video playing delay
CN114051146A (en) Method and system for preventing repeated plug flow
CN113965797A (en) Live broadcast room switching method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210716