CN110213604A - Sharing method, system and the device and computer readable storage medium of live video - Google Patents
Sharing method, system and the device and computer readable storage medium of live video Download PDFInfo
- Publication number
- CN110213604A CN110213604A CN201910447391.4A CN201910447391A CN110213604A CN 110213604 A CN110213604 A CN 110213604A CN 201910447391 A CN201910447391 A CN 201910447391A CN 110213604 A CN110213604 A CN 110213604A
- Authority
- CN
- China
- Prior art keywords
- period
- terminal
- user
- dispersion
- current slot
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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/44213—Monitoring of end-user related data
- H04N21/44222—Analytics of user selections, e.g. selection of programs or purchase activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring 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 present application provides sharing method, system and the device and computer readable storage medium of a kind of live video, applied to the system including control server and terminal, comprising: control server receives the corresponding video identifier of live video that terminal is sent;Control server obtains the corresponding period division duration of live video according to video identifier;Control server divides duration to terminal sending time section;The currently playing moment of terminal acquisition live video;Terminal determines current slot belonging to the currently playing moment;Current slot is to divide the period that duration is got by the period;Terminal obtains user's dispersion of current slot according to the number of users of current slot;Wherein, number of users and user's dispersion are proportional;Terminal is divided at least one sub- period according to user's dispersion, by current slot, and the video that controlling terminal is broadcast live video with shared terminal is shared;Shared terminal and terminal are located at the same sub- period.
Description
Technical field
This application involves field of computer technology, more particularly to the sharing method, system and device of a kind of live video
And computer readable storage medium.
Background technique
Traditional file download service is all to place file to be downloaded on the server, and user can be serviced by access
File to be downloaded is downloaded to the local of terminal by device, since in the biggish situation of download, the processing capacity of server is logical
Often it is unable to reach downloading demand.With the continuous development of Internet technology, technology is gradually by P2P (Peer To Peer, point-to-point)
As the mature technology of exchange files and downloading, to alleviate the processing pressure of server.
In view of live video is compared to the information interaction approach such as text and picture, there is interactive stronger advantage,
To attract a large amount of user, in order to preferably watch live video, P2P technology can be applied to the shared of live video
In the process.Currently, entrance shared server and work shared server can be set, entrance shared server is for pressing terminal
It carries out being diverted to corresponding work shared server according to operator region, so as to carry out in corresponding work shared server
Registration and requesting node.
But inventor has found in research above scheme, for live video, when playback progress is closer to newest broadcasting
The user of the period at quarter, viewing are usually more, and for playback progress further away from the period of newest playing time, the user of viewing is logical
Often less, the number of users in different time sections has differences, the period more for number of users, by the way of shunting
Terminal in period can be shunted, to reach the communication pressure for alleviating shared server;But for number of users compared with
Few period shunts the terminal in the period according to the mode of above-mentioned shunting, then each operator region exists
Terminal quantity in the period is less, P2P interaction is carried out by less terminal, so that the quantity of the shared video provided subtracts
It is few, to reduce sharing efficiency.
Summary of the invention
In view of the above problems, the embodiment of the present application provides sharing method, system and device and the calculating of a kind of live video
Machine readable storage medium storing program for executing, it is less to solve number of users caused by the prior art is shunted the terminal in each period
Period has that sharing efficiency is lower.
According to the embodiment of the present application in a first aspect, a kind of sharing method of live video is provided, applied to including control
The system of server and terminal, which comprises
The control server receives the corresponding video identifier of live video that the terminal is sent;
The control server obtains the corresponding period division duration of the live video according to the video identifier;
The control server sends the period division duration to the terminal;
The terminal obtains the currently playing moment of the live video;
The terminal determines current slot belonging to the currently playing moment;The current slot is by described
Period divides the period that duration is got;
The terminal obtains user's dispersion of the current slot according to the number of users of the current slot;
Wherein, the number of users and user's dispersion are proportional;
The terminal is divided at least one sub- period according to user's dispersion, by the current slot, and
The video that the terminal carries out the live video with shared terminal is controlled to share;The shared terminal and the terminal are located at same
One sub- period;The quantity of at least one sub- period and user's dispersion are proportional.
According to the second aspect of the embodiment of the present application, a kind of sharing method of live video is provided, is applied to terminal, it is described
Method includes:
Obtain the currently playing moment of live video;
Determine current slot belonging to the currently playing moment;
According to the number of users of the current slot, user's dispersion of the current slot is obtained;Wherein, described
Number of users and user's dispersion are proportional;
According to user's dispersion, the current slot is divided at least one sub- period, and described in control
The video that terminal and shared terminal carry out the live video is shared;The shared terminal and the terminal are located at the same sub- time
Section;The quantity of at least one sub- period and user's dispersion are proportional.
According to the third aspect of the embodiment of the present application, a kind of shared system of live video is provided, the system comprises controls
Control server and terminal;
The control server, the corresponding video identifier of live video sent for receiving the terminal;And according to
The video identifier obtains the corresponding period division duration of the live video;And Xiang Suoshu terminal sends the time
Section divides duration;
The terminal, for obtaining the currently playing moment of the live video;And determine the currently playing moment
Affiliated current slot;The current slot is to divide the period that duration is got by the period;And root
According to the number of users of the current slot, user's dispersion of the current slot is obtained;Wherein, the number of users with
User's dispersion is proportional;And according to user's dispersion, the current slot is divided at least one
A sub- period, and control the video that the terminal carries out the live video with shared terminal and share;The shared terminal with
The terminal is located at the same sub- period;The quantity of at least one sub- period pass directly proportional to user's dispersion
System.
According to the fourth aspect of the embodiment of the present application, a kind of sharing means of live video are provided, are applied to terminal, it is described
Device includes:
Current time obtains module, for obtaining the currently playing moment of live video;
Current slot determining module, for determining current slot belonging to the currently playing moment;
User's dispersion obtains module and obtains the current time for the number of users according to the current slot
User's dispersion of section;Wherein, the number of users and user's dispersion are proportional;
Current slot division module, for according to user's dispersion, the current slot to be divided at least
One sub- period;The quantity of at least one sub- period and user's dispersion are proportional;
Compliance control module, the video that the live video is carried out for controlling the terminal and shared terminal are shared;Institute
It states shared terminal and the terminal is located at the same sub- period.
According to the 5th of the embodiment of the present application aspect, provide a kind of sharing means of live video, including processor and
Memory, wherein
The processor executes the computer program code that the memory is stored, to realize live streaming described herein
The step of sharing method of video.
According to the 6th of the embodiment of the present application the aspect, a kind of computer readable storage medium is provided, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes live video described herein when being executed by processor
Sharing method the step of.
The embodiment of the present application includes the following advantages: the playing time chosen when watching live video in view of user is not
Together, so that live video be caused to have differences in number of users in different time periods, the application will be current by user's dispersion
Period is divided so that the user in current slot was correspondingly divided in each sub- period, due to the user from
Divergence and the number of users in the current slot be proportional and the quantity of at least one sub- period and user it is discrete
Spend it is proportional, therefore, the quantity of at least one sub- period pass directly proportional to the number of users in the current slot
System, in this way, in the case that user in this prior in the period is more, the quantity of at least one got sub- period compared with
It is more, so that the user in the current slot was divided at least one a fairly large number of sub- period, to avoid each period of the day from 11 p.m. to 1 a.m
Between number of users in section it is more caused by the larger problem of shared server communication pressure;User in period in this prior
In the case where less, the negligible amounts of at least one got sub- period, so that the user in the current slot divides
Into at least one sub- period of negligible amounts, to avoid the number of users in each sub- period it is less caused by share effect
The lower problem of rate.To sum up, the user played in the concentration degree relatively low period can be polymerize, and is concentrated playing
The user spent in the relatively high period carries out discrete.
Detailed description of the invention
Fig. 1 is the step flow chart of the sharing method embodiment of the first live video of the application;
Fig. 2 is a kind of division schematic diagram of the history play time section of live video of the application;
Fig. 3 is the step flow chart of the sharing method alternative embodiment of second of live video of the application;
Fig. 4 is the step flow chart of the sharing method alternative embodiment of the third live video of the application;
Fig. 5 is a kind of structural block diagram of the shared system embodiment of live video of the application;
Fig. 6 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Fig. 7 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Fig. 8 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Fig. 9 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Figure 10 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Figure 11 is a kind of structural block diagram of the sharing means alternative embodiment of live video of the application;
Figure 12 is the hardware structural diagram of the sharing means for the live video that another embodiment of the application provides.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real
Applying mode, the present application will be further described in detail.
It should be appreciated that specific embodiment described herein, only to explain the application, only the application a part is real
Example is applied, instead of all the embodiments, is not used to limit the application.
The application is described in detail below in conjunction with specific embodiment.
Referring to Fig.1, a kind of step flow chart of the sharing method embodiment of live video of the application is shown, is applied to
System including control server and terminal, can specifically include following steps:
Step 101, the control server receives the corresponding video identifier of live video that the terminal is sent.
Step 102, the control server obtains the live video corresponding period stroke according to the video identifier
Timesharing is long.
In the embodiment of the present application, control server according to video identifier, can obtain the prediction viewing of the live video
Number, and according to prediction viewing number, obtain the corresponding period division duration of the live video.
Further, this step can determine the corresponding video type of the live video according to video identifier, and obtaining should
The corresponding prediction viewing number of video type, illustratively, the video type can for type of play, sing type, dancing type,
Type of painting etc..In this way, control server can preset duration corresponding relationship, which includes that prediction is seen
See that number and period divide the corresponding relationship between duration, so as to obtain prediction viewing people according to duration corresponding relationship
The number corresponding period divides duration, and above-mentioned example is merely illustrative, and the application is not construed as limiting this.
Step 103, the control server sends the period division duration to the terminal.
In the alternative embodiment of the application, the video in order to realize live video is shared, and terminal is needed when getting
Between section divide duration in the case where, it is also necessary to get user's dispersion acquisition strategy.In one case, match in advance in terminal
It is equipped with user's dispersion acquisition strategy, so that control server is not necessarily to send user's dispersion acquisition plan to terminal in this step
Slightly;In another case, in terminal and user's dispersion acquisition strategy is not configured with, so that control server needs
User's dispersion acquisition strategy is issued to the terminal, at this point, this step is are as follows: control server is to described in terminal transmission
Period divides duration and user's dispersion acquisition strategy;User's dispersion acquisition strategy includes: discrete according to user
Corresponding relationship between degree record and number of users record, the number of users for obtaining the live video in current slot are corresponding
User's dispersion, in this way, terminal divides duration receiving the video that the control server is sent in subsequent step, and
In the case where user's dispersion acquisition strategy, according to user's dispersion acquisition strategy and the user of the current slot
Quantity obtains user's dispersion of the current slot.For the convenience of description, the embodiment of the present application in terminal to be stored in advance
It is described for the acquisition methods for having user's dispersion, so that when control server is divided to terminal sending time section
It is long, without sending user's dispersion acquisition strategy.
Step 104, the terminal obtains the currently playing moment of the live video.
Step 105, the terminal determines current slot belonging to the currently playing moment;The current slot is
The period that duration is got is divided by the period.
Wherein, terminal can divide duration according to the period, the history play time section of the live video is divided into more
A period, the history play time section be the live video video initial time and the live video newest broadcasting when
Between period for constituting.As shown in Fig. 2, the newest playing time of the live video be 40 points 30 seconds, the video of the live video
Initial time 0 divides 0 second when being 0, at this point, 0 divide period between 30 seconds 0 second to 40 points when the history play time section is 0,
In this way, the history play time section can be divided into 41 periods in the case where when dividing the period a length of 60 seconds,
Above-mentioned example is merely illustrative, and the application is not construed as limiting this.
When watching live video by terminal due to user, the playback progress of adjustable live video should to exist
The currently playing moment of live video may be different from the newest playing time of the live video, pass through for the ease of different user
P2P technology shares live video, and the application needs to obtain current slot belonging to the currently playing moment, so as to subsequent
It is shared that video is carried out in step after dividing to current slot.
In this step, it can successively determine in each period whether include the current playing time, if some time
It include the current playing time in section, it is determined that some period is the current slot.
Step 106, the terminal obtains the user of the current slot according to the number of users of the current slot
Dispersion;Wherein, the number of users and user's dispersion are proportional.
In the embodiment of the present application, in one possible implementation, terminal can send user to control server
Quantity acquisition request includes video identifier and the period of current slot of live video in the number of users acquisition request
Mark, so that control server is according to video identifier and time segment identification, obtains the number of users of current slot, and should
Number of users is sent to terminal;In alternatively possible implementation, available endpoint moment and the live video
The first duration between video initial time;Period initial time or institute of the endpoint moment for the current slot
State the period end time of current slot;And judge whether first duration is less than or equal to preset duration, in institute
The first duration is stated less than or equal in the case where preset duration, determining that the number of users of the current slot is present count
Amount;In the case where first duration is greater than the preset duration, the endpoint moment and the live video are obtained most
The second duration between new playing time, and obtain according to second duration number of users of the current slot;It is described
Between second duration and the number of users inversely.
The corresponding relationship between user's dispersion record and number of users record can be preset in the embodiment of the present application,
In this way, this step can according to the corresponding relationship, obtain live video current slot the corresponding user of number of users from
Divergence.
Step 107, the current slot is divided at least one period of the day from 11 p.m. to 1 a.m according to user's dispersion by the terminal
Between section, and control the terminal and shared terminal carry out the live video video it is shared;The shared terminal and the end
End is located at the same sub- period;The quantity of at least one sub- period and user's dispersion are proportional.
Wherein, in the case where current slot is divided at least one sub- period, terminal is available currently to be broadcast
The current sub- period belonging to the moment is put, at this point it is possible to determine that the corresponding user of the terminal is divided to the current sub- time section, by
In generally it can be thought that a terminal is equivalent to a user, hence, it can be determined that the terminal is divided to the current sub- time section
In, in order to make it easy to understand, the application is mainly using the describing mode divided to user.In addition, in order to realize live video
It is shared, need different terminals to pass through step 101 to the process of step 107 respectively and draw the corresponding current slot of different terminals
It is divided at least one sub- period, and determines the current sub- period that different terminals are located at, different terminals request is shared
Live video and the application in the shared live video of terminal request be same video, in this way, can be from different terminals
Obtain the shared terminal, i.e. current sub- period for being located at of the shared terminal is identical with the current sub- period that the terminal is located at
The sub- period.As it can be seen that the shared terminal is for providing the terminal of shared video for the terminal for the terminal in the application.
In this step, if user's dispersion is bigger, the quantity of at least one obtained sub- period is more, on the contrary, if the use
Family dispersion is smaller, then the quantity of at least one obtained sub- period is fewer.As it can be seen that the embodiment of the present application is in current slot
In user it is more in the case where, current slot can be divided into a fairly large number of sub- period, while the current time
User in section was correspondingly divided in the corresponding sub- period, so that the number of users in each sub- period is less than or waits
In the first preset quantity, so that user in each sub- period is regarded by corresponding shared server of each sub- period
Frequency is shared, since the user in each sub- period is the certain customers in the current slot, to effectively reduce altogether
Enjoy the communication pressure of server.In this way, the application will be by will divide the period, it is relatively high so as to which concentration degree will be played
Period in user carry out it is discrete.
In the case that user in current slot is less, current slot can be divided into the period of the day from 11 p.m. to 1 a.m of negligible amounts
Between section so that number of users in each sub- period is more than or equal to the second preset quantity, so that each sub- time
There are enough shared terminals in section, and then improve video sharing efficiency, in this way, solving in the prior art when this is current
Between after user in section shunts according to operator region, user of each operator region in current slot is less to make
At the lower problem of shared video efficiency.In this way, the application be by will divide the period, so as to play concentration
The user spent in the relatively low period polymerize.In one possible implementation, in the embodiment of the present application at least
The quantity of one sub- period is identical numerical value with user's dispersion.Illustratively, if user's dispersion is 10, will deserve
The preceding period is divided to obtain 10 sub- periods;If user's dispersion is 2, which is divided to obtain
2 sub- periods, it should be noted that if user's dispersion is 1, it is determined that the current slot is the sub- period.
In view of the playing time that user chooses when watching live video is different, to cause live video when different
Between the number of users of section have differences, the application is divided current slot by user's dispersion, so that current time
User in section was correspondingly divided in each sub- period, due to the number of users in user's dispersion and the current slot
It measures proportional and at least one sub- period quantity and user's dispersion is proportional, therefore, this at least one
The quantity of sub- period and the number of users in the current slot are proportional, in this way, the use in the period in this prior
In the case that family is more, the quantity of at least one got sub- period is more, so that the user in the current slot draws
Point at least one a fairly large number of sub- period, to avoid the number of users in each sub- period it is more caused by share
The larger problem of server communication pressure;In the case that user in this prior in the period is less, get at least one
The negligible amounts of sub- period, so that the user in the current slot is divided at least one sub- period of negligible amounts
In, to avoid the lower problem of the sharing efficiency caused by less of the number of users in each sub- period.To sum up, it can will play
User in the concentration degree relatively low period polymerize, and the user played in the concentration degree relatively high period is carried out
It is discrete.
Referring to Fig. 3, a kind of step flow chart of the sharing method alternative embodiment of live video of the application is shown, such as
Shown in Fig. 3, this method is applied to terminal, can specifically include following steps:
Step 301, the currently playing moment of live video is obtained.
When watching live video by terminal due to user, the playback progress of adjustable live video, therefore, the application
In the newest playing time of currently playing moment and the live video may be different.
Step 302, current slot belonging to the currently playing moment is determined.
In the embodiment of the present application, terminal can divide duration according to the period, when the history of the live video is played
Between section be divided into multiple periods, a length of control server is obtained according to the video identifier of live video when which divides
, step 102 can be specifically referred to, which is the video initial time and live streaming view of the live video
The period that the newest play time of frequency is constituted.In this way, whether it includes deserving that this step can be determined successively in each period
Preceding playing time, if in some period including the current playing time, it is determined that some period is the current time
Section.
Step 303, according to the number of users of the current slot, user's dispersion of the current slot is obtained;
Wherein, the number of users and user's dispersion are proportional.
In the embodiment of the present application, in one possible implementation, terminal can send user to control server
Quantity acquisition request includes video identifier and the period of current slot of live video in the number of users acquisition request
Mark, so that control server is according to video identifier and time segment identification, obtains the number of users of current slot, and should
Number of users is sent to terminal;In alternatively possible implementation, available endpoint moment and the live video
The first duration between video initial time;Period initial time or institute of the endpoint moment for the current slot
State the period end time of current slot;And judge whether the first duration is less than or equal to preset duration, described
In the case that one duration is less than or equal to preset duration, determine that the number of users of the current slot is preset quantity;?
In the case that first duration is greater than the preset duration, the newest broadcasting at the endpoint moment Yu the live video is obtained
The second duration between moment, and obtain according to second duration number of users of the current slot;When described second
It is long between the number of users inversely.
In an alternative embodiment, user's dispersion acquisition strategy is previously stored in terminal, it can preset
Corresponding relationship between user's dispersion record and number of users record, in this way, this step can be obtained according to the corresponding relationship
Number of users corresponding user dispersion of the live video in current slot;In another alternative embodiment, in terminal not
It is previously stored with user's dispersion acquisition strategy, therefore, the video that the application needs to receive control server transmission divides duration,
And user's dispersion acquisition strategy, to be obtained according to the acquisition strategy of user's dispersion and the number of users of current slot
Take user's dispersion of current slot;User's dispersion acquisition strategy includes: according to user's dispersion record and user
Corresponding relationship between quantity record, the corresponding user of number of users for obtaining the live video in current slot are discrete
Degree.
Step 304, according to user's dispersion, the current slot is divided at least one sub- period, and
The video that the terminal carries out the live video with shared terminal is controlled to share;The shared terminal and the terminal are located at same
One sub- period;The quantity of at least one sub- period and user's dispersion are proportional.
In this step, particular content can refer to step 107, repeat no more.
In one possible implementation, the quantity of at least one of the embodiment of the present application sub- period and the user
Dispersion is identical numerical value.At this point, obtaining the current slot corresponding sub- period according to user's dispersion first
Duration is divided, that is, the ratio of the duration and user's dispersion that calculate the current slot obtains sub- period division duration;
Then the current slot duration is divided according to the sub- period to be divided to obtain at least one described sub- period,
I.e. each sub- period corresponding duration is the sub- period to divide duration.It illustratively, will if user's dispersion is 10
The current slot is divided to obtain 10 sub- periods;If user's dispersion is 2, which is divided
2 sub- periods are obtained, if user's dispersion is 1, it is determined that the current slot is the sub- period.
In view of the playing time that user chooses when watching live video is different, to cause live video when different
Between the number of users of section have differences, the application is divided current slot by user's dispersion, so that current time
User in section was correspondingly divided in each sub- period, due to the number of users in user's dispersion and the current slot
It measures proportional and at least one sub- period quantity and user's dispersion is proportional, therefore, this at least one
The quantity of sub- period and the number of users in the current slot are proportional, in this way, the use in the period in this prior
In the case that family is more, the quantity of at least one got sub- period is more, so that the user in the current slot draws
Point at least one a fairly large number of sub- period, to avoid the number of users in each sub- period it is more caused by share
The larger problem of server communication pressure;In the case that user in this prior in the period is less, get at least one
The negligible amounts of sub- period, so that the user in the current slot is divided at least one sub- period of negligible amounts
In, to avoid the lower problem of the sharing efficiency caused by less of the number of users in each sub- period.To sum up, it can will play
User in the concentration degree relatively low period polymerize, and the user played in the concentration degree relatively high period is carried out
It is discrete.
Referring to Fig. 4, a kind of step flow chart of the sharing method embodiment of live video of the application, such as Fig. 4 are shown
It is shown, it can specifically include following steps:
Step 401, the video identifier of live video is sent to control server by terminal.
Step 402, the control server obtains the live video corresponding period stroke according to the video identifier
Timesharing is long.
In the embodiment of the present application, control server according to video identifier, can obtain the prediction viewing of the live video
Number, and according to prediction viewing number, obtain the corresponding period division duration of the live video.Further, this step can
To determine the corresponding video type of the live video according to video identifier, and obtain the corresponding prediction viewing people of the video type
Number, illustratively, the video type can for type of play, sing type, dancing type, drawing type etc..In this way, control clothes
Business device can preset duration corresponding relationship, the duration corresponding relationship include prediction viewing number and the period divide duration it
Between corresponding relationship, divide duration so as to obtain prediction viewing number corresponding period according to duration corresponding relationship,
Wherein, prediction viewing number is more, and it is shorter which divides duration, on the contrary, prediction viewing number is fewer, the period
Division duration is longer, and above-mentioned example is merely illustrative, and the application is not construed as limiting this.
Step 403, control server sends the period division duration to the terminal.
Step 404, terminal is receiving the control server according to the video identifier, when the period of transmission divides
In the case where length, duration is divided by the period, when the history play time section of the live video is divided into multiple
Between section;The history play time section is the newest broadcasting of the video initial time and the live video of the live video
The period that moment is constituted.
In the embodiment of the present application, the video initial time of live video can be started to divide as starting point, illustratively,
0 divides the period between 30 seconds 0 second to 40 points when the history play time section of the live video is 0, and when period division
A length of 60 seconds, then the history play time section can be divided into 41 periods, i.e., when first period is 00 divide 0 second extremely
1 point of period between 0 second, second period are 1 point of period etc. between 0 second 0 second to 2 points.Certainly, the application
The newest playing time of live video can be started to divide as starting point, continued with " the history play time of the live video
0 divides period between 30 seconds 0 second to 40 points when section is 0, and when period divides is 60 seconds a length of " for be illustrated, can
The history play time section is divided into 41 virtual big group, i.e. first period is 40 points between 30 seconds 30 seconds to 39 points
Period, second period is 39 points of periods etc. between 30 seconds 30 seconds to 38 points, and above-mentioned example is only illustrated
Bright, the application is not construed as limiting this.
Step 405, terminal determines that the period that the currently playing moment is located at is current slot.
In this step, it can successively determine in each period whether include the current playing time, if some time
It include the current playing time in section, it is determined that some period is the current slot.
Step 406, terminal obtains the number of users of the current slot.
In the embodiment of the present application, number of users can be obtained by following any mode:
Mode one, terminal can send number of users acquisition request to control server, in the number of users acquisition request
The time segment identification of video identifier and current slot including live video, so as to control server according to video identifier with
And time segment identification, the number of users of current slot is obtained, and the number of users is sent to terminal.
Mode two, terminal obtain the first duration between endpoint moment and the video initial time of the live video;Institute
State the period end time of period initial time or the current slot that the endpoint moment is the current slot;
And judge whether the first duration is less than or equal to preset duration, it is less than or equal to the feelings of preset duration in first duration
Under condition, determine that the number of users of the current slot is preset quantity;It is greater than the preset duration in first duration
In the case of, the second duration between the endpoint moment and the newest playing time of the live video is obtained, and according to described
Second duration obtains the number of users of the current slot;Be inversely proportional pass between second duration and the number of users
System.As it can be seen that the application is in view of live video is when just starting to play, the user of viewing is usually less, so as to incite somebody to action
The number of users for the period being closer with video initial time, setting is smaller, if the preset quantity is 10;And starting to broadcast
After putting a period of time, the user of viewing gradually increases, and the number of users of each period has differences, and usually broadcasts with newest
The number of users that the moment is put apart from the nearest period is most, the number of users of close period with newest playing time distance time
It is secondary more, and so on, therefore, the application can determine the number of users of current slot according to the second duration, i.e., this second when
Length is shorter, and corresponding number of users is more, on the contrary, second duration is longer, corresponding number of users is fewer.In the another of the application
In one alternative embodiment, number of users can be determined according to prediction viewing number, such as can be set and newest playing time distance
The nearest period, the number ratio for accounting for prediction viewing number is 50%, the setting time close with newest playing time distance time
Section, the number ratio for accounting for prediction viewing number is 25% ..., and setting, apart from the farthest period, accounts for pre- with newest playing time
The number ratio for surveying viewing number is 1%, in this way, can get each period according to number ratio and prediction viewing number
Number of users.
Step 407, for terminal according to the number of users of the current slot, the user for obtaining the current slot is discrete
Degree;Wherein, the number of users and user's dispersion are proportional.
In the embodiment of the present application, the number of users is more, and corresponding user's dispersion is bigger, on the contrary, the number of users
Fewer, corresponding user's dispersion is smaller.
This step can record the corresponding relationship between number of users record according to user's dispersion, obtain the live streaming
Number of users corresponding user dispersion of the video in current slot.
Step 408, the current slot is divided at least one sub- time according to user's dispersion by terminal
Section;The quantity of at least one sub- period and user's dispersion are proportional.
Particular content can refer to step 107, repeat no more.
In this way, if user's dispersion is bigger, the quantity of at least one obtained sub- period is more, on the contrary, if should
User's dispersion is smaller, then the quantity of at least one obtained sub- period is fewer.As it can be seen that the embodiment of the present application is in current time
In the case that user in section is more, current slot can be divided into a fairly large number of sub- period, while when this is current
Between user in section be correspondingly divided in the corresponding sub- period so that the number of users in each sub- period be less than or
Equal to the first preset quantity, so that user in each sub- period is carried out by corresponding shared server of each sub- period
Video is shared, since the user in each sub- period is the certain customers in the current slot, to effectively reduce
The communication pressure of shared server.In this way, the application will divide the period, can will play the concentration degree relatively high time
User in section carries out discrete.
In the case that user in current slot is less, current slot can be divided into the period of the day from 11 p.m. to 1 a.m of negligible amounts
Between section so that number of users in each sub- period is more than or equal to the second preset quantity, so that each sub- time
In section there are enough shared terminals, and then video sharing efficiency is improved, in this way, solving in the prior art this is current
After user in period shunts according to operator region, user of each operator region in current slot is less
Caused by share the lower problem of video efficiency.In this way, the application will divide the period, it can will play concentration degree and compare
User in the low period polymerize.In one possible implementation, at least one of the embodiment of the present application
The quantity of period is identical numerical value with user's dispersion.At this point, being obtained described current according to user's dispersion first
The period corresponding sub- period divides duration, that is, the ratio for calculating the duration and user's dispersion of the current slot obtains
The sub- period divides duration;Then the current slot duration is divided according to the sub- period to be divided to obtain institute
At least one sub- period is stated, i.e., each sub- period corresponding duration is the sub- period to divide duration.It illustratively, if should
User's dispersion is 10, then is divided the current slot to obtain 10 sub- periods;It, will if user's dispersion is 2
The current slot is divided to obtain 2 sub- periods, if user's dispersion is 1, it is determined that the current slot is son
Period.
Step 409, terminal obtains current son belonging to the currently playing moment from least one described sub- period
Period.
Whether it includes the current playing time that this step can be determined successively in each sub- period, if some sub- period
In include the current playing time, it is determined that some sub- period is current sub- time section.
Step 410, terminal according to the sub- period initial time of the current sub- period and sub- period end time,
User's dispersion of the video identifier of the live video and the current slot generates the current sub- period pair
The server identification code answered.
In the embodiment of the present application, when the sub- period initial time of current sub- period and sub- period can be terminated
User's dispersion at quarter, the video identifier of the live video and the current slot carries out character according to preset order
Combination obtains the server identification code.
Step 411, terminal obtains the currently sub- period corresponding shared service according to the server identification code
Device.
Wherein it is possible to be previously provided with identification code corresponding relationship, the identification code corresponding relationship include server identification code and
Corresponding relationship between shared server mark obtains the server in this way, this step can be based on the identification code corresponding relationship
The corresponding shared server mark of identification code, and determining that shared server identifies corresponding server is shared server.
Step 412, terminal sends video sharing request to current sub- period corresponding shared server, with toilet
Corresponding shared server of current sub- period is stated according to the video sharing request, by the terminal and the shared server
It is shared that shared terminal in the terminal list of storage carries out video.
In the embodiment of the present application, which can be multiple tracker servers.Wherein, belong to same son
The terminal and shared terminal of period sends request registration message and requesting node message to the shared server, to carry out video
It is shared, comprising terminal iidentification, register account number and log-in password etc. in the request registration message, so that shared server is according to end
End mark, register account number and log-in password are registered, and after succeeding in registration, and server succeeds in registration to terminal transmission to disappear
Breath, at this point, terminal can send requesting node message to the shared server, which includes the view of live video
Frequency marking is known, the currently playing moment of live video, (the shared segment is the piece of the live video stored in terminal to shared segment
Section) corresponding fractional time section, the shared corresponding storage location of segment, the terminal iidentification etc., so as to shared server progress
Storage, in this way, the shared server can get shared terminal according to the requesting node message of terminal user, and by shared end
The storage location for holding corresponding terminal iidentification and shared terminal to store shared segment is sent to terminal, so that the terminal is according to terminal
Mark and storage location obtain shared segment, to carry out video playing.
Furthermore, it is contemplated that the limited memory of terminal, so that the shared segment of storage is changed with playing time, because
This, the shared segment of the available live video of the application;In the case where shared segment is changed, sent out to shared server
Send shared logout message, so as to shared server according to shared logout message by the terminal iidentification of the terminal from terminal list
It deletes.For example, terminal can store 35 minutes shared segments, the shared segment be live video 2 points 0 second 0 second to 37 points
Between segment, if user watched live video 40 points 0 second to 1 when 15 divide segment between 0 second, terminal will live streaming view
The data of shared segment of 2 points of frequency between 0 second 0 second to 37 points are deleted, and store live video 40 points 0 second to 1 when
15 points of segments between 0 second, at this point, 15 segments divided between 0 second are new shared when 40 points of the live video 0 second are to 1
Segment, at this point it is possible to shared logout message be sent to shared server, so that shared server will be whole according to shared logout message
The terminal iidentification at end is deleted from terminal list, it is seen then that in the case where the shared segment of terminal is changed, shared server
It needs to delete the terminal iidentification, so that the corresponding each terminal of terminal iidentification that terminal list includes can be carried out accurately
P2p is shared, and after shared server deletes the terminal iidentification, which can reacquire new shared server, and pass through
It is shared that new shared server carries out video.
In addition, during shared by shared server progress video, if the user of the terminal changes playback progress,
Then the shared terminal in the terminal list of shared server storage possibly can not provide the shared segment of terminal needs, this
When, which can also send shared logout message to shared server, so that shared server will according to shared logout message
The terminal iidentification of terminal is deleted from terminal list, and equally after shared server deletes the terminal iidentification, which can be with
New shared server is reacquired, and video is carried out by new shared server and is shared.
To sum up, it is contemplated that the playing time that user chooses when watching live video is different, so that live video be caused to exist
Number of users in different time periods has differences, and the application is divided current slot by user's dispersion, so that working as
User in the preceding period was correspondingly divided in each sub- period, due in user's dispersion and the current slot
Number of users is proportional and the quantity and user's dispersion of at least one sub- period are proportional, and therefore, this is extremely
The quantity of a few sub- period and the number of users in the current slot are proportional, in this way, the period in this prior
In user it is more in the case where, the quantity of at least one got sub- period is more, thus in the current slot
User was divided at least one a fairly large number of sub- period, caused to avoid the number of users in each sub- period is more
The larger problem of shared server communication pressure;In the case that user in this prior in the period is less, get to
The negligible amounts of a few sub- period, so that the user in the current slot is divided at least one period of the day from 11 p.m. to 1 a.m of negligible amounts
Between in section, to avoid the lower problem of the sharing efficiency caused by less of the number of users in each sub- period.To sum up, it can incite somebody to action
The user played in the concentration degree relatively low period polymerize, and will play the user in the concentration degree relatively high period
It carries out discrete.It should be noted that for simple description, therefore, it is stated as a series of movements for embodiment of the method
Combination, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because
According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also answer
This knows that the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is real
It applies necessary to example.
Referring to Fig. 5, a kind of structural block diagram of 50 embodiment of shared system of live video of the application, the system are shown
System 50 includes control server 501 and terminal 502;
The control server 501, the corresponding video identifier of live video sent for receiving the terminal;And
According to the video identifier, the corresponding period division duration of the live video is obtained;And described in the transmission of Xiang Suoshu terminal
Period divides duration;
The terminal 502, for obtaining the currently playing moment of the live video;And it determines described currently playing
Current slot belonging to moment;The current slot is to divide the period that duration is got by the period;With
And the number of users according to the current slot, obtain user's dispersion of the current slot;Wherein, the user
Quantity and user's dispersion are proportional;And according to user's dispersion, the current slot is divided into
At least one sub- period, and control the video that the terminal carries out the live video with shared terminal and share;It is described shared
Terminal and the terminal are located at the same sub- period;The quantity of at least one sub- period and user's dispersion are at just
The relationship of ratio.
In the alternative embodiment of the application, the control server 501, for obtaining according to the video identifier
Number is watched in the prediction of the live video;And according to the prediction viewing number, obtain the live video it is corresponding when
Between section divide duration;The period divides between duration and the prediction viewing number inversely.
In the alternative embodiment of the application, the control server 501, for sending the time to the terminal
Section divides duration and user's dispersion acquisition strategy;User's dispersion acquisition strategy includes: to be remembered according to user's dispersion
Corresponding relationship between record and number of users record, obtains the live video in the corresponding use of number of users of current slot
Family dispersion;
The terminal 502, for the number of users according to user's dispersion acquisition strategy and the current slot
Amount, obtains user's dispersion of the current slot.
Referring to Fig. 6, a kind of structural block diagram of 60 embodiment of sharing means of live video of the application is shown, is applied to
Terminal can specifically include following module:
Current time obtains module 601, for obtaining the currently playing moment of live video;
Current slot determining module 602, for determining current slot belonging to the currently playing moment;
User's dispersion obtains module 603, for the number of users according to the current slot, when obtaining described current
Between section user's dispersion;Wherein, the number of users and user's dispersion are proportional;
Current slot division module 604, for according to user's dispersion, by the current slot be divided into
A few sub- period;The quantity of at least one sub- period and user's dispersion are proportional;
Compliance control module 605, the video that the live video is carried out for controlling the terminal and shared terminal are shared;
The shared terminal and the terminal are located at the same sub- period.
Referring to Fig. 7, in the alternative embodiment of the application, the device 60 further include:
Video identifier sending module 606, for the video identifier of the live video to be sent to control server;
Period divides duration receiving module 607, for receiving the control server according to the video identifier, sends
Period divide duration;
History play time section division module 608, for dividing duration by the period, by the live video
History play time section is divided into multiple periods;The history play time section is the video initial time of the live video
And the period that the newest playing time of the live video is constituted;
The current slot determining module 602, the period for determining that the currently playing moment is located at is described
Current slot.
In the alternative embodiment of the application, the period divides duration receiving module 607, described for receiving
The video that control server is sent divides duration and user's dispersion acquisition strategy;
User's dispersion obtains module 603, for according to user's dispersion acquisition strategy and described current
The number of users of period obtains user's dispersion of the current slot;
User's dispersion acquisition strategy includes:
According to the corresponding relationship between user's dispersion record and number of users record, the live video is obtained current
The corresponding user's dispersion of the number of users of period.
Referring to Fig. 8, in the alternative embodiment of the application, described device further include:
First duration obtains module 609, for obtaining between endpoint moment and the video initial time of the live video
The first duration;The endpoint moment be the current slot period initial time or the current slot when
Between section end time;
Number of users determining module 610 is used in the case where first duration is less than or equal to preset duration, really
The number of users of the fixed current slot is preset quantity;
Number of users obtains module 611, for obtaining institute in the case where first duration is greater than the preset duration
The second duration between endpoint moment and the newest playing time of the live video is stated, and institute is obtained according to second duration
State the number of users of current slot;Between second duration and the number of users inversely.
Referring to Fig. 9, in the alternative embodiment of the application, described device further include:
The current sub- period obtains module 612, for obtaining described currently playing from least one described sub- period
The current sub- period belonging to moment;
Server identification code generation module 613, for according to the sub- period initial time of the current sub- period and
User's dispersion of sub- period end time, the video identifier of the live video and the current slot generates institute
State corresponding server identification code of current sub- period;
Shared server obtains module 614, for obtaining the current sub- period pair according to the server identification code
The shared server answered;
The Compliance control module 605, it is total for sending video to current sub- period corresponding shared server
Enjoy request, so that current sub- period corresponding shared server is according to the video sharing request, by the terminal with
It is shared that shared terminal in the terminal list of the shared server storage carries out video.
Referring to Fig.1 0, in the alternative embodiment of the application, described device further include:
Shared segment obtains module 615, for obtaining the shared segment of the live video;
Shared logout message sending module 616, for being shared to described in the case where the shared segment is changed
Server sends shared logout message, so as to the shared server according to the shared logout message by the terminal of the terminal
Mark is deleted from terminal list.
Referring to Fig.1 1, in the alternative embodiment of the application, the current slot division module 604, comprising:
The sub- period divides duration acquisition submodule 6041, is used for according to user's dispersion, when obtaining described current
Between section corresponding sub- period divide duration;
Current slot divides submodule 6042, for the current slot to be divided duration according to the sub- period
It is divided to obtain at least one described sub- period.
The specific embodiment of device is repeated no more, related content can be with reference to the discussion in embodiment of the method.
The embodiment of the present application also provides a kind of non-volatile readable storage medium, be stored in the storage medium one or
Multiple modules (programs) when the one or more module is used in terminal device, can make the terminal device execute
The instruction (instructions) of various method steps in the embodiment of the present application.
Figure 12 is the hardware structural diagram of the sharing means for the live video that one embodiment of the application provides.Such as Figure 12 institute
Show, the sharing means of the live video of the present embodiment include processor 121 and memory 122.
Processor 121 executes the computer program code that memory 122 is stored, and realizes Fig. 1, Fig. 3 in above-described embodiment
And the sharing method of the live video of Fig. 4.
Memory 122 is configured as storing various types of data to support the operation in the sharing method of live video.
The example of these data includes the instruction of any application or method for operating in the sharing means of live video, example
Such as message, picture, video etc..Memory 122 may include random access memory (random access memory, abbreviation
RAM), it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Optionally, processor 121 is arranged in processing component 120.The sharing means of the live video can also include: logical
Believe component 123, power supply module 124, multimedia component 125, audio component 126, input/output interface 127 and/or sensor group
Part 128.Component that the sharing means of live video are specifically included etc. is set according to actual demand, and the present embodiment does not limit this
It is fixed.
The integrated operation of the usually sharing means of control live video of processing component 120.Processing component 120 may include one
A or multiple processors 121 execute instruction, to complete all or part of the steps of above-mentioned Fig. 1, Fig. 3 and Fig. 4 method.This
Outside, processing component 120 may include one or more modules, convenient for the interaction between processing component 120 and other assemblies.Example
Such as, processing component 120 may include multi-media module, to facilitate the interaction between multimedia component 125 and processing component 120.
Power supply module 124 provides electric power for the various assemblies of the sharing means of live video.Power supply module 124 may include
Power-supply management system, one or more power supplys and other with the sharing means for live video generate, manage, and distribute electric power phase
Associated component.
Multimedia component 125 includes the aobvious of one output interface of offer between the sharing means and user of live video
Display screen.In some embodiments, display screen may include liquid crystal display (LCD) and touch panel (TP).If display screen packet
Touch panel is included, display screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
Or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.The touch sensor can be sensed not only
The boundary of a touch or slide action, but also detect duration and pressure associated with the touch or slide operation.
Audio component 126 is configured as output and/or input audio signal.For example, audio component 126 includes a Mike
Wind (MIC).The received audio signal can be further stored in memory 122 or send via communication component 123.One
In a little embodiments, audio component 126 further includes a loudspeaker, is used for output audio signal.
Input/output interface 127 provides interface, above-mentioned peripheral interface between processing component 120 and peripheral interface module
Module can be click wheel, button etc..These buttons may include, but are not limited to: volume button, start button and locking press button.
Sensor module 128 includes one or more sensors, provides each side for the sharing means for live video
The status assessment in face.For example, sensor module 128 can detecte the state that opens/closes of the sharing means of live video, group
The relative positioning of part, the existence or non-existence that user contacts with the sharing means of live video.Sensor module 128 may include
Proximity sensor is configured to detect the presence of nearby objects without any physical contact.In some embodiments,
The sensor module 128 can also be including camera etc..
Communication component 123 is configured to facilitate wired or wireless way between the sharing means of live video and other equipment
Communication.The sharing means of live video can access the wireless network based on communication standard, such as WiFi, 2G or 3G or they
Combination.
From the foregoing, it will be observed that communication component 123, audio component 126 involved in Figure 12 embodiment and input/output connect
Mouth 127, sensor module 128 can be used as the implementation of input equipment.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating
Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Sharing method, system and device to a kind of live video provided herein and computer-readable storage above
Medium is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, with
The explanation of upper embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general of this field
Technical staff, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion
The contents of this specification should not be construed as limiting the present application.
Claims (21)
1. a kind of sharing method of live video, which is characterized in that described applied to the system including control server and terminal
Method includes:
The control server receives the corresponding video identifier of live video that the terminal is sent;
The control server obtains the corresponding period division duration of the live video according to the video identifier;
The control server sends the period division duration to the terminal;
The terminal obtains the currently playing moment of the live video;
The terminal determines current slot belonging to the currently playing moment;The current slot is to pass through the time
Section divides the period that duration is got;
The terminal obtains user's dispersion of the current slot according to the number of users of the current slot;Wherein,
The number of users and user's dispersion are proportional;
The terminal is divided at least one sub- period according to user's dispersion, by the current slot, and controls
The video that the terminal and shared terminal carry out the live video is shared;The shared terminal and the terminal are located at same son
Period;The quantity of at least one sub- period and user's dispersion are proportional.
2. the method according to claim 1, wherein the control server is obtained according to the video identifier
The live video corresponding period divides duration, comprising:
The control server obtains the prediction viewing number of the live video according to the video identifier;
The control server obtains the corresponding period division duration of the live video according to the prediction viewing number;
The period divides between duration and the prediction viewing number inversely.
3. the method according to claim 1, wherein the control server sends the time to the terminal
Section divides duration, comprising:
The control server sends the period division duration and user's dispersion acquisition strategy to the terminal;It is described
User's dispersion acquisition strategy includes:
According to the corresponding relationship between user's dispersion record and number of users record, the live video is obtained in current time
The corresponding user's dispersion of number of users of section;
The terminal obtains user's dispersion of the current slot according to the number of users of the current slot, comprising:
The terminal is worked as described in acquisition according to user's dispersion acquisition strategy and the number of users of the current slot
User's dispersion of preceding period.
4. a kind of sharing method of live video, which is characterized in that be applied to terminal, which comprises
Obtain the currently playing moment of live video;
Determine current slot belonging to the currently playing moment;
According to the number of users of the current slot, user's dispersion of the current slot is obtained;Wherein, the user
Quantity and user's dispersion are proportional;
According to user's dispersion, the current slot is divided at least one sub- period, and control the terminal
The video for carrying out the live video with shared terminal is shared;The shared terminal and the terminal are located at the same sub- period;
The quantity of at least one sub- period and user's dispersion are proportional.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The video identifier of the live video is sent to control server;
The control server is received according to the video identifier, the period of transmission divides duration;
Duration is divided by the period, the history play time section of the live video is divided into multiple periods;Institute
State the newest playing time structure of video initial time and the live video that history play time section is the live video
At period;
Current slot belonging to the determination currently playing moment, comprising: determine what the currently playing moment was located at
Period is the current slot.
6. according to the method described in claim 5, it is characterized in that, described receive the server according to the video identifier,
The video of transmission divides duration, comprising: the video for receiving the control server transmission divides duration and user's dispersion obtains
Take strategy;
The number of users according to the current slot obtains user's dispersion of the current slot, comprising: according to
The number of users of user's dispersion acquisition strategy and the current slot, obtain the user of the current slot from
Divergence;
User's dispersion acquisition strategy includes:
According to the corresponding relationship between user's dispersion record and number of users record, the live video is obtained in current time
The corresponding user's dispersion of number of users of section.
7. according to the method described in claim 4, it is characterized in that, in the number of users according to the current slot,
Before the user's dispersion for obtaining the current slot, further includes:
Obtain the first duration between endpoint moment and the video initial time of the live video;The endpoint moment is described
The period initial time of current slot or the period end time of the current slot;
In the case where first duration is less than or equal to preset duration, determine that the number of users of the current slot is
Preset quantity;
In the case where first duration is greater than the preset duration, the endpoint moment and the live video are obtained most
The second duration between new playing time, and obtain according to second duration number of users of the current slot;It is described
Between second duration and the number of users inversely.
8. according to the method described in claim 4, it is characterized in that, the method also includes:
From at least one described sub- period, the current sub- period belonging to the currently playing moment is obtained;
According to the sub- period initial time and sub- period end time, the view of the live video of the current sub- period
Frequency marking knows and user's dispersion of the current slot, generates the currently sub- period corresponding server identification code;
According to the server identification code, the currently sub- period corresponding shared server is obtained;
The control terminal and the video that shared terminal carries out the live video are shared, comprising:
Video sharing request is sent to current sub- period corresponding shared server, so as to the current sub- period pair
The shared server answered, will be in the terminal and the terminal list of shared server storage according to the video sharing request
Shared terminal to carry out video shared.
9. according to the method described in claim 4, it is characterized in that, the method also includes:
Obtain the shared segment of the live video;
In the case where the shared segment is changed, Xiang Suoshu shared server sends shared logout message, so as to described
Shared server deletes the terminal iidentification of the terminal according to the shared logout message from terminal list.
10. according to the described in any item methods of claim 4 to 9, which is characterized in that it is described by user's dispersion, it will
The current slot is divided at least one sub- period, comprising:
According to user's dispersion, the corresponding sub- period division duration of the current slot is obtained;
The current slot is divided duration according to the sub- period to be divided to obtain at least one described sub- period.
11. a kind of shared system of live video, which is characterized in that the system comprises control servers and terminal;
The control server, the corresponding video identifier of live video sent for receiving the terminal;And according to described
Video identifier obtains the corresponding period division duration of the live video;And Xiang Suoshu terminal sends the period stroke
Timesharing is long;
The terminal, for obtaining the currently playing moment of the live video;And it determines belonging to the currently playing moment
Current slot;The current slot is to divide the period that duration is got by the period;And according to institute
The number of users for stating current slot obtains user's dispersion of the current slot;Wherein, the number of users with it is described
User's dispersion is proportional;And according to user's dispersion, the current slot is divided at least one son
Period, and control the video that the terminal carries out the live video with shared terminal and share;The shared terminal with it is described
Terminal is located at the same sub- period;The quantity of at least one sub- period and user's dispersion are proportional.
12. system according to claim 11, which is characterized in that the control server, for according to the video mark
Know, obtains the prediction viewing number of the live video;And according to the prediction viewing number, obtain the live video
The corresponding period divides duration;The period divides between duration and the prediction viewing number inversely.
13. system according to claim 11, which is characterized in that the control server, for being sent to the terminal
The period divides duration and user's dispersion acquisition strategy;User's dispersion acquisition strategy includes: according to user
Corresponding relationship between dispersion record and number of users record, obtains the live video in the number of users of current slot
Corresponding user's dispersion;
The terminal is obtained for the number of users according to user's dispersion acquisition strategy and the current slot
User's dispersion of the current slot.
14. a kind of sharing means of live video, which is characterized in that be applied to terminal, described device includes:
Current time obtains module, for obtaining the currently playing moment of live video;
Current slot determining module, for determining current slot belonging to the currently playing moment;
User's dispersion obtains module and obtains the current slot for the number of users according to the current slot
User's dispersion;Wherein, the number of users and user's dispersion are proportional;
Current slot division module, for according to user's dispersion, the current slot to be divided at least one
The sub- period;The quantity of at least one sub- period and user's dispersion are proportional;
Compliance control module, the video that the live video is carried out for controlling the terminal and shared terminal are shared;It is described total
It enjoys terminal and the terminal is located at the same sub- period.
15. device according to claim 14, which is characterized in that described device further include:
Video identifier sending module, for the video identifier of the live video to be sent to control server;
Period divides duration receiving module, for receiving the control server according to the video identifier, the time of transmission
Section divides duration;
History play time section division module broadcasts the history of the live video for dividing duration by the period
Putting the period is divided into multiple periods;Video initial time and institute of the history play time section for the live video
State the period that the newest playing time of live video is constituted;
The current slot determining module, for determining that the period that the currently playing moment is located at is the current time
Section.
16. device according to claim 15, which is characterized in that the period divides duration receiving module, for connecing
It receives the video that the control server is sent and divides duration and user's dispersion acquisition strategy;
User's dispersion obtains module, for according to user's dispersion acquisition strategy and the current slot
Number of users obtains user's dispersion of the current slot;
User's dispersion acquisition strategy includes:
According to the corresponding relationship between user's dispersion record and number of users record, the live video is obtained in current time
The corresponding user's dispersion of number of users of section.
17. device according to claim 14, which is characterized in that described device further include:
First duration obtains module, when for obtaining first between endpoint moment and the video initial time of the live video
It is long;The endpoint moment is to terminate the period initial time of the current slot or the period of the current slot
Moment;
Number of users determining module, described in determining in the case where first duration is less than or equal to preset duration
The number of users of current slot is preset quantity;
Number of users obtains module, for obtaining the endpoint in the case where first duration is greater than the preset duration
The second duration between moment and the newest playing time of the live video, and it is described current according to second duration acquisition
The number of users of period;Between second duration and the number of users inversely.
18. device according to claim 14, which is characterized in that described device further include:
The current sub- period obtains module, for obtaining the currently playing moment institute from least one described sub- period
The current sub- period belonged to;
Server identification code generation module, for according to the currently sub- period initial time of sub- period and the sub- period
User's dispersion of end time, the video identifier of the live video and the current slot generates the current son
Period corresponding server identification code;
Shared server obtains module, for it is corresponding total to obtain the current sub- period according to the server identification code
Enjoy server;
The Compliance control module, for sending video sharing request to current sub- period corresponding shared server,
So that current sub- period corresponding shared server is according to the video sharing request, by the terminal and described shared
It is shared that shared terminal in the terminal list of server storage carries out video.
19. device according to claim 14, which is characterized in that described device further include:
Shared segment obtains module, for obtaining the shared segment of the live video;
Shared logout message sending module, in the case where the shared segment is changed, Xiang Suoshu shared server
Send shared logout message, so as to the shared server according to the shared logout message by the terminal iidentification of the terminal from
It is deleted in terminal list.
20. 4 to 19 described in any item devices according to claim 1, which is characterized in that the current slot division module,
Include:
The sub- period divides duration acquisition submodule, for it is corresponding to obtain the current slot according to user's dispersion
The sub- period divide duration;
Current slot divides submodule, divides for the current slot to be divided duration according to the sub- period
Obtain at least one described sub- period.
21. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the computer program realize the shared side of live video as described in any one of claims 1 to 3 when being executed by processor
The step of method;Or the step of realizing the sharing method such as the described in any item live videos of claim 4 to 10.
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 true CN110213604A (en) | 2019-09-06 |
CN110213604B 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 (16)
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 |
US20110119334A1 (en) * | 2009-11-09 | 2011-05-19 | Eizikovich Arik | Communication systems, methods, and computer program products for efficient peer-to-peer transmission |
US20120005165A1 (en) * | 2010-06-30 | 2012-01-05 | Industrial Technology Research Institute | Data backup, recovery and deletion method through a distributed network and system thereof |
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 |
US20160247537A1 (en) * | 2015-02-24 | 2016-08-25 | Plaay, Llc | System and method for creating a sports video |
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 |
-
2019
- 2019-05-27 CN CN201910447391.4A patent/CN110213604B/en active Active
Patent Citations (16)
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 |
US20110119334A1 (en) * | 2009-11-09 | 2011-05-19 | Eizikovich Arik | Communication systems, methods, and computer program products for efficient peer-to-peer transmission |
US20120005165A1 (en) * | 2010-06-30 | 2012-01-05 | Industrial Technology Research Institute | Data backup, recovery and deletion method through a distributed network and system thereof |
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) |
US20160247537A1 (en) * | 2015-02-24 | 2016-08-25 | Plaay, Llc | System and method for creating a sports video |
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)
Title |
---|
MD IFTAKHARUL ISLAM: ""Video Splicing Techniques for P2P Video Streaming"", 《2015 IEEE 35TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS WORKSHOPS》 * |
张建伟: ""P2P网络内容分发关键技术研究"", 《中国博士学位论文全文数据库-信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110213604B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10282524B1 (en) | Content selection and delivery for random devices | |
US8886710B2 (en) | Resuming content across devices and formats | |
US20160180062A1 (en) | Rights and capability-inclusive content selection and delivery | |
KR101804076B1 (en) | Method and apparatus for presenting multimedia information | |
US20200201596A1 (en) | Method and system for playback of audio content using wireless mobile device | |
US9078047B2 (en) | Content reproduction device | |
EP2619685B1 (en) | Rights and capability-inclusive content selection and delivery | |
CA2680797C (en) | Systems and methods for portable personalized radio | |
US11743529B2 (en) | Display control method, terminal, and non-transitory computer readable recording medium storing a computer program | |
JP2012134969A (en) | Cloud computing based video service and playing method | |
US20150195315A1 (en) | Method and system for delivery of audio content for use on wireless mobile device | |
CN107920274A (en) | A kind of method for processing video frequency, client and server | |
CN108810052A (en) | The selection method and device of direct broadcast server | |
CN105828192A (en) | Multi-terminal video continuous playing method and device | |
CN105898410A (en) | Video recommendation method and server | |
CN106998490A (en) | A kind of multi-medium data synchronous method and device | |
CN103369126A (en) | Song requesting method | |
CN110267118A (en) | A kind of video distribution method and apparatus and computer readable storage medium | |
CN112270561A (en) | Electronic resource distribution method and device, electronic equipment and storage medium | |
WO2015039477A1 (en) | Information system, information delivery method and iptv system based on multi-screen interaction | |
CN107318052A (en) | Player method, television set and the storage medium of television video | |
EP2720158A1 (en) | Selection of clips for sharing streaming content | |
CN111862917A (en) | Unmanned karaoke vehicle service providing method and device and unmanned karaoke vehicle | |
CN110213604A (en) | Sharing method, system and the device and computer readable storage medium of live video | |
CN106162234A (en) | A kind of method and device sharing TV programme |
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 |