CN112770144B - Video file downloading method, video file playing method, device and terminal equipment - Google Patents

Video file downloading method, video file playing method, device and terminal equipment Download PDF

Info

Publication number
CN112770144B
CN112770144B CN202011533860.3A CN202011533860A CN112770144B CN 112770144 B CN112770144 B CN 112770144B CN 202011533860 A CN202011533860 A CN 202011533860A CN 112770144 B CN112770144 B CN 112770144B
Authority
CN
China
Prior art keywords
video file
playing
file
verification
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011533860.3A
Other languages
Chinese (zh)
Other versions
CN112770144A (en
Inventor
李鸣
金泽
沈伟
杨星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Future Tv Co ltd
Original Assignee
Future Tv 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 Future Tv Co ltd filed Critical Future Tv Co ltd
Priority to CN202011533860.3A priority Critical patent/CN112770144B/en
Publication of CN112770144A publication Critical patent/CN112770144A/en
Application granted granted Critical
Publication of CN112770144B publication Critical patent/CN112770144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a video file downloading method, a video file playing device and terminal equipment, and relates to the technical field of intelligent terminals. The method comprises the following steps: responding to the operation of downloading video files, which is executed by a user on playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment; if the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk; verifying the validity of the key authentication file to obtain a verification result; and if the verification result is that the verification is successful, downloading the video file to the inserted U disk. In the scheme, the video content is downloaded to the USB flash disk by a user, the requirement that the video content is taken to an outdoor environment for watching is met, the experience of the user is improved, meanwhile, the video file can be truly protected, the potential safety hazard that the video file leaks due to the playing mode of the USB flash disk is avoided, and accordingly the playing and downloading safety and reliability of the video file are effectively improved.

Description

Video file downloading method, video file playing method, device and terminal equipment
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a video file downloading method, a video file playing device and terminal equipment.
Background
With the continuous perfection of the intelligent television and the development of multi-screen interaction technology, the intelligent television gradually becomes a new favor of consumers, and the viewing experience of high definition and large screen changes the viewing habit of user families. However, with the growth of piracy industry chains, the phenomenon that videos are copied and transcribed by illegal merchants and pirated is endless, and encryption processing is an important means for protecting information safety for videos with profitability and confidentiality.
At present, because of the complexity of the intelligent television running system, each video manufacturer simply performs authentication processing on the player on video playing authentication so as to confirm whether the player has permission to play videos. If the player has the right to play the video, the video is requested from the server and played through the player when the user requests to play the video.
However, the existing playing authentication mode does not support the user to download the video to the USB flash disk for playing, and only the video file can be played online, so that the requirement that the user needs to download the video content to the USB flash disk and bring the video content to the outdoor environment for watching cannot be met, and the experience of the user is reduced.
Disclosure of Invention
The invention aims to provide a video file downloading method, a video file playing device and terminal equipment aiming at the defects in the prior art, so that the requirements of users for downloading video content to a U disk and taking the video content to an outdoor environment for watching are met, and the experience of the users is improved.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a method for downloading a video file, including:
responding to the operation of downloading video files, which is executed by a user on playing software of terminal equipment, and determining whether a U disk is inserted into the terminal equipment;
if the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk;
carrying out validity verification on the key authentication file to obtain a verification result;
and if the verification result is that the verification is successful, downloading the video file to the inserted USB flash disk.
Optionally, the key authentication file includes: the verification code to be verified and the channel number to be verified.
Optionally, the verifying the validity of the key authentication file to obtain a verification result includes:
Judging whether the verification code to be verified is matched with the target verification code of the playing software;
judging whether the channel number to be verified is matched with a target channel number of the playing software, wherein the target channel number is formed by combining a channel name abbreviation of the playing software, a key of the playing software and an issue date of the playing software;
if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is verification success, otherwise, determining that the verification result is verification failure.
Optionally, after determining whether the usb disk is inserted into the terminal device, the method further includes:
if the USB flash disk is not inserted into the terminal equipment, outputting prompt information, wherein the prompt information is used for prompting a user to insert the USB flash disk.
Optionally, the method further comprises:
responding to the operation of playing the video file, which is executed by a user on the terminal equipment, sending a video playing request to a server, and acquiring the video file from the server;
and playing the video file online.
In a second aspect, an embodiment of the present application further provides a video file playing method, including:
Responding to the playing operation of a user on a video file on an inserted U disk, acquiring a key authentication file of the inserted U disk, and verifying the validity of the key authentication file to obtain a verification result;
and if the verification result is that the verification is successful, playing the video file.
Optionally, the method further comprises:
and if the acquisition of the key authentication file of the inserted USB flash disk fails, outputting prompt information, wherein the prompt information is used for prompting a user to have no right to play the video file.
In a third aspect, an embodiment of the present application further provides a video file downloading apparatus, where the apparatus includes: the device comprises a response module, an acquisition module, a verification module and a downloading module;
the response module is used for responding to the operation of downloading the video file, which is executed by the user on the playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment;
the acquisition module is used for acquiring a key authentication file in the inserted U disk if the U disk is inserted into the terminal equipment;
the verification module is used for verifying the validity of the key authentication file to obtain a verification result;
and the downloading module is used for downloading the video file to the inserted USB flash disk if the verification result is that the verification is successful.
Optionally, the key authentication file includes: the verification code to be verified and the channel number to be verified.
Optionally, the verification module is further configured to:
judging whether the verification code to be verified is matched with the target verification code of the playing software;
judging whether the channel number to be verified is matched with a target channel number of the playing software, wherein the target channel number is formed by combining a channel name abbreviation of the playing software, a key of the playing software and an issue date of the playing software;
if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is verification success, otherwise, determining that the verification result is verification failure.
Optionally, the apparatus further comprises: an output module;
the output module is used for outputting prompt information if the USB flash disk is not inserted into the terminal equipment, and the prompt information is used for prompting a user to insert the USB flash disk.
Optionally, the playing module is further configured to:
responding to the operation of playing the video file, which is executed by a user on the terminal equipment, sending a video playing request to a server, and acquiring the video file from the server;
And playing the video file online.
In a fourth aspect, an embodiment of the present application further provides a video file playing device, where the device includes: a response module and a play module;
the response module is used for responding to the playing operation of a user on the video file on the inserted U disk, obtaining the key authentication file of the inserted U disk, and verifying the validity of the key authentication file to obtain a verification result;
and the playing module is used for playing the video file if the verification result is that the verification is successful.
Optionally, the apparatus further comprises: an output module;
and the output module is used for outputting prompt information if the acquisition of the key authentication file of the inserted USB flash disk fails, wherein the prompt information is used for prompting a user to have no right to play the video file.
In a fifth aspect, an embodiment of the present application further provides a terminal device, including: a processor, a storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over a bus when the terminal device is running, the processor executing the machine-readable instructions to perform the steps of the method as provided in the first aspect, and a bus.
In a sixth aspect, embodiments of the present application also provide a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as provided in the first and second aspects.
The beneficial effects of this application are:
the embodiment of the application provides a video file downloading method, a video file playing device and terminal equipment, wherein the method comprises the following steps: responding to the operation of downloading video files, which is executed by a user on playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment; if the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk; verifying the validity of the key authentication file to obtain a verification result; and if the verification result is that the verification is successful, downloading the video file to the inserted U disk. In the scheme, whether the USB flash disk has downloading permission is verified according to the key authentication file, if verification is successful, the video file is downloaded to the inserted USB flash disk, the USB flash disk is inserted into other terminal equipment with a display function, normal playing of the video file in the USB flash disk is realized, the requirement that a user needs to download video content to the USB flash disk and take the video content to an outdoor environment for watching is met, the experience of the user is improved, meanwhile, the video file can be truly protected, and the potential safety hazard that the video file leaks due to the fact that the playing mode of the USB flash disk is used is avoided, so that the playing and downloading safety and reliability of the video file are effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a video file downloading system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 3 is a flow chart of a video file downloading method according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another method for downloading video files according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating another method for downloading video files according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a playback device according to an embodiment of the present application;
fig. 7 is a flowchart of a video file playing method according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a video file downloading device according to an embodiment of the present disclosure;
Fig. 9 is a schematic structural diagram of a video file playing device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
Fig. 1 is a schematic structural diagram of a video file downloading system according to an embodiment of the present application; for example, the video file downloading system 100 can be applied to downloading video files such as remote education, video on demand, network video and the like, and through the video file downloading system 100, online playing can be performed on the video files or the video files can be downloaded to a specific USB flash disk, so that the purpose of dual authentication protection is achieved, and the safety and reliability of the video files in network transmission are improved.
As shown in fig. 1, the video file downloading system 100 includes: one or more of the terminal device 101, the server 102, and the network 103, the terminal device 101 and the server 102 may include a processor therein for performing instruction operations.
In some embodiments, the terminal device 101 may be an electronic device with a display function and an operation function, such as a network television, an intelligent terminal, or other electronic devices, such as a computer, a mobile internet device, a tablet, a mobile phone terminal, an intelligent speaker, and a portable television.
For example, when a user a needs to download a certain video file, by clicking an icon or an instruction for downloading the video in the terminal device 101, the server 102 obtains an address of the video to be downloaded corresponding to the downloading instruction according to the received downloading instruction, and downloads the file of the video to be downloaded into a memory of a specified path in a sequential streaming manner, for example, the file can be downloaded into a specified hard disk, so as to meet the requirement that different users need to download video content to the usb disk and bring the video content to an outdoor environment for viewing, thereby improving the experience of the user.
Network 103 may be used for the exchange of information and/or data, for example, network 103 may be any type of wired or wireless network, wherein the wireless network may be a 4G/5G cell phone traffic, a cell phone hotspot, etc., or any combination thereof.
For example, the terminal device 101 may access, via the network 103, the address of the video to be downloaded and/or user login account information, program information stored in the server 102, to enable downloading or online playing of the video file.
It is to be understood that the architecture shown in fig. 1 is illustrative only and that video file download system 100 may also include more or fewer components than shown in fig. 1 or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application; as shown in fig. 2, the terminal device 101 includes a memory 201, a processor 202, and a communication unit 203. The memory 201, the processor 202 and the communication unit 203 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 201 stores therein a software function module stored in the memory 201 in the form of software or firmware (firmware), and the processor 202 executes various functional applications and data processing by running the software program and the module stored in the memory 201, that is, implements the dynamic processing method in the embodiment of the present invention.
The Memory 201 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), etc. The memory 201 is used for storing a program, and the processor 202 executes the program after receiving an execution instruction.
The processor 202 may be an integrated circuit chip with signal processing capabilities. The processor 202 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.
The communication unit 203 is configured to establish a communication connection between the terminal device 101 and the server 102 through the network 103, so as to implement a transceiving operation of network signals and data information.
The video file downloading method provided by the present application is explained by a plurality of embodiments as follows.
Fig. 3 is a flow chart of a video file downloading method according to an embodiment of the present application; the method is applied to the terminal device in fig. 1, as shown in fig. 3, and the method may include:
S301, responding to the operation of downloading the video file, which is executed by the user on the playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment.
The playing software may be an application software pre-installed on the terminal device, and the user may click a trigger icon, such as a playing icon, a pause icon, a fast forward icon, or a download icon, in the playing software to obtain a video file stored in the server, and perform online playing or downloading operation on the obtained video file.
Alternatively, before responding to the operation of downloading the video file performed by the user on the playing software of the terminal device, the following steps may be performed:
the first step, the user needs to click on the icon of the playing software installed in the terminal device, enter the playing software, click on the icon of the video file to be played or downloaded selected by the user, and the terminal device can obtain the necessary information of video playing correspondingly.
Wherein, the necessary information of the video at least comprises: file identification, file acquisition address, file format, file code rate, file playing time length, etc.
The following is a simple introduction to the "video necessary information", and the file identifier is used for uniquely identifying a certain video file; a file acquisition address comprising: the uniform resource locator (Uniform Resource Locator, URL for short) address of the file is a physical address for acquiring the video file from the internet resource, and corresponds to playing the video online; the file format may be audio-video interlaced format, and the file code rate is the number of data bits transmitted per unit time of video file data, for example, 128 kilobits per second, or 128kbps.
And secondly, the terminal equipment sends a request for acquiring the video file to the server according to the acquired video necessary information, and requests a network channel and tries to access the acquired video file by using the URL address of the video file.
In one implementation, for example, if the network is not open, then network resources cannot be accessed.
In another implementation, for example, if the network connection is normal, the network resources may be accessed normally to obtain the video file.
And thirdly, the server executes playing authentication processing to confirm whether the playing software has the authority for downloading and playing the video file.
For example, the user can log in the playing software installed on the terminal device to determine whether the playing software has the authority for downloading and playing the video file, thereby realizing the authentication operation of the playing software.
If the user can log in the playing software by using any mode of account number + password or account number + short message verification code, and synchronize the user information, program information and the like to an account center in the server to verify whether the user has the authority to watch the program.
After the third step is performed, if the server confirms that the playing software has the right to download and play the video file, the user may perform an operation of downloading the video file on the playing software of the terminal device.
For example, after confirming that the user has the authority to watch the program, when the user needs to download the video file to the usb disk, the user may click on a download icon in the playing software, and the terminal device determines whether the user inserts the usb disk into the terminal device in response to the operation of downloading the video file triggered by the user in the playing software.
S302, if the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk.
In general, a terminal device has functions of identifying insertion, removal, reading, storage of a usb disk file, and the like.
The key authentication file is pre-stored in the USB flash disk and is used for identifying whether the USB flash disk inserted into the terminal equipment has downloading permission. It should be noted that, the key authentication file only supports a read-only mode, so that a user cannot copy, cut, delete and the like the key file, so that the USB flash disk has specificity, and the user can only download the video file into the specific USB flash disk, thereby avoiding the user from privately making a pirated USB flash disk according to the key authentication file.
In one implementation manner, for example, when the terminal device recognizes that the specific usb disk is inserted, a key authentication file stored in the usb disk in advance may be acquired, and whether the usb disk is a designated downloaded usb disk may be determined according to the key authentication file, so as to ensure that a video file downloaded into the usb disk is not leaked.
S303, verifying the validity of the key authentication file to obtain a verification result.
For example, the verification information stored in the obtained key authentication file may be matched with the verification information stored in the terminal device, so as to determine whether the key authentication file is valid, and obtain a verification result.
S304, if the verification result is that the verification is successful, the video file is downloaded to the inserted U disk.
For example, if the verification information stored in the key authentication file is successfully matched with the verification information stored in the terminal device, it can be determined that the usb disk has the right to download the video file, and the video file can be downloaded to the inserted usb disk.
At this time, the server decodes the URL address of the video file to obtain a real play address of the video file, obtains the video file to be downloaded from the real play address in the form of a file stream, returns the obtained video file to the terminal device, and the terminal device responds to the video file downloading operation executed by the user to download the video file to the usb disk in a sequential streaming mode, so that the user can watch the video file online while downloading the video file.
After the video file is downloaded to the USB flash disk, the USB flash disk can be inserted into other terminal equipment with a display function, normal play of the video file in the USB flash disk is realized, the requirement that a user needs to download video content to the USB flash disk and bring the video content to an outdoor environment for watching is met, the experience degree of the user is improved, meanwhile, the video file can be truly protected, and the potential safety hazard that the video file leaks due to the playing mode of the USB flash disk is avoided, so that the playing and downloading safety and reliability of the video file are effectively improved.
It should be noted that, the video files downloaded to the usb disk only support read-only and delete operations, but not copy, cut, etc., and once the key files in the usb disk are destroyed, the video files downloaded to the usb disk will not be playable.
In summary, the embodiment of the present application provides a method for downloading a video file, which includes: responding to the operation of downloading video files, which is executed by a user on playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment; if the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk; verifying the validity of the key authentication file to obtain a verification result; and if the verification result is that the verification is successful, downloading the video file to the inserted U disk. In the scheme, whether the USB flash disk has downloading permission is verified according to the key authentication file, if verification is successful, the video file is downloaded to the inserted USB flash disk, the USB flash disk is inserted into other terminal equipment with a display function, normal playing of the video file in the USB flash disk is realized, the requirement that a user needs to download video content to the USB flash disk and take the video content to an outdoor environment for watching is met, the experience of the user is improved, meanwhile, the video file can be truly protected, and the potential safety hazard that the video file leaks due to the fact that the playing mode of the USB flash disk is used is avoided, so that the playing and downloading safety and reliability of the video file are effectively improved.
Optionally, the key authentication file includes: the verification code to be verified and the channel number to be verified.
The verification code to be verified can be a static verification code, and the channel number to be verified can be a channel number of playing software.
In this embodiment, for example, the key authentication file may be formed by a specified verification code and a channel number of the playing software, and the key authentication file is used to perform key authentication processing on the usb disk, so that common piracy cannot decrypt the key authentication file, and leakage of the video file downloaded to the usb disk can be effectively prevented.
FIG. 4 is a flowchart illustrating another method for downloading video files according to an embodiment of the present disclosure; step S303 described above: the validity verification is carried out on the key authentication file to obtain a verification result, which comprises the following steps:
s401, judging whether the verification code to be verified is matched with the target verification code of the playing software, and judging whether the channel number to be verified is matched with the target channel number of the playing software.
The target channel number is formed by combining channel name abbreviation of playing software, keys of the playing software and release date of the playing software.
Alternatively, the channel name abbreviation is composed of numbers and letters, e.g., the channel name abbreviation may be SN1008; the key of the playing software is a unique identifier possessed by the playing software.
It should be noted that, the playing software is in different channels, for example, the corresponding channel numbers are different, the same playing software runs on two different terminal devices, namely, terminal device a and terminal device B, and the terminal device a and terminal device B belong to products of different operators, and correspondingly, the same playing software has two different channel numbers, so that one authorization can be ensured to prevent file leakage.
The target verification code can be an operator-specified verification code, the verification code to be verified in the key authentication file can be compared with the target verification code of the playing software, whether the verification code to be verified in the key authentication file is identical to the target verification code of the playing software is confirmed, and if the verification code to be verified in the key authentication file is identical to the target verification code of the playing software, the verification code to be verified in the key authentication file can be confirmed to be matched with the target verification code of the playing software.
And comparing the channel number to be verified in the key authentication file with the target channel number of the playing software to confirm whether the channel number to be verified in the key authentication file is the same as the target channel number of the playing software, and if so, determining that the channel number to be verified in the key authentication file is matched with the target channel number of the playing software.
In this embodiment, by simultaneously determining whether the verification code to be verified matches the target verification code of the playing software and whether the channel number to be verified matches the target channel number of the playing software, authentication processing is performed on the key authentication file of the usb disk inserted into the terminal device, so as to confirm whether the usb disk has the authority to download the video file.
S402, if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is verification success.
For example, if the verification code to be verified is matched with the target verification code, it may be determined whether the usb disk inserted into the terminal device has the right to download the video file, and the usb disk may be considered as a designated download storage device, i.e. the requirement for downloading the video to the usb disk is supported.
S403, if not, determining that the verification result is verification failure.
For example, if authentication of the key authentication file in the usb disk fails, a prompt message may be output to notify the user that the authentication of the usb disk inserted into the terminal device fails, and the user may insert the designated usb disk to perform the downloading operation of the video file.
Optionally, after determining whether the usb disk is inserted into the terminal device, the method further includes: if the USB flash disk is not inserted into the terminal equipment, outputting prompt information which is used for prompting a user to insert the USB flash disk.
In another implementation manner, for example, if the terminal device recognizes that the usb disk is not inserted, the user is prompted to insert the usb disk into the terminal device, and ready to download the video file.
After confirming that the playing software installed in the terminal device has the authority to download and play the video file, the user can download and play the acquired video file at the same time, and the user can perform various operations such as downloading only, not playing, not downloading only, playing only, and the like on the acquired video file.
It should be noted that, if the user needs to download the video file to the designated usb disk, before the video file is played, an operation request for downloading the video file needs to be executed on the playing software of the terminal device, so as to complete the operations of "confirm whether the usb disk is inserted into the terminal device" and "authenticate the key authentication file in the usb disk".
For example, if the user does not perform the operation request for downloading the video file on the playing software of the terminal device before the video file is played, that is, the operation of "confirming whether the usb disk is inserted on the terminal device and authenticating the key authentication file in the usb disk" is not completed, but when the video file is played in half, the user needs to download the video file to the designated usb disk, and then performs the operation request for downloading the video file is invalid.
The steps of online playing the video file obtained by the application are described in detail through the following embodiments.
FIG. 5 is a flowchart illustrating another method for downloading video files according to an embodiment of the present disclosure; as shown in fig. 5, the method further includes:
s501, responding to the operation of playing the video file, which is executed by the user on the terminal equipment, sending a video playing request to the server, and acquiring the video file from the server.
In one implementation manner, for example, when the video file is downloaded to the inserted usb disk, an icon of the video file in the playing software may be clicked, and the terminal device responds to an operation performed by the user on the terminal device to play the video file, and sends a video playing request to the server, and obtains a video stream from the server, so as to realize the requirement of playing the video online.
In another implementation manner, for example, only the video file is played, the user only needs to click on an icon of the playing video file in the playing software, and the terminal device responds to an operation request of playing the video file executed by the user, sends the video playing request to the server, acquires the video stream from the server, and meets the requirement of playing the video online.
S502, online playing is carried out on the video file.
For example, the server streams the acquired video file to the terminal device in real time, the terminal device stores the file stream into the playing software memory buffer after receiving the file stream returned by the server, so as to prepare to play the video file online, and the user can fast forward or backward to watch the front or rear video content, thereby improving the experience of the user.
A playback apparatus to which the video file playback method provided in the present application is applied is explained by a plurality of embodiments as follows.
Fig. 6 is a schematic structural diagram of a playback device according to an embodiment of the present application; as shown in fig. 6, the playback device may be a chip integrated with the terminal device or the terminal device, or may be an electronic device having a display function.
The playing device also needs to have a peripheral data transmission interface, such as a universal serial bus (Universal Serial Bus, abbreviated as USB) interface, a card slot of a card reader and the like, can support the insertion of storage devices such as a USB flash disk and the like, and plays video files read from the read USB flash disk, so that the requirements of users for downloading video content to the USB flash disk and taking the video content to an outdoor environment for viewing are met, and the experience of the users is improved.
The playback apparatus includes: memory 601, and processor 602. The memory 601 and the processor 602 are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 601 is used for storing a program, and the processor 602 calls the program stored in the memory 601 to execute the video file playing method embodiment described below.
Fig. 7 is a flowchart of a video file playing method according to an embodiment of the present application; as shown in fig. 7, the execution subject of the method may be the playback device in fig. 6, and the method includes:
s701, responding to the playing operation of a user on the video file on the inserted U disk, obtaining the key authentication file of the inserted U disk, and verifying the validity of the key authentication file to obtain a verification result.
For example, when a user needs to play a video file on an inserted usb disk in any one play device, the usb disk may be inserted into a selected play device, and an icon operation of the video file to be played is clicked in the play device, so as to request playing of the downloaded video file.
At this time, the playing device responds to the playing operation triggered by the user, reads the key authentication file in the usb disk, judges whether the key authentication file exists in the usb disk, and if the key authentication file exists in the usb disk, can perform key authentication processing on the key authentication file in the usb disk to verify whether the key authentication file is valid.
In one implementation manner, for example, when the playing device determines that the usb disk has the key authentication file, the user is prompted to input verification information matched with the key authentication file at the display end of the playing device, where the verification information may be a short message verification code sent by an operator, for example, may be a static verification code or a dynamic verification code, so as to implement authentication operation on the usb disk, and ensure that the video downloaded to the specific usb disk is not leaked.
S702, if the verification result is that the verification is successful, the video file is played.
For example, if the key authentication is performed in the USB flash disk, the video file inserted into the USB flash disk can be normally played in the playing device, so that the requirement that the user needs to download the video content to the USB flash disk and bring the video content to the outdoor environment for watching is met, the experience of the user is improved, meanwhile, the video file can be truly protected, and the potential safety hazard that the video file leaks due to the playing mode of the USB flash disk is avoided, thereby effectively improving the playing and downloading safety and reliability of the video file.
It should be noted that, the video files downloaded to the usb disk only support deletion, but do not support copying, cutting, and the like, and once the key files in the usb disk are destroyed, the video files downloaded to the usb disk will not be playable.
In summary, the embodiment of the present application provides a method for downloading a video file, which includes: responding to the play operation of a user on the video file inserted into the USB flash disk, acquiring a key authentication file of the inserted USB flash disk, and verifying the validity of the key authentication file to obtain a verification result; and if the verification result is that the verification is successful, playing the video file. In the scheme, the key authentication processing is carried out according to the key authentication file stored in the inserted USB flash disk, if the key authentication is carried out in the USB flash disk, the video file in the inserted USB flash disk can be normally played in the playing device, the requirement that a user needs to download the video content to the USB flash disk to bring the video content to the outdoor environment for watching is met, the experience of the user is improved, meanwhile, the fact that the video downloaded to the specific USB flash disk is not leaked is ensured, and therefore the playing and downloading safety and reliability of the video file are effectively improved.
Optionally, the method further comprises: if the acquisition of the key authentication file of the inserted USB flash disk fails, outputting prompt information, wherein the prompt information is used for prompting the user to play the video file without permission, so that the user can acquire the video file without permission in time.
For example, if the playback device cannot obtain the key authentication file in the usb disk, that is, if the playback device fails to obtain the key authentication file of the usb disk, the prompt message may be sent to the display end of the playback device, so as to prompt the user to play the video without permission.
The following is a description of a video file downloading device, a video file playing device, a storage medium, etc. for executing the video file downloading device, the video file playing device, the storage medium, etc. provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and are not described in detail below.
Fig. 8 is a schematic structural diagram of a video file downloading device according to an embodiment of the present application, where, as shown in fig. 8, the device includes: a response module 801, an acquisition module 802, a verification module 803, and a download module 804;
a response module 801, configured to determine whether a usb disk is inserted into the terminal device, in response to an operation of downloading a video file performed by a user on playing software of the terminal device;
an obtaining module 802, configured to obtain a key authentication file in a usb disk inserted if the usb disk is inserted into the terminal device;
The verification module 803 is configured to perform validity verification on the key authentication file to obtain a verification result;
and the downloading module 804 is configured to download the video file to the inserted usb disk if the verification result is that the verification is successful.
Optionally, the key authentication file includes: the verification code to be verified and the channel number to be verified.
Optionally, the verification module 803 is further configured to:
judging whether the verification code to be verified is matched with a target verification code of playing software;
judging whether the channel number to be verified is matched with a target channel number of the playing software, wherein the target channel number is formed by combining a channel name abbreviation of the playing software, a key of the playing software and an issue date of the playing software;
if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is successful, otherwise, determining that the verification result is failed.
Optionally, the apparatus further comprises: an output module;
the output module is used for outputting prompt information if the USB flash disk is not inserted into the terminal equipment, and the prompt information is used for prompting a user to insert the USB flash disk.
Optionally, the apparatus further comprises: a playing module;
the playing module is used for responding to the operation of playing the video file executed by the user on the terminal equipment, sending a video playing request to the server and acquiring the video file from the server;
And playing the video file online.
Fig. 9 is a schematic structural diagram of a video file playing device according to an embodiment of the present application, where, as shown in fig. 9, the device includes: a response module 901 and a play module 902;
the response module 901 is configured to respond to a play operation of a user on a video file on the inserted usb disk, obtain a key authentication file of the inserted usb disk, and perform validity verification on the key authentication file to obtain a verification result;
and a playing module 902, configured to play the video file if the verification result is that the verification is successful.
Optionally, the apparatus further comprises: an output module;
and the output module is used for outputting prompt information if the acquisition of the key authentication file of the inserted USB flash disk fails, wherein the prompt information is used for prompting a user to play the video file without permission.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Optionally, the present invention also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments when being executed by a processor.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the invention. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Claims (8)

