[go: up one dir, main page]

CN108965354A - A method for downloading video and audio data - Google Patents

A method for downloading video and audio data Download PDF

Info

Publication number
CN108965354A
CN108965354A CN201710350986.9A CN201710350986A CN108965354A CN 108965354 A CN108965354 A CN 108965354A CN 201710350986 A CN201710350986 A CN 201710350986A CN 108965354 A CN108965354 A CN 108965354A
Authority
CN
China
Prior art keywords
video
audio
authorization code
user terminal
audio data
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.)
Pending
Application number
CN201710350986.9A
Other languages
Chinese (zh)
Inventor
黄轶昕
张梦杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bray Tongyun Culture Communication Co ltd
Original Assignee
Beijing Bray Tongyun Culture Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bray Tongyun Culture Communication Co ltd filed Critical Beijing Bray Tongyun Culture Communication Co ltd
Priority to CN201710350986.9A priority Critical patent/CN108965354A/en
Publication of CN108965354A publication Critical patent/CN108965354A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention relates to a method for downloading video and audio data, which comprises the following steps: the server sends the video and audio data downloading prompt information to the user terminal; receiving coding information sent by a user terminal; when the coding information is video and audio coding, acquiring corresponding segment data and sending the segment data to a user terminal; sending the confirmation prompt information to the user terminal; receiving a confirmation code sent by a user terminal, and generating an authorization code acquisition instruction; acquiring a corresponding authorization code; generating authorization code prompt information and sending the authorization code prompt information to the user terminal; establishing an association relation between the authorization code and the terminal ID; receiving a video and audio data downloading request sent by a user terminal; analyzing the video and audio data downloading request to obtain a terminal ID and an authorization code; inquiring whether the authorization code obtained by analysis and the terminal ID obtained by analysis have an association relation or not; and when the association relation between the authorization code and the terminal ID is inquired, acquiring corresponding video and audio data and sending the video and audio data to the user terminal.

Description

一种视音频数据的下载方法A method for downloading video and audio data

技术领域technical field

本发明涉及数据处理领域,尤其涉及一种视音频数据的下载方法。The invention relates to the field of data processing, in particular to a method for downloading video and audio data.

背景技术Background technique

互联网上能够提供的视音频数据越来越多,同时也有越来越多的终端可以从互联网上下载视音频数据。More and more video and audio data can be provided on the Internet, and more and more terminals can download video and audio data from the Internet at the same time.

现有的互联网上视音频数据的资源包括视音频数据的授权资源,及视音频数据的未授权资源。未授权资源中可能携带有恶意软件或病毒,造成终端受到侵害,因此用户大多在授权资源中进行视音频数据的下载。在现有的授权资源中下载视音频数据的方法过程繁琐,操作复杂,给用户的使用带来极大的不便。Existing video and audio data resources on the Internet include authorized resources of video and audio data and unauthorized resources of video and audio data. Unauthorized resources may carry malicious software or viruses, causing terminal damage. Therefore, users mostly download video and audio data from authorized resources. The method for downloading video and audio data in the existing authorized resources is cumbersome and complex in operation, which brings great inconvenience to users.

发明内容Contents of the invention

本发明的目的是针对现有技术的缺陷,提供一种视音频数据的下载方法,能够基于视音频编码和授权码获得视音频数据的下载权限,下载流程简单,操作方便,给用户的使用带来极大的方便;并且能够建立授权码和用户终端之间的关联关系,在下载视音频数据时对授权码和用户终端之间的关联关系进行验证,有效的提高了对视音频数据下载权限的保护,从而实现对商家利益的保护。The purpose of the present invention is to provide a method for downloading video and audio data in view of the defects in the prior art, which can obtain the download authority of video and audio data based on video and audio coding and authorization codes. It brings great convenience; and can establish the association between the authorization code and the user terminal, and verify the association between the authorization code and the user terminal when downloading video and audio data, effectively improving the download authority of the video and audio data protection, so as to realize the protection of business interests.

有鉴于此,本发明实施例提供了一种视音频数据的下载方法,包括:In view of this, an embodiment of the present invention provides a method for downloading video and audio data, including:

服务器将视音频数据下载提示信息发送给用户终端;The server sends the video and audio data download prompt information to the user terminal;

接收用户终端发送的编码信息;Receive coded information sent by the user terminal;

判断所述编码信息是否是视音频编码;judging whether the encoding information is video and audio encoding;

当所述编码信息是所述视音频编码时,根据所述视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端;When the encoding information is the video and audio encoding, according to the video and audio encoding, obtain the corresponding segment data in the video and audio database, and send it to the user terminal;

