CN107948668B - Live video recording method and device and computer storage medium - Google Patents

Live video recording method and device and computer storage medium Download PDF

Info

Publication number
CN107948668B
CN107948668B CN201711297079.9A CN201711297079A CN107948668B CN 107948668 B CN107948668 B CN 107948668B CN 201711297079 A CN201711297079 A CN 201711297079A CN 107948668 B CN107948668 B CN 107948668B
Authority
CN
China
Prior art keywords
recording
live
live video
time length
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.)
Active
Application number
CN201711297079.9A
Other languages
Chinese (zh)
Other versions
CN107948668A (en
Inventor
席辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201711297079.9A priority Critical patent/CN107948668B/en
Publication of CN107948668A publication Critical patent/CN107948668A/en
Application granted granted Critical
Publication of CN107948668B publication Critical patent/CN107948668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/258Client 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/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-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/47202End-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 method and a device for recording live video and a computer storage medium, which belong to the technical field of electronics and are applied to a first terminal, wherein the method comprises the following steps: recording a live video which is being played in a live page displayed by a first terminal through a server, and acquiring a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video; displaying the recording time point of the live video according to the first limit duration; when a refreshing instruction of the live broadcast page is detected, refreshing the live broadcast page, and after the refreshing is successful, acquiring the recording duration of the live broadcast video from a server; and continuously displaying the recording time point of the live video according to the first limit time length and the recording time length of the live video. The method and the device can accurately display the recording time point of the live video according to the first limit time length and the recording time length of the live video acquired from the server.

Description

Live video recording method and device and computer storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for recording a live video, and a computer storage medium.
Background
With the development of electronic technology, watching live videos gradually becomes a favorite activity in daily entertainment of people. In the process of watching live videos, users often record the live videos so that the recorded videos can be watched continuously after the live videos are played. When the terminal acquires the live video, the terminal may be stuck, and the terminal cannot normally record the live video during the stuck, so that the live video is often recorded through a server at present. After the server finishes recording the live video, the recorded video can be sent to the terminal, and the terminal stores the recorded video.
In the related art, when a server starts to record a live video, the server may send a recording limit duration to a terminal, where the recording limit duration is a maximum duration capable of recording the live video. After receiving the recording limit duration, the terminal can display the recording limit duration in a sequential timing manner or a reverse timing manner, so as to display the recording time point of the live video. In the process, if the terminal refreshes the live broadcast page, after the refreshing is successful, the terminal does not display the recording time point of the live broadcast video, or the terminal continues to display from the recording time point displayed before the refreshing.
Disclosure of Invention
In order to solve the problem of inaccurate display of a recording time point in the related art, the embodiment of the invention provides a live video recording method and device and a computer storage medium. The technical scheme is as follows:
according to a first aspect of an embodiment of the present invention, a method for recording a live video is provided, which is applied to a first terminal, and the method includes:
recording a live video which is being played in a live page displayed by the first terminal through a server, and acquiring a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video;
displaying the recording time point of the live video according to the first limit duration;
when a refreshing instruction of the live broadcast page is detected, refreshing the live broadcast page, and after the refreshing is successful, acquiring the recording duration of the live broadcast video from the server;
and continuously displaying the recording time point of the live video according to the first limit time length and the recording time length of the live video.
Optionally, the displaying the recording time point of the live video according to the first time limit includes:
displaying the first limit duration in a sequential timing mode or a reverse timing mode to display the recording time point of the live video;
correspondingly, the step of continuously displaying the recording time point of the live video according to the first limit time length and the recording time length of the live video comprises the following steps:
when the first limit time length is displayed in a sequential timing mode, the first limit time length is displayed from the recording time length of the live video in the sequential timing mode so as to continuously display the recording time point of the live video;
when the first limit duration is displayed in a reverse timing mode, subtracting the recording duration of the live video from the first limit duration to obtain a second limit duration, and displaying the second limit duration in a reverse timing mode to continuously display the recording time point of the live video.
Optionally, the method further comprises:
acquiring the recording time length of the live video from the server every other first preset time length;
and displaying the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
Optionally, the recording, by the server, a live video being played in a live page displayed by the first terminal, and acquiring a first time limit duration from the server include:
when a recording instruction of a live video being played in a displayed live page is detected, displaying a second preset time length in a sequential timing mode or a reverse sequential timing mode;
and when the recording canceling instruction is not detected in the process of displaying the second preset time length, recording the live video which is played in the live page through a server, and acquiring a first limit time length from the server.
Optionally, the recording, by the server, a live video being played in a live page displayed by the first terminal, and acquiring a first time limit duration from the server include:
when a recording instruction of a live video being played in a displayed live page is detected, sending a recording inquiry message to a second terminal, and returning an agreement message by the second terminal according to the recording inquiry message, wherein the second terminal is a terminal for generating the live video being played in the live page;
and when an agreement message sent by the second terminal is received, recording the live broadcast video being played in the live broadcast page through a server, and acquiring a first limit duration from the server.
According to a second aspect of the embodiments of the present invention, there is provided a live video recording apparatus, applied to a first terminal, the apparatus including:
the first acquisition module is used for recording a live video which is being played in a live page displayed by the first terminal through a server and acquiring a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video;
the first display module is used for displaying the recording time point of the live video according to the first limit duration;
the second acquisition module is used for refreshing the live broadcast page when a refreshing instruction of the live broadcast page is detected, and acquiring the recording duration of the live broadcast video from the server after the refreshing is successful;
and the second display module is used for continuously displaying the recording time point of the live video according to the first limit time length and the recording time length of the live video.
Optionally, the first display module includes:
the first display sub-module is used for displaying the first limit duration in a sequential timing mode or a reverse sequential timing mode so as to display the recording time point of the live video;
accordingly, the second display module comprises:
the second display sub-module is used for displaying the first limit time length from the recording time length of the live video to the first limit time length in a sequential timing mode when the first limit time length is displayed in the sequential timing mode so as to continuously display the recording time point of the live video;
and the third display sub-module is used for subtracting the recording time length of the live video from the first limit time length to obtain a second limit time length when the first limit time length is displayed in a reverse timing mode, and displaying the second limit time length in a reverse timing mode to continuously display the recording time point of the live video.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the recording time length of the live video from the server every other first preset time length;
and the third display module is used for displaying the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
Optionally, the first obtaining module includes:
the fourth display sub-module is used for displaying the second preset time length in a sequential timing mode or a reverse sequential timing mode when a recording instruction of a live video which is played in a displayed live broadcast page is detected;
and the first obtaining submodule is used for recording the live video which is played in the live page through the server when the recording canceling instruction is not detected in the process of displaying the second preset time length, and obtaining the first limit time length from the server.
Optionally, the first obtaining module includes:
the sending submodule is used for sending a recording inquiry message to a second terminal when detecting a recording instruction of a live video which is being played in a displayed live broadcast page, and the second terminal returns an agreement message according to the recording inquiry message, wherein the second terminal is a terminal for generating the live broadcast video which is being played in the live broadcast page;
and the second acquisition submodule is used for recording the live broadcast video which is being played in the live broadcast page through the server when the agreement message sent by the second terminal is received, and acquiring the first limit duration from the server.
According to a third aspect of embodiments of the present invention, there is provided an apparatus comprising a processor, a memory, and program code stored on the memory and executable on the processor, the processor implementing the method of the first aspect when executing the program code.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of the method of the first aspect described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the live video which is being played in the live page displayed by the first terminal can be recorded through the server, the first limit time length is obtained from the server, and the recording time point of the live video is displayed according to the first limit time length. And then, when the first terminal detects a refreshing instruction of the live broadcast page, refreshing the live broadcast page, acquiring the recording time length of the live broadcast video from the server after the refreshing is successful, and continuously displaying the recording time point of the live broadcast video according to the first limit time length and the recording time length of the live broadcast video. Because the live video is recorded by the server, the recording time length of the live video acquired by the first terminal from the server is accurate, and the accuracy of the displayed recording time point of the live video is high according to the first limit time length and the recording time length of the live video by the first terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a live video recording method according to an embodiment of the present invention;
fig. 2A is a flowchart of another live video recording method according to an embodiment of the present invention;
fig. 2B is a schematic diagram of a recorded query message according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of a first live video recording apparatus according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a first display module according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram of a second display module according to an embodiment of the invention;
fig. 3D is a schematic structural diagram of a second live video recording apparatus according to an embodiment of the present invention;
fig. 3E is a schematic structural diagram of a first obtaining module according to an embodiment of the present invention;
fig. 3F is a schematic structural diagram of another first obtaining module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a recording apparatus for a third live video provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a recording apparatus of a fourth live view provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario related to the embodiments of the present invention will be described.
With the development of electronic technology, watching live videos gradually becomes a favorite activity in daily entertainment of people. In the process of watching live videos, users often record the live videos so that the recorded videos can be watched continuously after the live videos are played. In the related art, a terminal can record a live video through a server, and the terminal can display a recording time point of the live video according to a recording limit duration acquired from the server. In the process, if the terminal refreshes the live broadcast page, after the refreshing is successful, the terminal does not display the recording time point of the live broadcast video, or the terminal continues to display the live broadcast video from the recording time point displayed before the refreshing, and the live broadcast video is played in real time because a certain time is needed for refreshing the live broadcast page, so that the recording time point of the live broadcast video displayed before the refreshing is different from the actual recording time point of the live broadcast video after the refreshing is completed, and the recording time point displayed by the terminal is inaccurate at the moment. Therefore, the invention provides a live video recording method to accurately display the recording time point of the live video.
Next, a method for recording live video according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a live video recording method according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a first terminal and includes the following steps:
step 101: the method comprises the steps of recording a live video which is played in a live page displayed by a first terminal through a server, and obtaining a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video.
Step 102: and displaying the recording time point of the direct broadcasting video according to the first limit time length.
Step 103: and when a refreshing instruction of the live broadcast page is detected, refreshing the live broadcast page, and after the refreshing is successful, acquiring the recording duration of the live broadcast video from the server.
Step 104: and continuously displaying the recording time point of the live video according to the first limit time length and the recording time length of the live video.
In the embodiment of the invention, the live video which is being played in the live page displayed by the first terminal can be recorded through the server, the first limit time length is obtained from the server, and the recording time point of the live video is displayed according to the first limit time length. And then, when the first terminal detects a refreshing instruction of the live broadcast page, refreshing the live broadcast page, acquiring the recording time length of the live broadcast video from the server after the refreshing is successful, and continuously displaying the recording time point of the live broadcast video according to the first limit time length and the recording time length of the live broadcast video. Because the live video is recorded by the server, the recording time length of the live video acquired by the first terminal from the server is accurate, and the accuracy of the displayed recording time point of the live video is high according to the first limit time length and the recording time length of the live video by the first terminal.
Optionally, displaying the recording time point of the live video according to the first limit duration includes:
displaying the first limit duration in a sequential timing mode or a reverse sequential timing mode to display the recording time point of the live video;
correspondingly, according to the first limit duration and the recording duration of the live video, continuously displaying the recording time point of the live video, including:
when the first limit time length is displayed in a sequential timing mode, the recording time length of the live video is displayed to the first limit time length in the sequential timing mode so as to continuously display the recording time point of the live video;
and when the first limit duration is displayed in a reverse timing mode, subtracting the recording duration of the live video from the first limit duration to obtain a second limit duration, and displaying the second limit duration in a reverse timing mode to continuously display the recording time point of the live video.
Optionally, the method further comprises:
acquiring the recording time length of the live video from the server every other first preset time length;
and displaying the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
Optionally, recording, by a server, a live video being played in a live page displayed by a first terminal, and acquiring a first time limit duration from the server, includes:
when a recording instruction of a live video being played in a displayed live page is detected, displaying a second preset time length in a sequential timing mode or a reverse sequential timing mode;
and when the recording canceling instruction is not detected in the process of displaying the second preset time length, recording the live video which is played in the live page through the server, and acquiring the first limit time length from the server.
Optionally, recording, by a server, a live video being played in a live page displayed by a first terminal, and acquiring a first time limit duration from the server, includes:
when a recording instruction of a live video being played in a displayed live broadcast page is detected, sending a recording inquiry message to a second terminal, and returning an agreement message by the second terminal according to the recording inquiry message, wherein the second terminal is a terminal for generating the live broadcast video being played in the live broadcast page;
and when an agreement message sent by the second terminal is received, recording the live video which is being played in the live page through the server, and acquiring the first limit duration from the server.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2A is a flowchart of a live video recording method according to an embodiment of the present invention. Embodiments of the present invention will be discussed in conjunction with FIG. 2A for the embodiment provided in FIG. 1. As shown in fig. 2A, the method includes the steps of:
step 201: the first terminal records a live video which is being played in a live page displayed by the first terminal through the server, and acquires a first limit duration from the server.
It should be noted that the first limited duration is a maximum duration that can be recorded for the live video, that is, the duration of the video obtained by recording the live video is at most the first limited duration, and for example, the first limited duration may be 5 minutes, 8 minutes, 10 minutes, and the like.
Specifically, when the first terminal detects a recording instruction of a live video being played in a displayed live page, the live video being played in the live page can be directly recorded through the server, and the first limit duration is obtained from the server.
It should be noted that the recording instruction is an instruction for instructing to record a live video being played in the live page. The recording instruction may be triggered by a user of the first terminal, and the user of the first terminal may be triggered by a first specified operation, where the first specified operation may be a click operation, a slide operation, a voice operation, and the like. Alternatively, the recording instruction may also be automatically triggered by the first terminal, for example, the first terminal may automatically trigger the recording instruction at a specific time, which is not limited in the embodiment of the present invention.
Of course, in practical applications, step 201 may also be implemented in other manners, for example, the implementation process of step 201 may also include the following three implementation manners:
the first implementation mode comprises the following steps: when the first terminal detects a recording instruction of live video playing in a displayed live page, displaying a second preset time length in a sequential timing mode or a reverse timing mode, when a recording canceling instruction is not detected in the process of displaying the second preset time length, recording the live video playing in the live page through the server, and acquiring a first limit time length from the server.
Further, when the first terminal detects a recording canceling instruction in the process of displaying the second preset time length, the recording instruction is ignored, that is, the live video being played in the live broadcast page is not recorded.
It should be noted that the second preset time period may be set in advance according to different requirements, for example, the second preset time period may be 5 seconds, 10 seconds, 15 seconds, and the like.
In addition, the recording canceling instruction is an instruction for instructing to cancel recording of a live video being played in the live page, the recording canceling instruction may be triggered by a user of the first terminal, and the user of the first terminal may be triggered by a second specified operation, where the second specified operation may be a click operation, a slide operation, a voice operation, or the like.
Furthermore, the sequential timing manner is from zero timing to a second preset time period, for example, the second preset time period is 10 seconds, and the second preset time period is displayed in the sequential timing manner from 0 second to 10 seconds, that is, 0 second, 1 second, 2 seconds … … 8 second, 9 seconds, 10 seconds are sequentially displayed. The reverse timing manner is to time from the second preset time period to zero, for example, the second preset time period is 10 seconds, and the second preset time period is displayed in the reverse timing manner from 10 seconds to 0 second, that is, 10 seconds, 9 seconds, 8 seconds … … 2 seconds, 1 second, and 0 second are sequentially displayed.
For example, the second preset time duration is 10 seconds, the second preset time duration is displayed in a reverse timing mode, the user is assumed to click a recording button in a live broadcast page to trigger a recording instruction, when the recording instruction is detected in the live broadcast page, the reverse timing of 10 seconds is displayed in the live broadcast page, and if the user does not click a recording cancellation button in the live broadcast page within the 10 seconds to trigger a recording cancellation instruction, the first terminal can record a live broadcast video being played in the live broadcast page through the server at the moment, and obtain the first limit time duration from the server.
It should be noted that, in the embodiment of the present invention, when the first terminal detects a recording instruction of a live video being played in a displayed live page, the second preset time duration may be displayed in a sequential timing manner or a reverse timing manner, and a user of the first terminal may know a time for starting recording the live video according to the displayed second preset time duration, so that a recording preparation may be prepared before the live video is started to be recorded, and a better use experience may be brought to the user of the first terminal. And in the process of displaying the second preset time length by the first terminal, if the recording canceling instruction is not detected, the live video can be recorded normally, and if the recording canceling instruction is detected, the recording instruction can be ignored, namely, the live video is not recorded. Therefore, after the recording instruction of the live video is triggered, the user can trigger a recording canceling instruction in a second preset time length to cancel the recording of the live video, and the flexibility and the accuracy of the recording of the live video are improved.
The second implementation mode comprises the following steps: when the first terminal detects a recording instruction of a live video being played in a displayed live page, a recording inquiry message is sent to the second terminal, when an agreement message sent by the second terminal is received, the live video being played in the live page is recorded through the server, and a first limit duration is obtained from the server.
Further, when the first terminal receives the rejection message sent by the second terminal, the recording instruction is ignored, that is, the live video being played in the live page is not recorded.
It should be noted that the second terminal is a terminal that generates a live video being played in the live page, for example, when the live page is a live broadcast room, the second terminal may be a terminal that is used by a main broadcast in the live broadcast room.
In addition, the recording inquiry message is a message that the first terminal inquires the second terminal whether the live video being played in the live page can be recorded, for example, the recording inquiry message may be as shown in fig. 2B, and includes "does the user XX want to record your live video, agrees? ", an agreement button, and a rejection button. The agreement message is a message that agrees to the first terminal to record the live video being played in the live page, for example, the agreement message may be a message that is triggered after the user clicks an agreement button in the recording inquiry message shown in fig. 2B. The reject message is a message that the first terminal is rejected to record the live video being played in the live page, for example, the reject message may be a message that is triggered after the user clicks a reject button in the recording inquiry message shown in fig. 2B.
Further, the second terminal may receive the recording inquiry message after the first terminal transmits the recording inquiry message to the second terminal, and then, the second terminal may display the recording inquiry message, transmit the approval message to the first terminal when the approval message is detected in the recording inquiry message, and transmit the rejection message to the first terminal when the rejection message is detected in the recording inquiry message.
It should be noted that, because the live video being played in the live page is the live video generated by the second terminal, the second terminal has the recording permission of the live video, that is, if the user of the first terminal wants to record the live video, the recording can be performed only after the user of the second terminal agrees. Therefore, when the first terminal detects a recording instruction of a live video being played in a displayed live page, a recording inquiry message can be sent to the second terminal, when an agreement message sent by the second terminal is received, the fact that the user of the second terminal agrees that the first terminal records the live video is shown, so that the first terminal can record the live video at the moment, when a rejection message sent by the second terminal is received, the fact that the user of the second terminal refuses the first terminal to record the live video is shown, the first terminal ignores the recording instruction at the moment, and the live video is not recorded. Therefore, other terminals except the second terminal can be ensured to be informed by the user of the second terminal before the live video generated by the second terminal is recorded, and the recording safety of the live video is improved.
It should be noted that, if the first terminal is the second terminal, that is, the first terminal is the terminal that generates the live video being played in the live broadcast page, when the first terminal detects the recording instruction of the live video, it is not necessary to send a recording inquiry message to the second terminal, but the live video being played in the live broadcast page may be directly recorded by the server, and the first limited duration is obtained from the server. For example, the anchor needs to record a live video thereof, and when the anchor clicks a recording button in the live page to trigger a recording instruction, the first terminal may directly record the live video being played in the live page through the server, and obtain the first limit duration from the server.
The third implementation mode comprises the following steps: when the first terminal detects a recording instruction of live video playing in a displayed live page, displaying a second preset time length in a sequential timing mode or a reverse timing mode, when a recording canceling instruction is not detected in the process of displaying the second preset time length, sending a recording inquiry message to the second terminal, when an agreement message sent by the second terminal is received, recording the live video playing in the live page through the server, and acquiring a first limit time length from the server.
Further, when the recording canceling instruction is detected in the process of displaying the second preset time length, the recording instruction is ignored, that is, the recording inquiry message is not sent to the second terminal, and further the live video which is being played in the live page is not recorded.
Further, when receiving the rejection message sent by the second terminal, the recording instruction is also ignored, that is, the live video being played in the live page is not recorded.
It should be noted that, in the embodiment of the present invention, the user of the first terminal may know the time for starting to record the live video according to the displayed second preset time length, so that a recording preparation may be prepared before the live video starts to be recorded, and a better use experience may be brought to the user of the first terminal. And in the process that the first terminal displays the second preset time length, if the first terminal detects a recording canceling instruction, the recording inquiry message is not sent to the second terminal, and further the live video which is being played in the live page is not recorded. If the recording cancel instruction is not detected, a recording inquiry message can be sent to the second terminal, when an agreement message sent by the second terminal is received, the fact that the user of the second terminal agrees that the first terminal records the live video is described, so that the first terminal can record the live video at the moment, when a rejection message sent by the second terminal is received, the fact that the user of the second terminal refuses the first terminal to record the live video is described, and therefore the first terminal ignores the recording instruction at the moment, namely the live video is not recorded. Therefore, when the user does not trigger the recording cancellation instruction within the second preset time length, the first terminal sends the recording inquiry message to the second terminal, and then the live video can be recorded only after the first terminal receives the agreement message sent by the second terminal, so that the flexibility and the accuracy of recording the live video are improved, and the recording safety of the live video is also improved.
In the implementation, the first terminal records the live video being played in the live page through the server, and the implementation process of obtaining the first time limit duration from the server may be as follows: the first terminal generates a video recording request and sends the video recording request to a server; when the server receives a video recording request sent by the first terminal, recording a live video which is being played in a live page displayed by the first terminal, acquiring a first limit duration, and sending the first limit duration to the first terminal.
It should be noted that the video recording request is used to request the server to record the live video being played in the live page displayed by the first terminal.
The server acquires the first limit duration, can acquire a preset limit duration, and determines the preset limit duration as the first limit duration; or, according to the identifier of the live video, the corresponding recording limit duration may be obtained from the correspondence between the identifier of the live video and the recording limit duration, and the obtained recording limit duration may be determined as the first limit duration.
It should be noted that the preset limit time may be preset according to different requirements, for example, the preset limit time may be 5 minutes, 8 minutes, 10 minutes, and the like.
For example, if the identifier of the live video being played in the live page displayed by the first terminal is the live video identifier 1, the corresponding recording limit duration may be obtained from the correspondence between the live video identifier and the recording limit duration shown in table 1 below according to the live video identifier 1, and then the 10 minutes is determined as the first limit duration.
TABLE 1
Live video identification Recording time limit
Live video identification 1 10 minutes
Live video identification 2 8 minutes
Live video identification 3 5 minutes
It should be noted that, in the embodiment of the present invention, only the correspondence between the live video identifier and the recording limit duration shown in table 1 is taken as an example for description, and table 1 does not limit the embodiment of the present invention.
Step 202: and the first terminal displays the recording time point of the live video according to the first limit duration.
It should be noted that the recording time point of the live video refers to a time point at which the live video is currently recorded, that is, the recording time point of the live video represents a recording progress of the live video, and the recording time point of the live video may be a recording time length of the live video, or may be a remaining time length capable of continuing recording the live video, for example, the recording time point of the live video may be 1 minute 50 seconds, 2 minutes 10 seconds, 4 minutes 15 seconds, and the like.
Specifically, the first limited duration may be displayed in a sequential timing manner or a reverse timing manner to display a recording time point of the live video.
Note that the sequential timing manner is from zero timing to a first limit time period, for example, the first limit time period is 5 minutes, and the first limit time period is displayed in the sequential timing manner from 0 minute and 0 second to 5 minutes and 0 second, that is, 0 minute and 0 second, 0 minute and 1 second, 0 minute and 2 second … … 4 minutes and 58 seconds, 4 minutes and 59 seconds, and 5 minutes and 0 seconds are sequentially displayed. The countdown is to count up from the first limit time period to zero, for example, the first limit time period is 5 minutes, and the first limit time period is displayed in a countdown manner to start from 5 minutes 0 seconds to 0 minutes 0 seconds, that is, to sequentially display 5 minutes 0 seconds, 4 minutes 59 seconds, 4 minutes 58 seconds … … 0 minutes 2 seconds, 0 minutes 1 second, and 0 minutes 0 seconds.
In addition, when the first limited duration is displayed in a timing manner, the numbers sequentially displayed are the recording time points of the live video. For example, 0 minute 0 second, 0 minute 1 second, 4 minutes 59 seconds, 4 minutes 58 seconds, etc., are all recording time points of the live video. And when the first limit duration is displayed in a sequential timing manner, the recorded time point of the live video is the recorded duration of the live video, and when the first limit duration is displayed in a reverse timing manner, the recorded time point of the live video is the remaining duration capable of continuing recording the live video.
It should be noted that, in the embodiment of the present invention, the first time limit may be displayed in a sequential timing manner or a reverse timing manner to display a recording time point of the live video, and since the recording time point of the live video may represent a recording progress of the live video, when a user of the first terminal sees the displayed recording time point of the live video, the recording progress of the live video may be accurately known.
Step 203: and when the first terminal detects a refreshing instruction of the live broadcast page, refreshing the live broadcast page, and after the refreshing is successful, acquiring the recording duration of the live broadcast video from the server.
It should be noted that the refresh instruction is an instruction for instructing to refresh the live broadcast page, the refresh instruction may be triggered by a user of the first terminal, and the user of the first terminal may be triggered by a third specified operation, where the third specified operation may be a click operation, a slide operation, a voice operation, and the like. Alternatively, the refresh command may also be triggered automatically by the first terminal, for example, the first terminal may trigger the refresh command automatically at a specific time, which is not limited in the embodiment of the present invention.
In addition, since the user of the first terminal may refresh the live broadcast page while watching the live broadcast video, and a certain time is required for refreshing the live broadcast page, and the live broadcast video is played in real time, when the live broadcast page is successfully refreshed, the recording time point of the live broadcast video displayed before the refreshing is different from the actual recording time point of the live broadcast video after the refreshing is completed, so that the first terminal in the related art cannot continue to accurately display the recording time point of the live broadcast video. In the embodiment of the invention, the first terminal can acquire the recording time of the live video from the server after the live page is successfully refreshed, and the recording time of the live video acquired from the server is more accurate because the live video is recorded by the server, so that the subsequent first terminal can continuously and accurately display the recording time point of the live video according to the recording time of the live video.
The first terminal can send a time length obtaining request to the server when obtaining the recording time length of the live video from the server; when the server receives the time length obtaining request, the recording time length of the live video can be obtained, and the recording time length of the live video is sent to the first terminal.
It should be noted that the duration obtaining request is used to request the server to obtain the recording duration of the live video being played in the live page displayed by the first terminal.
Further, after the live broadcast page is refreshed successfully, the first terminal can acquire the recording duration of the live broadcast video from the server and also can acquire the recording state of the live broadcast video from the server.
It should be noted that, the first terminal may obtain the recording state and the recording duration of the live video from the server at the same time, or may obtain the recording state of the live video first, and when the recording state of the live video is recording, obtain the recording duration of the live video again, and when the recording state of the live video is not recording, may not obtain the recording duration of the live video.
In addition, when the first terminal obtains the recording state and the recording duration of the live video from the server at the same time, if the live video is not being recorded, the server cannot obtain the recording duration of the live video, and the recording duration of the live video cannot be returned to the first terminal. Therefore, when the first terminal cannot acquire the recording duration of the live video from the server, the reason can be timely acquired from the acquired recording state.
The first terminal firstly obtains the recording state of the live video from the server, then selectively obtains the recording duration of the live video from the server according to the recording state, at the moment, the first terminal obtains the recording duration of the live video from the server when the live video is being recorded, and when the live video is not being recorded, if the live video is recorded completely or is not being recorded, the recording duration of the live video is not obtained from the server, so that unnecessary operation can be reduced, and resources of the first terminal are saved.
Step 204: and the first terminal continues to display the recording time point of the live video according to the first limit time length and the recording time length of the live video.
Specifically, when the first limited duration is displayed in a sequential timing manner or a reverse timing manner in step 202 to display the recording time point of the live video, the implementation process of step 204 may be: when the first limit time length is displayed in a sequential timing mode, the recording time length of the live video is displayed to the first limit time length in the sequential timing mode so as to continuously display the recording time point of the live video; and when the first limit duration is displayed in a reverse timing mode, subtracting the recording duration of the live video from the first limit duration to obtain a second limit duration, and displaying the second limit duration in a reverse timing mode to continuously display the recording time point of the live video.
It should be noted that, when the first time limit is displayed in a sequential timing manner, the recording time point of the live video is the recording time point of the live video, so that the recording time point of the live video can be timed from the recording time point of the live video to the first time limit, and the number displayed in the process from the timing of the recording time point to the first time limit is the recording time point of the live video.
For example, the first time limit is displayed in a sequential time counting manner, and assuming that the first time limit is 5 minutes and the recording time of the live video acquired from the server is 2 minutes, the first time limit is displayed in a sequential time counting manner from 2 minutes to 5 minutes 0 seconds from 2 minutes 0 seconds, that is, 2 minutes 0 seconds, 2 minutes 1 seconds, 2 minutes 2 seconds … … 4 minutes 4 seconds, 4 minutes 59 seconds, and 5 minutes 0 seconds are sequentially displayed.
In addition, when the first limited duration is displayed in a reverse timing manner, the recorded time point of the live video is the remaining duration capable of continuing recording the live video, so that the recording duration of the live video needs to be subtracted from the first limited duration at this time to obtain a second limited duration, the second limited duration represents the remaining recordable duration in the first limited duration, then the second limited duration is displayed in a reverse timing manner, namely, the second limited duration is timed to 0, and the number displayed in the process of starting timing from the second limited duration to 0 is the recorded time point of the live video.
For example, the first limited duration is displayed in a reverse-order timing manner, and if the first limited duration is 5 minutes and the recording duration of the live video acquired from the server is 3 minutes, the second limited duration is 2 minutes, and at this time, the second limited duration is displayed in a reverse-order timing manner from 2 minutes 0 seconds to 0 minutes 0 seconds, that is, 2 minutes 0 seconds, 1 minutes 59 seconds, 1 minutes 58 seconds … … 0 minutes 2 seconds, 0 minutes 1 second, and 0 minutes 0 seconds are sequentially displayed.
It should be noted that, in the embodiment of the present invention, the live video is recorded by the server, so that the recording duration of the live video, which is acquired by the first terminal from the server, is relatively accurate, and therefore, when the first terminal continues to display the recording time point of the live video according to the first limit duration and the recording duration of the live video, the accuracy of the displayed recording time point of the live video is relatively high, so that a user of the first terminal can accurately know the current recording progress of the live video.
Further, in the embodiment of the present invention, in order to more accurately display the recording time point of the live video, the first terminal may further obtain the recording time length of the live video from the server every other first preset time length, and display the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
It should be noted that the first preset time period may be preset according to different requirements, for example, the first preset time period may be 3 minutes, 5 minutes, 7 minutes, and the like.
The description of the value is that, in the embodiment of the present invention, the recording duration of the live video may be obtained from the server every first preset duration, and the recording time point of the live video is displayed again according to the first limit duration and the recording duration of the live video, that is, in the process of recording the live video, the recording time point of the live video is displayed again every other period of time, so as to ensure that the recording time point of the live video is accurately displayed.
Specifically, the first terminal performs timing through the timer in the live broadcast page, acquires the recording duration of the live broadcast from the server when the first preset duration is reached, and restarts the next time through the timer.
Further, before the first terminal acquires the recording time length of the live video from the server every first preset time length, the recording state of the live video can be determined, when the recording state of the live video is determined to be recording, the operation of acquiring the recording time length of the live video from the server every first preset time length is executed, and when the recording state of the live video is determined not to be recording, the operation of acquiring the recording time length of the live video from the server every first preset time length is not executed.
When the first terminal determines the recording state of the live video, the recording state of the live video can be acquired from the server every third preset time, or after the first terminal finishes refreshing the live page, the recording state of the live video is acquired from the server.
It should be noted that, when the recording state of the live video is recording, the first terminal may obtain the recording time length of the live video from the server at intervals of a first preset time length, and then display the recording time point of the live video again, so as to ensure the accuracy of the displayed recording time point of the live video.
In the embodiment of the invention, the live video which is being played in the live page displayed by the first terminal can be recorded through the server, the first limit time length is obtained from the server, and the recording time point of the live video is displayed according to the first limit time length. And then, when the first terminal detects a refreshing instruction of the live broadcast page, refreshing the live broadcast page, acquiring the recording time length of the live broadcast video from the server after the refreshing is successful, and continuously displaying the recording time point of the live broadcast video according to the first limit time length and the recording time length of the live broadcast video. Because the live video is recorded by the server, the recording time length of the live video acquired by the first terminal from the server is accurate, and the accuracy of the displayed recording time point of the live video is high according to the first limit time length and the recording time length of the live video by the first terminal.
Next, a live video recording apparatus provided in an embodiment of the present invention is described.
Fig. 3A is a schematic structural diagram of a live video recording apparatus according to an embodiment of the present invention. Referring to fig. 3A, the apparatus includes a first obtaining module 301, a first displaying module 302, a second obtaining module 303, and a second displaying module 304.
The first obtaining module 301 is configured to record a live video being played in a live page displayed by a first terminal through a server, and obtain a first limited duration from the server, where the first limited duration is a maximum duration that can record the live video.
The first display module 302 is configured to display the recording time point of the live video according to the first limited duration.
A second obtaining module 303, configured to, when a refresh instruction of the live broadcast page is detected, refresh the live broadcast page, and after the refresh is successful, obtain the recording duration of the live broadcast video from the server.
And the second display module 304 is configured to continue to display the recording time point of the live video according to the first limit time length and the recording time length of the live video.
Alternatively, referring to fig. 3B, the first display module 302 includes:
the first display sub-module 3021 is configured to display the first limited duration in a sequential timing manner or a reverse timing manner, so as to display a recording time point of the live video.
Accordingly, referring to fig. 3C, the second display module 304 includes:
the second display sub-module 3041 is configured to, when the first limited duration is displayed in a sequential timing manner, display the first limited duration from the recording duration of the live video in the sequential timing manner, so as to continue to display the recording time point of the live video.
The third display sub-module 3042 is configured to, when the first limited duration is displayed in a reverse timing manner, subtract the recording duration of the live video from the first limited duration to obtain a second limited duration, and display the second limited duration in a reverse timing manner to continue displaying the recording time point of the live video.
Optionally, referring to fig. 3D, the apparatus further comprises:
a third obtaining module 305, configured to obtain the recording duration of the live video from the server every first preset duration.
And a third display module 306, configured to display the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
Optionally, referring to fig. 3E, the first obtaining module 301 includes:
the fourth display sub-module 3011 is configured to, when detecting a recording instruction of a live video being played in a displayed live page, display a second preset time length in a sequential timing manner or a reverse timing manner.
The first obtaining sub-module 3012 is configured to record, by the server, the live video being played in the live page when the recording cancellation instruction is not detected in the process of displaying the second preset duration, and obtain the first limit duration from the server.
Optionally, referring to fig. 3F, the first obtaining module 301 includes:
the sending sub-module 3013 is configured to send a recording query message to the second terminal when detecting a recording instruction of a live video being played in a displayed live broadcast page, where the second terminal returns an agreement message according to the recording query message, and the second terminal is a terminal that generates the live broadcast video being played in the live broadcast page.
The second obtaining sub-module 3014 is configured to record, by the server, a live video being played in the live page when receiving an agreement message sent by the second terminal, and obtain the first time limit from the server.
In the embodiment of the invention, the live video which is being played in the live page displayed by the first terminal can be recorded through the server, the first limit time length is obtained from the server, and the recording time point of the live video is displayed according to the first limit time length. And then, when the first terminal detects a refreshing instruction of the live broadcast page, refreshing the live broadcast page, acquiring the recording time length of the live broadcast video from the server after the refreshing is successful, and continuously displaying the recording time point of the live broadcast video according to the first limit time length and the recording time length of the live broadcast video. Because the live video is recorded by the server, the recording time length of the live video acquired by the first terminal from the server is accurate, and the accuracy of the displayed recording time point of the live video is high according to the first limit time length and the recording time length of the live video by the first terminal.
It should be noted that: in the recording apparatus for live video provided in the foregoing embodiment, when recording live video, only the division of the functional modules is used for illustration, and in practical applications, the functional allocation may be completed by different functional modules as needed, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the recording apparatus for live video and the recording method for live video provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 4 is a schematic structural diagram of a recording apparatus 400 for live video according to an embodiment of the present invention. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the method of recording a live video screen provided by the embodiments shown in fig. 1 and 2A described above.
Fig. 5 is a schematic structural diagram of a recording apparatus 500 for a live video screen according to an embodiment of the present invention. For example, the apparatus 500 may be provided as a server. Referring to fig. 5, the apparatus 500 includes a processor 522 that further includes one or more processors and memory resources, represented by memory 532, for storing instructions, such as applications, that are executable by the processor 522. The application programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, processor 522 is configured to execute instructions to perform the method for recording a live video provided by the embodiments shown in fig. 1 and 2A described above.
The apparatus 500 may also include a power component 526 configured to perform power management of the apparatus 500, a wired or wireless network interface 550 configured to connect the apparatus 500 to a network, and an input/output (I/O) interface 558. The apparatus 500 may operate based on an operating system stored in the memory 532, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
That is, when executed by a processor of an apparatus, the instructions in the computer-readable storage medium may implement the method for recording a live video provided in the embodiment of fig. 1 or fig. 2A.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A method for recording live video is applied to a first terminal, and is characterized by comprising the following steps:
recording a live video which is being played in a live page displayed by the first terminal through a server, and acquiring a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video;
displaying the first limit duration in a sequential timing mode or a reverse timing mode to display the recording time point of the live video;
when a refreshing instruction of the live broadcast page is detected, refreshing the live broadcast page, and after the refreshing is successful, acquiring the recording duration of the live broadcast video from the server, wherein the recording duration of the live broadcast video is the sum of the recording duration of the live broadcast video and the duration of refreshing the page when the refreshing instruction is detected;
when the first limit time length is displayed in a sequential timing mode, the first limit time length is displayed from the recording time length of the live video in the sequential timing mode so as to continuously display the recording time point of the live video, wherein the recording time point of the live video is the recording time length of the live video;
when the first limit duration is displayed in a reverse timing mode, subtracting the recording duration of the live video from the first limit duration to obtain a second limit duration, displaying the second limit duration in a reverse timing mode to continuously display the recording time point of the live video, wherein the recording time point of the live video is the residual duration capable of continuing recording the live video.
2. The method of claim 1, further comprising:
acquiring the recording time length of the live video from the server every other first preset time length;
and displaying the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
3. The method of claim 1, wherein the recording, by a server, a live video being played in a live page displayed by the first terminal and obtaining a first time limit duration from the server comprises:
when a recording instruction of a live video being played in a displayed live page is detected, displaying a second preset time length in a sequential timing mode or a reverse sequential timing mode;
and when the recording canceling instruction is not detected in the process of displaying the second preset time length, recording the live video which is played in the live page through a server, and acquiring a first limit time length from the server.
4. The method of claim 1, wherein the recording, by a server, a live video being played in a live page displayed by the first terminal and obtaining a first time limit duration from the server comprises:
when a recording instruction of a live video being played in a displayed live page is detected, sending a recording inquiry message to a second terminal, and returning an agreement message by the second terminal according to the recording inquiry message, wherein the second terminal is a terminal for generating the live video being played in the live page;
and when an agreement message sent by the second terminal is received, recording the live broadcast video being played in the live broadcast page through a server, and acquiring a first limit duration from the server.
5. A recording device of live broadcast video is applied to a first terminal, and is characterized in that the device comprises:
the first acquisition module is used for recording a live video which is being played in a live page displayed by the first terminal through a server and acquiring a first limit time length from the server, wherein the first limit time length is the maximum time length capable of recording the live video;
the first display module is used for displaying the first limit duration in a sequential timing mode or a reverse sequential timing mode so as to display the recording time point of the live video;
the second obtaining module is used for refreshing the live broadcast page when a refreshing instruction of the live broadcast page is detected, and obtaining the recording time length of the live broadcast video from the server after the refreshing is successful, wherein the recording time length of the live broadcast video is the sum of the recording time length of the live broadcast video and the time length of the refreshing page when the refreshing instruction is detected;
the second display module is used for displaying the first limit time length in a sequential timing mode from the recording time length of the live video to the first limit time length in the sequential timing mode so as to continuously display the recording time point of the live video, wherein the recording time point of the live video is the recording time length of the live video; when the first limit duration is displayed in a reverse timing mode, subtracting the recording duration of the live video from the first limit duration to obtain a second limit duration, displaying the second limit duration in a reverse timing mode to continuously display the recording time point of the live video, wherein the recording time point of the live video is the residual duration capable of continuing recording the live video.
6. The apparatus of claim 5, further comprising:
the third acquisition module is used for acquiring the recording time length of the live video from the server every other first preset time length;
and the third display module is used for displaying the recording time point of the live video again according to the first limit time length and the recording time length of the live video.
7. The apparatus of claim 5, wherein the first obtaining module comprises:
the fourth display sub-module is used for displaying the second preset time length in a sequential timing mode or a reverse sequential timing mode when a recording instruction of a live video which is played in a displayed live broadcast page is detected;
and the first obtaining submodule is used for recording the live video which is played in the live page through the server when the recording canceling instruction is not detected in the process of displaying the second preset time length, and obtaining the first limit time length from the server.
8. The apparatus of claim 5, wherein the first obtaining module comprises:
the sending submodule is used for sending a recording inquiry message to a second terminal when detecting a recording instruction of a live video which is being played in a displayed live broadcast page, and the second terminal returns an agreement message according to the recording inquiry message, wherein the second terminal is a terminal for generating the live broadcast video which is being played in the live broadcast page;
and the second acquisition submodule is used for recording the live broadcast video which is being played in the live broadcast page through the server when the agreement message sent by the second terminal is received, and acquiring the first limit duration from the server.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-4.
CN201711297079.9A 2017-12-08 2017-12-08 Live video recording method and device and computer storage medium Active CN107948668B (en)

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 CN107948668A (en) 2018-04-20
CN107948668B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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 (7)

* Cited by examiner, † Cited by third party
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
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
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

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013012104A1 (en) * 2011-07-18 2013-01-24 엘지전자 주식회사 Electronic device and method for operating same
WO2013134936A1 (en) * 2012-03-14 2013-09-19 华为技术有限公司 Screen recording method, and screen recording control method and device
CN104469512B (en) * 2013-09-25 2018-02-16 浙江大华技术股份有限公司 A kind of video player and its method for controlling video playback
CN103699583B (en) * 2013-12-05 2018-08-03 乐视网信息技术(北京)股份有限公司 A kind of method and electronic equipment for realizing direct broadcast time-shift
CN106162182B (en) * 2015-03-25 2019-08-30 杭州海康威视数字技术股份有限公司 A kind of control method for playing back and system of Video coding code stream
CN105721811A (en) * 2015-05-15 2016-06-29 乐视云计算有限公司 Live video recording method and system
CN105072480B (en) * 2015-07-29 2019-03-12 无锡天脉聚源传媒科技有限公司 A kind of net cast method and device
CN105120299B (en) * 2015-08-28 2020-02-14 广州酷狗计算机科技有限公司 Video pushing method and device
CN105657498B (en) * 2016-02-17 2018-11-06 腾讯科技(深圳)有限公司 The 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
CN107197357B (en) * 2016-03-14 2020-05-05 阿里巴巴集团控股有限公司 Method and device for intercepting video during playing

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN107948668A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
EP3174053A1 (en) Method, apparatus and system for playing multimedia data, computer program and recording medium
EP3182716A1 (en) Method and device for video display
US10292004B2 (en) Method, device and medium for acquiring location information
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN107438811B (en) Information screen display method and device
US11361586B2 (en) Method for sending warning information, storage medium and terminal
EP4093031A1 (en) Livestreaming room data exchange method and apparatus
EP3024211B1 (en) Method and device for announcing voice call
EP3026876B1 (en) Method for acquiring recommending information, terminal and server
CN106354571B (en) Message reminding method and device
US11949979B2 (en) Image acquisition method with augmented reality anchor, device, apparatus and storage medium
EP3276974A1 (en) Video sharing method and apparatus, computer program and recording medium
CN108781377B (en) Timer control method and device, electronic equipment and computer readable storage medium
CN109076618B (en) Timer control method and timer control device
CN109862169B (en) Electronic equipment control method, device and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107316207B (en) Method and device for acquiring display effect information
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN109246184B (en) Time information acquisition method and device and readable storage medium
EP3160112A1 (en) Reminding method and device
US20170034347A1 (en) Method and device for state notification and computer-readable storage medium
CN107247794B (en) Topic guiding method in live broadcast, live broadcast device and terminal equipment
CN106506808B (en) Method and device for prompting communication message
CN107948668B (en) Live video recording method and device and computer storage medium
CN105786561B (en) Method and device for calling process

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