1. A method for downloading a video file, comprising:
responding to the operation of downloading video files, which is executed by a user on playing software of terminal equipment, and determining whether a U disk is inserted into the terminal equipment;
If the USB flash disk is inserted into the terminal equipment, acquiring a key authentication file in the inserted USB flash disk, wherein the key authentication file is stored in the USB flash disk, and the key authentication file is used for identifying whether the USB flash disk inserted into the terminal equipment has downloading permission or not and only supports a read-only mode;
carrying out validity verification on the key authentication file to obtain a verification result;
if the verification result is that the verification is successful, the video file is downloaded to the inserted U disk;
the key authentication file comprises the following components: the verification code to be verified and the channel number to be verified;
the step of verifying the validity of the key authentication file to obtain a verification result comprises the following steps:
judging whether the verification code to be verified is matched with the target verification code of the playing software;
judging whether the channel number to be verified is matched with a target channel number of the playing software, wherein the target channel number is formed by combining a channel name abbreviation of the playing software, a key of the playing software and an issue date of the playing software;
if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is verification success, otherwise, determining that the verification result is verification failure.
2. The method of claim 1, wherein after determining whether the usb disk is inserted into the terminal device, further comprises:
if the USB flash disk is not inserted into the terminal equipment, outputting prompt information, wherein the prompt information is used for prompting a user to insert the USB flash disk.
3. The method according to claim 1, wherein the method further comprises:
responding to the operation of playing the video file, which is executed by a user on the terminal equipment, sending a video playing request to a server, and acquiring the video file from the server;
and playing the video file online.
4. A video file playing method, comprising:
responding to the playing operation of a user on a video file on an inserted U disk, acquiring a key authentication file of the inserted U disk, and verifying the validity of the key authentication file to obtain a verification result;
if the verification result is that the verification is successful, the video file is played;
wherein, the video file is a video file obtained by downloading according to the video file downloading method in any one of claims 1-3.
5. The method according to claim 4, wherein the method further comprises:
And if the acquisition of the key authentication file of the inserted USB flash disk fails, outputting prompt information, wherein the prompt information is used for prompting a user to have no right to play the video file.
6. A video file downloading apparatus, the apparatus comprising: the device comprises a response module, an acquisition module, a verification module and a downloading module;
the response module is used for responding to the operation of downloading the video file, which is executed by the user on the playing software of the terminal equipment, and determining whether the USB flash disk is inserted into the terminal equipment;
the acquiring module is used for acquiring a key authentication file in the inserted USB flash disk if the USB flash disk is inserted into the terminal equipment, wherein the key authentication file is stored in the USB flash disk, and the key authentication file is used for identifying whether the USB flash disk inserted into the terminal equipment has downloading permission or not and only supports a read-only mode;
the verification module is used for verifying the validity of the key authentication file to obtain a verification result;
the downloading module is used for downloading the video file to the inserted USB flash disk if the verification result is that the verification is successful;
the key authentication file comprises the following components: the verification code to be verified and the channel number to be verified;
The verification module is specifically configured to:
judging whether the verification code to be verified is matched with the target verification code of the playing software;
judging whether the channel number to be verified is matched with a target channel number of the playing software, wherein the target channel number is formed by combining a channel name abbreviation of the playing software, a key of the playing software and an issue date of the playing software;
if the verification code to be verified is matched with the target verification code and the channel number to be verified is matched with the target channel number, determining that the verification result is verification success, otherwise, determining that the verification result is verification failure.
7. A video file playback apparatus, the apparatus comprising: a response module and a play module;
the response module is used for responding to the playing operation of a user on the video file on the inserted U disk, obtaining the key authentication file of the inserted U disk, and verifying the validity of the key authentication file to obtain a verification result;
the playing module is used for playing the video file if the verification result is that the verification is successful;
the video file is the video file downloaded to the inserted usb disk in claim 6.
8. A terminal device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the terminal device is running, the processor executing the machine-readable instructions to perform the steps of the method of any of claims 1-3.
CN202011533860.3A 2020-12-22 2020-12-22 Video file downloading method, video file playing method, device and terminal equipment Active CN112770144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011533860.3A CN112770144B (en) 2020-12-22 2020-12-22 Video file downloading method, video file playing method, device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011533860.3A CN112770144B (en) 2020-12-22 2020-12-22 Video file downloading method, video file playing method, device and terminal equipment

