CN108337561A - A kind of local DRM video flowings decryption method based on HTTPServer inside iOS clients - Google Patents

A kind of local DRM video flowings decryption method based on HTTPServer inside iOS clients Download PDF

Info

Publication number
CN108337561A
CN108337561A CN201710045988.7A CN201710045988A CN108337561A CN 108337561 A CN108337561 A CN 108337561A CN 201710045988 A CN201710045988 A CN 201710045988A CN 108337561 A CN108337561 A CN 108337561A
Authority
CN
China
Prior art keywords
local
httpserver
ios
drm
player
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.)
Granted
Application number
CN201710045988.7A
Other languages
Chinese (zh)
Other versions
CN108337561B (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.)
Johnsen Shilian Digital Technology (beijing) Co Ltd
Chuangsheng Shilian Digital Technology Beijing Co Ltd
Original Assignee
Johnsen Shilian Digital Technology (beijing) 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 Johnsen Shilian Digital Technology (beijing) Co Ltd filed Critical Johnsen Shilian Digital Technology (beijing) Co Ltd
Priority to CN201710045988.7A priority Critical patent/CN108337561B/en
Publication of CN108337561A publication Critical patent/CN108337561A/en
Application granted granted Critical
Publication of CN108337561B publication Critical patent/CN108337561B/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

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

Abstract

The invention discloses a kind of local DRM video flowings decryption methods based on HTTPServer inside iOS clients; in the present invention; video file is encrypted in server end first; then iOS clients are locally downloading encrypted DRM videos again; then the decryption scheme that is consulted by local and server decrypts video; it finally plays out, if other people get and have downloaded the local DRM video files of completion and can not directly play, thus protects the copyright of video.

Description

A kind of local DRM video flowings decryption based on HTTPServer inside iOS clients Method
Technical field
The present invention relates to field of video broadcasting technology, specially a kind of sheet based on HTTPServer inside iOS clients Ground DRM video flowing decryption methods.
Background technology
IOS builds at end and starts internal HTTPServer as the network server of the locals iOS player to load and solve The DRM video files that close iOS is locally stored realize the broadcasting of DRM videos;In the prior art, iOS mobile phones, which have been locally-downloaded, does not add It is primary or third party's player directly plays by iOS after close video file.The shortcomings that prior art:Video file can be with It is obtained and is played by other people, completely without safeguard measure.
Invention content
The purpose of the present invention is to provide a kind of local DRM video flowings solutions based on HTTPServer inside iOS clients Decryption method, to solve the problems mentioned in the above background technology.
To achieve the above object, the present invention provides the following technical solutions:One kind is based on HTTPServer inside iOS clients Local DRM video flowings decryption method, include the following steps:
A, iOS client wants will play some DRM file, load the corresponding addresses url of the video with player first;
B, player is sent on network request to the local HTTPServer at the ends iOS;
C, local HTTPServer loads the DRM files;
D, local HTTPServer is got by encrypted DRM files stream;
E, local HTTPServer decryption of drm file streams;
F, the video that local HTTPServer is sent after decryption flows to player;
G, the video after local player plays decryption.
Preferably, decryption method includes the following steps in the step E:
A, iOS clients download encrypted DRM video files from server end first;
B, the HTTPServer of iOS client terminal start-ups local, and monitor some port numbers;Wherein, port numbers are by developer It makes by oneself;
C, player loads the video url to be played, and asks local HTTPServer servers;
D, the local HTTPServer of iOS clients is received after the http request that player is sent out, and returns to iOS visitors Family end request results;
E, the local HTTPServer of iOS clients obtains start parameters according to the Range fields of http request;
F, the parts header of local DRM video files are parsed;
G, decryption of drm file encryption part, since encrypted fields are all by des encryption, decruption key is all previously stored in In mobile phone EMS memory;
H, the local HTTPServer of iOS clients uses decryption according to the count got above and the value of length Key rotation decrypts encrypted field, and is stored in iOS mobile phone EMS memories;
I, after the local HTTPServer of iOS clients does different processing according to the start parameters got, number According to player is passed back, played out by player.
Preferably, the local HTTPServer of iOS clients needs the place done according to start parameters in the step I Reason method includes the following steps:
If A, start parameters will return to all decryption numbers equal to the local HTTPServer of 0, iOS clients According to clear data to player;
If B, start parameters are more than 0 and less than the original length of encryption part, the locals of iOS clients HTTPServer is by the ciphertext data after returning to start length values and clear data to player;
If C, start parameters are more than the original length of encryption part, according to start parameters, the original length of encryption data Degree and encrypted length calculate file jump location and return data to broadcasting after jumping to the corresponding position of DRM files Device.
Compared with prior art, the beneficial effects of the invention are as follows:In the present invention, video file adds in server end first Close, then iOS clients are locally downloading encrypted DRM videos again, the solution then consulted by local and server Close scheme decrypts video, finally plays out, if other people, which get, has downloaded the local DRM video files of completion simultaneously It cannot directly play, thus protect the copyright of video.
Description of the drawings
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the decryption flow chart of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
- 2 are please referred to Fig.1, the present invention provides a kind of technical solution:It is a kind of based on HTTPServer inside iOS clients Local DRM video flowings decryption method, includes the following steps:
A, iOS client wants will play some DRM file, load the corresponding addresses url of the video with player first;
B, player is sent on network request to the local HTTPServer at the ends iOS;
C, local HTTPServer loads the DRM files;
D, local HTTPServer is got by encrypted DRM files stream;
E, local HTTPServer decryption of drm file streams;
F, the video that local HTTPServer is sent after decryption flows to player;
G, the video after local player plays decryption.
In the present embodiment, decryption method includes the following steps in step E:
A, iOS clients download encrypted DRM video files from server end first;
B, the HTTPServer of iOS client terminal start-ups local, and monitor some port numbers;Wherein, port numbers are by developer It makes by oneself;
C, player loads the video url to be played, and asks local HTTPServer servers;
D, the local HTTPServer of iOS clients is received after the http request that player is sent out, and returns to iOS visitors Family end request results;
E, the local HTTPServer of iOS clients obtains start parameters according to the Range fields of http request;
F, the parts header of local DRM video files are parsed;
G, decryption of drm file encryption part, since encrypted fields are all by des encryption, decruption key is all previously stored in In mobile phone EMS memory;
H, the local HTTPServer of iOS clients uses decryption according to the count got above and the value of length Key rotation decrypts encrypted field, and is stored in iOS mobile phone EMS memories;
I, after the local HTTPServer of iOS clients does different processing according to the start parameters got, number According to player is passed back, played out by player.
In the present embodiment, the local HTTPServer of iOS clients needs the place done according to start parameters in step I Reason method includes the following steps:
If A, start parameters will return to all decryption numbers equal to the local HTTPServer of 0, iOS clients According to clear data to player;
If B, start parameters are more than 0 and less than the original length of encryption part, the locals of iOS clients HTTPServer is by the ciphertext data after returning to start length values and clear data to player;
If C, start parameters are more than the original length of encryption part, according to start parameters, the original length of encryption data Degree and encrypted length calculate file jump location and return data to broadcasting after jumping to the corresponding position of DRM files Device.
In the present invention, video file is encrypted in server end first, and then iOS clients again regard encrypted DRM Frequently locally downloading, the decryption scheme that is then consulted by local and server decrypts video, finally plays out, if its Other people, which get, has downloaded the local DRM video files of completion and can not directly play, and thus protects the copyright of video.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with Understanding without departing from the principles and spirit of the present invention can carry out these embodiments a variety of variations, modification, replace And modification, the scope of the present invention is defined by the appended.