将确认提示信息发送给所述用户终端;其中,所述确认提示信息包括确认编码;Send confirmation prompt information to the user terminal; wherein, the confirmation prompt information includes a confirmation code;

接收用户终端发送的所述确认编码,根据所述确认编码生成授权码获取指令;其中,所述授权码获取指令包括所述视音频编码和终端ID;receiving the confirmation code sent by the user terminal, and generating an authorization code acquisition instruction according to the confirmation code; wherein, the authorization code acquisition instruction includes the video and audio code and terminal ID;

根据所述视音频编码在授权码数据库中获取相对应的授权码;Obtain the corresponding authorization code in the authorization code database according to the video and audio encoding;

根据所述视音频编码和授权码生成授权码提示信息,发送给所述用户终端;Generate an authorization code prompt message according to the video and audio coding and the authorization code, and send it to the user terminal;

建立所述授权码和所述终端ID之间的关联关系,并储存在所述授权码数据库中;Establish an association between the authorization code and the terminal ID, and store it in the authorization code database;

接收所述用户终端发送的视音频数据下载请求;其中,所述视音频数据下载请求包括授权码;所述视音频数据下载请求携带终端ID;Receive the video and audio data download request sent by the user terminal; wherein, the video and audio data download request includes an authorization code; the video and audio data download request carries a terminal ID;

对所述视音频数据下载请求进行解析,解析得到所述终端ID和授权码;Analyzing the video and audio data download request to obtain the terminal ID and authorization code;

在所述授权码数据库中查询所述解析得到的授权码与所述解析得到的终端ID是否具有关联关系;Querying in the authorization code database whether the analyzed authorization code and the analyzed terminal ID have an associated relationship;

当查询到所述授权码与所述终端ID的关联关系时,根据视音频编码视音频数据库获取相对应的视音频数据,发送给用户终端。When the association between the authorization code and the terminal ID is found, the corresponding video and audio data is obtained from the video and audio coded video and audio database, and sent to the user terminal.

优选的,所述判断所述编码信息是否是视音频编码具体为:Preferably, the judging whether the encoding information is video and audio encoding is specifically:

对所述编码信息进行解析,得到编码位数;Analyzing the encoded information to obtain the number of encoded bits;

判断所述编码位数是否等于视音频编码的预设编码位数。It is judged whether the encoding bit is equal to the preset encoding bit of video and audio encoding.

优选的,所述授权码具有属性信息;所述属性信息包括第一属性和第二属性。Preferably, the authorization code has attribute information; the attribute information includes a first attribute and a second attribute.

进一步优选的,所述根据所述视音频编码在授权码数据库中获取相对应的授权码具体为:Further preferably, said obtaining the corresponding authorization code in the authorization code database according to the video and audio coding is specifically:

根据所述视音频编码在授权码数据库中获取第一属性的授权码。Obtain the authorization code of the first attribute from the authorization code database according to the video and audio code.

进一步优选的,在所述根据所述视音频编码在授权码数据库中获取相对应的授权码之后,所述方法还包括:Further preferably, after obtaining the corresponding authorization code in the authorization code database according to the video and audio encoding, the method further includes:

将所述授权码的属性信息更改第二属性。changing the attribute information of the authorization code to the second attribute.

进一步优选的,所述方法还包括:Further preferably, the method also includes:

统计每个所述视音频编码对应的第二属性的授权码的数量;Counting the number of authorization codes of the second attribute corresponding to each of the video and audio codes;

根据所述视音频编码和所述第二属性的授权码的数量生成下载统计列表数据。Generate download statistics list data according to the video and audio codes and the number of authorization codes of the second attribute.

进一步优选的,在所述判断所述编码信息是否是视音频编码之后,所述方法还包括:Further preferably, after the judging whether the encoding information is video and audio encoding, the method further includes:

当所述编码信息不是所述视音频编码时,在所述下载统计列表数据中获取所述第二属性的授权码的数量最多的视音频编码;When the encoding information is not the video and audio encoding, obtain the video and audio encoding with the largest number of authorization codes of the second attribute in the download statistics list data;

根据所述视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端。According to the video and audio coding, the corresponding segment data is obtained from the video and audio database, and sent to the user terminal.

优选的,所述确认提示信息还包括重播编码;在所述将确认提示信息发送给所述用户终端之后,所述方法还包括:Preferably, the confirmation prompt information further includes a replay code; after the confirmation prompt information is sent to the user terminal, the method further includes:

接收用户终端发送的重播编码;receiving the replay code sent by the user terminal;

将所述获取到的片段数据发送给所述用户终端。Sending the acquired segment data to the user terminal.

优选的,在所述授权码数据库中查询所述授权码与所述终端I D是否具有关联关系之后,所述方法还包括:Preferably, after inquiring whether the authorization code has an association relationship with the terminal ID in the authorization code database, the method further includes:

当没有查询到所述授权码与所述终端I D的关联关系时,生成获取失败提示信息发送给所述用户终端。When the association relationship between the authorization code and the terminal ID is not found, an acquisition failure prompt message is generated and sent to the user terminal.

本发明实施例提供的一种视音频数据的下载方法,能够基于视音频编码和授权码获得视音频数据的下载权限,下载流程简单,操作方便,给用户的使用带来极大的方便;并且能够建立授权码和用户终端之间的关联关系,在下载视音频数据时对授权码和用户终端之间的关联关系进行验证,有效的提高了对视音频数据下载权限的保护,从而实现对商家利益的保护。The method for downloading video and audio data provided by the embodiment of the present invention can obtain the download permission of video and audio data based on video and audio coding and authorization code, the download process is simple, the operation is convenient, and the use of the user brings great convenience; and It can establish the association between the authorization code and the user terminal, and verify the association between the authorization code and the user terminal when downloading the video and audio data, which effectively improves the protection of the download authority of the video and audio data, thereby realizing the protection of interests.

附图说明Description of drawings

图1为本发明实施例提供的视音频数据的下载方法流程图。FIG. 1 is a flowchart of a method for downloading video and audio data provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

本实施例提供的视音频数据的下载方法,实现于用户终端的应用中,基于授权码实现视音频数据的下载过程。常用的用户终端可以包括智能手机。The video and audio data download method provided in this embodiment is implemented in the application of the user terminal, and the video and audio data download process is realized based on the authorization code. Commonly used user terminals may include smart phones.

图1为本发明实施例提供的一种视音频数据的下载方法流程图,如图1所示,包括:Fig. 1 is a flow chart of a method for downloading video and audio data provided by an embodiment of the present invention, as shown in Fig. 1 , including:

步骤101,服务器将视音频数据下载提示信息发送给用户终端。Step 101, the server sends video and audio data download prompt information to the user terminal.

其中,视音频数据下载提示信息可以是文本、视频或音频的形式。Wherein, the video and audio data download prompt information may be in the form of text, video or audio.

在一个具体的例子中,用户终端通过用户界面向服务器发送下载请求,服务器将视音频数据下载提示信息发送给用户终端,用户终端对视音频数据下载提示信息进行解析并播放或显示,视音频数据下载提示信息为“欢迎进入正版影片下载,请输入要下载的影片编码”。In a specific example, the user terminal sends a download request to the server through the user interface, the server sends the video and audio data download prompt information to the user terminal, and the user terminal parses the video and audio data download prompt information and plays or displays the video and audio data. The download prompt message is "Welcome to the genuine video download, please enter the video code to be downloaded".

需要说明的是,在步骤101之前,服务器会将视音频数据库中的视音频数据的名称信息和相对应的视音频编码以文本、视频或音频的形式发送给用户终端,用户终端对视音频数据的名称信息和视音频编码进行显示或播放。It should be noted that before step 101, the server will send the name information of the video and audio data in the video and audio database and the corresponding video and audio encoding to the user terminal in the form of text, video or audio, and the user terminal will read the video and audio data. Display or play the name information and video and audio codes of the

步骤102,接收用户终端发送的编码信息。Step 102, receiving coded information sent by the user terminal.

其中,编码信息优选由数字构成。Among them, the encoded information is preferably composed of numbers.

步骤103,判断编码信息是否是视音频编码。Step 103, judging whether the encoding information is video and audio encoding.

其中,视音频编码的位数是预设的,且每个视音频数据对应的视音频编码位数相同。Wherein, the number of video and audio coding bits is preset, and the video and audio coding bits corresponding to each video and audio data are the same.

具体的,服务器对用户终端发送的编码信息进行解析,得到编码位数;判断编码位数是否等于视音频编码的预设编码位数。Specifically, the server parses the encoding information sent by the user terminal to obtain encoding bits; and judges whether the encoding bits are equal to the preset encoding bits of the video and audio encoding.

当编码信息是视音频编码时,执行步骤104,根据视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端。When the coding information is video and audio coding, execute step 104, and obtain corresponding segment data from the video and audio database according to the video and audio coding, and send it to the user terminal.