Publications (2)

Publication Number Publication Date
CN112770144A CN112770144A (en) 2021-05-07
CN112770144B true CN112770144B (en) 2023-07-25

Family

ID=75695273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011533860.3A Active CN112770144B (en) 2020-12-22 2020-12-22 Video file downloading method, video file playing method, device and terminal equipment

Country Status (1)

Country Link
CN (1) CN112770144B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117528154B (en) * 2024-01-04 2024-03-29 湖南快乐阳光互动娱乐传媒有限公司 Video delivery method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1647913A2 (en) * 2004-10-18 2006-04-19 Samsung Electronics Co., Ltd. Image forming apparatus
CN108038147A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 A kind of recommendation method, terminal and computer-readable recording medium
CN111291429A (en) * 2020-01-21 2020-06-16 李岗 Data protection method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783163A (en) * 2009-01-21 2010-07-21 李苏 Intelligent flash U disk having function of mouse and implementation method thereof
CN102279814B (en) * 2011-08-19 2014-03-05 北方工业大学 Encryption anti-copy system and anti-copy method thereof
CN104902208A (en) * 2015-05-28 2015-09-09 山东华芯半导体有限公司 AES algorithm-based anti-copy video encryption U disk and encryption method
CN106713221A (en) * 2015-07-29 2017-05-24 中兴通讯股份有限公司 Multimedia file download method and device
CN106446664A (en) * 2016-10-27 2017-02-22 京东方科技集团股份有限公司 U disk, authorization authentication method thereof and data transmission device
CN109815648B (en) * 2019-03-19 2024-03-19 厦门市思芯微科技有限公司 Vehicle-mounted intelligent music downloading and playing system and operation method
CN110557689B (en) * 2019-09-29 2022-02-22 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1647913A2 (en) * 2004-10-18 2006-04-19 Samsung Electronics Co., Ltd. Image forming apparatus
CN108038147A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 A kind of recommendation method, terminal and computer-readable recording medium
CN111291429A (en) * 2020-01-21 2020-06-16 李岗 Data protection method and system

