CN108200452B - Web video online playing system capable of preventing downloading and control method thereof - Google Patents

Web video online playing system capable of preventing downloading and control method thereof Download PDF

Info

Publication number
CN108200452B
CN108200452B CN201810036847.3A CN201810036847A CN108200452B CN 108200452 B CN108200452 B CN 108200452B CN 201810036847 A CN201810036847 A CN 201810036847A CN 108200452 B CN108200452 B CN 108200452B
Authority
CN
China
Prior art keywords
real
playing
video
client
streaming media
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
CN201810036847.3A
Other languages
Chinese (zh)
Other versions
CN108200452A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810036847.3A priority Critical patent/CN108200452B/en
Publication of CN108200452A publication Critical patent/CN108200452A/en
Application granted granted Critical
Publication of CN108200452B publication Critical patent/CN108200452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data

Landscapes

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

Abstract

The invention discloses an anti-downloading web video online playing system and a control method thereof, wherein the system comprises a streaming media server and a client player, the server is configured to have a compiled token verification program, a streaming media control program and an intermediate verification program, and a real-time token parameter can be distributed to a client when the client opens a playing page; the player is configured to carry the real-time token parameter when sending the video request URL to the server; the token verification program is used for judging the validity of the real-time token parameters carried by the received URL; if the real-time token parameter is valid, the streaming media control program transmits a video stream to the client so that the player plays the video; if the real-time token parameter is invalid, the streaming media control program refuses to transmit the video stream to the client; the intermediate verification program is used for intermittently verifying the playing validity in the video playing process; and the streaming media control program determines whether to continuously transmit the video stream to the client according to the playing validity verification result.

Description