其中,视音频数据库中储存多个视音频数据、相对应的片段数据和视音频编码。Wherein, the video and audio database stores a plurality of video and audio data, corresponding segment data and video and audio codes.

片段数据是指视音频数据的一部分片段,比如视频或音频的宣传片花。Fragment data refers to a part of video and audio data, such as video or audio promotional clips.

具体的,当编码信息的编码位数与视音频编码的预设编码位数相等时,编码信息即为视音频编码;根据视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端;用户终端对片段数据进行解析和播放。Specifically, when the number of coding bits of the coding information is equal to the preset coding bits of the video and audio coding, the coding information is video and audio coding; according to the video and audio coding, the corresponding segment data is obtained in the video and audio database, and sent To the user terminal; the user terminal parses and plays the segment data.

步骤105,将确认提示信息发送给用户终端。Step 105, sending confirmation prompt information to the user terminal.

其中,确认提示信息可以是文本、视频或音频的形式;确认提示信息中包括确认编码,用于用户对要下载的视音频数据的确认。Wherein, the confirmation prompt information may be in the form of text, video or audio; the confirmation prompt information includes a confirmation code, which is used for the user to confirm the video and audio data to be downloaded.

在确认提示信息中还包括费用信息以及费用支付方式。The confirmation prompt information also includes fee information and a fee payment method.

在一个具体的例子中,确认提示信息为音频形式;用户终端对确认提示信息进行解析和播放,播放的确认提示信息为“该影片的资费为2元,确认购买该影片的授权请在按1号键”。In a specific example, the confirmation prompt information is in the form of audio; the user terminal parses and plays the confirmation prompt information, and the played confirmation prompt information is "The fee for this film is 2 yuan, please press 1 to confirm the authorization to purchase this film number key".

在优选的实施例中,确认提示信息还包括重播编码,用以提示用户可以对片段进行重复播放。播放的确认提示信息为“该影片的资费为2元,确认购买该影片的授权请在按1号键,重复播放上一个片段,按2号键”。用户终端接收用户输入的重播编码2,并发送给服务器;服务器将获取到的片段数据发送给用户终端,用户终端对片段数据进行解析和播放,在此之后重新执行步骤105。In a preferred embodiment, the confirmation prompt information further includes a replay code, which is used to prompt the user that the segment can be played repeatedly. The confirmation prompt message of playing is "the fee of this movie is 2 yuan, please press the No. 1 button to confirm the authorization to purchase the movie, and press the No. 2 button to repeat the previous clip". The user terminal receives the replay code 2 input by the user and sends it to the server; the server sends the acquired segment data to the user terminal, and the user terminal parses and plays the segment data, and then executes step 105 again.

步骤106,接收用户终端发送的确认编码,根据确认编码生成授权码获取指令。Step 106, receiving the confirmation code sent by the user terminal, and generating an authorization code acquisition instruction according to the confirmation code.

其中,授权码获取指令包括视音频编码和终端ID。Wherein, the authorization code acquisition instruction includes video and audio encoding and terminal ID.

在一个具体的例子中,服务器接收用户终端发送的确认编码,根据资费在用户终端对应的话费账户上扣除资费,然后生成授权码获取指令。In a specific example, the server receives the confirmation code sent by the user terminal, deducts the tariff from the corresponding call account of the user terminal according to the tariff, and then generates an authorization code acquisition instruction.

步骤107,根据视音频编码在授权码数据库中获取相对应的授权码。Step 107, obtain the corresponding authorization code from the authorization code database according to the video and audio code.

其中,授权码数据库储存视音频编码以及授权码,一个视音频编码对应多个授权码,以供不同的用户获得下载权限。Wherein, the authorization code database stores video and audio codes and authorization codes, and one video and audio code corresponds to multiple authorization codes for different users to obtain download permissions.

授权码具有属性信息;属性信息包括第一属性和第二属性,第一属性为未使用,用以标示该授权码没有发送给用户;第二属性为已经使用,用以指示该授权码已经发送给用户,不能再发送给其他用户了。The authorization code has attribute information; the attribute information includes a first attribute and a second attribute, the first attribute is unused, which is used to indicate that the authorization code has not been sent to the user; the second attribute is used, which is used to indicate that the authorization code has been sent To the user, it can no longer be sent to other users.

具体的,根据视音频编码,在授权码数据库中随机获取一个属性信息为第一属性的授权码。Specifically, according to video and audio coding, an authorization code whose attribute information is the first attribute is randomly obtained from the authorization code database.