Claims (3)

1. a kind of local DRM video flowings decryption method based on HTTPServer inside iOS clients, it is characterised in that:Including Following steps:
A, iOS client wants will play some DRM file, load the corresponding addresses url of the video with player first;
B, player is sent on network request to the local HTTPServer at the ends iOS;
C, local HTTPServer loads the DRM files;
D, local HTTPServer is got by encrypted DRM files stream;
E, local HTTPServer decryption of drm file streams;
F, the video that local HTTPServer is sent after decryption flows to player;
G, the video after local player plays decryption.
2. a kind of local DRM video flowings decryption side based on HTTPServer inside iOS clients according to claim 1 Method, it is characterised in that:Decryption method includes the following steps in the step E:
A, iOS clients download encrypted DRM video files from server end first;
B, the HTTPServer of iOS client terminal start-ups local, and monitor some port numbers;Wherein, port numbers are made by oneself by developer;
C, player loads the video url to be played, and asks local HTTPServer servers;
D, the local HTTPServer of iOS clients is received after the http request that player is sent out, and returns to iOS clients Request results;
E, the local HTTPServer of iOS clients obtains start parameters according to the Range fields of http request;
F, the parts header of local DRM video files are parsed;
G, decryption of drm file encryption part, since encrypted fields are all by des encryption, decruption key is all previously stored in mobile phone In memory;
H, the local HTTPServer of iOS clients uses decruption key according to the count got above and the value of length Cycle decrypts encrypted field, and is stored in iOS mobile phone EMS memories;
I, after the local HTTPServer of iOS clients does different processing according to the start parameters got, data are passed Player is returned, is played out by player.
3. a kind of local DRM video flowings decryption side based on HTTPServer inside iOS clients according to claim 2 Method, it is characterised in that:The local HTTPServer of iOS clients needs the processing done according to start parameters in the step I Method includes the following steps:
If A, start parameters be equal to 0, iOS clients local HTTPServer will return all ciphertext datas and Clear data is to player;
If B, start parameters are more than 0 and less than the original length of encryption part, the locals of iOS clients HTTPServer is by the ciphertext data after returning to start length values and clear data to player;
If C, start parameters be more than encryption part original length, according to start parameters, encryption data original length and Encrypted length calculates file jump location and returns data to player after jumping to the corresponding position of DRM files.
CN201710045988.7A 2017-01-20 2017-01-20 Local DRM video stream decryption method based on internal HTTPServer of iOS client Active CN108337561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710045988.7A CN108337561B (en) 2017-01-20 2017-01-20 Local DRM video stream decryption method based on internal HTTPServer of iOS client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710045988.7A CN108337561B (en) 2017-01-20 2017-01-20 Local DRM video stream decryption method based on internal HTTPServer of iOS client