Web video online playing system capable of preventing downloading and control method thereof
Technical Field
The invention relates to the technical field of web videos, in particular to a web video online playing system capable of preventing downloading and a control method thereof.
Background
At present, the mainstream internet video on demand service is basically based on a web open type, but in some scenes that a user needs to be prohibited from downloading and randomly copying and spreading video files, the internet video on demand service is difficult to implement and has higher cost.
In general, streaming media websites mostly adopt HTTP protocol or streaming services similar to the HTTP protocol, and compared with other protocols, a client browser adopting the HTTP protocol caches videos. Although a general video website does a method for preventing downloading, such as link address hiding and video splitting, a user can still download a video file by using a tool/plug-in.
In addition, an RTMP protocol can also be used for video on demand service, RTMP is a live broadcast protocol, i.e. a real-time broadcast by a server, and a client browser player accepts a real-time play mode, and once the server stops broadcasting or stops pushing a video stream to a certain user, the user cannot continue playing. On the other hand, different from the HTTP protocol, the video stream is played at the user side without being cached, and the ordinary downloading tool does not support rtmp downloading; however, some specific video downloading tools based on the RTMP protocol or specific browser downloading plug-ins exist, which can obtain the playing address and still realize the downloading of the video.
The above background disclosure is only for the purpose of assisting understanding of the inventive concept and technical solutions of the present invention, and does not necessarily belong to the prior art of the present patent application, and should not be used for evaluating the novelty and inventive step of the present application in the case that there is no clear evidence that the above content is disclosed before the filing date of the present patent application.
Disclosure of Invention
The invention mainly aims to provide an anti-downloading web video online playing system, which can greatly improve the downloading cost and difficulty of a user, achieve the purpose of preventing downloading and realize the system at lower cost and difficulty for a video service provider.
The technical scheme provided by the invention for achieving the purpose is as follows:
an anti-download web video online playing system comprises a streaming media server and a client player, wherein the streaming media server is configured to have a compilable token verification program, a streaming media control program and an intermediate verification program, and can allocate a real-time token parameter to a client when the client opens a playing page; the player is configured to carry the real-time token parameter when sending a video request URL to the streaming media server; the token verification program is used for judging the validity of the real-time token parameter carried by the received video request URL; if the real-time token parameter is judged to be valid, the streaming media control program transmits a video stream to the client so that the player starts playing the video; if the real-time token parameter is judged to be invalid, the streaming media control program refuses to transmit the video stream to the client; the intermediate verification program is used for intermittently verifying the playing validity in the video playing process; and the streaming media control program determines whether to continuously transmit the video stream to the client according to the playing validity verification result.
The playing system provided by the invention basically achieves the function of preventing automatic downloading for a special RTMP downloading tool and a specific browser plug-in through token parameter verification and intermediate intermittent verification after playing is started, thereby greatly improving the cost of downloading a video file by a user, and being not high in development cost for a service provider having requirements on preventing video downloading.
The invention also provides a control method of the web video online playing system, which comprises the following steps: when a playing page is opened by a client, receiving a real-time token parameter distributed by the streaming media server, and sending the real-time token parameter and a video request URL to the streaming media server together so that the streaming media server can carry out validity judgment on the real-time token parameter; when the real-time token parameter is judged to be valid and a video stream from the streaming media server is received, starting to play the video; after the video starts playing, the intermediate verification program is called intermittently to verify the validity of playing.
The invention also provides a control method of the web video online playing system, which comprises the following steps: when a client opens a playing page, allocating a real-time token parameter to the client; when a video request URL from the client is received, judging whether the real-time token parameter carried by the video request URL is valid; when the real-time token parameter is judged to be valid, starting to transmit a video stream to the client; refusing to transmit the video stream to the client when the real-time token parameter is determined to be invalid; after the video starts to play, intermittently verifying the playing validity; if the playing validity passes, the transmission of the video stream is not interrupted; and if the playing validity verification fails, stopping the transmission of the video stream.
Drawings
Fig. 1 is a flowchart illustrating a web video online playing system according to an embodiment of the present invention.
Detailed Description
The invention is further described with reference to the following figures and detailed description of embodiments.
The HTTP Protocol (HyperText Transfer Protocol) is a Transfer Protocol for transferring HyperText from a WWW server to a local browser. The method can make the browser more efficient and reduce the data transmission amount of the network; the method can not only ensure that the computer can correctly and quickly transmit the hypertext document, but also determine which contents in the transmitted document are displayed firstly (such as text is prior to graphics), and the like. HTTP is an application-layer communication protocol between a client browser or other program and a Web server. Hypertext information is stored in Web servers on the Internet, and clients need to receive the hypertext information to be accessed through an HTTP protocol. The HTTP contains commands and transmission information, and can be used for Web access and communication between other Internet/intranet application systems, so that the integration of various application resource hypermedia access is realized.
The RTMP Protocol (Real Time Messaging Protocol) is based on TCP and is a Protocol family that includes RTMP base Protocol and many variations such as RTMPT, RTMPs, rtmmpe and the like. The RTMP is a network protocol for real-time data communication, and is mainly used for audio/video and data communication between a Flash/AIR platform and a streaming media/interactive server supporting the RTMP protocol. Software supporting the protocol includes Adobe Media Server, ultra Media Server, red5, etc.
Nginx (engine x) is a high performance HTTP and reverse proxy server, and is also an IMAP/POP3/SMTP server. The Nginx server is provided with an ngx _ http _ lua _ module, and after the Nginx server is compiled and enabled, scripting programming can be performed in the Nginx configuration file by using a lua language, so that some self-defined functions are realized. The Nginx-rtmp is a Nginx streaming media plug-in, and besides Live broadcast of audio/video streams, the Nginx-rtmp also has the common functions of a streaming media server, such as push-pull of streaming media resources, HTTP-based FLV/MP4VOD on demand, hls (HTTP Live streaming) M3U8 support, HTTP-based operations (distribution, playing, recording) and the like, and can work well together with the existing streaming media server and player, call ffmpeg on line to transcode streaming media, support of H264/AAC audio/video coding format, support of Linux/BSD/MAC system and the like.
The invention provides an online web video playing system (hereinafter referred to as a "playing system") for preventing downloading, which comprises a streaming media server (hereinafter referred to as a "server") and a client player. The server is configured with a compilable token verification program, a streaming media control program and an intermediate verification program, and can distribute a real-time token parameter to the client when the client opens a playing page; the player is configured to carry the real-time token parameter when sending a video request URL to the server; the token verification program is used for judging the validity of the real-time token parameter carried by the received video request URL; if the real-time token parameter is judged to be valid, the streaming media control program controls the server to establish a video transmission link with the client so as to transmit a video stream to the client; if the real-time token parameter is judged to be invalid, the streaming media control program controls the server to refuse to transmit the video stream to the client; the intermediate verification program is used for intermittently verifying the playing validity in the video playing process; and the streaming media control program determines whether to continuously transmit the video stream to the client according to the playing validity verification result.
The playing system can improve the downloading cost of the user, prevents the user from downloading the video to a great extent, and is particularly suitable for websites which have few watching persons, need authorized login and have requirements on preventing downloading. But can be realized by a video provider at a low cost, and has high practicability. When the playing system is built, the streaming media server used can be, for example, a Nginx video server, and the video streaming protocol is rtmp; accordingly, the streaming media control program is, for example, a compiled nginx-rtmp streaming media plug-in, and the token verification program is a Lua script program developed based on the ngx _ http _ Lua _ module. Of course, other streaming servers and other transport protocols may be used as long as the servers are configured with the streaming control program and token authentication program having the same functions as the present invention. The present invention is further described below by taking an nginnx video server based on rtmp protocol as an example.
Referring to fig. 1, the work flow of the web video online playing system capable of preventing downloading is, for example:
firstly, a playing page is opened by a client, at the moment, a server can acquire information such as a user ID (identity) and a login timestamp of the client, and the server calculates a unique token parameter in real time according to the information such as the user ID and the timestamp at the moment, even some keys and dynamic IP (Internet protocol) of a user at the same time and distributes the unique token parameter to the client; after the playing page is opened, the client side immediately requests the server for the video, namely sends the URL, and at the moment, the URL carries the real-time token parameter just distributed by the server. Wherein the user ID is an ID used when an authorized user of the playing page logs in the playing page. The form of the URL requesting the video is, for example, rtmp:// evideeo. km. netease. com/vod/pt/2016/20161220144329_ wrewxs. mp 4? In the embodiment of the present invention, the URL carrying the real-time token parameter is, for example, rtmp:// evideeo.km.netease.com/vod/pt/2016/20161220144329 _ wrewxs.mp 4? token ═ eqpafqpa 8 ufha 7338d2c3FEGc46be34b0da9OOvB8KWVxtB95FS 53. The operation of sending the URL to the server may be to open a playing page, click a specific button, for example, "start playing", and then add the real-time token parameter to the URL and send the URL together to the server; or the client player automatically carries the real-time token parameter and sends the URL to the server.
And when the server receives the video request URL which is sent by the client and carries the real-time token parameter, the validity of the real-time token parameter is verified. In this embodiment, an ngx _ http _ Lua _ module based on an Nginx server is used to develop a Lua script program to verify the validity of the real-time token parameter, for example, by comparing the real-time token parameter with all token parameters previously received in a server-side database, the validity of the real-time token parameter is determined if the token parameter identical to the real-time token parameter exists in the database; and if the same token parameter does not exist in the database, judging that the real-time token parameter is effective. That is, the server can only use the token parameter once per client assignment. Of course, other ways to verify the token parameter validity may be used, and the invention is not limited thereto.
When the real-time token parameter is judged to be effective, the Nginx-rtmp streaming media plug-in compiled into the Nginx server starts to transmit video stream to the client, the client player starts to play video, and the server records the client playing connection information; otherwise, the streaming media plug-in does not transmit the video to the client, and the player cannot play the video.
After the video starts to be played, the client may call a play verification interface (i.e., the intermediate verification program) of the server at intervals (the time intervals may be uniform or non-uniform) to verify the play validity. For example, after 10 minutes of playing, a verification box, such as a sliding puzzle, a mathematical operation, etc., pops up in a certain area of the playing page, and the user must operate the mouse to verify the box. If the verification is passed, continuing to play; if the verification fails, the drop method of the nginx-rtmp streaming media plug-in is called to stop transmitting the video to the client in the playing connection information recorded previously, the connection is interrupted, and certain plug-ins are prevented from automatically intercepting playing addresses and token parameters to play and cache the video.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several equivalent substitutions or obvious modifications can be made without departing from the spirit of the invention, and all the properties or uses are considered to be within the scope of the invention.