Also Published As

Publication number Publication date
CN112770144A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US10055553B2 (en) PC secure video path
CN110099064A (en) A kind of document handling method based on Internet of Things, device, equipment and storage medium
WO2019134303A1 (en) Live stream room popularity processing method and apparatus, server and storage medium
CN105075176B (en) Challenge-response method and associated client device
CN112532629B (en) Data transmission method, device, equipment and medium
CN105721903A (en) Method and system for playing online videos
JP2020202548A (en) Network accessing method and apparatus for voice device, and storage medium
CN107145769A (en) A kind of digital rights management method about DRM, equipment and system
AU2021200868A1 (en) Authentication of digital broadcast data
JP2007249507A (en) Information leakage prevention method, information leakage prevention system and information terminal
CN112770144B (en) Video file downloading method, video file playing method, device and terminal equipment
KR20140055909A (en) Security information sharing system and execution method thereof
CN118018673A (en) Video data transmission method, device, equipment and medium
CN110830479B (en) Multi-card-based one-key login method, device, equipment and storage medium
CN110034922B (en) Request processing method, processing device, request verification method and verification device
CN105391673A (en) Safe access method and device
CN109996020B (en) Video recording method and device
CN115767138A (en) Video data processing method and device, electronic equipment and storage medium
CN112084485B (en) Data acquisition method, device, equipment and computer storage medium
WO2004017637A1 (en) Hard disk security
CN113127891A (en) Template file encryption method and device for intelligent media desktop
CN112583606A (en) Security verification method, server, terminal and storage medium
CN114791834B (en) Application program starting method and device, electronic equipment and storage medium
CN101903875A (en) Methods and apparatuses for using content, controlling use of content in cluster, and authenticating authorization to access content
CN117478338A (en) Digital content downloading system, 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
GR01 Patent grant
GR01 Patent grant