Publications (2)

Publication Number Publication Date
CN108337561A true CN108337561A (en) 2018-07-27
CN108337561B CN108337561B (en) 2021-07-30

Family

ID=62922343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710045988.7A Active CN108337561B (en) 2017-01-20 2017-01-20 Local DRM video stream decryption method based on internal HTTPServer of iOS client

Country Status (1)

Country Link
CN (1) CN108337561B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130166906A1 (en) * 2011-12-22 2013-06-27 Viswanathan Swaminathan Methods and Apparatus for Integrating Digital Rights Management (DRM) Systems with Native HTTP Live Streaming
CN103620609A (en) * 2011-05-02 2014-03-05 英赛瑟库尔公司 Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system
CN104104676A (en) * 2014-07-09 2014-10-15 福建星网视易信息***有限公司 Audio/video playing method and device
CN106101866A (en) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 A kind of method of HLS Streaming Media DRM
CN106331751A (en) * 2016-08-31 2017-01-11 广州易方信息科技有限公司 Online encrypted slice video playing method based on iOS operating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620609A (en) * 2011-05-02 2014-03-05 英赛瑟库尔公司 Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system
US20130166906A1 (en) * 2011-12-22 2013-06-27 Viswanathan Swaminathan Methods and Apparatus for Integrating Digital Rights Management (DRM) Systems with Native HTTP Live Streaming
CN104104676A (en) * 2014-07-09 2014-10-15 福建星网视易信息***有限公司 Audio/video playing method and device
CN106101866A (en) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 A kind of method of HLS Streaming Media DRM
CN106331751A (en) * 2016-08-31 2017-01-11 广州易方信息科技有限公司 Online encrypted slice video playing method based on iOS operating system

Also Published As

Publication number Publication date
CN108337561B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
KR101420943B1 (en) Web media asset identification system and method
US8555367B2 (en) Method and system for securely streaming content
CN104854894B (en) For the content URL certifications of DASH
US9432427B2 (en) System and method for effectively controlling client behavior in adaptive streaming
US9230126B2 (en) Device authentication for secure key retrieval for streaming media players
US8832726B2 (en) Video streaming entitlement determined based on the location of the viewer
CN102143133B (en) Method, device and system for supporting advertisement content in hyper text transport protocol (HTTP) stream playing manner
CN110138716A (en) A kind of offer of key, video broadcasting method, server and client
US20130042100A1 (en) Method and apparatus for forced playback in http streaming
US20040199667A1 (en) Method and apparatus for offering preferred transport within a broadband subscriber network
US20080120230A1 (en) Method and device for providing the device with access rights to access rights controlled digital content
WO2017113940A1 (en) Method, apparatus and electronic device for testing network speed
US8806208B2 (en) Apparatuses and methods for enabling a user to consume protected contents of a content provider
US8539244B2 (en) Server, authentication server, content delivery system, and program
CN103957436A (en) Video anti-stealing-link method based on OTT service
CN107707504A (en) A kind of player method of Streaming Media, system and server and client side
JP2010536298A (en) Method and apparatus for partial encryption of digital content
CN105049941B (en) A kind of processing method and processing device of multimedia file
CN106375834A (en) Offline playing method and apparatus of online encrypted slice videos based on iOS operating system
CN103220297B (en) Method for carrying out multi-screen interaction through social network
CN108055356A (en) A kind of information processing method, server, client and readable storage medium storing program for executing
CN108337561A (en) A kind of local DRM video flowings decryption method based on HTTPServer inside iOS clients
CN103200426B (en) The management method of a kind of authorization-duration and device
CN112261040B (en) Online audio and video anti-theft method and system
WO2007066107A1 (en) A method of making media files available for delivery to portable electronic devices

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