Claims (8)

1. An online playing system for web videos for preventing downloading comprises a streaming media server and a client player, and is characterized in that:
the streaming media server is configured to have a compilable token verification program, a streaming media control program and an intermediate verification program, and can allocate a real-time token parameter to a client when the client opens a playing page;
the player is configured to carry the real-time token parameter when sending a video request URL to the streaming media server;
the token verification program is used for judging the validity of the real-time token parameter carried by the received video request URL; if the real-time token parameter is judged to be valid, the streaming media control program transmits a video stream to the client so that the player starts playing the video; if the real-time token parameter is judged to be invalid, the streaming media control program refuses to transmit the video stream to the client;
the intermediate verification program is used for intermittently verifying the playing validity in the video playing process; the streaming media control program determines whether to continue transmitting the video stream to the client according to the playing validity verification result;
the step of judging the validity of the real-time token parameter by the token verification program specifically comprises the following steps: judging whether a token parameter identical to the real-time token parameter exists in a database of the streaming media server, and if so, judging that the real-time token parameter is invalid; if not, judging that the real-time token parameter is effective; wherein, all token parameters received by the streaming media server before are stored in the database; the streaming media server is configured to calculate a unique real-time token parameter based on at least a user ID and a timestamp of the client when the client opens the playing page, and to assign the unique real-time token parameter to the client.
2. The web video online playing system according to claim 1, wherein: the user ID is an ID used when an authorized user of the playing page logs in the playing page.
3. The web video online playing system according to claim 1, wherein: when the real-time token parameter is judged to be valid, the streaming media server records the playing connection information of the client; and when the playing validity verification fails, the streaming media control program stops continuously transmitting the video stream to the client based on the playing connection information.
4. The web video online playing system according to claim 1 or 3, wherein: after the video starts to be played, the client calls the intermediate verification program at intervals of preset time or at random time to verify the playing validity.
5. The web video online playing system of claim 4, wherein: the modes of verifying the playing validity by the intermediate verification program at least comprise mouse sliding, touch gestures and picture/character verification.
6. The web video online playing system according to claim 1, wherein: the streaming media server is an Nginx video server, and the video streaming service is based on an rtmp protocol; the streaming media control program is an nginx-rtmp streaming media plug-in; the token validation program is a Lua script program developed based on the ngx _ http _ Lua _ module.
7. The control method of the web video online playing system according to any one of claims 1 to 6, comprising:
when a playing page is opened by a client, receiving a real-time token parameter distributed by the streaming media server, and sending the real-time token parameter and a video request URL to the streaming media server together so that the streaming media server can carry out validity judgment on the real-time token parameter; the real-time token parameter is a unique parameter generated according to the user ID and the timestamp;
when the real-time token parameter is judged to be valid and a video stream from the streaming media server is received, starting to play the video;
after the video starts playing, the intermediate verification program is called intermittently to verify the validity of playing.
8. The control method of the web video online playing system according to any one of claims 1 to 6, comprising:
when a client opens a playing page, allocating a real-time token parameter to the client; the real-time token parameter is a unique parameter generated according to the user ID and the timestamp;
when a video request URL from the client is received, judging whether the real-time token parameter carried by the video request URL is valid;
when the real-time token parameter is judged to be valid, starting to transmit a video stream to the client;
refusing to transmit the video stream to the client when the real-time token parameter is determined to be invalid;
after the video starts to play, intermittently verifying the playing validity; if the playing validity passes, the transmission of the video stream is not interrupted; and if the playing validity verification fails, stopping the transmission of the video stream.
CN201810036847.3A 2018-01-15 2018-01-15 Web video online playing system capable of preventing downloading and control method thereof Active CN108200452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810036847.3A CN108200452B (en) 2018-01-15 2018-01-15 Web video online playing system capable of preventing downloading and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810036847.3A CN108200452B (en) 2018-01-15 2018-01-15 Web video online playing system capable of preventing downloading and control method thereof