在获取之后,将该授权码的属性信息更改第二属性,并进行储存。After the acquisition, the attribute information of the authorization code is changed to the second attribute and stored.

步骤108,根据视音频编码和授权码生成授权码提示信息,发送给用户终端。Step 108, generate authorization code prompt information according to the video and audio code and the authorization code, and send it to the user terminal.

其中,授权码提示信息可以是以短信的方式发送至用户终端,用户终端对授权码提示信息进行显示。在一个具体的例子中,授权码提示信息为:您下载影片编码为76886,授权码为8574。Wherein, the authorization code prompt information may be sent to the user terminal in the form of a short message, and the user terminal displays the authorization code prompt information. In a specific example, the authorization code prompt information is: the video code you downloaded is 76886, and the authorization code is 8574.

步骤109,建立授权码和终端ID之间的关联关系,并储存在授权码数据库中。Step 109, establishing an association relationship between the authorization code and the terminal ID, and storing it in the authorization code database.

步骤108与步骤109同时执行。Step 108 and step 109 are executed simultaneously.

步骤110,接收用户终端发送的视音频数据下载请求。Step 110, receiving a video and audio data download request sent by the user terminal.

其中,视音频数据下载请求包括授权码。Wherein, the video and audio data download request includes an authorization code.

具体的,用户可以登录特定的下载网页,用户终端接收用户输入的授权码,生成视音频数据下载请求,发送给服务器。在视音频数据下载请求中携带用户所使用的用户终端的终端ID。Specifically, the user can log in to a specific download webpage, and the user terminal receives the authorization code input by the user, generates a video and audio data download request, and sends it to the server. The terminal ID of the user terminal used by the user is carried in the video and audio data download request.

步骤111,对视音频数据下载请求进行解析,解析得到终端ID和授权码。Step 111, analyze the video and audio data download request, and obtain the terminal ID and authorization code through analysis.

具体的,服务器对用户终端发送的视音频数据下载请求进行解析,得到当前用户终端的终端ID,以及视音频数据下载请求中的授权码。Specifically, the server parses the video and audio data download request sent by the user terminal to obtain the terminal ID of the current user terminal and the authorization code in the video and audio data download request.

步骤112,在授权码数据库中查询解析得到的授权码与解析得到的终端I D是否具有关联关系。Step 112, query in the authorization code database whether the analyzed authorization code and the analyzed terminal ID have an association relationship.

在现实应用中,用户在获取到授权码之后,会将授权码分享给其他用户,其他用户通过授权码对视音频数据进行再次获取,这就造成了商家的损失;In practical applications, after the user obtains the authorization code, he will share the authorization code with other users, and other users will obtain the video and audio data again through the authorization code, which causes the loss of the merchant;

因此在本发明中,用户下载时所使用的用户终端必须是与该授权码具有关联关系的用户终端,从而避免多个用户使用同一授权码下载视音频数据的发生,进而保证商家的利益。Therefore, in the present invention, the user terminal used by the user when downloading must be the user terminal associated with the authorization code, thereby avoiding the occurrence of multiple users using the same authorization code to download video and audio data, and then ensuring the interests of the merchant.

当查询到授权码与终端I D的关联关系时,执行步骤113,根据视音频编码视音频数据库获取相对应的视音频数据,发送给用户终端。When the association between the authorization code and the terminal ID is found, step 113 is performed to obtain corresponding video and audio data from the video and audio coded video and audio database, and send it to the user terminal.

具体的,当查询到授权码和用户正在使用终端的终端ID具有关联关系时,根据视音频编码在视音频数据库中获取相对应的视音频数据的压缩文件,并发送给用户终端;用户终端对视音频数据的压缩文件进行解析和播放。Specifically, when it is found that the authorization code and the terminal ID of the terminal being used by the user have an association relationship, the compressed file of the corresponding video and audio data is obtained in the video and audio database according to the video and audio encoding, and is sent to the user terminal; Compressed files of video and audio data are analyzed and played.

其中,视音频数据可以包括电影、电视剧、综艺节目、演唱会、纪录片、歌曲等。Wherein, the video and audio data may include movies, TV dramas, variety shows, concerts, documentaries, songs, etc.

当没有查询到授权码与终端ID的关联关系时,执行步骤114,生成获取失败提示信息发送给用户终端。When the association between the authorization code and the terminal ID is not found, step 114 is executed to generate an acquisition failure prompt message and send it to the user terminal.

