CN107948668A - Method for recording, device and the computer-readable storage medium of live video - Google Patents
Method for recording, device and the computer-readable storage medium of live video Download PDFInfo
- Publication number
- CN107948668A CN107948668A CN201711297079.9A CN201711297079A CN107948668A CN 107948668 A CN107948668 A CN 107948668A CN 201711297079 A CN201711297079 A CN 201711297079A CN 107948668 A CN107948668 A CN 107948668A
- Authority
- CN
- China
- Prior art keywords
- duration
- live video
- live
- recording
- terminal
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25891—Management of end-user data being end-user preferences
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- 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/44204—Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
-
- 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
Abstract
The invention discloses a kind of method for recording of live video, device and computer-readable storage medium, belong to electronic technology field, applied to first terminal, the described method includes:The live video played in the live page shown by server to first terminal is recorded, and the first limitation duration is obtained from server, first a length of maximum duration that can be recorded to live video when limiting;According to the first limitation duration, the recording time point of the live video is shown;When detecting the refreshing instruction of the live page, refresh the live page, and after Flushing success, the recording duration of the live video is obtained from server;According to the first limitation duration and the recording duration of the live video, continue to show the recording time point of the live video.The present invention according to the first limitation duration and the recording duration of the live video got from server, can accurately show the recording time point of the live video.
Description
Technical field
The present invention relates to electronic technology field, the more particularly to a kind of method for recording of live video, device and computer are deposited
Storage media.
Background technology
With the development of electronic technology, viewing live video is increasingly becoming the activity enjoyed a lot in people's daily entertainment.
User often records live video during live video is watched, to continue to see after live
See recorded video.Terminal is when obtaining live video, it is possible that interim card, terminal cannot be recorded normally directly during interim card
Video is broadcast, thus live video is recorded often by server at present.Recording of the server to live video terminates
Afterwards, the video recorded can be sent to terminal, the video recorded by terminal-pair is stored.
In correlation technique, server can send to terminal when just starting to record live video and record limitation duration, should
Record a length of maximum duration that can be recorded to live video during limitation., can be with after terminal receives recording limitation duration
Recording limitation duration is shown with order timing mode or inverted order timing mode, to realize the recording to the live video
The display at time point.In the process, if terminal-pair live page is refreshed, after Flushing success, terminal will not be again
Show the recording time point of the live video, or continue to show the recording time point that can show before refreshing of terminal
Show.
The content of the invention
In order to solve the problems, such as that the display of recording time point is inaccurate in correlation technique, an embodiment of the present invention provides a kind of straight
Broadcast the method for recording, device and computer-readable storage medium of video.The technical solution is as follows:
First aspect according to embodiments of the present invention, there is provided a kind of method for recording of live video, applied to first terminal,
The described method includes:
The live video played in the live page shown by server to the first terminal is recorded, and
The first limitation duration, described first a length of maximum that can be recorded to live video when limiting are obtained from the server
Duration;
According to the described first limitation duration, the recording time point of the live video is shown;
When detecting the refreshing instruction of the live page, refresh the live page, and after Flushing success, from institute
State the recording duration that the live video is obtained in server;
According to the described first limitation duration and the recording duration of the live video, continue the recording to the live video
Time point is shown.
Alternatively, it is described according to the described first limitation duration, the recording time point of the live video is shown, is wrapped
Include:
Described first limitation duration is shown with order timing mode or inverted order timing mode, it is described live to show
The recording time point of video;
Correspondingly, it is described according to the described first limitation duration and the recording duration of the live video, continue to described straight
The recording time point for broadcasting video shown, including:
When the described first limitation duration is shown with order timing mode, since the recording duration of the live video
The first limitation duration is shown to order timing mode, to continue to show the recording time point of the live video;
When the described first limitation duration is shown with inverted order timing mode, the described first limitation duration is subtracted described straight
The recording duration of video is broadcast, obtains the second limitation duration, the described second limitation duration is shown with inverted order timing mode, with
Continue to show the recording time point of the live video.
Alternatively, the method further includes:
The recording duration of the live video is obtained from the server every the first preset duration;
According to the described first limitation duration and the recording duration of the live video, again to the recording of the live video
Time point is shown.
Alternatively, the live video played in the live page shown by server to the first terminal
Recorded, and the first limitation duration is obtained from the server, including:
When the record command of the live video played in the live page for detecting display, by the second preset duration
Shown with order timing mode or inverted order timing mode;
When being not detected by recording cancellation instruction during showing second preset duration, by server to institute
State the live video played in live page to be recorded, and the first limitation duration is obtained from the server.
Alternatively, the live video played in the live page shown by server to the first terminal
Recorded, and the first limitation duration is obtained from the server, including:
When the record command of the live video played in the live page for detecting display, sent to second terminal
Inquiry message is recorded, inquires that message returns to acceptance message according to described record by the second terminal, the second terminal is made a living
The terminal of the live video played into the live page;
When receiving the acceptance message that the second terminal is sent, by server to being broadcast in the live page
The live video put is recorded, and the first limitation duration is obtained from the server.
Second aspect according to embodiments of the present invention, there is provided a kind of record device of live video, applied to first terminal,
Described device includes:
First acquisition module is straight for being played in the live page that is shown by server to the first terminal
Video is broadcast to be recorded, and from the server obtain first limitation duration, it is described first limitation when it is a length of can be to described
The maximum duration that live video is recorded;
First display module, for according to the described first limitation duration, being carried out to the recording time point of the live video
Display;
Second acquisition module, for when detecting the refreshing instruction of the live page, refreshing the live page, and
After Flushing success, the recording duration of the live video is obtained from the server;
Second display module, for the recording duration according to the described first limitation duration and the live video, continues pair
The recording time point of the live video is shown.
Alternatively, first display module includes:
First display sub-module, for the described first limitation duration to be carried out with order timing mode or inverted order timing mode
It has been shown that, to show the recording time of live video point;
Correspondingly, second display module includes:
Second display sub-module, for when described first limitation duration be show with order timing mode when, from it is described directly
The recording duration for broadcasting video starts to be shown to the first limitation duration with order timing mode, to continue to show described live regard
The recording time point of frequency;
3rd display sub-module, for when the described first limitation duration is shown with inverted order timing mode, by described the
One limitation duration subtracts the recording duration of the live video, obtains the second limitation duration, by the described second limitation duration with
Sequence timing mode is shown, to continue to show the recording time point of the live video.
Alternatively, described device further includes:
3rd acquisition module, for obtaining the recording of the live video from the server every the first preset duration
Duration;
3rd display module, it is again right for the recording duration according to the described first limitation duration and the live video
The recording time point of the live video is shown.
Alternatively, first acquisition module includes:
4th display sub-module, for referring to when the recording of the live video played in the live page for detecting display
When making, the second preset duration is shown with order timing mode or inverted order timing mode;
First acquisition submodule, refers to for that ought be not detected by recording cancellation during second preset duration is shown
When making, the live video played in the live page is recorded by server, and is obtained from the server
Take the first limitation duration.
Alternatively, first acquisition module includes:
Sending submodule, for when the record command of the live video played in the live page for detecting display
When, sent to second terminal and record inquiry message, inquire that message returns to acceptance message according to described record by the second terminal,
The second terminal is the terminal of the live video played in the generation live page;
Second acquisition submodule, for when receiving the acceptance message that the second terminal is sent, passing through server pair
The live video played in the live page is recorded, and the first limitation duration is obtained from the server.
The third aspect according to embodiments of the present invention, there is provided a kind of device, described device include processor, memory and
The program code that can be run on the memory and on the processor is stored in, the processor performs said program code
Method described in the above-mentioned first aspects of Shi Shixian.
Fourth aspect according to embodiments of the present invention, there is provided a kind of computer-readable recording medium, the storage medium
On the step of being stored with instruction, the method described in above-mentioned first aspect is realized when described instruction is executed by processor.
The beneficial effect that technical solution provided in an embodiment of the present invention is brought is:
In embodiments of the present invention, played in the live page that can be shown by server to first terminal straight
Broadcast video to be recorded, and the first limitation duration is obtained from the server, according to the first limitation duration, to the live video
Recording time point is shown.Afterwards, when first terminal detects the refreshing instruction of the live page, it is live that this can be refreshed
The page, and after Flushing success, the recording duration of the live video is obtained from server, then according to the first limitation duration and
The recording duration of the live video, continues to show the recording time point of the live video.Due to the live video be by
What server was recorded, therefore the recording time length ratio of the live video that first terminal is got from server is more accurate,
Thus first terminal is according to the first limitation duration and the recording duration of the live video, the recording time of the live video of display
The accuracy of point is higher.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is a kind of flow chart of the method for recording of live video provided in an embodiment of the present invention;
Fig. 2A is the flow chart of the method for recording of another live video provided in an embodiment of the present invention;
Fig. 2 B are a kind of schematic diagrames for recording inquiry message provided in an embodiment of the present invention;
Fig. 3 A are the structure diagrams of the record device of the first live video provided in an embodiment of the present invention;
Fig. 3 B are a kind of structure diagrams of first display module provided in an embodiment of the present invention;
Fig. 3 C are a kind of structure diagrams of second display module provided in an embodiment of the present invention;
Fig. 3 D are the structure diagrams of the record device of second of live video provided in an embodiment of the present invention;
Fig. 3 E are a kind of structure diagrams of first acquisition module provided in an embodiment of the present invention;
Fig. 3 F are the structure diagrams of another first acquisition module provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of the record device of the third live screen provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the record device of the 4th kind of live screen provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Before detailed explanation is carried out to the embodiment of the present invention, first to the present embodiments relate to application scenarios
It is introduced.
With the development of electronic technology, viewing live video is increasingly becoming the activity enjoyed a lot in people's daily entertainment.
User often records live video during live video is watched, to continue to see after live
See recorded video.In correlation technique, terminal can be recorded live video by server, and terminal can basis
The recording limitation duration obtained from server shows the recording time point of the live video.And in the process, such as
Fruit terminal-pair live page is refreshed, then after Flushing success, terminal will not show the recording time point of the live video again,
Or continue to show the recording time point that can show before refreshing of terminal, due to carrying out refreshing needs to live page
Certain time, and live video plays in real time, therefore the recording time point of the live video shown before refreshing is with refreshing
After the completion of live video reality recording time point and differ, so as to cause the recording time point that terminal is shown at this time to be not allowed
Really.For this reason, the present invention provides a kind of method for recording of live video, accurately to show the recording time of live video point.
Next will describe in detail with reference to attached drawing to the method for recording of live video provided in an embodiment of the present invention.
Fig. 1 is a kind of flow chart of the method for recording of live video provided in an embodiment of the present invention.As shown in Figure 1, using
In first terminal, this method comprises the following steps:
Step 101:The live video played in the live page shown by server to first terminal is recorded
System, and from the server obtain first limitation duration, first limitation when it is a length of can to the live video record maximum when
It is long.
Step 102:According to the first limitation duration, the recording time point of live video is shown.
Step 103:When detecting the refreshing instruction of the live page, refresh the live page, and after Flushing success,
The recording duration of the live video is obtained from the server.
Step 104:According to the first limitation duration and the recording duration of the live video, continue the recording to the live video
Time point is shown.
In embodiments of the present invention, played in the live page that can be shown by server to first terminal straight
Broadcast video to be recorded, and the first limitation duration is obtained from the server, according to the first limitation duration, to the live video
Recording time point is shown.Afterwards, when first terminal detects the refreshing instruction of the live page, it is live that this can be refreshed
The page, and after Flushing success, the recording duration of the live video is obtained from server, then according to the first limitation duration and
The recording duration of the live video, continues to show the recording time point of the live video.Due to the live video be by
What server was recorded, therefore the recording time length ratio of the live video that first terminal is got from server is more accurate,
Thus first terminal is according to the first limitation duration and the recording duration of the live video, the recording time of the live video of display
The accuracy of point is higher.
Alternatively, according to the first limitation duration, the recording time point of the live video is shown, including:
First limitation duration is shown with order timing mode or inverted order timing mode, to show the live video
Recording time point;
Correspondingly, according to the first limitation duration and the recording duration of the live video, the recording to the live video is continued
Time point shown, including:
When the first limitation duration is shown with order timing mode, with order since the recording duration of the live video
Timing mode is shown to the first limitation duration, to continue to show the recording time point of the live video;
When the first limitation duration is shown with inverted order timing mode, the first limitation duration is subtracted to the record of the live video
Duration processed, obtains the second limitation duration, the second limitation duration is shown with inverted order timing mode, to continue to show that this is live
The recording time point of video.
Alternatively, this method further includes:
The recording duration of the live video is obtained from the server every the first preset duration;
According to the first limitation duration and the recording duration of the live video, the recording time of the live video is clicked through again
Row display.
Alternatively, the live video played in the live page shown by server to first terminal is recorded
System, and the first limitation duration is obtained from server, including:
When the record command of the live video played in the live page for detecting display, by the second preset duration
Shown with order timing mode or inverted order timing mode;
It is live to this by server when being not detected by recording cancellation instruction during showing the second preset duration
The live video played in the page is recorded, and the first limitation duration is obtained from the server.
Alternatively, the live video played in the live page shown by server to first terminal is recorded
System, and the first limitation duration is obtained from server, including:
When the record command of the live video played in the live page for detecting display, sent to second terminal
Inquiry message is recorded, inquires that message returns to acceptance message according to the recording by second terminal, second terminal is to generate the live page
The terminal of the live video played in face;
It is live to what is played in live page by server when receiving the acceptance message of second terminal transmission
Video is recorded, and the first limitation duration is obtained from server.
Above-mentioned all optional technical solutions, can form the alternative embodiment of the present invention according to any combination, and the present invention is real
Example is applied no longer to repeat this one by one.
Fig. 2A is a kind of flow chart of the method for recording of live video provided in an embodiment of the present invention.The embodiment of the present invention will
Expansion discussion is carried out to the embodiment that Fig. 1 is provided with reference to Fig. 2A.As shown in Figure 2 A, this method comprises the following steps:
Step 201:What is played in the live page that first terminal shows first terminal by server live regards
Frequency is recorded, and the first limitation duration is obtained from the server.
It should be noted that a length of maximum duration that the live video can be recorded during the first limitation, i.e., by this
The duration for the video that the recording of live video obtains is up to the first limitation duration, such as first limitation duration can be 5 minutes, 8
Minute, 10 minutes etc..
Specifically, when the record command of the live video played in the live page that first terminal detects display
When, directly the live video played in the live page can be recorded by server, and is obtained from server
Take the first limitation duration.
It should be noted that record command is the finger of the live video for indicating playing in the recording live page
Order.The record command can be triggered by the user of first terminal, and the user of first terminal can specify behaviour by first
Triggered, the first specified operation can be clicking operation, slide, voice operating etc..Alternatively, the record command also may be used
To be triggered automatically by first terminal, as first terminal can be of the invention in specific time automatic trigger record command
Embodiment is not construed as limiting this.
Certainly, in practical application, step 201 can also be realized otherwise, for example, step 201 realizes process
It can also include following three kinds of implementations:
The first implementation:When the record of the live video played in the live page that first terminal detects display
During system instruction, the second preset duration is shown with order timing mode or inverted order timing mode, when default in display second
When recording is not detected by during duration cancelling instruction, by server to the live video that is being played in the live page
Recorded, and the first limitation duration is obtained from server.
Further, when first terminal is detecting that recording cancellation instructs during showing the second preset duration, neglect
The slightly record command, i.e., do not record the live video played in the live page.
It should be noted that the second preset duration can be configured in advance according to different demands, when being preset such as second
Length can be 5 seconds, 10 seconds, 15 seconds etc..
Cancel instruction in addition, recording as indicating to cancel the finger for recording the live video played in the live page
Order, which, which cancels instruction, to be triggered by the user of first terminal, and the user of first terminal can refer to by second
Fixed operation is triggered, and the second specified operation can be clicking operation, slide, voice operating etc..
Furthermore order timing mode is from zero timing to the second preset duration, for example, the second preset duration is 10 seconds, is incited somebody to action
Second preset duration is shown as being shown to since 0 second 10 seconds with order timing mode, i.e., show successively 0 second, 1 second, 2
Second ... 8 seconds, 9 seconds, 10 seconds.Inverted order timing mode is from the second preset duration timing to zero, for example, the second preset duration is 10
Second, the second preset duration is shown as being shown to since 10 seconds 0 second with inverted order timing mode, i.e., show successively 10 seconds, 9
Second, 2 seconds, 1 second, 0 second 8 seconds ....
For example, the second preset duration is 10 seconds, and the second preset duration is shown with inverted order timing mode, it is assumed that use
The recording button in live page is clicked on to trigger record command in family, when detecting the record command in the live page,
The countdown of 10 seconds can be shown in the live page, it is assumed that the cancellation during user does not click on the live page in this 10 seconds
Record button and cancel instruction to trigger to record, then first terminal can be by server to being played in the live page at this time
Live video recorded, and from server obtain first limitation duration.
It should be noted that in embodiments of the present invention, broadcast when in the live page that first terminal detects display
During the record command for the live video put, the second preset duration can be shown with order timing mode or inverted order timing mode
Showing, the user of first terminal can be known according to the second preset duration of display starts the time for recording the live video, and then
Recording preparation can be carried out before starting to record the live video, can be brought to the user of first terminal and preferably use body
Test.And, can be to straight if being not detected by recording cancels instruction during first terminal shows the second preset duration
Broadcast video to be normally carried out recording, if detecting that instruction is cancelled in recording, the record command can be ignored, i.e., this live is not regarded
Frequency is recorded.In this way, can be after the record command of the live video be triggered, it is also possible that user is in the second preset duration
Internal trigger, which is recorded, cancels instruction, to cancel the recording to the live video, improves the flexibility of recording live video and accurate
Property.
Second of implementation:When the record of the live video played in the live page that first terminal detects display
During system instruction, sent to second terminal and record inquiry message, when receiving the acceptance message of second terminal transmission, pass through service
Device records the live video played in the live page, and the first limitation duration is obtained from server.
Further, when first terminal, which receives second terminal, sends refuse information, ignore the record command, i.e., it is not right
The live video played in the live page is recorded.
It should be noted that second terminal is to generate the terminal of the live video played in the live page, for example,
When the live page is direct broadcasting room, second terminal can be the terminal that the main broadcaster of the direct broadcasting room uses.
In addition, recording inquiry message, for first terminal, asked whether to second terminal can be to broadcasting in the live page
The message that the live video put is recorded, as recording inquiry message can as shown in Figure 2 B, including " user XX is wanted to you
Live video recorded, if agree to", agree to button and refusal button.Acceptance message is straight to this to agree to first terminal
The message that the live video played in the page is recorded is broadcast, if the acceptance message can be that user clicks on as shown in Figure 2 B
Recording inquiry message in agreement button after the message that triggers.Refuse information for refusal first terminal in the live page just
Can be that the recording that user clicks on as shown in Figure 2 B is inquired in the message that the live video of broadcasting is recorded, such as refuse information
The message triggered after refusal button in message.
Further, after first terminal is sent to second terminal records inquiry message, second terminal can receive the record
System inquiry message, afterwards, second terminal can show that message is inquired in the recording, and same when being detected in recording inquiry message
During message of anticipating, the acceptance message is sent to first terminal, when detecting refuse information in inquiring message in the recording, to first
Terminal sends the refuse information.
What deserves to be explained is since the live video played in the live page is by the live of second terminal generation
Video, therefore second terminal possesses the recording authority of the live video, that is to say, if the user of first terminal want it is straight to this
Broadcast video to be recorded, then need to be recorded after obtaining user's agreement of second terminal.Thus when first terminal detects
During the record command of the live video played into the live page of display, recording inquiry can be sent to second terminal and is disappeared
Breath, when receiving the acceptance message of second terminal transmission, that is, illustrates that the user of second terminal agrees to that first terminal is live to this
Video is recorded, so first terminal can record the live video at this time, when receiving second terminal transmission
During refuse information, that is, illustrate that the user of second terminal refuses first terminal and the live video is recorded, so at this time first
Terminal can ignore the record command, that is to say, which not recorded.So, it is ensured that outside second terminal
Other-end before the live video of second terminal generation is recorded, be both needed to user by second terminal and agree to, improve
The recording security of live video.
It is worth noting that, if first terminal is exactly second terminal, i.e., first terminal is exactly to generate in the live page
The terminal of the live video played, then when first terminal is detecting the record command of the live video, it is not necessary to
Second terminal, which is sent, records inquiry message, but can directly live be regarded to what is played in the live page by server
Frequency is recorded, and the first limitation duration is obtained from server.For example, main broadcaster needs to record its live video, when
When main broadcaster clicks on the recording button in the live page to trigger record command, first terminal can be directly by server to this
The live video played in live page is recorded, and the first limitation duration is obtained from server.
The third implementation:When the record of the live video played in the live page that first terminal detects display
During system instruction, the second preset duration is shown with order timing mode or inverted order timing mode, when default in display second
When recording cancellation instruction is not detected by during duration, is sent to second terminal and record inquiry message, it is whole when receiving second
When holding the acceptance message sent, the live video played in the live page is recorded by server, and from clothes
It is engaged in obtaining the first limitation duration in device.
Further, when detecting that recording cancellation instructs during showing the second preset duration, the recording is ignored
Instruction, i.e., not to second terminal send record inquiry message, into without the live video to being played in the live page into
Row is recorded.
Further, when receiving the refuse information of second terminal transmission, the record command can also be ignored, i.e., not to this
The live video played in live page is recorded.
It should be noted that in embodiments of the present invention, when the user of first terminal can preset according to the second of display
Length, which is known, starts the time for recording the live video, and then can carry out recording preparation, energy before starting to record the live video
Enough users to first terminal bring more preferable usage experience.And during first terminal shows the second preset duration,
If first terminal detects that instruction is cancelled in recording, it will not be sent to second terminal and record inquiry message, into without right
The live video played in the live page is recorded., can also be to the if being not detected by recording cancels instruction
Two terminals, which are sent, records inquiry message, when receiving the acceptance message of second terminal transmission, that is, illustrates the user of second terminal
Agree to that first terminal records the live video, so first terminal can record the live video at this time, when
Receive second terminal transmission refuse information when, that is, illustrate second terminal user refuse first terminal to the live video into
Row is recorded, so first terminal can ignore the record command at this time, i.e., the live video is not recorded.In this way, work as user
When cancellation instruction is not recorded in triggering in the second preset duration, first terminal just can record inquiry to second terminal transmission and disappear
Breath, only can just record the live video after first terminal receives the acceptance message of second terminal transmission afterwards
System, so as to not only improve the flexibility for recording live video and accuracy, but also improves the recording security of live video.
Wherein, in above-mentioned realization, first terminal by server to the live video that is being played in the live page into
Row is recorded, and the process of realizing of the limitation of acquisition first duration can be from server:First terminal generation video record request,
Video record request is sent to server;When server receives the video record request of first terminal transmission, to the
The live video played in the live page that one terminal is shown is recorded, and obtains the first limitation duration, by the first limit
Duration processed is sent to first terminal.
It should be noted that video record request is used in the live page that request server shows first terminal just
Recorded in the live video of broadcasting.
Wherein, when server obtains the first limitation duration, preset limit duration can be obtained, preset limit duration is determined
For the first limitation duration;Alternatively, can be according to the mark of the live video, between live video identifies and record limitation duration
Correspondence in, obtain it is corresponding record limitation duration, by the recording got limitation duration be determined as the first limitation duration.
It should be noted that preset limit duration can be configured in advance according to different demands, during such as preset limit
Length can be 5 minutes, 8 minutes, 10 minutes etc..
For example, the live video played in the live page that first terminal is shown is identified as live video mark 1,
Then 1 can be identified according to live video, from live video mark as shown in table 1 below with recording the corresponding pass limited between duration
In system, a length of 10 minutes when obtaining corresponding recording limitation, this is then determined as the first limitation duration for 10 minutes.
Table 1
Live video identifies | Record limitation duration |
Live video mark 1 | 10 minutes |
Live video mark 2 | 8 minutes |
Live video mark 3 | 5 minutes |
It should be noted that the embodiment of the present invention only limits duration with the live video mark shown in above-mentioned table 1 with recording
Between correspondence exemplified by illustrate, above-mentioned table 1 not to the embodiment of the present invention form limit.
Step 202:First terminal shows the recording time point of the live video according to the first limitation duration.
It should be noted that the recording time point of the live video refers to the time point that the live video is currently recorded to,
It that is to say, the recording time point of the live video represents the recording progress of the live video, the recording time point of the live video
It can be the recording duration of the live video, or can be the residual time length that can continue to record the live video, such as should
The recording time point of live video can be 50 seconds 1 minute, 2 minutes and 10 seconds, 15 seconds etc. 4 minutes.
Specifically, the first limitation duration can be shown with order timing mode or inverted order timing mode, with display
The recording time point of the live video.
It should be noted that order timing mode is from zero timing to the first limitation duration, for example, a length of during the first limitation
5 minutes, the first limitation duration is shown as with order timing mode to be shown to 5 points 0 second 0 second since 0 point, i.e., is shown successively
Show 0 point 0 second, 0 point 1 second, 0 point 2 seconds ... 4 points 58 seconds, 4 points 59 seconds, 5 points 0 second.Inverted order timing mode is from the first limitation duration
Timing, for example, a length of 5 minutes during the first limitation, the first limitation duration is shown as from 5 points with inverted order timing mode to zero
Start within 0 second to be shown to 0 point 0 second, i.e., successively show 5 points 0 second, 4 points 59 seconds, 4 points 58 seconds ... 0 point 2 seconds, 0 point 1 second, 0 point 0 second.
In addition, it is above-mentioned timing display is carried out to the first limitation duration when, those numerals shown successively are that this is live
The recording time point of video.For example, 0 point 0 second, 0 point 1 second, 4 points 59 seconds, 4 points 58 seconds etc., when being the recording of the live video
Between point.And when the first limitation duration is shown with order timing mode, the recording time point of the live video of display
For the recording duration of the live video, when the first limitation duration is shown with inverted order timing mode, this of display is live
The recording time point of video is the residual time length that can continue to record the live video.
What deserves to be explained is in embodiments of the present invention, can be by the first limitation duration with order timing mode or inverted order
Timing mode is shown, to show the recording time of live video point, since the recording time point of the live video can be with
The recording progress of the live video is represented, therefore when the user of first terminal sees the recording time point of the live video of display
When, it is possible to accurately know the recording progress of the live video.
Step 203:When first terminal detects the refreshing instruction of the live page, refresh the live page, and brushing
After new success, the recording duration of the live video is obtained from the server.
It should be noted that refreshing instruction is the instruction for indicating to refresh the live page, which can be by
The user of first terminal is triggered, and the user of first terminal can specify operation to be triggered by the 3rd, and the 3rd specifies
Operation can be clicking operation, slide, voice operating etc..Alternatively, the refreshing instruction can also by first terminal automatically into
Row triggering, as first terminal can be not construed as limiting this in specific time automatic trigger refreshing instruction, the embodiment of the present invention.
Further, since the user of first terminal when watching the live video is possible to that the live page can be refreshed, and it is right
The live page, which carries out refreshing, needs certain time, and the live video plays in real time, therefore when the live page refreshes
After success, the recording time of live video reality after the completion of refreshing the recording time point of the live video of preceding display and refreshing
Put and differ, so as to cause first terminal in correlation technique can not continue accurately to show the recording time point of the live video.
And in the embodiment of the present invention, first terminal can obtain the live video after the live page Flushing success from server
Recording duration, since the live video is recorded by server, this got from server live regards
The recording time length ratio of frequency is more accurate, consequently facilitating recording duration of the follow-up first terminal according to the live video, continues accurate aobvious
Show the recording time point of the live video.
Wherein, when first terminal obtains the recording duration of the live video from server, when can be sent to server
It is long to obtain request;When server, which receives the duration, obtains request, the recording duration of the live video can be obtained, and should
The recording duration of live video is sent to first terminal.
Asked it should be noted that duration obtains in the live page for being shown to server acquisition request first terminal
The recording duration of the live video played.
Further, after the live page Flushing success, it is live that first terminal can not only obtain this from server
The recording duration of video, can also obtain the recording state of the live video from server.
It should be noted that first terminal can obtain recording state and the recording of the live video from server at the same time
Duration, can also first obtain the recording state of the live video, when the recording state of the live video is is recording, then obtain
The recording duration of the live video is taken, when the recording state of the live video is not to record, it is live that this can not be obtained
The recording duration of video.
In addition, when first terminal obtains the recording state of the live video from server and records duration at the same time, such as
The fruit live video is not to record, then server will be unable to get the recording duration of the live video, would not be to yet
First terminal returns to the recording duration of the live video.In this way, live regarded when first terminal can not get this from server
During the recording duration of frequency, reason will can be known from accessed recording state in time.
And first terminal first obtains the recording state of the live video from server, then according to the recording state, then
When the recording duration of the live video is optionally obtained from server, first terminal is being recorded in the live video at this time
When, then the recording duration of the live video is obtained from server, and when the live video is not to record, as this is live
Video has recorded completion, or when not recorded, the recording duration of the live video is not obtained from server, so as to
Unnecessary operation is reduced, saves the resource of first terminal.
Step 204:First terminal continues live to regard this according to the first limitation duration and the recording duration of the live video
The recording time point of frequency is shown.
Specifically, when be in step 202 by first limitation duration shown with order timing mode or inverted order timing mode
Show, during showing the recording time of live video point, the process of realizing of step 204 can be:When first limitation duration be with
When order timing mode is shown, when being shown to the first limitation since the recording duration of the live video with order timing mode
It is long, to continue to show the recording time point of the live video;When the first limitation duration is shown with inverted order timing mode, by the
One limitation duration subtracts the recording duration of the live video, obtains the second limitation duration, by the second limitation duration with inverted order timing
Mode is shown, to continue to show the recording time point of the live video.
It should be noted that when the first limitation duration is shown with order timing mode, the live video of display
Recording time point be the live video recording duration, thus at this time can since the recording duration of the live video timing to
First limitation duration, the numeral shown during from the recording duration timing to the first limitation duration is the live video
Recording time point.
For example, the first limitation duration is shown with order timing mode, it is assumed that a length of 5 minutes during the first limitation, and from
A length of 2 minutes during the recording of the live video got in server, then shown at this time since 2 minutes with order timing mode
Show it is a length of during the first limitation be shown to 5 points 0 second 0 second since 2 points, i.e., show successively 2 points 0 second, 2 points 1 second, 2 points 2 seconds ...
4 points 58 seconds, 4 points 59 seconds, 5 points 0 second.
In addition, when the first limitation duration is shown with inverted order timing mode, the recording time of the live video of display
Point is needed the first limitation duration subtracting this and live regarded at this time to can continue to the residual time length recorded to the live video
The recording duration of frequency, obtains the second limitation duration, and the second limitation duration is represented and remaining in the first limitation duration can recorded
Duration, the second limitation duration is shown with inverted order timing mode afterwards, i.e., since the second limitation duration timing to 0,
It is the recording time point of the live video in the numeral shown during timing second limits duration to 0.
For example, the first limitation duration is shown with inverted order timing mode, it is assumed that a length of 5 minutes during the first limitation, and from
A length of 3 minutes during the recording of the live video got in server, then a length of 2 minutes during the second limitation, at this time by second
Limitation duration is shown as being shown to 0 point 0 second 0 second since 2 points with inverted order timing mode, i.e., shows 2 points successively 0 second, 1 point
59 seconds, 1 point 58 seconds ... 0 point 2 seconds, 0 point 1 second, 0 point 0 second.
It should be noted that in embodiments of the present invention, the live video is recorded by server, thus
The recording time length ratio for the live video that first terminal is got from server is more accurate, thereby may be ensured that first terminal root
Duration and the recording duration of the live video are limited according to first, when continuing to show the recording time point of the live video,
The recording time point accuracy of the shown live video is higher, so that the user of first terminal can accurately know current be somebody's turn to do
The recording progress of live video.
Further, in the embodiment of the present invention, in order to more accurately show the recording time point of the live video, the
One terminal can also obtain the recording duration of the live video every the first preset duration from server, and according to the first limitation
The recording duration of duration and the live video, again shows the recording time point of the live video.
It should be noted that the first preset duration can be configured in advance according to different demands, when being preset such as first
Length can be 3 minutes, 5 minutes, 7 minutes etc..
The explanation of value, in the embodiment of the present invention, can obtain from server every the first preset duration and once should
The recording duration of live video, and according to the first limitation duration and the recording duration of the live video, again to the live video
Recording time point shown, that is to say, at regular intervals will be right during being recorded to the live video
The recording time point of the live video re-starts display, to ensure accurately to show the recording time point of the live video.
Wherein, first terminal obtains the operation of the recording duration of the live video every the first preset duration from server
It can be realized by the timer in the live page, specifically, first terminal passes through the timer in the live page
Timing is carried out, when timing is to the first preset duration, the recording duration of the live video is obtained from server, and it is fixed by this
When device restart next round timing.
Further, first terminal every the first preset duration obtained from server the live video recording duration it
Before, it can also determine the recording state of the live video, when the recording state of the definite live video is is recording, perform
The operation of the recording duration of the live video is obtained from server every the first preset duration, is determining the record of the live video
State processed is not when recording, not perform the recording duration for obtaining the live video from server every the first preset duration
Operation.
Wherein, can be every the 3rd preset duration from server when first terminal determines the recording state of the live video
It is middle obtain the live video recording state, alternatively, first terminal to the live page refresh complete after, from server
Get the recording state of the live video.
It should be noted that first terminal when the live video recording state for recording when, just can be every first
Preset duration obtains the recording duration of the live video from server, and then accordingly again to the recording time of the live video
Point is shown, ensures the accuracy of the recording time point of the live video of display, and when the recording state of the live video
The recording duration of the live video is not obtained from server every the first preset duration for that when recording, can not perform
Operation, so as to avoid unnecessary operation, saves the resource of first terminal.
In embodiments of the present invention, played in the live page that can be shown by server to first terminal straight
Broadcast video to be recorded, and the first limitation duration is obtained from the server, according to the first limitation duration, to the live video
Recording time point is shown.Afterwards, when first terminal detects the refreshing instruction of the live page, it is live that this can be refreshed
The page, and after Flushing success, the recording duration of the live video is obtained from server, then according to the first limitation duration and
The recording duration of the live video, continues to show the recording time point of the live video.Due to the live video be by
What server was recorded, therefore the recording time length ratio of the live video that first terminal is got from server is more accurate,
Thus first terminal is according to the first limitation duration and the recording duration of the live video, the recording time of the live video of display
The accuracy of point is higher.
Next the record device of live video provided in an embodiment of the present invention is introduced.
Fig. 3 A are a kind of structure diagrams of the record device of live video provided in an embodiment of the present invention.Referring to Fig. 3 A,
The device includes the first acquisition module 301, the first display module 302, the second acquisition module 303 and the second display module 304.
First acquisition module 301 is straight for being played in the live page that is shown by server to first terminal
Video is broadcast to be recorded, and from the server obtain first limitation duration, first limitation when it is a length of can be to the live video
The maximum duration of recording.
First display module 302, for according to the first limitation duration, being shown to the recording time point of the live video
Show.
Second acquisition module 303, for when detecting the refreshing instruction of the live page, refreshing the live page, and
After Flushing success, the recording duration of the live video is obtained from the server.
Second display module 304, for the recording duration according to the first limitation duration and the live video, continues straight to this
The recording time point for broadcasting video is shown.
Alternatively, include referring to Fig. 3 B, the first display module 302:
First display sub-module 3021, for the first limitation duration to be carried out with order timing mode or inverted order timing mode
It has been shown that, to show the recording time of live video point.
Correspondingly, include referring to Fig. 3 C, the second display module 304:
Second display sub-module 3041, for when first limitation duration be to be shown with order timing mode when, it is live from this
The recording duration of video starts to be shown to the first limitation duration with order timing mode, to continue to show the recording of the live video
Time point.
3rd display sub-module 3042, for when the first limitation duration is shown with inverted order timing mode, first to be limited
Duration processed subtracts the recording duration of the live video, obtains the second limitation duration, by the second limitation duration with inverted order timing mode
It has been shown that, to continue to show the recording time point of the live video.
Alternatively, further included referring to Fig. 3 D, the device:
3rd acquisition module 305, for obtaining the recording of the live video from the server every the first preset duration
Duration.
3rd display module 306 is again straight to this for the recording duration according to the first limitation duration and the live video
The recording time point for broadcasting video is shown.
Alternatively, include referring to Fig. 3 E, the first acquisition module 301:
4th display sub-module 3011, for when the record of the live video played in the live page for detecting display
During system instruction, the second preset duration is shown with order timing mode or inverted order timing mode.
First acquisition submodule 3012, refers to for that ought be not detected by recording cancellation during the second preset duration is shown
When making, the live video played in the live page is recorded by server, and is obtained from the server
First limitation duration.
Alternatively, include referring to Fig. 3 F, the first acquisition module 301:
Sending submodule 3013, for referring to when the recording of the live video played in the live page for detecting display
When making, to second terminal send record inquiry message, by second terminal according to the recording inquire message return acceptance message, second
Terminal is to generate the terminal of the live video played in the live page.
Second acquisition submodule 3014, for when receiving the acceptance message of second terminal transmission, passing through server pair
The live video played in the live page is recorded, and the first limitation duration is obtained from the server.
In embodiments of the present invention, played in the live page that can be shown by server to first terminal straight
Broadcast video to be recorded, and the first limitation duration is obtained from the server, according to the first limitation duration, to the live video
Recording time point is shown.Afterwards, when first terminal detects the refreshing instruction of the live page, it is live that this can be refreshed
The page, and after Flushing success, the recording duration of the live video is obtained from server, then according to the first limitation duration and
The recording duration of the live video, continues to show the recording time point of the live video.Due to the live video be by
What server was recorded, therefore the recording time length ratio of the live video that first terminal is got from server is more accurate,
Thus first terminal is according to the first limitation duration and the recording duration of the live video, the recording time of the live video of display
The accuracy of point is higher.
It should be noted that:Above-described embodiment provide live video record device when recording live video, only with
The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application
Same function module is completed, i.e., the internal structure of device is divided into different function modules, to complete whole described above
Or partial function.In addition, the record device for the live video that above-described embodiment provides and the method for recording of live video are implemented
Example belongs to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
Fig. 4 is a kind of structure diagram of the record device 400 of live screen provided in an embodiment of the present invention.For example, dress
It can be mobile phone to put 400, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply
Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor component 414, and
Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, call, data communication, phase
The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just
Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate
Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown
Example includes the instruction of any application program or method for being operated on device 400, and contact data, telephone book data, disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of device 400.Power supply module 406 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing power supply for device 400.
Multimedia component 408 is included in the screen of one output interface of offer between described device 400 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or sliding action
Border, but also detect and the duration and pressure associated with the touch or slide operation.In certain embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set
Part 416 is sent.In certain embodiments, audio component 410 further includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor component 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented
Estimate.For example, sensor component 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 400, and sensor component 414 can be with 400 1 components of detection device 400 or device
Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400
Temperature change.Sensor component 414 can include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor component 414 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device
400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application application-specific integrated circuit (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, real shown in above-mentioned Fig. 1 and Fig. 2A for performing
The method for recording of the live screen of example offer is provided.
Fig. 5 is a kind of structure diagram of the record device 500 of live screen provided in an embodiment of the present invention.For example, dress
Put 500 and may be provided as a server.With reference to Fig. 5, device 500 includes processor 522, it further comprises one or more
Processor, and as the memory resource representated by memory 532, can be by the instruction of the execution of processor 522, example for storing
Such as application program.The application program stored in memory 532 can include it is one or more each correspond to one group
The module of instruction.In addition, processor 522 is configured as execute instruction, to perform above-mentioned Fig. 1 and Fig. 2A illustrated embodiments offer
The method for recording of live screen.
Device 500 can also include the power management that a power supply module 526 is configured as executive device 500, and one has
Line or radio network interface 550 are configured as device 500 being connected to network, and input and output (I/O) interface 558.Dress
Putting 500 can operate based on the operating system for being stored in memory 532, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory of instruction, above-metioned instruction can be performed by the processor of device to complete the above method.It is for example, described non-provisional
Property computer-readable recording medium can be that ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light data are deposited
Store up equipment etc..
It that is to say, when the instruction in the computer-readable recording medium is performed by the processor of device, it is possible to achieve above-mentioned
The method for recording for the live video that Fig. 1 or Fig. 2A embodiments provide.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.
Claims (11)
- A kind of 1. method for recording of live video, applied to first terminal, it is characterised in that the described method includes:The live video played in the live page shown by server to the first terminal is recorded, and from institute State in server obtain first limitation duration, it is described first limitation when it is a length of can to the live video record maximum when It is long;According to the described first limitation duration, the recording time point of the live video is shown;When detecting the refreshing instruction of the live page, refresh the live page, and after Flushing success, from the clothes The recording duration of the live video is obtained in business device;According to the described first limitation duration and the recording duration of the live video, continue the recording time to the live video Point is shown.
- 2. according to the method described in claim 1, it is characterized in that, described limit duration according to described first, to described live The recording time point of video shown, including:Described first limitation duration is shown with order timing mode or inverted order timing mode, to show the live video Recording time point;Correspondingly, it is described according to the described first limitation duration and the recording duration of the live video, continue live to regard to described The recording time point of frequency shown, including:When the described first limitation duration is shown with order timing mode, with suitable since the recording duration of the live video Sequence timing mode is shown to the first limitation duration, to continue to show the recording time point of the live video;When the described first limitation duration show with inverted order timing mode, limit duration by described first and subtract described live regard The recording duration of frequency, obtains the second limitation duration, the described second limitation duration is shown with inverted order timing mode, to continue Show the recording time point of the live video.
- 3. method according to claim 1 or 2, it is characterised in that the method further includes:The recording duration of the live video is obtained from the server every the first preset duration;According to the described first limitation duration and the recording duration of the live video, again to the recording time of the live video Point is shown.
- 4. according to the method described in claim 1, it is characterized in that, it is described the first terminal is shown by server it is straight Broadcast the live video played in the page to be recorded, and the first limitation duration is obtained from the server, including:When the record command of the live video played in the live page for detecting display, by the second preset duration with suitable Sequence timing mode or inverted order timing mode are shown;When being not detected by recording cancellation instruction during showing second preset duration, by server to described straight Broadcast the live video played in the page to be recorded, and the first limitation duration is obtained from the server.
- 5. according to the method described in claim 1, it is characterized in that, it is described the first terminal is shown by server it is straight Broadcast the live video played in the page to be recorded, and the first limitation duration is obtained from the server, including:When the record command of the live video played in the live page for detecting display, send and record to second terminal Inquire message, inquire that message returns to acceptance message according to described record by the second terminal, the second terminal is generation institute State the terminal of the live video played in live page;When receiving the acceptance message that the second terminal is sent, by server to being played in the live page Live video is recorded, and the first limitation duration is obtained from the server.
- A kind of 6. record device of live video, applied to first terminal, it is characterised in that described device includes:First acquisition module, live regards for what is played in the live page that is shown by server to the first terminal Frequency recorded, and from the server obtain first limitation duration, it is described first limitation when it is a length of can be to described live The maximum duration of video record;First display module, for according to the described first limitation duration, being shown to the recording time point of the live video;Second acquisition module, for when detecting the refreshing instruction of the live page, refreshing the live page, and brushing After new success, the recording duration of the live video is obtained from the server;Second display module, for the recording duration according to the described first limitation duration and the live video, continues to described The recording time point of live video is shown.
- 7. device according to claim 6, it is characterised in that first display module includes:First display sub-module, for the described first limitation duration to be shown with order timing mode or inverted order timing mode Show, to show the recording time of live video point;Correspondingly, second display module includes:Second display sub-module, for when the described first limitation duration is shown with order timing mode, live being regarded from described The recording duration of frequency starts to be shown to the first limitation duration with order timing mode, to continue to show the live video Recording time point;3rd display sub-module, for when the described first limitation duration is shown with inverted order timing mode, described first to be limited Duration processed subtracts the recording duration of the live video, obtains the second limitation duration, by the described second limitation duration in terms of inverted order When mode shown, to continue to show the recording time point of the live video.
- 8. the device according to claim 6 or 7, it is characterised in that described device further includes:3rd acquisition module, for when the first preset duration obtains the recording of the live video from the server It is long;3rd display module, for the recording duration according to the described first limitation duration and the live video, again to described The recording time point of live video is shown.
- 9. device according to claim 6, it is characterised in that first acquisition module includes:4th display sub-module, for when the record command of the live video played in the live page for detecting display When, the second preset duration is shown with order timing mode or inverted order timing mode;First acquisition submodule, recording cancellation instruction is not detected by for working as during second preset duration is shown When, the live video played in the live page is recorded by server, and is obtained from the server First limitation duration.
- 10. device according to claim 6, it is characterised in that first acquisition module includes:Sending submodule, for when the record command of the live video played in the live page for detecting display, to Second terminal, which is sent, records inquiry message, inquires that message returns to acceptance message according to described record by the second terminal, described Second terminal is the terminal of the live video played in the generation live page;Second acquisition submodule, for when receiving the acceptance message that the second terminal is sent, by server to described The live video played in live page is recorded, and the first limitation duration is obtained from the server.
- 11. a kind of computer-readable recording medium, instruction is stored with the storage medium, it is characterised in that described instruction quilt The step of processor realizes any one method described in claim 1-5 when performing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711297079.9A CN107948668B (en) | 2017-12-08 | 2017-12-08 | Live video recording method and device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711297079.9A CN107948668B (en) | 2017-12-08 | 2017-12-08 | Live video recording method and device and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107948668A true CN107948668A (en) | 2018-04-20 |
CN107948668B CN107948668B (en) | 2020-06-30 |
Family
ID=61946270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711297079.9A Active CN107948668B (en) | 2017-12-08 | 2017-12-08 | Live video recording method and device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948668B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111556328A (en) * | 2020-04-17 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Program acquisition method and device for live broadcast room, electronic equipment and storage medium |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100456823C (en) * | 2003-08-27 | 2009-01-28 | 汤姆森特许公司 | Method for a time shift display of a video signal and apparatus therefore |
CN101662628A (en) * | 2008-08-28 | 2010-03-03 | 华为技术有限公司 | Multimedia storage method, system and device |
WO2011018433A1 (en) * | 2009-08-11 | 2011-02-17 | Nagravision S.A. | Digital video recorder with linear recording buffer |
CN102834805A (en) * | 2012-03-14 | 2012-12-19 | 华为技术有限公司 | Screen recording method, screen recording control method and device |
US20130021535A1 (en) * | 2011-07-18 | 2013-01-24 | Lg Electronics Inc. | Electronic device and operating method thereof |
CN103699583A (en) * | 2013-12-05 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for realizing live broadcast time shifting, and electronic equipment |
CN104469512A (en) * | 2013-09-25 | 2015-03-25 | 浙江大华技术股份有限公司 | Video player and video playing control method thereof |
CN105072480A (en) * | 2015-07-29 | 2015-11-18 | 无锡天脉聚源传媒科技有限公司 | Video live broadcast method and device |
US9192859B2 (en) * | 2002-12-10 | 2015-11-24 | Sony Computer Entertainment America Llc | System and method for compressing video based on latency measurements and other feedback |
CN105120299A (en) * | 2015-08-28 | 2015-12-02 | 广州酷狗计算机科技有限公司 | Video pushing method and video pushing device |
CN105657498A (en) * | 2016-02-17 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Video recording method and device of mobile terminal |
CN105721811A (en) * | 2015-05-15 | 2016-06-29 | 乐视云计算有限公司 | Live video recording method and system |
CN106028082A (en) * | 2016-06-22 | 2016-10-12 | 乐视控股(北京)有限公司 | Live broadcasting method and equipment |
CN106101752A (en) * | 2016-07-08 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | A kind of time shift time obtaining method and Set Top Box |
CN106162182A (en) * | 2015-03-25 | 2016-11-23 | 杭州海康威视数字技术股份有限公司 | The control method for playing back of a kind of Video coding code stream and system |
CN106572358A (en) * | 2016-11-11 | 2017-04-19 | 青岛海信宽带多媒体技术有限公司 | Live broadcast time shift method and client |
CN107124573A (en) * | 2016-02-25 | 2017-09-01 | 掌赢信息科技(上海)有限公司 | Screen recording method and electronic equipment in a kind of video calling |
CN107197357A (en) * | 2016-03-14 | 2017-09-22 | 阿里巴巴集团控股有限公司 | The intercept method and device of video in a kind of broadcasting |
-
2017
- 2017-12-08 CN CN201711297079.9A patent/CN107948668B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9192859B2 (en) * | 2002-12-10 | 2015-11-24 | Sony Computer Entertainment America Llc | System and method for compressing video based on latency measurements and other feedback |
CN100456823C (en) * | 2003-08-27 | 2009-01-28 | 汤姆森特许公司 | Method for a time shift display of a video signal and apparatus therefore |
CN101662628A (en) * | 2008-08-28 | 2010-03-03 | 华为技术有限公司 | Multimedia storage method, system and device |
WO2011018433A1 (en) * | 2009-08-11 | 2011-02-17 | Nagravision S.A. | Digital video recorder with linear recording buffer |
US20130021535A1 (en) * | 2011-07-18 | 2013-01-24 | Lg Electronics Inc. | Electronic device and operating method thereof |
CN102834805A (en) * | 2012-03-14 | 2012-12-19 | 华为技术有限公司 | Screen recording method, screen recording control method and device |
CN104469512A (en) * | 2013-09-25 | 2015-03-25 | 浙江大华技术股份有限公司 | Video player and video playing control method thereof |
CN103699583A (en) * | 2013-12-05 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for realizing live broadcast time shifting, and electronic equipment |
CN106162182A (en) * | 2015-03-25 | 2016-11-23 | 杭州海康威视数字技术股份有限公司 | The control method for playing back of a kind of Video coding code stream and system |
CN105721811A (en) * | 2015-05-15 | 2016-06-29 | 乐视云计算有限公司 | Live video recording method and system |
CN105072480A (en) * | 2015-07-29 | 2015-11-18 | 无锡天脉聚源传媒科技有限公司 | Video live broadcast method and device |
CN105120299A (en) * | 2015-08-28 | 2015-12-02 | 广州酷狗计算机科技有限公司 | Video pushing method and video pushing device |
CN105657498A (en) * | 2016-02-17 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Video recording method and device of mobile terminal |
CN107124573A (en) * | 2016-02-25 | 2017-09-01 | 掌赢信息科技(上海)有限公司 | Screen recording method and electronic equipment in a kind of video calling |
CN107197357A (en) * | 2016-03-14 | 2017-09-22 | 阿里巴巴集团控股有限公司 | The intercept method and device of video in a kind of broadcasting |
CN106028082A (en) * | 2016-06-22 | 2016-10-12 | 乐视控股(北京)有限公司 | Live broadcasting method and equipment |
CN106101752A (en) * | 2016-07-08 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | A kind of time shift time obtaining method and Set Top Box |
CN106572358A (en) * | 2016-11-11 | 2017-04-19 | 青岛海信宽带多媒体技术有限公司 | Live broadcast time shift method and client |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111556328A (en) * | 2020-04-17 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Program acquisition method and device for live broadcast room, electronic equipment and storage medium |
US11553019B2 (en) | 2020-04-17 | 2023-01-10 | Beijing Dajia Internet Information Technology Co., Ltd. | Method, apparatus, electronic device and storage medium for acquiring programs in live streaming room |
Also Published As
Publication number | Publication date |
---|---|
CN107948668B (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101789783B1 (en) | Method, apparatus, program, and recording medium for prompting call | |
CN104615920A (en) | Notification message display method and device | |
CN104159230B (en) | Call recognition methods and device | |
CN104539812B (en) | Recommendation information acquisition methods, terminal and server | |
CN104394137B (en) | A kind of method and device of prompting voice call | |
CN107608561A (en) | Touch-screen control method and device | |
CN109087650B (en) | Voice wake-up method and device | |
EP3136697B1 (en) | Contact record processing method and apparatus | |
CN107948926A (en) | The method and apparatus that smart machine is shared | |
CN104464238A (en) | Method and device for controlling operation between mobile terminals | |
CN108989459A (en) | The method, apparatus and computer readable storage medium of controlling terminal | |
CN106209604A (en) | Add the method and device of good friend | |
CN110475134A (en) | A kind of comment content display method, device, electronic equipment and storage medium | |
CN104112459A (en) | Method and apparatus for playing audio data | |
CN109582400A (en) | Routine call method and device | |
CN105468236A (en) | Message prompting method and apparatus and terminal | |
CN105892805A (en) | Instant message processing method and device | |
CN105303371A (en) | Bill processing method and device and terminal device | |
CN107393528B (en) | Voice control method and device | |
CN105242837A (en) | Application page acquisition method and terminal | |
CN104811904A (en) | Contact setting method and device | |
CN104679386A (en) | Method and device for carrying out sound recording processing | |
CN109783171A (en) | Desktop plug-ins switching method, device and storage medium | |
CN109246184A (en) | A kind of temporal information acquisition methods, device and readable storage medium storing program for executing | |
CN105450861A (en) | Information prompt method and information prompt device |
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 |