Publications (2)

Publication Number Publication Date
CN108200452A CN108200452A (en) 2018-06-22
CN108200452B true CN108200452B (en) 2020-08-18

Family

ID=62589521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810036847.3A Active CN108200452B (en) 2018-01-15 2018-01-15 Web video online playing system capable of preventing downloading and control method thereof

Country Status (1)

Country Link
CN (1) CN108200452B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064972A (en) * 2019-11-28 2020-04-24 湖北工业大学 Live video control method based on IPV9
CN115225390B (en) * 2022-07-21 2024-04-02 广东电网有限责任公司 Power grid cloud broadcasting method, terminal equipment, server side and power grid cloud broadcasting system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103355000A (en) * 2010-12-31 2013-10-16 阿卡麦科技公司 Extending data confidentiality into a player application
CN104144160A (en) * 2014-07-08 2014-11-12 北京彩云动力教育科技有限公司 Online video resource downloading prevention method and system
CN105243313A (en) * 2010-01-12 2016-01-13 维萨国际服务协会 Anytime validation for verification tokens
CN105704139A (en) * 2016-03-16 2016-06-22 杭州狮说教育科技有限公司 RTMP protocol-based streaming media service user authentication method
CN106028064A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcasting video streaming playing address authorization verification method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101518089B1 (en) * 2007-11-16 2015-05-15 톰슨 라이센싱 System and method for session management of streaming media
CN103188229B (en) * 2011-12-30 2017-09-12 上海贝尔股份有限公司 The method and apparatus accessed for secure content
CN103561040A (en) * 2013-11-15 2014-02-05 中国科学院声学研究所 File downloading method and system
CN105227315B (en) * 2015-08-31 2021-11-16 青岛海尔智能家电科技有限公司 Web application authentication method, server and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243313A (en) * 2010-01-12 2016-01-13 维萨国际服务协会 Anytime validation for verification tokens
CN103355000A (en) * 2010-12-31 2013-10-16 阿卡麦科技公司 Extending data confidentiality into a player application
CN104144160A (en) * 2014-07-08 2014-11-12 北京彩云动力教育科技有限公司 Online video resource downloading prevention method and system
CN105704139A (en) * 2016-03-16 2016-06-22 杭州狮说教育科技有限公司 RTMP protocol-based streaming media service user authentication method
CN106028064A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcasting video streaming playing address authorization verification method and system

Also Published As

Publication number Publication date
CN108200452A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
US11627108B2 (en) Network address resolution
JP4619353B2 (en) System for distributing multimedia content
US9332287B2 (en) System and method for session management of streaming media
US8862754B2 (en) Global access control for segmented streaming delivery
US20130144714A1 (en) Method, Apparatus and System for Supporting Advertisement Contents in HTTP Streaming Play Mode
CA2883195C (en) System and method for delivering an audio-visual content to a client device
US20110126018A1 (en) Methods and systems for transaction digital watermarking in content delivery network
RU2602244C1 (en) Inheritance of uniform resource identifier (uri) parameters
EP2350909A1 (en) Controlled delivery of content data streams to remote users
CN108200452B (en) Web video online playing system capable of preventing downloading and control method thereof
CN107925798B (en) Receiving apparatus, transmitting apparatus, and data processing method
CN113965769A (en) Live broadcast system for online education
CN111294667A (en) Online video anti-theft system and method based on encryption timestamp
KR20040088868A (en) Apparatus and method for deliverying digital contents
CN109167790B (en) Hadoop-based cross-platform video-on-demand system
CN113973236B (en) Anti-hotlinking method and device for video service, computing equipment and storage medium
KR100510908B1 (en) A security method of streaming service with media player
KR20110019922A (en) Creation system for preview file of offer system with contents

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