其中,获取失败提示信息可以以短信的形式发送给用户终端,用户终端对获取失败提示信息进行显示,用以提示用户终端ID与授权码不匹配,不能进行视音频数据的获取。Wherein, the acquisition failure prompt information can be sent to the user terminal in the form of a short message, and the user terminal displays the acquisition failure prompt information to remind the user terminal ID that the authorization code does not match, and the video and audio data cannot be acquired.

在优选的实施例中,可以通过第二属性的授权码的数量得到下载次数最多的视音频数据,因此所述方法还包括:统计每个视音频编码对应的第二属性的授权码的数量;根据视音频编码和第二属性的授权码的数量生成下载统计列表数据,在下载统计列表中,按照第二属性的授权码的数量从高多低的顺序对视音频编码进行排序。In a preferred embodiment, the most downloaded video and audio data can be obtained through the number of authorization codes of the second attribute, so the method further includes: counting the number of authorization codes of the second attribute corresponding to each video and audio code; The download statistics list data is generated according to the number of video and audio codes and the authorization codes of the second attribute. In the download statistics list, the video and audio codes are sorted in descending order according to the number of authorization codes of the second attribute.

在步骤103之后,方法还包括:当编码信息不是视音频编码时,执行步骤115,在下载统计列表数据中获取第二属性的授权码的数量最多的视音频编码。After step 103, the method further includes: when the encoding information is not video-audio encoding, performing step 115, obtaining the video-audio encoding with the largest number of authorization codes of the second attribute from the download statistics list data.

在一个具体的例子中,当用户想要得到推荐的最受欢迎的视音频数据时,可以在服务器将视音频数据下载提示信息发送给用户终端之后,随意输入,用户终端生成编码信息并发送给服务器;服务器判断编码信息不是视音频编码,将载统计列表数据中下载次数最多的视音频编码。In a specific example, when the user wants to get the recommended most popular video and audio data, after the server sends the video and audio data download prompt information to the user terminal, he can input it at will, and the user terminal generates encoding information and sends it to Server; the server judges that the encoding information is not a video and audio encoding, and loads the video and audio encoding with the most download times in the statistics list data.

步骤116,根据视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端。Step 116, according to the video and audio coding, obtain the corresponding segment data from the video and audio database, and send it to the user terminal.

用户终端对片段数据进行解析和播放。The user terminal parses and plays the segment data.

在步骤116之后执行步骤105。Step 105 is executed after step 116 .

需要说明的是,在上述步骤101至步骤116执行的过程中,用户可以通过返回编码放弃当前操作,返回编码可以是*号键;具体的,用户终端接收用户输入的返回编码,生成返回指令并发送给服务器,在此之后执行步骤101。It should be noted that during the execution of steps 101 to 116 above, the user can give up the current operation through the return code, which can be the * key; specifically, the user terminal receives the return code input by the user, generates a return command and sent to the server, after which step 101 is performed.

本发明实施例提供的视音频数据的下载方法,能够基于视音频编码和授权码获得视音频数据的下载权限,下载流程简单,操作方便,给用户的使用带来极大的方便;并且能够建立授权码和用户终端之间的关联关系,在下载视音频数据时对授权码和用户终端之间的关联关系进行验证,有效的提高了对视音频数据下载权限的保护,从而实现对商家利益的保护。The video and audio data download method provided by the embodiment of the present invention can obtain the download authority of video and audio data based on the video and audio coding and authorization code, the download process is simple, the operation is convenient, and it brings great convenience to the user; and it can establish The association between the authorization code and the user terminal, and verify the association between the authorization code and the user terminal when downloading video and audio data, effectively improves the protection of the download authority of the video and audio data, thereby realizing the protection of the interests of the merchant Protect.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (9)

1.一种视音频数据的下载方法,其特征在于,所述方法包括:1. A method for downloading video and audio data, characterized in that the method comprises: 服务器将视音频数据下载提示信息发送给用户终端;The server sends the video and audio data download prompt information to the user terminal; 接收用户终端发送的编码信息;Receive coded information sent by the user terminal; 判断所述编码信息是否是视音频编码;judging whether the encoding information is video and audio encoding; 当所述编码信息是所述视音频编码时,根据所述视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端;When the encoding information is the video and audio encoding, according to the video and audio encoding, obtain the corresponding segment data in the video and audio database, and send it to the user terminal; 将确认提示信息发送给所述用户终端;其中,所述确认提示信息包括确认编码;Send confirmation prompt information to the user terminal; wherein, the confirmation prompt information includes a confirmation code; 接收用户终端发送的所述确认编码,根据所述确认编码生成授权码获取指令;其中,所述授权码获取指令包括所述视音频编码和终端ID;receiving the confirmation code sent by the user terminal, and generating an authorization code acquisition instruction according to the confirmation code; wherein, the authorization code acquisition instruction includes the video and audio code and terminal ID; 根据所述视音频编码在授权码数据库中获取相对应的授权码;Obtain the corresponding authorization code in the authorization code database according to the video and audio encoding; 根据所述视音频编码和授权码生成授权码提示信息,发送给所述用户终端;Generate an authorization code prompt message according to the video and audio coding and the authorization code, and send it to the user terminal; 建立所述授权码和所述终端ID之间的关联关系,并储存在所述授权码数据库中;Establish an association between the authorization code and the terminal ID, and store it in the authorization code database; 接收所述用户终端发送的视音频数据下载请求;其中,所述视音频数据下载请求包括授权码;所述视音频数据下载请求携带终端ID;Receive the video and audio data download request sent by the user terminal; wherein, the video and audio data download request includes an authorization code; the video and audio data download request carries a terminal ID; 对所述视音频数据下载请求进行解析,解析得到所述终端ID和授权码;Analyzing the video and audio data download request to obtain the terminal ID and authorization code; 在所述授权码数据库中查询所述解析得到的授权码与所述解析得到的终端ID是否具有关联关系;Querying in the authorization code database whether the analyzed authorization code and the analyzed terminal ID have an associated relationship; 当查询到所述授权码与所述终端ID的关联关系时,根据视音频编码视音频数据库获取相对应的视音频数据,发送给用户终端。When the association between the authorization code and the terminal ID is found, the corresponding video and audio data is obtained from the video and audio coded video and audio database, and sent to the user terminal. 2.根据权利要求1所述的视音频数据的下载方法,其特征在于,所述判断所述编码信息是否是视音频编码具体为:2. The method for downloading video and audio data according to claim 1, wherein said judging whether said coding information is video and audio coding is specifically: 对所述编码信息进行解析,得到编码位数;Analyzing the encoded information to obtain the number of encoded bits; 判断所述编码位数是否等于视音频编码的预设编码位数。It is judged whether the encoding bit is equal to the preset encoding bit of video and audio encoding. 3.根据权利要求1所述的视音频数据的下载方法,其特征在于,所述授权码具有属性信息;所述属性信息包括第一属性和第二属性。3. The method for downloading video and audio data according to claim 1, wherein the authorization code has attribute information; and the attribute information includes a first attribute and a second attribute. 4.根据权利要求3所述的视音频数据的下载方法,其特征在于,所述根据所述视音频编码在授权码数据库中获取相对应的授权码具体为:4. The method for downloading video and audio data according to claim 3, wherein said obtaining the corresponding authorization code in the authorization code database according to said video and audio encoding is specifically: 根据所述视音频编码在授权码数据库中获取第一属性的授权码。Obtain the authorization code of the first attribute from the authorization code database according to the video and audio code. 5.根据权利要求4所述的视音频数据的下载方法,其特征在于,在所述根据所述视音频编码在授权码数据库中获取相对应的授权码之后,所述方法还包括:5. The method for downloading video and audio data according to claim 4, wherein, after obtaining the corresponding authorization code in the authorization code database according to the video and audio encoding, the method further comprises: 将所述授权码的属性信息更改第二属性。changing the attribute information of the authorization code to the second attribute. 6.根据权利要求3所述的视音频数据的下载方法,其特征在于,所述方法还包括:6. The downloading method of video and audio data according to claim 3, is characterized in that, described method also comprises: 统计每个所述视音频编码对应的第二属性的授权码的数量;Counting the number of authorization codes of the second attribute corresponding to each of the video and audio codes; 根据所述视音频编码和所述第二属性的授权码的数量生成下载统计列表数据。Generate download statistics list data according to the video and audio codes and the number of authorization codes of the second attribute. 7.根据权利要求6所述的视音频数据的下载方法,其特征在于,在所述判断所述编码信息是否是视音频编码之后,所述方法还包括:7. The method for downloading video and audio data according to claim 6, characterized in that, after said judging whether said coding information is video and audio coding, said method further comprises: 当所述编码信息不是所述视音频编码时,在所述下载统计列表数据中获取所述第二属性的授权码的数量最多的视音频编码;When the encoding information is not the video and audio encoding, obtain the video and audio encoding with the largest number of authorization codes of the second attribute in the download statistics list data; 根据所述视音频编码,在视音频数据库中获取相对应的片段数据,并发送给用户终端。According to the video and audio coding, the corresponding segment data is obtained from the video and audio database, and sent to the user terminal. 8.根据权利要求1所述的视音频数据的下载方法,其特征在于,所述确认提示信息还包括重播编码;在所述将确认提示信息发送给所述用户终端之后,所述方法还包括:8. The method for downloading video and audio data according to claim 1, wherein the confirmation prompt information also includes a replay code; after the confirmation prompt information is sent to the user terminal, the method further comprises : 接收用户终端发送的重播编码;receiving the replay code sent by the user terminal; 将所述获取到的片段数据发送给所述用户终端。Sending the acquired segment data to the user terminal. 9.根据权利要求1所述的视音频数据的下载方法,其特征在于,在所述授权码数据库中查询所述授权码与所述终端ID是否具有关联关系之后,所述方法还包括:9. The method for downloading video and audio data according to claim 1, wherein, after inquiring whether the authorization code and the terminal ID have an associated relationship in the authorization code database, the method further comprises: 当没有查询到所述授权码与所述终端ID的关联关系时,生成获取失败提示信息发送给所述用户终端。When the association relationship between the authorization code and the terminal ID is not found, an acquisition failure prompt message is generated and sent to the user terminal.
CN201710350986.9A 2017-05-17 2017-05-17 A method for downloading video and audio data Pending CN108965354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710350986.9A CN108965354A (en) 2017-05-17 2017-05-17 A method for downloading video and audio data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710350986.9A CN108965354A (en) 2017-05-17 2017-05-17 A method for downloading video and audio data

Publications (1)

Publication Number Publication Date
CN108965354A true CN108965354A (en) 2018-12-07

Family

ID=64462805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710350986.9A Pending CN108965354A (en) 2017-05-17 2017-05-17 A method for downloading video and audio data

Country Status (1)

Country Link
CN (1) CN108965354A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025321A (en) * 2015-07-28 2015-11-04 无锡天脉聚源传媒科技有限公司 Network video processing method and network video server
CN105049893A (en) * 2015-07-08 2015-11-11 无锡天脉聚源传媒科技有限公司 Video playing method and device
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
US20160156974A1 (en) * 2014-12-01 2016-06-02 Stingray Digital Group Inc. Method and system for authorizing a user device
CN105872806A (en) * 2016-05-05 2016-08-17 苏州花坞信息科技有限公司 Online video playing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
US20160156974A1 (en) * 2014-12-01 2016-06-02 Stingray Digital Group Inc. Method and system for authorizing a user device
CN105049893A (en) * 2015-07-08 2015-11-11 无锡天脉聚源传媒科技有限公司 Video playing method and device
CN105025321A (en) * 2015-07-28 2015-11-04 无锡天脉聚源传媒科技有限公司 Network video processing method and network video server
CN105872806A (en) * 2016-05-05 2016-08-17 苏州花坞信息科技有限公司 Online video playing method

Similar Documents

Publication Publication Date Title
CN109039987A (en) A kind of user account login method, device, electronic equipment and storage medium
US9075960B2 (en) Digital media content management apparatus and method
CN107241184B (en) Personal password generation and management method based on improved AES
CN103136678A (en) Identification method and device of intelligent terminal, processing method and device of identification information and identification system
CN107094261A (en) The authorization check method and device of video playback
CN104202345A (en) Verification code generating method, device and system
KR102676770B1 (en) Information processing method, information display method, program, terminal, and server
CN112529642A (en) Invoice management method, system, equipment and storage medium based on block chain
CN107040799A (en) The authorization check method and device of video playback
CN105184559A (en) System and method for payment
CN111027065B (en) Leucavirus identification method and device, electronic equipment and storage medium
CN111178995B (en) Method and system for processing bill based on cloud bill system
US8386775B2 (en) Tolerant key verification method
CN111182030B (en) Network service execution method and device
CN108965923A (en) A method for obtaining video and audio data
CN103761333A (en) Wireless txt reader and reading method thereof
CN108965354A (en) A method for downloading video and audio data
CN106131603A (en) A kind of video broadcasting method based on dynamic dictionary and system
CN111177661B (en) Copyright authentication method for building information model component and related product
CN110209890A (en) The querying method and user equipment of information browse data on block chain
CN106453273B (en) A kind of information insurance management system and method based on cloud
CN117573104A (en) Low-code development system and method based on password service
CN116723024A (en) Verification method and device for client login, electronic equipment and storage medium
CN116743481A (en) Service security management and control methods, devices, equipment and storage media
CN111582954A (en) False data identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication