WO2018000646A1 - Video download method and apparatus, and electronic device - Google Patents

Video download method and apparatus, and electronic device Download PDF

Info

Publication number
WO2018000646A1
WO2018000646A1 PCT/CN2016/101089 CN2016101089W WO2018000646A1 WO 2018000646 A1 WO2018000646 A1 WO 2018000646A1 CN 2016101089 W CN2016101089 W CN 2016101089W WO 2018000646 A1 WO2018000646 A1 WO 2018000646A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
video
user
input
time period
Prior art date
Application number
PCT/CN2016/101089
Other languages
French (fr)
Chinese (zh)
Inventor
王涛
Original Assignee
乐视控股(北京)有限公司
乐视网信息技术(北京)股份有限公司
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 乐视控股(北京)有限公司, 乐视网信息技术(北京)股份有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2018000646A1 publication Critical patent/WO2018000646A1/en

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/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
    • 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/47217End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • a sending module configured to send a video download request to the server, where the video download request includes a video identifier and a download time period input by the user;
  • the user triggers the download in a similar manner to the existing download trigger mode, which can be triggered by clicking the download button in the video playback interface.
  • the prompt information may be displayed in the interface through a prompt box or the like to prompt the user to input the prompt information. The time period you want to download.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a video download method and apparatus, and an electronic device, relating to the technical field of multimedia. The method comprises: when it is detected that a user triggers a download operation in a video playing interface, sending prompt information to the user; receiving a download time period input by the user; sending a video download request, with a video identifier and the download time period, to a server; and receiving and storing a partial video data sent by the server according to the video download request, the server performing segmentation on video data corresponding to the video identifier in advance with a pre-set time length as a unit, wherein the partial video data comprises various segmented video data corresponding to the download time period. While a user wants to download a partial video data, he/she only needs to input a time period corresponding to a partial video data which needs to be downloaded, so as to download the partial video data, thereby effectively saving traffic of a terminal device, and reducing the occupation of the storage space of the terminal device by unnecessary video data for the user.

Description

视频下载方法、装置及电子设备Video downloading method, device and electronic device
交叉引用cross reference
本申请要求于2016年06月27日递交中国专利局,申请号为201610480009.6的中国专利申请优先权,其全部内容通过引用被全部并入本申请。The present application claims priority to Chinese Patent Application No. 201610480009.6, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及多媒体技术领域,尤其涉及一种视频下载方法、装置及电子设备。The present application relates to the field of multimedia technologies, and in particular, to a video downloading method, apparatus, and electronic device.
背景技术Background technique
随着互联网技术的不断发展,人们获取信息的方式不断发生变化,网络视频已经成为人们学习、社交以及休闲娱乐的一种重要方式,用户可以通过移动终端下载观看视频,给用户带来极大方便。With the continuous development of Internet technology, the way people access information is constantly changing. Online video has become an important way for people to learn, socialize and entertain. Users can download and watch videos through mobile terminals, which brings great convenience to users. .
在实现本申请过程中,发明人发现现有技术中至少存在如下问题:日程生活中,用户往往有这样的需求:用户观看某视频时,已经看了一部分,但是可能临时因为某些原因不能继续观看,此时,如果用户想看完该视频,就需要完整地下载该视频以便后续观看。In the process of implementing the present application, the inventor has found that at least the following problems exist in the prior art: in the life of the schedule, the user often has such a requirement: when the user watches a certain video, a part has been read, but may temporarily cannot continue for some reason. Watch, at this time, if the user wants to watch the video, they need to download the video completely for subsequent viewing.
由于用户已经观看了部分视频,下载整个视频一方面没有必要,另一方面,不但延长下载时间,还会占用终端设备过多的存储空间。Since the user has watched part of the video, downloading the entire video is unnecessary on the one hand, and on the other hand, not only the download time is extended, but also the storage space of the terminal device is excessive.
发明内容Summary of the invention
本申请实施例提供一种视频下载方法、装置及电子设备,用以克服现有技术中下载整个视频数据导致下载时间长、占用终端设备过多的存储空间的问题。The embodiment of the present invention provides a video downloading method, device, and electronic device, which overcomes the problem that the downloading of the entire video data in the prior art leads to long downloading time and excessive storage space of the terminal device.
本申请实施例提供一种视频下载方法,包括: An embodiment of the present application provides a video downloading method, including:
检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,所述提示信息用于提示所述用户输入下载时间段;Detecting that the user triggers a download operation in the video play interface, and sends a prompt message to the user, where the prompt information is used to prompt the user to input a download time period;
接收所述用户输入的下载时间段;Receiving a download time period input by the user;
向服务器发送视频下载请求,所述视频下载请求中包括视频标识和用户输入的下载时间段;Sending a video download request to the server, where the video download request includes a video identifier and a download time period input by the user;
接收并存储所述服务器根据所述视频下载请求发送的部分视频数据,所述服务器预先对所述视频标识对应的视频数据以预设时间长度为单位进行分段切割,所述部分视频数据中包括与所述下载时间段对应的各分段视频数据。Receiving and storing part of the video data sent by the server according to the video download request, the server pre-cuts the video data corresponding to the video identifier in units of a preset time length, where the partial video data includes Each piece of video data corresponding to the download time period.
本申请实施例提供的视频下载方法,当检测到用户在观看视频的过程中在视频播放界面中触发了下载操作时,根据用户输入的下载时间段,向服务器发送携带有视频标识和下载时间段的视频下载请求。由于服务器预先对该视频标识对应的视频数据以预设时间长度为单位进行分段切割,因此,响应于用户请求的下载时间段,服务器获取对应的部分视频数据并下发至用户终端设备侧,从而用户终端设备接收并存储服务器发送的部分视频数据。通过该方案,当用户想要下载部分视频数据时,仅需要输入所需下载的部分视频数据对应的时间段即可实现部分视频数据的下载,无需下载整个视频数据,从而有效节省了用户终端设备的流量,降低了用户不需要的视频数据对终端设备存储空间的占用。The video downloading method provided by the embodiment of the present invention, when detecting that the user triggers the downloading operation in the video playing interface during the process of watching the video, sends the video identifier and the downloading time period to the server according to the downloading time period input by the user. Video download request. The server obtains the corresponding partial video data and delivers the video data to the user terminal device side in response to the downloading time period requested by the user. Thereby the user terminal device receives and stores part of the video data transmitted by the server. Through the scheme, when the user wants to download part of the video data, only the time period corresponding to the part of the video data to be downloaded needs to be input, the partial video data can be downloaded, and the entire video data does not need to be downloaded, thereby effectively saving the user terminal device. The traffic reduces the occupation of the terminal device storage space by the video data that the user does not need.
本申请实施例提供一种视频下载装置,包括:The embodiment of the present application provides a video downloading apparatus, including:
检测模块,用于检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,所述提示信息用于提示所述用户输入下载时间段;a detecting module, configured to detect that the user triggers a download operation in the video playing interface, and sends a prompting message to the user, where the prompting information is used to prompt the user to input a downloading time period;
第一接收模块,用于接收所述用户输入的下载时间段;a first receiving module, configured to receive a download time period input by the user;
发送模块,用于向服务器发送视频下载请求,所述视频下载请求中包括视频标识和用户输入的下载时间段;a sending module, configured to send a video download request to the server, where the video download request includes a video identifier and a download time period input by the user;
第二接收模块,用于接收所述服务器根据所述视频下载请求发送的部分视频数据,所述服务器预先对所述视频标识对应的视频数据以预设时间长度 为单位进行分段切割,所述部分视频数据中包括与所述下载时间段对应的各分段视频数据;a second receiving module, configured to receive part of video data that is sent by the server according to the video download request, where the server pre-sets video data corresponding to the video identifier by a preset time length Segment cutting the unit, the partial video data includes each segment video data corresponding to the download time period;
存储模块,用于存储所述部分视频数据。a storage module, configured to store the partial video data.
本申请实施例提供的视频下载装置,当检测模块检测到用户在观看视频的过程中在视频播放界面中触发了下载操作时,发送模块根据第一接收模块接收到的用户输入的下载时间段,向服务器发送携带有视频标识和下载时间段的视频下载请求。由于服务器预先对该视频标识对应的视频数据以预设时间长度为单位进行分段切割,因此,响应于用户请求的下载时间段,服务器获取对应的部分视频数据并下发至用户终端设备侧,从而用户终端设备通过第二接收模块接收并存储服务器发送的部分视频数据。通过该方案,当用户想要下载部分视频数据时,仅需要输入所需下载的部分视频数据对应的时间段即可实现部分视频数据的下载,无需下载整个视频数据,从而有效节省了用户终端设备的流量,降低了用户不需要的视频数据对终端设备存储空间的占用。The video downloading apparatus provided by the embodiment of the present application, when the detecting module detects that the downloading operation is triggered in the video playing interface during the process of watching the video, the sending module receives the downloading time period of the user input according to the first receiving module. A video download request carrying a video identification and a download time period is sent to the server. The server obtains the corresponding partial video data and delivers the video data to the user terminal device side in response to the downloading time period requested by the user. Thereby, the user terminal device receives and stores part of the video data sent by the server through the second receiving module. Through the scheme, when the user wants to download part of the video data, only the time period corresponding to the part of the video data to be downloaded needs to be input, the partial video data can be downloaded, and the entire video data does not need to be downloaded, thereby effectively saving the user terminal device. The traffic reduces the occupation of the terminal device storage space by the video data that the user does not need.
本申请实施例还提供一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行本申请上述任一项视频下载方法。The embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions for performing the above video downloading method of the present application.
本申请实施例提供一种视频下载电子设备,包括:至少一个处理器;以及,An embodiment of the present application provides a video downloading electronic device, including: at least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述一个处理器执行的指令,所述指令被被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请上述任一项视频下载方法。The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the video download method of any of the above-described embodiments of the present application.
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请上述任一项视频下载方法。 The embodiment of the present application further provides a computer program product, the computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer The computer is caused to perform any of the above video downloading methods of the present application.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为本申请视频下载方法实施例一的流程图;1 is a flowchart of Embodiment 1 of a video downloading method of the present application;
图2为本申请视频下载方法实施例二的流程图;2 is a flowchart of Embodiment 2 of a video downloading method of the present application;
图3为本申请视频下载方法实施例三的流程图;3 is a flowchart of Embodiment 3 of a video downloading method of the present application;
图4为本申请视频下载装置实施例一的结构示意图;4 is a schematic structural diagram of Embodiment 1 of a video downloading apparatus according to the present application;
图5为本申请视频下载装置实施例二的结构示意图;FIG. 5 is a schematic structural diagram of Embodiment 2 of a video downloading apparatus according to the present application;
图6为本申请视频下载电子设备实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of a video downloading electronic device according to the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present application are for the purpose of describing particular embodiments only, and are not intended to limit the application. The singular forms "a", "the", and "the"
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。 It should be understood that the term "and/or" as used herein is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, while A and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应当理解,尽管在本申请实施例中可能采用术语第一、第二、第三等来描述XXX,但这些XXX不应限于这些术语。这些术语仅用来将XXX彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一XXX也可以被称为第二XXX,类似地,第二XXX也可以被称为第一XXX。It should be understood that although the terms first, second, third, etc. may be used to describe XXX in the embodiments of the present application, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, the first XXX may also be referred to as a second XXX without departing from the scope of the embodiments of the present application. Similarly, the second XXX may also be referred to as a first XXX.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if" and "if" as used herein may be interpreted to mean "when" or "when" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrase "if determined" or "if detected (conditions or events stated)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event) "Time" or "in response to a test (condition or event stated)".
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。It should also be noted that the terms "including", "comprising" or "comprising" or any other variations thereof are intended to encompass a non-exclusive inclusion, such that the item or system comprising a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such goods or systems. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the item or system including the element, without further limitation.
图1为本申请视频下载方法实施例一的流程图,该实施例提供的视频下载方法可以由视频下载装置执行,该视频下载装置设置在诸如智能手机、平板电脑、笔记本电脑、PC机等用户侧的终端设备中。该视频下载方法的目的是从服务器中下载用户所需的部分视频数据。1 is a flowchart of Embodiment 1 of a video downloading method of the present application. The video downloading method provided by the embodiment may be performed by a video downloading device, and the video downloading device is installed in a user such as a smart phone, a tablet computer, a notebook computer, a PC, and the like. In the terminal device on the side. The purpose of this video download method is to download part of the video data required by the user from the server.
如图1所示,该方法可以包括如下步骤:As shown in FIG. 1, the method may include the following steps:
步骤101、检测到用户在视频播放界面中触发了下载操作,向用户发出提示信息,提示信息用于提示用户输入下载时间段。Step 101: It is detected that the user triggers a download operation in the video play interface, and sends a prompt message to the user, where the prompt information is used to prompt the user to input the download time period.
步骤102、接收用户输入的下载时间段。Step 102: Receive a download time period input by a user.
本实施例中假设用户正在观看某个视频,当其在终端设备上观看该视频的过程中,如果想要下载部分视频数据,触发本实施例提供的视频下载方法。值得说明的是,如果用户想要下载的是整个视频数据,该整个视频数据相当于是特殊的部分视频数据,同样也可以采用本实施例提供的方法实现,因此,本实施例中所述的部分,是强调可以采用该方法实现部分视频数据的下载,但是并非限定只能下载部分视频数据。 In this embodiment, it is assumed that the user is watching a certain video. In the process of watching the video on the terminal device, if the partial video data is to be downloaded, the video downloading method provided in this embodiment is triggered. It should be noted that, if the user wants to download the entire video data, the entire video data is equivalent to a special partial video data, and can also be implemented by the method provided in this embodiment. Therefore, the part described in this embodiment is It is emphasized that this method can be used to download part of the video data, but it is not limited to downloading part of the video data.
实际应用中,用户触发下载的方式与现有的下载触发方式类似,都可以通过点击视频播放界面中的下载按钮触发。但是,与现有方式不同的是,本实施例中,当检测到用户在观看视频的过程中,点击了下载按钮,则可以通过提示框等形式在界面中显示提示信息,以提示用户输入其想要下载的时间段。In actual applications, the user triggers the download in a similar manner to the existing download trigger mode, which can be triggered by clicking the download button in the video playback interface. However, in the embodiment, when detecting that the user clicks the download button during the process of watching the video, the prompt information may be displayed in the interface through a prompt box or the like to prompt the user to input the prompt information. The time period you want to download.
其中,本实施例中所述的下载时间段,是指视频数据对应的播放时段,可以以下载起始时间点和下载结束时间点组成,分别对应于视频数据的两个播放时间。The download time period in the embodiment refers to a play period corresponding to the video data, and may be composed of a download start time point and a download end time point, respectively corresponding to two play times of the video data.
作为一种可选的实现方式,当检测到用户选中了视频播放界面中显示的下载按钮时,可以在视频播放界面的预设区域中显示输入框,该输入框用于提供给用户输入下载时间段。As an optional implementation manner, when it is detected that the user selects the download button displayed in the video playing interface, an input box may be displayed in a preset area of the video playing interface, and the input box is used to provide the user with a downloading time. segment.
相应的,接收用户从输入框中输入的下载时间段,下载时间段包括下载起始时间点和下载结束时间点,比如用户输入的下载起始时间点和下载结束时间点分别为30min,90min,意味着用户想要下载视频播放时间为30min至90min的视频数据。Correspondingly, the downloading time period input by the user from the input box is included, and the downloading time period includes a download start time point and a download end time point, for example, the download start time point and the download end time point input by the user are 30 min, 90 min, respectively. This means that the user wants to download video data with a video playback time of 30min to 90min.
可选的,该提示信息中除了包含提示用户输入下载时间段的信息外,还可以根据实际应用中一般会涉及到的部分下载情况,设置下载选项供用户选择,比如提示信息中还可以包括诸如:下载未看的剩余部分的选项,从而,当用户想要下载没有观看的剩余视频数据时,可以通过勾选该选项实现下载时间段的输入。Optionally, in addition to the information prompting the user to input the download time period, the prompt information may further set a download option for the user to select according to a partial download situation generally involved in the actual application, for example, the prompt information may also include, for example, : Download the option of the remaining part that is not seen, so that when the user wants to download the remaining video data that is not viewed, the input of the download time period can be realized by checking this option.
步骤103、向服务器发送视频下载请求,视频下载请求中包括视频标识和用户输入的下载时间段。Step 103: Send a video download request to the server, where the video download request includes a video identifier and a download time period input by the user.
当接收到用户输入的下载时间段后,生成视频下载请求,并向服务器发送该视频下载请求。其中,视频标识可以是视频数据对应的统一资源定位符(URL),也可以是视频数据的名称等用于唯一性标识视频数据的标识。After receiving the download time period input by the user, a video download request is generated, and the video download request is sent to the server. The video identifier may be a uniform resource locator (URL) corresponding to the video data, or may be an identifier for uniquely identifying the video data, such as a name of the video data.
步骤104、接收并存储服务器根据视频下载请求发送的部分视频数据,部分视频数据中包括与下载时间段对应的各分段视频数据,服务器预先对视频标识对应的视频数据以预设时间长度为单位进行分段切割。 Step 104: Receive and store part of the video data sent by the server according to the video download request, where the part of the video data includes each piece of video data corresponding to the download time period, and the server pre-determines the video data corresponding to the video identifier by a preset time length. Perform segmentation cutting.
服务器接收到该视频下载请求后,首先基于视频标识确定对应的视频数据,进而从视频数据中获取用户请求下载的部分视频数据。After receiving the video download request, the server first determines corresponding video data based on the video identifier, and then obtains part of the video data that the user requests to download from the video data.
实际应用中,服务器可以针对每个视频进行以预设时间长度为单位进行分段切割,比如按照1s、5s或者1min等时间单位进行视频分段切割。因此,当服务器接收到用户所请求的下载时间段后,可以基于该下载时间段,截取视频数据中与该下载时间段匹配的部分视频数据。In practical applications, the server can perform segmentation cutting for each video in units of preset time lengths, for example, video segmentation cutting according to time units such as 1s, 5s or 1min. Therefore, after the server receives the download time period requested by the user, part of the video data in the video data that matches the download time period may be intercepted based on the download time period.
值得说明的是,一般来说,用户自行输入的下载时间段一般可以精确到分钟(min),如果精确到秒(s)对于用户来说难度较大,因此,如果用户输入下载时间段的方式是手动自行输入的方式,相应的视频数据分割的时间单位可以设置为1min,即将完整的视频数据按照1min进行分段切割,每个视频分段以对应的时间标识来表示。在获取用户的下载时间段对应的部分视频数据时,比如用户输入的下载时间段为(30min,90min),则服务器查询获取时间标识分别为30min、31min……、90min的各个视频分段,这些视频分段构成了与该下载时间段匹配的部分视频数据,下发给终端设备。终端设备接收并存储服务器根据视频下载请求发送的部分视频数据,以便于用户可以接着看其没有观看完的部分视频内容。It is worth noting that, in general, the download time period input by the user can be accurate to the minute (min). If the second (s) is accurate, it is difficult for the user. Therefore, if the user inputs the download time period. It is a manual self-input method. The time unit of the corresponding video data segmentation can be set to 1 min, that is, the complete video data is segmentally cut according to 1 min, and each video segment is represented by a corresponding time stamp. When the partial video data corresponding to the download period of the user is obtained, for example, the download time period input by the user is (30 min, 90 min), the server queries the acquisition time stamps for each video segment of 30 min, 31 min, and 90 min, respectively. The video segment constitutes part of the video data that matches the download time period and is delivered to the terminal device. The terminal device receives and stores part of the video data sent by the server according to the video download request, so that the user can then view part of the video content that he has not watched.
本实施例中,当检测到用户在观看视频的过程中在视频播放界面中触发了下载操作时,根据用户输入的下载时间段,向服务器发送携带有视频标识和下载时间段的视频下载请求。由于服务器预先对该视频标识对应的视频数据以预设时间长度为单位进行分段切割,因此,响应于用户请求的下载时间段,服务器获取对应的部分视频数据并下发至用户终端设备侧,从而用户终端设备接收并存储服务器发送的部分视频数据。通过该方案,当用户想要下载部分视频数据时,仅需要输入所需下载的部分视频数据对应的时间段即可实现部分视频数据的下载,无需下载整个视频数据,从而有效节省了用户终端设备的流量,降低了用户不需要的视频数据对终端设备存储空间的占用。In this embodiment, when it is detected that the download operation is triggered in the video play interface during the process of watching the video, the video download request carrying the video identifier and the download time period is sent to the server according to the download time period input by the user. The server obtains the corresponding partial video data and delivers the video data to the user terminal device side in response to the downloading time period requested by the user. Thereby the user terminal device receives and stores part of the video data transmitted by the server. Through the scheme, when the user wants to download part of the video data, only the time period corresponding to the part of the video data to be downloaded needs to be input, the partial video data can be downloaded, and the entire video data does not need to be downloaded, thereby effectively saving the user terminal device. The traffic reduces the occupation of the terminal device storage space by the video data that the user does not need.
图2为本申请视频下载方法实施例二的流程图,如图2所示,在图1所示实施例基础上,上述步骤101和步骤102可以通过如下具体的步骤实现: 2 is a flowchart of Embodiment 2 of the video downloading method of the present application. As shown in FIG. 2, based on the embodiment shown in FIG. 1, the foregoing steps 101 and 102 can be implemented by the following specific steps:
步骤201、检测到用户选中了视频播放界面中显示的下载按钮,在视频播放界面的预设区域中显示输入框,输入框用于输入下载时间段。Step 201: It is detected that the user selects the download button displayed in the video play interface, and an input box is displayed in a preset area of the video play interface, and the input box is used to input a download time period.
步骤202、确定用户选中下载按钮时,播放进度条所对应的播放时间点为下载起始时间点。Step 202: When it is determined that the user selects the download button, the play time point corresponding to the play progress bar is the download start time point.
步骤203、根据视频的总时间长度确定下载结束时间点。Step 203: Determine a download end time point according to the total length of time of the video.
步骤204、将下载起始时间点和下载结束时间点显示在输入框中。Step 204: Display the download start time point and the download end time point in the input box.
步骤205、接收用户通过输入框输入的确认指示。Step 205: Receive an acknowledgement input by the user through the input box.
步骤205之后可以继续执行上述步骤103和步骤104。After step 205, the above steps 103 and 104 can be continued.
本实施例中提供了另一种下载时间段输入方式,该输入方式对应的应用场景是用户想要下载未观看完的剩余视频数据。可以承接于图1所示实施例提供的用户勾选了下载未看的剩余部分的选项之后执行,也可以在显示输入框之后随即执行。Another downloading time segment input mode is provided in this embodiment. The application scenario corresponding to the input mode is that the user wants to download the remaining video data that has not been viewed. It can be executed after the user provided in the embodiment shown in FIG. 1 selects the option to download the remaining portion that is not seen, or can be executed immediately after the input box is displayed.
具体来说,当检测到用户选中了视频播放画面中的下载按钮时,确定用户想要进行视频下载,此时,通过检测视频播放画面中播放进度条所对应的播放时间点,该播放时间点为用户当前所观看到的时间点,可以默认设置该播放时间点为下载起始时间点。Specifically, when it is detected that the user selects the download button in the video play screen, it is determined that the user wants to perform video downloading. At this time, by detecting the play time point corresponding to the play progress bar in the video play screen, the play time point. For the time point currently viewed by the user, the playback time point can be set as the download start time point by default.
并且,针对用户想要下载剩余的视频数据的情况,每个视频数据都具有一定的时间长度,该时间长度是完整视频数据的时间长度,因此,可以根据该时间长度确定下载结束时间点,将该下载起始时间点和下载结束时间点显示在输入框中。如果检测到用户通过点击输入框中的确定按钮发出确认指示,则说明用户确定要下载该下载起始时间点和下载结束时间点之间的视频数据,进而进行后续的下载处理。Moreover, for the case where the user wants to download the remaining video data, each video data has a certain length of time, which is the length of time of the complete video data, and therefore, the download end time point can be determined according to the length of time, The download start time point and the download end time point are displayed in the input box. If it is detected that the user issues a confirmation indication by clicking the OK button in the input box, the user determines that the video data between the download start time point and the download end time point is to be downloaded, and then the subsequent download process is performed.
值得说明的是,如果用户想要下载的不是未观看的剩余视频数据,当输入框中显示上述下载起始时间点和下载结束时间点后,用户可以通过更改下载起始时间点和/或下载结束时间点,实现其所想要下载的其他下载时间段的输入。It is worth noting that if the user wants to download the remaining video data that is not being viewed, after the above-mentioned download start time point and download end time point are displayed in the input box, the user can change the download start time point and/or download. End the point in time and enter the input for the other download time period that you want to download.
本实施例中,针对用户想要下载未观看完的剩余视频数据的情况,通过 对播放进度条当前位置的检测以及基于视频数据完整长度,可以自动确定下载起始时间点和下载结束时间点,无需用户手动输入,方便了用户下载部分视频数据的操作。In this embodiment, for the case where the user wants to download the remaining video data that has not been viewed, The detection of the current position of the play progress bar and the complete length of the video data can automatically determine the download start time point and the download end time point, without the user having to manually input, which facilitates the user to download part of the video data.
图3为本申请视频下载方法实施例三的流程图,如图3所示,在图1所示实施例基础上,上述步骤101和步骤102可以通过如下具体的步骤实现:FIG. 3 is a flowchart of Embodiment 3 of the video downloading method of the present application. As shown in FIG. 3, based on the embodiment shown in FIG. 1, the foregoing steps 101 and 102 can be implemented by the following specific steps:
步骤301、检测到用户选中了视频播放界面中显示的下载按钮,将播放进度条的操作模式由播放进度调节模式转换为下载选择模式,并向用户发出提示信息,提示信息用于提示用户拖动播放进度条输入下载时间段。Step 301: It is detected that the user selects the download button displayed in the video play interface, and converts the operation mode of the play progress bar from the play progress adjustment mode to the download selection mode, and sends a prompt message to the user, and the prompt information is used to prompt the user to drag Play the progress bar and enter the download time period.
步骤302、确定播放进度条被拖动至的第一位置所对应的时间点为下载起始时间点,播放进度条被拖动至的第二位置所对应的时间点为下载结束时间点。Step 302: Determine a time point corresponding to the first position to which the play progress bar is dragged to be a download start time point, and a time point corresponding to the second position to which the play progress bar is dragged to be a download end time point.
步骤302之后可以继续执行上述步骤103和步骤104。After step 302, the above steps 103 and 104 can be continued.
本实施例中提供了另一种下载时间段输入的方式,即用户通过拖动播放进度条实现下载时间段的输入。Another way of downloading the time period input is provided in this embodiment, that is, the user inputs the download time period by dragging the play progress bar.
具体来说,由于播放进度条在正常播放的时候指示了视频的播放进度,即当前已经播放至某个时间点。如果在播放过程中拖动播放进度条,其意义是调整播放的时间点,比如将播放进度条从10min处拖动至30min处,意味着10min至30min之间的视频被跳过,从30min处开始播放。Specifically, since the play progress bar indicates the progress of the video playback during normal play, that is, it has been played to a certain time point. If you drag the play progress bar during playback, the meaning is to adjust the time point of playback, such as dragging the play progress bar from 10min to 30min, meaning that the video between 10min and 30min is skipped, from 30min Start playing.
本实施例将上述正常播放时播放进度条的操作模式称为播放进度调节模式,将用户触发下载视频后播放进度条的操作模式称为下载选择模式。当检测到用户选中了视频播放界面中显示的下载按钮而触发了下载视频的操作后,将播放进度条的操作模式由播放进度调节模式转换为下载选择模式,此时,播放进度条的拖动将不会导致播放进度的调整。通过视频播放界面可以向用户发出提示信息,以提示用户拖动播放进度条输入下载时间段。In this embodiment, the operation mode of the play progress bar during the normal play is referred to as a play progress adjustment mode, and the operation mode of the play progress bar after the user triggers the download of the video is referred to as a download selection mode. After detecting that the user selects the download button displayed in the video play interface and triggers the operation of downloading the video, the operation mode of the play progress bar is converted from the play progress adjustment mode to the download selection mode. At this time, the play progress bar is dragged. Will not cause adjustments in playback progress. Through the video play interface, a prompt message can be sent to the user to prompt the user to drag the play progress bar to input the download time period.
此时,用户可以通过拖动播放进度条来确定下载时间段对应的下载起始时间点和下载结束时间点。从而确定播放进度条被拖动至的第一位置所对应 的时间点为下载起始时间点,播放进度条被拖动至的第二位置所对应的时间点为下载结束时间点。进而在向服务器发送的视频下载请求中携带确定出的该下载起始时间点和下载结束时间点,实现部分视频数据的下载。At this time, the user can determine the download start time point and the download end time point corresponding to the download time period by dragging the play progress bar. Thereby determining that the playback progress bar is dragged to the first position The time point is the download start time point, and the time point corresponding to the second position to which the play progress bar is dragged is the download end time point. Then, the determined download start time point and the download end time point are carried in the video download request sent to the server, so that partial video data is downloaded.
本实施例中,通过定义播放进度条在不同的条件下处于不同的操作模式,当用户想要下载部分视频时,通过转换播放进度条的操作模式至下载选择模式,通过拖动播放进度条可以方便地实现下载时间段的输入,从而提高了部分视频下载的处理效率。In this embodiment, by defining the play progress bar in different operation modes under different conditions, when the user wants to download part of the video, by converting the operation mode of the play progress bar to the download selection mode, the play progress bar can be dragged by dragging. Conveniently implement the input of the download time period, thereby improving the processing efficiency of some video downloads.
图4为本申请视频下载装置实施例一的结构示意图,如图4所示,该装置包括:检测模块11、第一接收模块12、发送模块13、第二接收模块14、存储模块15。4 is a schematic structural diagram of Embodiment 1 of a video downloading apparatus of the present application. As shown in FIG. 4, the apparatus includes: a detecting module 11, a first receiving module 12, a sending module 13, a second receiving module 14, and a storage module 15.
检测模块11,用于检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,所述提示信息用于提示所述用户输入下载时间段。The detecting module 11 is configured to detect that the user triggers a download operation in the video playing interface, and sends a prompting message to the user, where the prompting information is used to prompt the user to input a downloading time period.
第一接收模块12,用于接收所述用户输入的下载时间段。The first receiving module 12 is configured to receive a download time period input by the user.
发送模块13,用于向服务器发送视频下载请求,所述视频下载请求中包括视频标识和用户输入的下载时间段。The sending module 13 is configured to send a video download request to the server, where the video download request includes a video identifier and a download time period input by the user.
第二接收模块14,用于接收所述服务器根据所述视频下载请求发送的部分视频数据,所述服务器预先对所述视频标识对应的视频数据以预设时间长度为单位进行分段切割,所述部分视频数据中包括与所述下载时间段对应的各分段视频数据。The second receiving module 14 is configured to receive part of the video data that is sent by the server according to the video download request, and the server pre-cuts the video data corresponding to the video identifier by a preset time length. The segment video data corresponding to the download time period is included in the partial video data.
存储模块15,用于存储所述部分视频数据。The storage module 15 is configured to store the partial video data.
其中,可选的,所述检测模块11具体用于:检测到所述用户选中了所述视频播放界面中显示的下载按钮,在所述视频播放界面的预设区域中显示输入框,所述输入框用于输入所述下载时间段。Optionally, the detecting module 11 is configured to: detect that the user selects a download button displayed in the video playing interface, and display an input box in a preset area of the video playing interface, where An input box is used to enter the download time period.
相应可选的,所述第一接收模块12具体用于:接收所述用户从所述输入框中输入的下载时间段,所述下载时间段包括下载起始时间点和下载结束时间点。 Correspondingly, the first receiving module 12 is specifically configured to: receive a download time period input by the user from the input box, where the download time period includes a download start time point and a download end time point.
图4所示装置可以执行图1所示实施例的方法,本实施例未详细描述的部分,可参考对图1的相关说明。The apparatus shown in FIG. 4 can perform the method of the embodiment shown in FIG. 1. For the parts not described in detail in this embodiment, reference may be made to the related description of FIG.
本申请实施例的技术方案具有以下有益效果:The technical solution of the embodiment of the present application has the following beneficial effects:
当检测模块检测到用户在观看视频的过程中在视频播放界面中触发了下载操作时,发送模块根据第一接收模块接收到的用户输入的下载时间段,向服务器发送携带有视频标识和下载时间段的视频下载请求。由于服务器预先对该视频标识对应的视频数据以预设时间长度为单位进行分段切割,因此,响应于用户请求的下载时间段,服务器获取对应的部分视频数据并下发至用户终端设备侧,从而用户终端设备通过第二接收模块接收并存储服务器发送的部分视频数据。通过该方案,当用户想要下载部分视频数据时,仅需要输入所需下载的部分视频数据对应的时间段即可实现部分视频数据的下载,无需下载整个视频数据,从而有效节省了用户终端设备的流量,降低了用户不需要的视频数据对终端设备存储空间的占用。When the detecting module detects that the downloading operation is triggered in the video playing interface during the process of watching the video, the sending module sends the video identifier and the downloading time to the server according to the downloading time period of the user input received by the first receiving module. Segment video download request. The server obtains the corresponding partial video data and delivers the video data to the user terminal device side in response to the downloading time period requested by the user. Thereby, the user terminal device receives and stores part of the video data sent by the server through the second receiving module. Through the scheme, when the user wants to download part of the video data, only the time period corresponding to the part of the video data to be downloaded needs to be input, the partial video data can be downloaded, and the entire video data does not need to be downloaded, thereby effectively saving the user terminal device. The traffic reduces the occupation of the terminal device storage space by the video data that the user does not need.
图5为本申请视频下载装置实施例二的结构示意图,如图5所示,在图4所示实施例基础上,可选的,所述视频下载装置还包括:第一确定模块21、第二确定模块22、显示模块23。5 is a schematic structural diagram of Embodiment 2 of the video downloading apparatus of the present application. As shown in FIG. 5, based on the embodiment shown in FIG. 4, optionally, the video downloading apparatus further includes: a first determining module 21, Second, the module 22 and the display module 23.
第一确定模块21,用于确定所述用户选中所述下载按钮时,播放进度条所对应的播放时间点为下载起始时间点。The first determining module 21 is configured to determine, when the user selects the download button, a play time point corresponding to the play progress bar is a download start time point.
第二确定模块22,用于根据所述视频的总时间长度确定下载结束时间点。The second determining module 22 is configured to determine a download end time point according to the total time length of the video.
显示模块23,用于将所述下载起始时间点和所述下载结束时间点显示在所述输入框中。The display module 23 is configured to display the download start time point and the download end time point in the input box.
相应的,所述第一接收模块12具体用于:接收所述用户通过所述输入框输入的确认指示。Correspondingly, the first receiving module 12 is specifically configured to: receive an acknowledgement input by the user through the input box.
可选的,所述检测模块11还用于:检测到所述用户选中了所述视频播放界面中显示的下载按钮,将播放进度条的操作模式由播放进度调节模式转 换为下载选择模式,并向所述用户发出提示信息,所述提示信息用于提示所述用户拖动播放进度条输入下载时间段。Optionally, the detecting module 11 is further configured to: detect that the user selects a download button displayed in the video playing interface, and rotate an operation mode of the play progress bar from a play progress adjustment mode. Switching to the download selection mode, and issuing a prompt message to the user, the prompt information is used to prompt the user to drag the play progress bar to input the download time period.
所述第一接收模块12还用于:确定所述播放进度条被拖动至的第一位置所对应的时间点为下载起始时间点,所述播放进度条被拖动至的第二位置所对应的时间点为下载结束时间点。The first receiving module 12 is further configured to: determine a time point corresponding to the first position to which the play progress bar is dragged to be a download start time point, and the second position to which the play progress bar is dragged The corresponding time point is the download end time point.
图5所示装置可以执行图2或图3所示实施例的方法,实现原理和技术效果参考图2或图3所示实施例,不再赘述。The apparatus shown in FIG. 5 can perform the method of the embodiment shown in FIG. 2 or FIG. 3, and the implementation principle and technical effects refer to the embodiment shown in FIG. 2 or FIG. 3, and details are not described herein again.
本申请实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中适用于终端的视频下载方法。The embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, which can execute a video downloading method applicable to a terminal in any of the foregoing method embodiments.
图6为本申请视频下载电子设备实施例的结构示意图,该设备可以包括:FIG. 6 is a schematic structural diagram of an embodiment of a video downloading electronic device according to the present application, where the device may include:
一个或多个处理器601以及存储器602,图6中以一个处理器601为例。One or more processors 601 and memory 602, one processor 601 is taken as an example in FIG.
视频下载电子设备还可以包括:输入装置603和输出装置604。The video downloading electronic device may further include: an input device 603 and an output device 604.
处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接。The processor 601, the memory 602, the input device 603, and the output device 604 can be connected by a bus or other means.
存储器602作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的视频下载方法对应的程序指令/模块。处理器601通过运行存储在存储器602中的非暂态软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例视频下载方法。The memory 602 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the video download method in the embodiment of the present application. The processor 601 performs various function applications and data processing of the server by running non-transitory software programs, instructions, and modules stored in the memory 602, that is, implementing the video download method of the above method embodiment.
存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据视频下载装置的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601远程设置的存储器,这些远程存储器可以通过网络连接至视频下 载装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the video downloading device, and the like. Moreover, memory 602 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 can optionally include memory remotely located relative to the processor 601, which can be connected to the video via a network Carrier device. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置603可接收输入的数字或字符信息,以及产生与视频下载装置的用户设置以及功能控制有关的键信号输入。输出装置604可包括显示屏等显示设备。The input device 603 can receive the input digital or character information and generate a key signal input related to user settings and function control of the video download device. Output device 604 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器602中,当被所述一个或者多个处理器601执行时,执行上述任意方法实施例中的视频下载方法。The one or more modules are stored in the memory 602, and when executed by the one or more processors 601, the video downloading method in any of the above method embodiments is performed.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或 者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may be or The person may not be a physical unit, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (13)

  1. 一种视频下载方法,应用于电子设备,其特征在于,包括:A video downloading method, applied to an electronic device, comprising:
    检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,所述提示信息用于提示所述用户输入下载时间段;Detecting that the user triggers a download operation in the video play interface, and sends a prompt message to the user, where the prompt information is used to prompt the user to input a download time period;
    接收所述用户输入的下载时间段;Receiving a download time period input by the user;
    向服务器发送视频下载请求,所述视频下载请求中包括视频标识和用户输入的下载时间段;Sending a video download request to the server, where the video download request includes a video identifier and a download time period input by the user;
    接收并存储所述服务器根据所述视频下载请求发送的部分视频数据,所述服务器预先对所述视频标识对应的视频数据以预设时间长度为单位进行分段切割,所述部分视频数据中包括与所述下载时间段对应的各分段视频数据。Receiving and storing part of the video data sent by the server according to the video download request, the server pre-cuts the video data corresponding to the video identifier in units of a preset time length, where the partial video data includes Each piece of video data corresponding to the download time period.
  2. 根据权利要求1所述的方法,其特征在于,所述检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,包括:The method according to claim 1, wherein the detecting that the user triggers a download operation in the video playing interface, and issuing a prompt message to the user, includes:
    检测到所述用户选中了所述视频播放界面中显示的下载按钮,在所述视频播放界面的预设区域中显示输入框,所述输入框用于输入所述下载时间段。It is detected that the user selects a download button displayed in the video play interface, and an input box is displayed in a preset area of the video play interface, and the input box is used to input the download time period.
  3. 根据权利要求2所述的方法,其特征在于,所述接收所述用户输入的下载时间段,包括:The method of claim 2, wherein the receiving the download time period of the user input comprises:
    接收所述用户从所述输入框中输入的下载时间段,所述下载时间段包括下载起始时间点和下载结束时间点。Receiving a download time period input by the user from the input box, the download time period including a download start time point and a download end time point.
  4. 根据权利要求2所述的方法,其特征在于,所述在所述视频播放界面的预设区域中显示输入框之后,还包括:The method of claim 2, after the displaying the input box in the preset area of the video playing interface, further comprising:
    确定所述用户选中所述下载按钮时,播放进度条所对应的播放时间点为下载起始时间点;When the user selects the download button, the play time point corresponding to the play progress bar is the download start time point;
    根据所述视频的总时间长度确定下载结束时间点;Determining a download end time point according to a total length of time of the video;
    将所述下载起始时间点和所述下载结束时间点显示在所述输入框中; Displaying the download start time point and the download end time point in the input box;
    所述接收所述用户输入的下载时间段,包括:Receiving the download time period of the user input, including:
    接收所述用户通过所述输入框输入的确认指示。Receiving an acknowledgement input by the user through the input box.
  5. 根据权利要1所述的方法,其特征在于,所述检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,包括:The method according to claim 1, wherein the detecting that the user triggers a download operation in the video playing interface, and issuing the prompt information to the user, includes:
    检测到所述用户选中了所述视频播放界面中显示的下载按钮,将播放进度条的操作模式由播放进度调节模式转换为下载选择模式,并向所述用户发出提示信息,所述提示信息用于提示所述用户拖动播放进度条输入下载时间段;Detecting that the user selects the download button displayed in the video play interface, and converts the operation mode of the play progress bar from the play progress adjustment mode to the download selection mode, and sends a prompt message to the user, where the prompt information is used. The user is prompted to drag the play progress bar to input a download time period;
    所述接收所述用户输入的下载时间段,包括:Receiving the download time period of the user input, including:
    确定所述播放进度条被拖动至的第一位置所对应的时间点为下载起始时间点,所述播放进度条被拖动至的第二位置所对应的时间点为下载结束时间点。The time point corresponding to the first position to which the play progress bar is dragged is the download start time point, and the time point corresponding to the second position to which the play progress bar is dragged is the download end time point.
  6. 一种视频下载装置,其特征在于,包括:A video downloading device, comprising:
    检测模块,用于检测到用户在视频播放界面中触发了下载操作,向所述用户发出提示信息,所述提示信息用于提示所述用户输入下载时间段;a detecting module, configured to detect that the user triggers a download operation in the video playing interface, and sends a prompting message to the user, where the prompting information is used to prompt the user to input a downloading time period;
    第一接收模块,用于接收所述用户输入的下载时间段;a first receiving module, configured to receive a download time period input by the user;
    发送模块,用于向服务器发送视频下载请求,所述视频下载请求中包括视频标识和用户输入的下载时间段;a sending module, configured to send a video download request to the server, where the video download request includes a video identifier and a download time period input by the user;
    第二接收模块,用于接收所述服务器根据所述视频下载请求发送的部分视频数据,所述服务器预先对所述视频标识对应的视频数据以预设时间长度为单位进行分段切割,所述部分视频数据中包括与所述下载时间段对应的各分段视频数据;a second receiving module, configured to receive part of the video data that is sent by the server according to the video download request, where the server performs segmentation cutting on the video data corresponding to the video identifier in a preset time length. Part of the video data includes each piece of video data corresponding to the download time period;
    存储模块,用于存储所述部分视频数据。a storage module, configured to store the partial video data.
  7. 根据权利要求6所述的装置,其特征在于,所述检测模块具体用于:The device according to claim 6, wherein the detecting module is specifically configured to:
    检测到所述用户选中了所述视频播放界面中显示的下载按钮,在所述视频播放界面的预设区域中显示输入框,所述输入框用于输入所述下载时间段。 It is detected that the user selects a download button displayed in the video play interface, and an input box is displayed in a preset area of the video play interface, and the input box is used to input the download time period.
  8. 根据权利要求7所述的装置,其特征在于,所述第一接收模块具体用于:The device according to claim 7, wherein the first receiving module is specifically configured to:
    接收所述用户从所述输入框中输入的下载时间段,所述下载时间段包括下载起始时间点和下载结束时间点。Receiving a download time period input by the user from the input box, the download time period including a download start time point and a download end time point.
  9. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    第一确定模块,用于确定所述用户选中所述下载按钮时,播放进度条所对应的播放时间点为下载起始时间点;a first determining module, configured to determine, when the user selects the download button, a play time point corresponding to a play progress bar is a download start time point;
    第二确定模块,用于根据所述视频的总时间长度确定下载结束时间点;a second determining module, configured to determine a download end time point according to a total time length of the video;
    显示模块,用于将所述下载起始时间点和所述下载结束时间点显示在所述输入框中;a display module, configured to display the download start time point and the download end time point in the input box;
    所述第一接收模块具体用于:接收所述用户通过所述输入框输入的确认指示。The first receiving module is specifically configured to: receive an acknowledgement input by the user through the input box.
  10. 根据权利要求6所述的装置,其特征在于,所述检测模块还用于:检测到所述用户选中了所述视频播放界面中显示的下载按钮,将播放进度条的操作模式由播放进度调节模式转换为下载选择模式,并向所述用户发出提示信息,所述提示信息用于提示所述用户拖动播放进度条输入下载时间段;The device according to claim 6, wherein the detecting module is further configured to: detect that the user selects a download button displayed in the video playing interface, and adjust an operation mode of the play progress bar by a play progress Converting the mode to a download selection mode, and issuing a prompt message to the user, the prompt information being used to prompt the user to drag the play progress bar to input a download time period;
    所述第一接收模块还用于:确定所述播放进度条被拖动至的第一位置所对应的时间点为下载起始时间点,所述播放进度条被拖动至的第二位置所对应的时间点为下载结束时间点。The first receiving module is further configured to: determine a time point corresponding to the first position to which the play progress bar is dragged to be a download start time point, and the second position where the play progress bar is dragged to The corresponding time point is the download end time point.
  11. 一种视频下载电子设备,其特征在于,包括:A video downloading electronic device, comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任一所述方法。The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of claims 1-5.
  12. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,当所述计算机可执行指令被电子设 备执行时,使所述电子设备执行权利要求1-5任一所述方法。A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions when the computer executable instructions are electronically set When executed, the electronic device is caused to perform the method of any of claims 1-5.
  13. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被电子设备执行时,使所述电子设备执行权利要求1-5任一所述方法。 A computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by an electronic device, causing the electronic The apparatus performs the method of any of claims 1-5.
PCT/CN2016/101089 2016-06-27 2016-09-30 Video download method and apparatus, and electronic device WO2018000646A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610480009.6A CN106131689A (en) 2016-06-27 2016-06-27 Method for downloading video and device
CN201610480009.6 2016-06-27

Publications (1)

Publication Number Publication Date
WO2018000646A1 true WO2018000646A1 (en) 2018-01-04

Family

ID=57266689

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101089 WO2018000646A1 (en) 2016-06-27 2016-09-30 Video download method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN106131689A (en)
WO (1) WO2018000646A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125509A (en) * 2021-11-30 2022-03-01 深圳Tcl新技术有限公司 Video playing method and device, electronic equipment and storage medium
CN114615550A (en) * 2022-03-17 2022-06-10 北京奇艺世纪科技有限公司 Video acquisition method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135416B (en) * 2017-03-27 2019-01-08 腾讯科技(深圳)有限公司 Method for downloading video and device
CN110545470A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Media file loading method and device and storage medium
CN113747230A (en) * 2021-08-30 2021-12-03 维沃移动通信(杭州)有限公司 Audio and video processing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572523A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for downloading video by dotting on line
CN103309930A (en) * 2013-03-13 2013-09-18 四川天翼网络服务有限公司 History video searching and downloading method based on index service
CN105100839A (en) * 2015-07-14 2015-11-25 网易传媒科技(北京)有限公司 Video file downloading method, device, server and terminal equipment
CN105228007A (en) * 2015-06-12 2016-01-06 深圳市美贝壳科技有限公司 The smart download method of Set Top Box
CN105335242A (en) * 2015-11-02 2016-02-17 传线网络科技(上海)有限公司 Method and system for downloading video file at background in IOS system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088620B (en) * 2010-12-01 2014-06-18 中兴通讯股份有限公司南京分公司 Method for downloading media file in content distribution network and client
CN102088623B (en) * 2011-01-18 2013-05-01 乐视网信息技术(北京)股份有限公司 Downloading and dispatching system and method for adaptive network
CN102685554B (en) * 2012-05-24 2015-09-30 北京国双科技有限公司 The processing method of video playback and device
CN103716719B (en) * 2013-12-02 2017-03-08 乐视云计算有限公司 A kind of method for down loading of multimedia file and user terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572523A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for downloading video by dotting on line
CN103309930A (en) * 2013-03-13 2013-09-18 四川天翼网络服务有限公司 History video searching and downloading method based on index service
CN105228007A (en) * 2015-06-12 2016-01-06 深圳市美贝壳科技有限公司 The smart download method of Set Top Box
CN105100839A (en) * 2015-07-14 2015-11-25 网易传媒科技(北京)有限公司 Video file downloading method, device, server and terminal equipment
CN105335242A (en) * 2015-11-02 2016-02-17 传线网络科技(上海)有限公司 Method and system for downloading video file at background in IOS system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125509A (en) * 2021-11-30 2022-03-01 深圳Tcl新技术有限公司 Video playing method and device, electronic equipment and storage medium
CN114125509B (en) * 2021-11-30 2024-01-19 深圳Tcl新技术有限公司 Video playing method and device, electronic equipment and storage medium
CN114615550A (en) * 2022-03-17 2022-06-10 北京奇艺世纪科技有限公司 Video acquisition method and device
CN114615550B (en) * 2022-03-17 2023-12-08 北京奇艺世纪科技有限公司 Video acquisition method and device

Also Published As

Publication number Publication date
CN106131689A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2018000646A1 (en) Video download method and apparatus, and electronic device
WO2018000661A1 (en) Barrage display method and apparatus
WO2017201935A1 (en) Video playing method and apparatus
WO2017166648A1 (en) Navigation route generating method and device, and apparatus
US20210141598A1 (en) Audio command interface for a multimedia device
EP3627311B1 (en) Computer application promotion
WO2017181598A1 (en) Method and device for playing video
CN105979312B (en) Information sharing method and device
WO2017107542A1 (en) Video program obtaining method, device and system
US9766596B2 (en) Wake up to a cast alarm or an alarm plus content prompt
WO2017113840A1 (en) Information recommending method and device
WO2017113940A1 (en) Method, apparatus and electronic device for testing network speed
US10133472B2 (en) Gesture based video clipping control
US20170168705A1 (en) Method and electronic device for adjusting video progress
WO2017012380A1 (en) Multimedia information processing method, device and system, and computer storage medium
CN112995759A (en) Interactive service processing method, system, device, equipment and storage medium
WO2015109836A1 (en) Cross-screen video playing method and device
JP2016177614A (en) Conference system, information processing device, information terminal, and program
WO2017080450A1 (en) Multi-media data download method, client, server, system and storage medium
CN112969093A (en) Interactive service processing method, device, equipment and storage medium
TW201730739A (en) Information interaction method and device
WO2017088395A1 (en) Method and apparatus for multimedia preview, and mobile terminal device and computer device
WO2017140226A1 (en) Video processing method and device therefor
WO2017215236A1 (en) Playback method and earphone
WO2017032237A1 (en) Method and device for refreshing playlist

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16907042

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16907042

Country of ref document: EP

Kind code of ref document: A1