CN110213604B - Live video sharing method, system and device and computer readable storage medium - Google Patents

Live video sharing method, system and device and computer readable storage medium Download PDF

Info

Publication number
CN110213604B
CN110213604B CN201910447391.4A CN201910447391A CN110213604B CN 110213604 B CN110213604 B CN 110213604B CN 201910447391 A CN201910447391 A CN 201910447391A CN 110213604 B CN110213604 B CN 110213604B
Authority
CN
China
Prior art keywords
time period
terminal
current
user
live video
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.)
Active
Application number
CN201910447391.4A
Other languages
Chinese (zh)
Other versions
CN110213604A (en
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910447391.4A priority Critical patent/CN110213604B/en
Publication of CN110213604A publication Critical patent/CN110213604A/en
Application granted granted Critical
Publication of CN110213604B publication Critical patent/CN110213604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a method, a system and a device for sharing a live video and a computer readable storage medium, which are applied to a system comprising a control server and a terminal, and comprise the following steps: the control server receives a video identifier corresponding to a live video sent by a terminal; the control server acquires time period division duration corresponding to the live video according to the video identification; the control server sends the time period division duration to the terminal; the method comprises the steps that a terminal obtains the current playing time of a live video; the terminal determines the current time period of the current playing time; the current time period is a time period obtained by dividing the time period; the terminal acquires the user dispersion of the current time period according to the number of the users of the current time period; the user quantity and the user dispersion are in a direct proportion relation; the terminal divides the current time period into at least one sub-time period according to the user dispersion and controls the terminal to share the video of the live video with the sharing terminal; the shared terminal and the terminal are located in the same sub-time period.

Description

Live video sharing method, system and device and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, and an apparatus for sharing a live video, and a computer-readable storage medium.
Background
In the traditional file downloading service, a file to be downloaded is placed on a server, and a user can download the file to be downloaded to the local of a terminal by accessing the server. With the continuous development of internet technology, P2P (Peer To Peer) technology is becoming a mature technology for file exchange and download To relieve the processing pressure of servers.
In consideration of the fact that the live video has the advantage of stronger interactivity compared with information interaction modes such as characters and pictures, a large number of users are attracted, and in order to better watch the live video, the P2P technology can be applied to the sharing process of the live video. At present, an entry sharing server and a work sharing server may be provided, where the entry sharing server is configured to distribute a terminal to a corresponding work sharing server according to an operator region, so that a node may be registered and requested in the corresponding work sharing server.
However, in the above scheme, the inventor finds that, for a live video, the time period in which the playing progress is closer to the latest playing time is that the more users watch the live video, the more the playing progress is farther from the time period of the latest playing time, the watching users are usually fewer, the number of users in different time periods is different, and for the time period in which the number of users is larger, the terminals in the time period can be shunted by adopting a shunting manner, so as to relieve the communication pressure of the shared server; however, for a time period with a small number of users, if the terminals in the time period are distributed in the above distribution manner, the number of terminals in the time period of each operator region is small, and P2P interaction is performed through the small number of terminals, so that the number of provided shared videos is reduced, and the sharing efficiency is reduced.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application provide a method, a system, and an apparatus for sharing a live video, and a computer-readable storage medium, so as to solve the problem that in the prior art, a time slot with a small number of users has a low sharing efficiency due to splitting terminals in each time slot.
According to a first aspect of an embodiment of the present application, a method for sharing a live video is provided, which is applied to a system including a control server and a terminal, and the method includes:
the control server receives a video identifier corresponding to a live video sent by the terminal;
the control server acquires time period division duration corresponding to the live video according to the video identification;
the control server sends the time period division duration to the terminal;
the terminal acquires the current playing time of the live video;
the terminal determines the current time period of the current playing time; the current time period is obtained by dividing the time period into time periods;
the terminal acquires the user dispersion of the current time period according to the user number of the current time period; wherein, the user number is in direct proportion to the user dispersion;
the terminal divides the current time period into at least one sub-time period according to the user dispersion and controls the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
According to a second aspect of the embodiments of the present application, a method for sharing a live video is provided, which is applied to a terminal, and the method includes:
acquiring the current playing time of a live video;
determining the current time period of the current playing time;
acquiring the user dispersion of the current time period according to the number of the users in the current time period; wherein, the user number is in direct proportion to the user dispersion;
dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
According to a third aspect of the embodiments of the present application, a system for sharing live videos is provided, where the system includes a control server and a terminal;
the control server is used for receiving a video identifier corresponding to a live video sent by the terminal; acquiring time period division duration corresponding to the live video according to the video identifier; and sending the time period division duration to the terminal;
the terminal is used for acquiring the current playing time of the live video; determining the current time period of the current playing time; the current time period is obtained by dividing the time period into time periods; acquiring the user dispersion of the current time period according to the number of the users of the current time period; wherein, the user number is in direct proportion to the user dispersion; dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
According to a fourth aspect of the embodiments of the present application, there is provided a live video sharing apparatus, which is applied to a terminal, the apparatus including:
the current moment acquisition module is used for acquiring the current playing moment of the live video;
a current time period determining module, configured to determine a current time period to which the current playing time belongs;
the user dispersion obtaining module is used for obtaining the user dispersion of the current time period according to the number of the users in the current time period; wherein, the user number is in direct proportion to the user dispersion;
the current time period dividing module is used for dividing the current time period into at least one sub-time period according to the user dispersion; the number of the at least one sub-time period is in a direct proportion relation with the user dispersion;
the sharing control module is used for controlling the terminal and the sharing terminal to carry out video sharing of the live video; and the shared terminal and the terminal are positioned in the same sub-time period.
According to a fifth aspect of the embodiments of the present application, there is provided a live video sharing apparatus, including a processor and a memory, wherein,
the processor executes the computer program code stored in the memory to implement the steps of the live video sharing method described in the present application.
According to a sixth aspect of embodiments herein, there is provided a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the live video sharing method described herein.
The embodiment of the application has the following advantages: considering that the different playing times selected by the users when watching the live video cause the difference of the number of the users of the live video in different time periods, the method divides the current time period by the user dispersion, so that the users in the current time period are correspondingly divided into each sub-time period, since the user dispersion is in direct proportion to the number of users in the current time period and the number of at least one sub-time period is in direct proportion to the user dispersion, the number of the at least one sub-period is proportional to the number of users in the current period, and thus, when the number of users in the current time period is large, the number of the acquired at least one sub time period is large, therefore, the users in the current time period are divided into at least one sub-time period with a large number, so that the problem of high communication pressure of the shared server caused by the large number of the users in each sub-time period is solved; and under the condition that the number of the users in the current time period is less, the number of the acquired at least one sub-time period is less, so that the users in the current time period are divided into the at least one sub-time period with the smaller number, and the problem of lower sharing efficiency caused by the smaller number of the users in each sub-time period is solved. In summary, users in a time period with a relatively low play concentration may be aggregated, and users in a time period with a relatively high play concentration may be discretized.
Drawings
Fig. 1 is a flowchart illustrating steps of a first embodiment of a method for sharing live video according to the present application;
FIG. 2 is a schematic diagram illustrating a division of a historical playing time period of a live video according to the present application;
FIG. 3 is a flow chart of steps in an alternative embodiment of a second method for live video sharing according to the present application;
FIG. 4 is a flow chart of steps in an alternative embodiment of a third method for sharing live video of the present application;
FIG. 5 is a block diagram of a configuration of an embodiment of a system for sharing live video according to the present application;
FIG. 6 is a block diagram of an alternative embodiment of a device for sharing live video according to the present application;
FIG. 7 is a block diagram of an alternative embodiment of a device for sharing live video according to the present application;
FIG. 8 is a block diagram of an alternative embodiment of a device for sharing live video according to the present application;
fig. 9 is a block diagram illustrating an alternative embodiment of a device for sharing live video according to the present application;
FIG. 10 is a block diagram of an alternative embodiment of a live video sharing apparatus according to the present application;
fig. 11 is a block diagram illustrating an alternative embodiment of a device for sharing live video according to the present application;
fig. 12 is a hardware configuration diagram of a device for sharing live video according to another embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
It should be understood that the specific embodiments described herein are merely illustrative of the present application, are only a few embodiments of the present application, and are not intended to limit the present application.
The present application will be described in detail with reference to specific examples.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a live video sharing method according to the present application is shown, and is applied to a system including a control server and a terminal, where the method specifically includes the following steps:
step 101, the control server receives a video identifier corresponding to a live video sent by the terminal.
And step 102, the control server acquires time period division duration corresponding to the live video according to the video identification.
In the embodiment of the application, the control server can acquire the predicted watching number of the live video according to the video identifier, and acquire the time period division duration corresponding to the live video according to the predicted watching number.
Further, this step may determine a video type corresponding to the live video according to the video identifier, and obtain a predicted number of viewers corresponding to the video type, which may be, for example, a game type, a singing type, a dance type, a drawing type, and the like. In this way, the control server may preset a corresponding relationship of the time length, where the corresponding relationship of the time length includes a corresponding relationship between the predicted number of people watching and the time-segment division time length, so that the time-segment division time length corresponding to the predicted number of people watching may be obtained according to the corresponding relationship of the time length.
And 103, the control server sends the time period division duration to the terminal.
In an optional embodiment of the present application, in order to implement video sharing of a live video, a terminal needs to acquire a user dispersion acquisition policy when acquiring a time period division duration. In one case, the user dispersion obtaining strategy is configured in the terminal in advance, so that the control server does not need to send the user dispersion obtaining strategy to the terminal in the step; in another case, the user dispersion obtaining policy is not configured in the terminal, so that the control server needs to issue the user dispersion obtaining policy to the terminal, and at this time, this step is: the control server sends the time period division duration and a user dispersion obtaining strategy to the terminal; the user dispersion obtaining strategy comprises the following steps: according to the corresponding relation between the user dispersion record and the user number record, the user dispersion corresponding to the user number of the live video in the current time period is obtained, therefore, in the subsequent step, the terminal receives the video division duration sent by the control server, and under the condition that the user dispersion obtains the strategy, the user dispersion in the current time period is obtained according to the user dispersion obtaining strategy and the user number in the current time period. For convenience of description, in the embodiment of the present application, a method for acquiring user dispersion stored in a terminal in advance is taken as an example for description, so that the control server sends a time period division duration to the terminal without sending a user dispersion acquisition policy.
And 104, the terminal acquires the current playing time of the live video.
Step 105, the terminal determines the current time period of the current playing time; the current time period is the time period obtained by dividing the time period into time periods.
The terminal can divide the time length according to the time period, and divide the historical playing time period of the live video into a plurality of time periods, wherein the historical playing time period is a time period formed by the video starting time of the live video and the latest playing time of the live video. As shown in fig. 2, the latest playing time of the live video is 40 minutes and 30 seconds, the video starting time of the live video is 0 hours and 0 minutes and 0 seconds, and at this time, the historical playing time period is a time period between 0 hours and 0 seconds and 40 minutes and 30 seconds, so that, when the time period division duration is 60 seconds, the historical playing time period can be divided into 41 time periods, which is only an example, and the present application is not limited thereto.
Because the user can adjust the playing progress of the live video when watching the live video through the terminal, the current playing time of the live video may be different from the latest playing time of the live video, so that different users can share the live video through the P2P technology, the current time period to which the current playing time belongs needs to be acquired, and video sharing is performed after the current time period is divided in subsequent steps.
In this step, it may be sequentially determined whether each time segment includes the current playing time, and if a certain time segment includes the current playing time, the certain time segment is determined to be the current time segment.
106, the terminal acquires the user dispersion of the current time period according to the user number of the current time period; wherein, the user number is in direct proportion to the user dispersion.
In this embodiment of the present application, in a possible implementation manner, a terminal may send a user number obtaining request to a control server, where the user number obtaining request includes a video identifier of a live video and a time period identifier of a current time period, so that the control server obtains the user number of the current time period according to the video identifier and the time period identifier, and sends the user number to the terminal; in another possible implementation manner, a first duration between an endpoint time and a video start time of the live video may be obtained; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period; judging whether the first time length is less than or equal to a preset time length, and determining the number of users in the current time period as a preset number under the condition that the first time length is less than or equal to the preset time length; under the condition that the first time length is longer than the preset time length, acquiring a second time length between the endpoint time and the latest playing time of the live video, and acquiring the number of users in the current time period according to the second time length; the second duration is in inverse proportion to the number of users.
In the embodiment of the application, the corresponding relation between the user dispersion record and the user quantity record can be preset, so that the user dispersion corresponding to the user quantity of the live video in the current time period can be obtained according to the corresponding relation.
Step 107, the terminal divides the current time period into at least one sub-time period according to the user dispersion and controls the terminal and a sharing terminal to share the video of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
The terminal may obtain a current sub-time period to which a current playing time belongs under the condition that the current time period is divided into at least one sub-time period, and at this time, it may be determined that a user corresponding to the terminal is divided into the current sub-time period. In addition, in order to implement the sharing of the live video, it is required that different terminals divide the current time period corresponding to the different terminals into at least one sub-time period through the processes of steps 101 to 107, and determine the current sub-time periods in which the different terminals are located, where the live video requested to be shared by the different terminals and the live video requested to be shared by the terminals in the application are the same video, and thus, the shared terminal can be obtained from the different terminals, that is, the current sub-time period in which the shared terminal is located and the current sub-time period in which the terminal is located are the same sub-time period. As can be seen, for the terminal in the present application, the shared terminal is a terminal for providing a shared video for the terminal. In this step, if the user dispersion is larger, the number of the obtained at least one sub-period is larger, and conversely, if the user dispersion is smaller, the number of the obtained at least one sub-period is smaller. Therefore, in the embodiment of the application, under the condition that there are many users in the current time period, the current time period can be divided into a plurality of sub-time periods, and meanwhile, the users in the current time period are correspondingly divided into the corresponding sub-time periods, so that the number of the users in each sub-time period is smaller than or equal to a first preset number, and therefore the users in each sub-time period perform video sharing through the sharing server corresponding to each sub-time period. Thus, the time periods are divided, so that the users in the time periods with high playing concentration can be dispersed.
Under the condition that the number of users in the current time period is small, the current time period can be divided into a small number of sub-time periods, so that the number of users in each sub-time period is larger than or equal to a second preset number, and therefore, enough shared terminals exist in each sub-time period, and the video sharing efficiency is improved. Thus, the time periods are divided, so that users in the time periods with low playing concentration can be aggregated. In a possible implementation manner, the number of at least one sub-period in the embodiment of the present application is the same as the user dispersion. Exemplarily, if the user dispersion is 10, dividing the current time period into 10 sub-time periods; if the user dispersion is 2, the current time period is divided into 2 sub-time periods, and it should be noted that if the user dispersion is 1, the current time period is determined to be the sub-time period.
Considering that the different playing times selected by the users when watching the live video cause the difference of the number of the users of the live video in different time periods, the method divides the current time period by the user dispersion, so that the users in the current time period are correspondingly divided into each sub-time period, since the user dispersion is in direct proportion to the number of users in the current time period and the number of at least one sub-time period is in direct proportion to the user dispersion, the number of the at least one sub-period is proportional to the number of users in the current period, and thus, when the number of users in the current time period is large, the number of the acquired at least one sub time period is large, therefore, the users in the current time period are divided into at least one sub-time period with a large number, so that the problem of high communication pressure of the shared server caused by the large number of the users in each sub-time period is solved; and under the condition that the number of the users in the current time period is less, the number of the acquired at least one sub-time period is less, so that the users in the current time period are divided into the at least one sub-time period with the smaller number, and the problem of lower sharing efficiency caused by the smaller number of the users in each sub-time period is solved. In summary, users in a time period with a relatively low play concentration may be aggregated, and users in a time period with a relatively high play concentration may be discretized.
Referring to fig. 3, a flowchart illustrating steps of an alternative embodiment of a live video sharing method according to the present application is shown, and as shown in fig. 3, the method is applied to a terminal, and specifically may include the following steps:
step 301, acquiring the current playing time of the live video.
Because the user can adjust the playing progress of the live video when watching the live video through the terminal, the current playing time in the application may be different from the latest playing time of the live video.
Step 302, determining the current time period to which the current playing time belongs.
In this embodiment of the application, the terminal may divide the time period of the historical playing of the live video into a plurality of time periods according to the time period division duration, where the time period division duration is obtained by the control server according to the video identifier of the live video, and specifically refer to step 102, where the historical playing time period is a time period formed by the video start time of the live video and the latest playing time of the live video. Thus, the step may sequentially determine whether each time segment includes the current playing time, and if a certain time segment includes the current playing time, determine that the certain time segment is the current time segment.
Step 303, obtaining the user dispersion of the current time period according to the number of the users in the current time period; wherein, the user number is in direct proportion to the user dispersion.
In this embodiment of the present application, in a possible implementation manner, a terminal may send a user number obtaining request to a control server, where the user number obtaining request includes a video identifier of a live video and a time period identifier of a current time period, so that the control server obtains the user number of the current time period according to the video identifier and the time period identifier, and sends the user number to the terminal; in another possible implementation manner, a first duration between an endpoint time and a video start time of the live video may be obtained; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period; judging whether the first time length is less than or equal to a preset time length, and determining the number of users in the current time period as a preset number under the condition that the first time length is less than or equal to the preset time length; under the condition that the first time length is longer than the preset time length, acquiring a second time length between the endpoint time and the latest playing time of the live video, and acquiring the number of users in the current time period according to the second time length; the second duration is in inverse proportion to the number of users.
In an optional embodiment, a user dispersion obtaining policy is stored in the terminal in advance, that is, a corresponding relationship between the user dispersion record and the user number record can be preset, so that the user dispersion corresponding to the user number of the live video in the current time period can be obtained according to the corresponding relationship in the step; in another optional embodiment, a user dispersion obtaining strategy is not stored in the terminal in advance, so that the video dividing duration sent by the control server and the user dispersion obtaining strategy need to be received, and the user dispersion of the current time period is obtained according to the user dispersion obtaining strategy and the number of users in the current time period; the user dispersion obtaining strategy comprises the following steps: and acquiring the user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record.
Step 304, dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
In this step, the specific content may refer to step 107, and is not described in detail.
In a possible implementation manner, the number of at least one sub-period in the embodiment of the present application is the same as the user dispersion. At this time, firstly, according to the user dispersion, obtaining a sub-period division duration corresponding to the current period, namely, calculating a ratio of the duration of the current period to the user dispersion to obtain the sub-period division duration; and then dividing the current time period according to the sub-time period division duration to obtain the at least one sub-time period, namely, the duration corresponding to each sub-time period is the sub-time period division duration. Exemplarily, if the user dispersion is 10, dividing the current time period into 10 sub-time periods; if the user dispersion is 2, dividing the current time period to obtain 2 sub-time periods, and if the user dispersion is 1, determining that the current time period is the sub-time period.
Considering that the different playing times selected by the users when watching the live video cause the difference of the number of the users of the live video in different time periods, the method divides the current time period by the user dispersion, so that the users in the current time period are correspondingly divided into each sub-time period, since the user dispersion is in direct proportion to the number of users in the current time period and the number of at least one sub-time period is in direct proportion to the user dispersion, the number of the at least one sub-period is proportional to the number of users in the current period, and thus, when the number of users in the current time period is large, the number of the acquired at least one sub time period is large, therefore, the users in the current time period are divided into at least one sub-time period with a large number, so that the problem of high communication pressure of the shared server caused by the large number of the users in each sub-time period is solved; and under the condition that the number of the users in the current time period is less, the number of the acquired at least one sub-time period is less, so that the users in the current time period are divided into the at least one sub-time period with the smaller number, and the problem of lower sharing efficiency caused by the smaller number of the users in each sub-time period is solved. In summary, users in a time period with a relatively low play concentration may be aggregated, and users in a time period with a relatively high play concentration may be discretized.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of a live video sharing method according to the present application is shown, and as shown in fig. 4, the method specifically includes the following steps:
step 401, the terminal sends the video identifier of the live video to the control server.
Step 402, the control server obtains a time period division duration corresponding to the live video according to the video identifier.
In the embodiment of the application, the control server can acquire the predicted watching number of the live video according to the video identifier, and acquire the time period division duration corresponding to the live video according to the predicted watching number. Further, this step may determine a video type corresponding to the live video according to the video identifier, and obtain a predicted number of viewers corresponding to the video type, which may be, for example, a game type, a singing type, a dance type, a drawing type, and the like. In this way, the control server may preset a corresponding relationship of the duration, where the corresponding relationship of the duration includes a corresponding relationship between the predicted number of watching persons and the time-segment division duration, so as to obtain the time-segment division duration corresponding to the predicted number of watching persons according to the corresponding relationship of the duration, where the more the predicted number of watching persons is, the shorter the time-segment division duration is, and conversely, the less the predicted number of watching persons is, the longer the time-segment division duration is, which is only an example, and this application is not limited thereto.
Step 403, the control server sends the time period division duration to the terminal.
404, when receiving a time period division duration sent by the control server according to the video identifier, the terminal divides the historical playing time period of the live video into a plurality of time periods through the time period division duration; the historical playing time period is a time period formed by the video starting time of the live video and the latest playing time of the live video.
In the embodiment of the present application, the video start time of the live video may be divided as a starting point, for example, the historical playing time period of the live video is a time period between 0 hour 0 minute 0 second and 40 minutes 30 seconds, and the time period is divided into 60 seconds, and then the historical playing time period may be divided into 41 time periods, that is, the first time period is a time period between 0 hour 0 minute 0 second and 1 minute 0 second, the second time period is a time period between 1 minute 0 second and 2 minute 0 seconds, and so on. Of course, in the present application, the latest playing time of the live video may be divided as a starting point, and the description is continued by taking "the historical playing time period of the live video is a time period between 0 minute and 0 second and 40 minutes and 30 seconds, and the time period division duration is 60 seconds" as an example, the historical playing time period may be divided into 41 virtual major groups, that is, the first time period is a time period between 40 minutes and 30 seconds and 39 minutes and 30 seconds, and the second time period is a time period between 39 minutes and 30 seconds and 38 minutes and 30 seconds, and the above example is only an example, and the present application is not limited thereto.
In step 405, the terminal determines that the time period in which the current playing time is located is the current time period.
In this step, it may be sequentially determined whether each time segment includes the current playing time, and if a certain time segment includes the current playing time, the certain time segment is determined to be the current time segment.
And 406, the terminal acquires the number of the users in the current time period.
In the embodiment of the present application, the number of users may be obtained by any one of the following methods:
in a first mode, the terminal can send a user number obtaining request to the control server, wherein the user number obtaining request comprises a video identifier of a live video and a time period identifier of a current time period, so that the control server can obtain the user number of the current time period according to the video identifier and the time period identifier and send the user number to the terminal.
In the second mode, the terminal acquires a first duration between the endpoint time and the video starting time of the live video; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period; judging whether the first time length is less than or equal to a preset time length, and determining the number of users in the current time period as a preset number under the condition that the first time length is less than or equal to the preset time length; under the condition that the first time length is longer than the preset time length, acquiring a second time length between the endpoint time and the latest playing time of the live video, and acquiring the number of users in the current time period according to the second time length; the second duration is in inverse proportion to the number of users. Therefore, in the application, the number of watched users is usually small when the live video is just played, so that the number of users in a time period close to the video starting time can be set to be small, and if the preset number is 10; after a period of time starts playing, the number of users watching the program is gradually increased, and the number of users in each time period is different, generally, the number of users in the time period closest to the latest playing time is the largest, the number of users in the time period next closest to the latest playing time is the largest, and so on. In another alternative embodiment of the present application, the number of users may be determined according to the predicted number of users, for example, a time period closest to the latest playing time may be set, the number of users accounts for 50%, a time period next to the latest playing time may be set, the number of users accounts for 25%, …, a time period farthest from the latest playing time may be set, and the number of users accounts for 1%, so that the number of users in each time period may be obtained according to the number of users and the predicted number of users.
Step 407, the terminal acquires the user dispersion of the current time period according to the number of the users of the current time period; wherein, the user number is in direct proportion to the user dispersion.
In the embodiment of the present application, the greater the number of the users, the greater the corresponding user dispersion, and conversely, the smaller the number of the users, the smaller the corresponding user dispersion.
In the step, the user dispersion corresponding to the user quantity of the live video in the current time period can be obtained according to the corresponding relation between the user dispersion record and the user quantity record.
Step 408, the terminal divides the current time period into at least one sub-time period according to the user dispersion; the number of the at least one sub-period is in direct proportion to the user dispersion.
For details, reference may be made to step 107, which is not described in detail.
In this way, the larger the user dispersion, the larger the number of the obtained at least one sub-period, and conversely, the smaller the user dispersion, the smaller the number of the obtained at least one sub-period. Therefore, in the embodiment of the application, under the condition that there are many users in the current time period, the current time period can be divided into a plurality of sub-time periods, and meanwhile, the users in the current time period are correspondingly divided into the corresponding sub-time periods, so that the number of the users in each sub-time period is smaller than or equal to a first preset number, and therefore the users in each sub-time period perform video sharing through the sharing server corresponding to each sub-time period. Therefore, the time periods are divided, and the users in the time periods with higher playing concentration can be dispersed.
Under the condition that the number of users in the current time period is small, the current time period can be divided into a small number of sub-time periods, so that the number of users in each sub-time period is larger than or equal to a second preset number, sufficient shared terminals exist in each sub-time period, and the video sharing efficiency is improved. Therefore, the time periods are divided, and users in the time periods with low playing concentration can be aggregated. In a possible implementation manner, the number of at least one sub-period in the embodiment of the present application is the same as the user dispersion. At this time, firstly, according to the user dispersion, obtaining a sub-period division duration corresponding to the current period, namely, calculating a ratio of the duration of the current period to the user dispersion to obtain the sub-period division duration; and then dividing the current time period according to the sub-time period division duration to obtain the at least one sub-time period, namely, the duration corresponding to each sub-time period is the sub-time period division duration. Exemplarily, if the user dispersion is 10, dividing the current time period into 10 sub-time periods; if the user dispersion is 2, dividing the current time period to obtain 2 sub-time periods, and if the user dispersion is 1, determining that the current time period is the sub-time period.
Step 409, the terminal obtains the current sub-time period to which the current playing time belongs from the at least one sub-time period.
In this step, it may be sequentially determined whether each sub-period includes the current playing time, and if a certain sub-period includes the current playing time, the certain sub-period is determined to be the current sub-period.
And step 410, the terminal generates a server identification code corresponding to the current sub-time period according to the sub-time period starting time and the sub-time period ending time of the current sub-time period, the video identification of the live video and the user dispersion of the current time period.
In the embodiment of the application, the server identification code can be obtained by performing character combination on the sub-period starting time and the sub-period ending time of the current sub-period, the video identifier of the live video and the user dispersion of the current period according to a preset sequence.
Step 411, the terminal obtains the shared server corresponding to the current sub-time period according to the server identification code.
In this way, the shared server identifier corresponding to the server identifier may be obtained based on the identifier correspondence, and the server corresponding to the shared server identifier is determined to be the shared server.
In step 412, the terminal sends a video sharing request to the sharing server corresponding to the current sub-time period, so that the sharing server corresponding to the current sub-time period can share the video between the terminal and the sharing terminal in the terminal list stored in the sharing server according to the video sharing request.
In this embodiment, the shared server may be a plurality of tracker servers. Wherein, the terminal and the sharing terminal belonging to the same sub-time period send a request registration message and a request node message to the sharing server for video sharing, the request registration message comprises a terminal identification, a registration account number, a registration password and the like, so that the sharing server registers according to the terminal identification, the registration account number and the registration password, and after the registration is successful, the server sends a registration success message to the terminal, at this time, the terminal can send the request node message to the sharing server, the request node message comprises a video identification of a live broadcast video, the current playing time of the live broadcast video, a segment time period corresponding to a shared segment (the shared segment is a segment of the live broadcast video stored in the terminal), a storage position corresponding to the shared segment, the terminal identification and the like, so that the sharing server can obtain the sharing terminal according to the request node message of the terminal user, and sending the terminal identification corresponding to the sharing terminal and the storage position of the sharing terminal for storing the sharing segment to the terminal so that the terminal can obtain the sharing segment according to the terminal identification and the storage position to play the video.
In addition, the memory of the terminal is limited, so that the stored shared segment is changed along with the playing time, and therefore, the method and the device can acquire the shared segment of the live video; and sending a sharing logout message to the sharing server under the condition that the sharing segment is changed, so that the sharing server deletes the terminal identification of the terminal from the terminal list according to the sharing logout message. For example, the terminal may store a 35-minute shared segment, where the shared segment is a segment between 2 minutes 0 second and 37 minutes 0 second of a live video, and if the user views a segment between 40 minutes 0 second and 1 hour 15 minutes 0 second of the live video, the terminal deletes data of the shared segment between 2 minutes 0 second and 37 minutes 0 second of the live video, and stores a segment between 40 minutes 0 second and 1 hour 15 minutes 0 second of the live video, at this time, the segment between 40 minutes 0 second and 1 hour 15 minutes 0 second of the live video is a new shared segment, at this time, a sharing logout message may be sent to the sharing server, so that the sharing server deletes the terminal identifier of the terminal from the terminal list according to the sharing logout message, and as can be seen, in a case that the shared segment of the terminal is changed, the sharing server needs to delete the terminal identifier, so that each terminal corresponding to the terminal identifier included in the terminal list can accurately perform p2p sharing, after the sharing server deletes the terminal identifier, the terminal may reacquire a new sharing server, and perform video sharing through the new sharing server.
In addition, in the process of video sharing through the sharing server, if the user of the terminal changes the playing progress, the shared terminal in the terminal list stored by the sharing server may not be able to provide the shared segment required by the terminal, at this time, the terminal may also send a sharing logout message to the sharing server, so that the sharing server deletes the terminal identifier of the terminal from the terminal list according to the sharing logout message, and after the sharing server deletes the terminal identifier, the terminal may reacquire a new sharing server and perform video sharing through the new sharing server.
In summary, considering that the playing time selected by the user when watching the live video is different, so that the number of users of the live video in different time periods is different, the present application divides the current time period by the user dispersion, so that the users in the current time period are divided into each sub-time period correspondingly, since the user dispersion is in direct proportion to the number of users in the current time period and the number of at least one sub-time period is in direct proportion to the user dispersion, the number of the at least one sub-period is proportional to the number of users in the current period, and thus, when the number of users in the current time period is large, the number of the acquired at least one sub time period is large, therefore, the users in the current time period are divided into at least one sub-time period with a large number, so that the problem of high communication pressure of the shared server caused by the large number of the users in each sub-time period is solved; and under the condition that the number of the users in the current time period is less, the number of the acquired at least one sub-time period is less, so that the users in the current time period are divided into the at least one sub-time period with the smaller number, and the problem of lower sharing efficiency caused by the smaller number of the users in each sub-time period is solved. In summary, users in a time period with a relatively low play concentration may be aggregated, and users in a time period with a relatively high play concentration may be discretized. It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 5, a block diagram of a structure of an embodiment of a live video sharing system 50 of the present application is shown, where the system 50 includes a control server 501 and a terminal 502;
the control server 501 is configured to receive a video identifier corresponding to a live video sent by the terminal; acquiring time period division duration corresponding to the live video according to the video identifier; and sending the time period division duration to the terminal;
the terminal 502 is configured to obtain a current playing time of the live video; determining the current time period of the current playing time; the current time period is obtained by dividing the time period into time periods; acquiring the user dispersion of the current time period according to the number of the users of the current time period; wherein, the user number is in direct proportion to the user dispersion; dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
In an optional embodiment of the present application, the control server 501 is configured to obtain a predicted number of watching people of the live video according to the video identifier; acquiring time period division duration corresponding to the live video according to the predicted watching number; the time period division duration and the predicted watching number are in inverse proportion.
In an optional embodiment of the present application, the control server 501 is configured to send the time period division duration and a user dispersion obtaining policy to the terminal; the user dispersion obtaining strategy comprises the following steps: acquiring user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record;
the terminal 502 is configured to obtain the user dispersion of the current time period according to the user dispersion obtaining policy and the number of users in the current time period.
Referring to fig. 6, a block diagram of a structure of an embodiment of a live video sharing apparatus 60 of the present application is shown, and is applied to a terminal, and specifically, the apparatus may include the following modules:
a current time obtaining module 601, configured to obtain a current playing time of a live video;
a current time period determining module 602, configured to determine a current time period to which the current playing time belongs;
a user dispersion obtaining module 603, configured to obtain, according to the number of users in the current time period, the user dispersion in the current time period; wherein, the user number is in direct proportion to the user dispersion;
a current time period dividing module 604, configured to divide the current time period into at least one sub-time period according to the user dispersion; the number of the at least one sub-time period is in a direct proportion relation with the user dispersion;
a sharing control module 605, configured to control the terminal and a sharing terminal to perform video sharing of the live video; and the shared terminal and the terminal are positioned in the same sub-time period.
Referring to fig. 7, in an alternative embodiment of the present application, the apparatus 60 further comprises:
a video identifier sending module 606, configured to send a video identifier of the live video to a control server;
a time-slice division duration receiving module 607, configured to receive the time-slice division duration sent by the control server according to the video identifier;
a historical playing time period dividing module 608, configured to divide the historical playing time period of the live video into a plurality of time periods by dividing the time period into durations; the historical playing time period is a time period formed by the video starting time of the live video and the latest playing time of the live video;
the current time period determining module 602 is configured to determine that the time period in which the current playing time is located is the current time period.
In an optional embodiment of the present application, the time period division duration receiving module 607 is configured to receive the video division duration sent by the control server and a user dispersion obtaining policy;
the user dispersion obtaining module 603 is configured to obtain the user dispersion of the current time period according to the user dispersion obtaining policy and the number of users in the current time period;
the user dispersion obtaining strategy comprises the following steps:
and acquiring the user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record.
Referring to fig. 8, in an alternative embodiment of the present application, the apparatus further comprises:
a first duration obtaining module 609, configured to obtain a first duration between an endpoint time and a video start time of the live video; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period;
a user number determining module 610, configured to determine, when the first time duration is less than or equal to a preset time duration, that the number of users in the current time period is a preset number;
a user number obtaining module 611, configured to obtain a second duration between the endpoint time and a latest playing time of the live video when the first duration is longer than the preset duration, and obtain the number of users in the current time period according to the second duration; the second duration is in inverse proportion to the number of users.
Referring to fig. 9, in an alternative embodiment of the present application, the apparatus further comprises:
a current sub-period obtaining module 612, configured to obtain, from the at least one sub-period, a current sub-period to which the current playing time belongs;
a server identification code generating module 613, configured to generate a server identification code corresponding to the current sub-period according to a sub-period starting time and a sub-period ending time of the current sub-period, a video identifier of the live video, and user dispersion of the current period;
a shared server obtaining module 614, configured to obtain, according to the server identification code, a shared server corresponding to the current sub-period;
the sharing control module 605 is configured to send a video sharing request to the sharing server corresponding to the current sub-time period, so that the sharing server corresponding to the current sub-time period performs video sharing on the terminal and a sharing terminal in a terminal list stored in the sharing server according to the video sharing request.
Referring to fig. 10, in an alternative embodiment of the present application, the apparatus further comprises:
a shared segment obtaining module 615, configured to obtain a shared segment of the live video;
a sharing logout message sending module 616, configured to send a sharing logout message to the sharing server when the sharing segment is changed, so that the sharing server deletes the terminal identifier of the terminal from the terminal list according to the sharing logout message.
Referring to fig. 11, in an optional embodiment of the present application, the current time period dividing module 604 includes:
a sub-period division duration obtaining sub-module 6041 configured to obtain, according to the user dispersion, a sub-period division duration corresponding to the current period;
and a current time period dividing submodule 6042, configured to divide the current time period according to the sub-time period dividing duration to obtain the at least one sub-time period.
The detailed description of the embodiments of the apparatus is omitted, and the related contents may refer to the discussion in the method embodiments.
The present application further provides a non-volatile readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a terminal device, the one or more modules may cause the terminal device to execute instructions (instructions) of method steps in the present application.
Fig. 12 is a schematic hardware structure diagram of a device for sharing live video according to an embodiment of the present application. As shown in fig. 12, the apparatus for sharing live video of the present embodiment includes a processor 121 and a memory 122.
The processor 121 executes the computer program code stored in the memory 122 to implement the method for sharing live video in fig. 1, 3 and 4 in the above embodiments.
The memory 122 is configured to store various types of data to support the operation of the sharing method in live video. Examples of such data include instructions for any application or method operating on a shared device for live video, such as messages, pictures, videos, and so forth. The memory 122 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Optionally, the processor 121 is provided in the processing assembly 120. The apparatus for sharing live video may further include: a communication component 123, a power component 124, a multimedia component 125, an audio component 126, an input/output interface 127 and/or a sensor component 128. The components and the like specifically included in the live video sharing device are set according to actual requirements, which is not limited in this embodiment.
The processing component 120 generally controls the overall operation of the shared device of live video. Processing component 120 may include one or more processors 121 to execute instructions to perform all or a portion of the steps of the methods of fig. 1, 3, and 4 described above. Further, processing component 120 may include one or more modules that facilitate interaction between processing component 120 and other components. For example, the processing component 120 may include a multimedia module to facilitate interaction between the multimedia component 125 and the processing component 120.
The power component 124 provides power to various components of a shared device for live video. The power components 124 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for shared devices of live video.
The multimedia component 125 includes a display screen that provides an output interface between the sharing device of the live video and the user. In some embodiments, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 126 is configured to output and/or input audio signals. For example, the audio component 126 includes a Microphone (MIC). The received audio signal may further be stored in the memory 122 or transmitted via the communication component 123. In some embodiments, the audio component 126 also includes a speaker for outputting audio signals.
The input/output interface 127 provides an interface between the processing component 120 and peripheral interface modules, which may be click wheels, buttons, etc. These buttons may include, but are not limited to: a volume button, a start button, and a lock button.
The sensor component 128 includes one or more sensors for providing status assessment of various aspects for a shared device of live video. For example, the sensor component 128 can detect an open/closed state of a sharing device of a live video, a relative positioning of the components, a presence or absence of user contact with the sharing device of the live video. The sensor assembly 128 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. In some embodiments, the sensor assembly 128 may also include a camera or the like.
The communication component 123 is configured to facilitate communication between the sharing device of live video and other devices in a wired or wireless manner. The sharing device of the live video can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
From the above, the communication component 123, the audio component 126, the input/output interface 127 and the sensor component 128 involved in the embodiment of fig. 12 can be implemented as input devices.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the system, the device and the computer-readable storage medium for sharing live video provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (19)

1. A method for sharing live video is applied to a system comprising a control server and a terminal, and comprises the following steps:
the control server receives a video identifier corresponding to a live video sent by the terminal;
the control server acquires time period division duration corresponding to the live video according to the video identification;
the control server sends the time period division duration to the terminal;
the terminal acquires the current playing time of the live video;
the terminal determines the current time period of the current playing time; the current time period is obtained by dividing the time period into time periods;
the terminal acquires the user dispersion of the current time period according to the user number of the current time period; wherein, the user number is in direct proportion to the user dispersion;
the terminal divides the current time period into at least one sub-time period according to the user dispersion and controls the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
2. The method according to claim 1, wherein the step of acquiring, by the control server, a time period division duration corresponding to the live video according to the video identifier includes:
the control server acquires the predicted watching number of the live video according to the video identification;
the control server acquires time period division duration corresponding to the live video according to the predicted watching number; the time period division duration and the predicted watching number are in inverse proportion.
3. The method of claim 1, wherein the controlling server sends the time quantum division duration to the terminal, and comprises:
the control server sends the time period division duration and a user dispersion obtaining strategy to the terminal; the user dispersion obtaining strategy comprises the following steps:
acquiring user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record;
the terminal acquires the user dispersion of the current time period according to the user number of the current time period, and the method comprises the following steps:
and the terminal acquires the user dispersion of the current time period according to the user dispersion acquisition strategy and the user number of the current time period.
4. A live video sharing method is applied to a terminal, and comprises the following steps:
acquiring the current playing time of a live video;
sending the video identification of the live video to a control server;
receiving time period division duration sent by the control server according to the video identification;
dividing the historical playing time period of the live video into a plurality of time periods according to the time period division duration; the historical playing time period is a time period formed by the video starting time of the live video and the latest playing time of the live video;
determining a current time period to which the current playing time belongs, including: determining the time period in which the current playing moment is positioned as the current time period;
acquiring the user dispersion of the current time period according to the number of the users in the current time period; wherein, the user number is in direct proportion to the user dispersion;
dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
5. The method of claim 4, wherein the receiving the video partition duration sent by the server according to the video identifier comprises: receiving video division duration sent by the control server and a user dispersion obtaining strategy;
the obtaining the user dispersion of the current time period according to the number of the users of the current time period includes: acquiring the user dispersion of the current time period according to the user dispersion acquisition strategy and the user number of the current time period;
the user dispersion obtaining strategy comprises the following steps:
and acquiring the user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record.
6. The method according to claim 4, before the obtaining the user dispersion of the current time period according to the number of users of the current time period, further comprising:
acquiring a first duration between an endpoint time and a video starting time of the live video; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period;
determining the number of users in the current time period as a preset number under the condition that the first time period is less than or equal to a preset time period;
under the condition that the first time length is longer than the preset time length, acquiring a second time length between the endpoint time and the latest playing time of the live video, and acquiring the number of users in the current time period according to the second time length; the second duration is in inverse proportion to the number of users.
7. The method of claim 4, further comprising:
acquiring the current sub-time period to which the current playing time belongs from the at least one sub-time period;
generating a server identification code corresponding to the current sub-time period according to the sub-time period starting time and the sub-time period ending time of the current sub-time period, the video identification of the live video and the user dispersion of the current time period;
acquiring a shared server corresponding to the current sub-time period according to the server identification code;
the controlling the terminal and the sharing terminal to carry out the video sharing of the live video comprises the following steps:
and sending a video sharing request to the sharing server corresponding to the current sub-time period, so that the sharing server corresponding to the current sub-time period can share the video between the terminal and the sharing terminal in the terminal list stored by the sharing server according to the video sharing request.
8. The method of claim 4, further comprising:
acquiring a shared segment of the live video;
and sending a sharing logout message to the sharing server under the condition that the sharing segment is changed, so that the sharing server deletes the terminal identification of the terminal from a terminal list according to the sharing logout message.
9. The method according to any one of claims 4 to 8, wherein the dividing the current time period into at least one sub-time period by the user dispersion comprises:
acquiring sub-time period division duration corresponding to the current time period according to the user dispersion;
and dividing the current time period according to the sub-time period division duration to obtain the at least one sub-time period.
10. A live video sharing system is characterized by comprising a control server and a terminal;
the control server is used for receiving a video identifier corresponding to a live video sent by the terminal; acquiring time period division duration corresponding to the live video according to the video identifier; and sending the time period division duration to the terminal;
the terminal is used for acquiring the current playing time of the live video; determining the current time period of the current playing time; the current time period is obtained by dividing the time period into time periods; acquiring the user dispersion of the current time period according to the number of the users of the current time period; wherein, the user number is in direct proportion to the user dispersion; dividing the current time period into at least one sub-time period according to the user dispersion, and controlling the terminal and a sharing terminal to carry out video sharing of the live video; the shared terminal and the terminal are positioned in the same sub-time period; the number of the at least one sub-period is in direct proportion to the user dispersion.
11. The system of claim 10, wherein the control server is configured to obtain a predicted number of viewers of the live video according to the video identifier; acquiring time period division duration corresponding to the live video according to the predicted watching number; the time period division duration and the predicted watching number are in inverse proportion.
12. The system according to claim 10, wherein the control server is configured to send the time period division duration and a user dispersion acquisition policy to the terminal; the user dispersion obtaining strategy comprises the following steps: acquiring user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record;
and the terminal is used for acquiring the user dispersion of the current time period according to the user dispersion acquisition strategy and the user number of the current time period.
13. A live video sharing device is applied to a terminal, and comprises:
the current moment acquisition module is used for acquiring the current playing moment of the live video;
the video identification sending module is used for sending the video identification of the live video to a control server;
the time period division duration receiving module is used for receiving the time period division duration sent by the control server according to the video identifier;
the historical playing time period dividing module is used for dividing the historical playing time period of the live video into a plurality of time periods through the time period dividing duration; the historical playing time period is a time period formed by the video starting time of the live video and the latest playing time of the live video;
a current time period determining module, configured to determine a time period in which the current playing time is located as the current time period;
the user dispersion obtaining module is used for obtaining the user dispersion of the current time period according to the number of the users in the current time period; wherein, the user number is in direct proportion to the user dispersion;
the current time period dividing module is used for dividing the current time period into at least one sub-time period according to the user dispersion; the number of the at least one sub-time period is in a direct proportion relation with the user dispersion;
the sharing control module is used for controlling the terminal and the sharing terminal to carry out video sharing of the live video; and the shared terminal and the terminal are positioned in the same sub-time period.
14. The apparatus according to claim 13, wherein the time period division duration receiving module is configured to receive the video division duration sent by the control server and a user dispersion obtaining policy;
the user dispersion obtaining module is used for obtaining the user dispersion of the current time period according to the user dispersion obtaining strategy and the user number of the current time period;
the user dispersion obtaining strategy comprises the following steps:
and acquiring the user dispersion corresponding to the user number of the live video in the current time period according to the corresponding relation between the user dispersion record and the user number record.
15. The apparatus of claim 13, further comprising:
the first time length obtaining module is used for obtaining a first time length between an endpoint time and a video starting time of the live video; the endpoint time is the time period starting time of the current time period or the time period ending time of the current time period;
the user number determining module is used for determining the number of the users in the current time period as the preset number under the condition that the first time period is less than or equal to the preset time period;
the user number obtaining module is used for obtaining a second time length between the endpoint time and the latest playing time of the live video under the condition that the first time length is longer than the preset time length, and obtaining the user number of the current time period according to the second time length; the second duration is in inverse proportion to the number of users.
16. The apparatus of claim 13, further comprising:
a current sub-period obtaining module, configured to obtain, from the at least one sub-period, a current sub-period to which the current playing time belongs;
a server identification code generating module, configured to generate a server identification code corresponding to the current sub-period according to a sub-period starting time and a sub-period ending time of the current sub-period, a video identifier of the live video, and user dispersion of the current period;
the shared server acquisition module is used for acquiring the shared server corresponding to the current sub-time period according to the server identification code;
and the sharing control module is used for sending a video sharing request to the sharing server corresponding to the current sub-time period so that the sharing server corresponding to the current sub-time period can share the video between the terminal and the sharing terminal in the terminal list stored by the sharing server according to the video sharing request.
17. The apparatus of claim 13, further comprising:
a shared segment obtaining module, configured to obtain a shared segment of the live video;
and the sharing logout message sending module is used for sending a sharing logout message to the sharing server under the condition that the sharing segment is changed, so that the sharing server deletes the terminal identification of the terminal from a terminal list according to the sharing logout message.
18. The apparatus according to any one of claims 14 to 17, wherein the current time period dividing module comprises:
a sub-period division duration obtaining submodule, configured to obtain a sub-period division duration corresponding to the current period according to the user dispersion;
and the current time period dividing submodule is used for dividing the current time period according to the sub-time period dividing duration to obtain the at least one sub-time period.
19. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method of sharing live video according to any one of claims 1 to 3; or implementing a method of sharing live video as claimed in any of claims 4 to 8.
CN201910447391.4A 2019-05-27 2019-05-27 Live video sharing method, system and device and computer readable storage medium Active CN110213604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910447391.4A CN110213604B (en) 2019-05-27 2019-05-27 Live video sharing method, system and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910447391.4A CN110213604B (en) 2019-05-27 2019-05-27 Live video sharing method, system and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110213604A CN110213604A (en) 2019-09-06
CN110213604B true CN110213604B (en) 2021-08-20

Family

ID=67788940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910447391.4A Active CN110213604B (en) 2019-05-27 2019-05-27 Live video sharing method, system and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110213604B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150410A (en) * 2006-09-21 2008-03-26 腾讯科技(深圳)有限公司 A method and system for sharing resources in network TV direct broadcasting room
WO2009103351A1 (en) * 2008-02-22 2009-08-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for obtaining media over a communications network
CN102387401A (en) * 2011-10-17 2012-03-21 上海聚力传媒技术有限公司 Method, device and equipment for adjusting play time point of audio and video information
CN103237068A (en) * 2013-04-17 2013-08-07 北京科技大学 Content-attribute-distinguishable streaming media cache replacement method for CDN-P2P (content delivery network and peer-to-peer)
CN105656986A (en) * 2015-11-26 2016-06-08 乐视云计算有限公司 Live video play method, device and system
CN105848011A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Video living broadcast method and device
CN105959273A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Streaming media file distribution method and streaming media file distribution device
WO2016162639A1 (en) * 2015-04-07 2016-10-13 Streamroot, Inc. Method for continuously reading, on a client device, content broadcast within a peer-to-peer network
CN106201768A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 Date storage method and device
CN108322787A (en) * 2018-02-08 2018-07-24 北京潘达互娱科技有限公司 Video stream distributing method, device and electronic equipment
CN108650547A (en) * 2018-05-09 2018-10-12 北京奇艺世纪科技有限公司 A kind of video sharing method, apparatus and equipment
CN109118855A (en) * 2017-06-22 2019-01-01 格局商学教育科技(深圳)有限公司 A kind of net work teaching system of huge screen holography reduction real scene
CN109348243A (en) * 2018-11-14 2019-02-15 广州虎牙信息科技有限公司 Subscribe to the method, apparatus and live broadcast system of processing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595298B2 (en) * 2009-11-09 2013-11-26 Allot Communications Inc. Communication systems, methods, and computer program products for efficient peer-to-peer transmission
TWI378344B (en) * 2010-06-30 2012-12-01 Ind Tech Res Inst Data backup, recovery and deletion method through a distributed network and system thereof
WO2016138121A1 (en) * 2015-02-24 2016-09-01 Plaay, Llc System and method for creating a sports video

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150410A (en) * 2006-09-21 2008-03-26 腾讯科技(深圳)有限公司 A method and system for sharing resources in network TV direct broadcasting room
WO2009103351A1 (en) * 2008-02-22 2009-08-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for obtaining media over a communications network
CN102387401A (en) * 2011-10-17 2012-03-21 上海聚力传媒技术有限公司 Method, device and equipment for adjusting play time point of audio and video information
CN103237068A (en) * 2013-04-17 2013-08-07 北京科技大学 Content-attribute-distinguishable streaming media cache replacement method for CDN-P2P (content delivery network and peer-to-peer)
WO2016162639A1 (en) * 2015-04-07 2016-10-13 Streamroot, Inc. Method for continuously reading, on a client device, content broadcast within a peer-to-peer network
CN106201768A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 Date storage method and device
CN105656986A (en) * 2015-11-26 2016-06-08 乐视云计算有限公司 Live video play method, device and system
CN105848011A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Video living broadcast method and device
CN105959273A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Streaming media file distribution method and streaming media file distribution device
CN109118855A (en) * 2017-06-22 2019-01-01 格局商学教育科技(深圳)有限公司 A kind of net work teaching system of huge screen holography reduction real scene
CN108322787A (en) * 2018-02-08 2018-07-24 北京潘达互娱科技有限公司 Video stream distributing method, device and electronic equipment
CN108650547A (en) * 2018-05-09 2018-10-12 北京奇艺世纪科技有限公司 A kind of video sharing method, apparatus and equipment
CN109348243A (en) * 2018-11-14 2019-02-15 广州虎牙信息科技有限公司 Subscribe to the method, apparatus and live broadcast system of processing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"P2P网络内容分发关键技术研究";张建伟;《中国博士学位论文全文数据库-信息科技辑》;20140615(第06期);全文 *
"Video Splicing Techniques for P2P Video Streaming";MD Iftakharul Islam;《2015 IEEE 35th International Conference on Distributed Computing Systems Workshops》;20150702;全文 *

Also Published As

Publication number Publication date
CN110213604A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
KR101804076B1 (en) Method and apparatus for presenting multimedia information
CN113411642B (en) Screen projection method and device, electronic equipment and storage medium
CN108260016B (en) Live broadcast processing method, device, equipment, system and storage medium
JP6257707B2 (en) Content selection and distribution of rights and functions
US9078047B2 (en) Content reproduction device
JP7221638B2 (en) Method and system for audio feedback during live broadcast and non-transitory computer readable recording medium
WO2022028234A1 (en) Live broadcast room sharing method and apparatus
CN112153470B (en) Video playing method and device, computer equipment and storage medium
CN112073753B (en) Method, device, equipment and medium for publishing multimedia data
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN113518247A (en) Video playing method, related equipment and computer readable storage medium
CN110267118B (en) Video publishing method and device and computer readable storage medium
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
CN112270561A (en) Electronic resource distribution method and device, electronic equipment and storage medium
WO2015131390A1 (en) Communication method, user device, content server and controller
CN110620956A (en) Live broadcast virtual resource notification method and device, electronic equipment and storage medium
CN115623230A (en) Live video playing method and device, electronic equipment and storage medium
CN110213604B (en) Live video sharing method, system and device and computer readable storage medium
CN105898596B (en) Direct broadcasting room display control method and device
KR20080083490A (en) System, apparatus ans method for providing personal broadcasting service by scheduling
CN109348242B (en) Live network scheduling method, device, medium and electronic equipment
EP3238471A1 (en) A method for controlling the sharing of at least one electronic content between a first user equipment and at least a second user equipment
EP3076319A1 (en) Method of reproducing a shared content, method of sharing, computer program product and systems corresponding
CN113301374A (en) Live broadcast audio and video processing method and device, client and server
CN112423099A (en) Video loading method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant