CN109451345A - A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television - Google Patents

A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television Download PDF

Info

Publication number
CN109451345A
CN109451345A CN201811307932.5A CN201811307932A CN109451345A CN 109451345 A CN109451345 A CN 109451345A CN 201811307932 A CN201811307932 A CN 201811307932A CN 109451345 A CN109451345 A CN 109451345A
Authority
CN
China
Prior art keywords
screen
throwing
throws
mac address
end equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811307932.5A
Other languages
Chinese (zh)
Inventor
程胜莲
孟振国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201811307932.5A priority Critical patent/CN109451345A/en
Publication of CN109451345A publication Critical patent/CN109451345A/en
Pending legal-status Critical Current

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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content

Landscapes

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

Abstract

The invention discloses the methods that DLNA in a kind of Android intelligent television throws screen authority managing and controlling, when Android intelligent television receives push and throws screen request, first distinguish the equipment whether the credible equipment of known identities, the equipment that only the TV owner approves just is allowed to throw screen, otherwise the throwing screen for not receiving unidentified equipment is requested, DLNA is thrown in the method for screen authority managing and controlling in Android intelligent television of the invention, by the authority managing and controlling for throwing screen request, authorize throwing screen of the credible equipment in Android intelligent television, prevent the throwing screen of unknown device from occurring, to be effectively guaranteed the safe handling that DLNA in Android intelligent television throws screen.

Description

A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television
Technical field
The present invention relates to end equipments mobile in local area network to throw the legal power safety shielded to Android intelligent television end based on DLNA Technical field, the in particular to method that DLNA throws screen authority managing and controlling in a kind of Android intelligent television.
Background technique
DLNA full name is DIGITAL LIVING NETWORK ALLIANCE, it is intended to solve the interconnection including various equipment Intercommunication, the media resources such as photo, video, the music of let us can be shared in a device, so that Digital Media and content service Unconfined shared and growth is possibly realized.Therefore, DLNA provides a solution for the interconnection of various smart machines, and one The specification that everybody can abide by is planted, the various technologies and agreement of selection are all the very extensive technology of current application and agreement.
Android intelligent television has excellent audio as big screen equipment, is well suited for interconnecting with smaller screen mobile device, Picture, audio, the video resource of small screen equipment are played on TV.Therefore, many Android intelligent televisions, which are all equipped with, is based on The multi-screen interactive application of DLNA, when supporting DLNA to throw screen in Android intelligent, so that it may conveniently by dredging collateral by hand Smaller screen shows that content throws screen to video screen on machine.As WIFI resource largely uses, screen is thrown using also more and more. But the opening of WIFI network, a little unknown devices can be accessed, multi-screen interactive, can also while facilitating equipment owner to use Unknown device can be caused to access, uncontrollable throwing screen behavior occur, bring interference and security risk for TV user.
Summary of the invention
It is insufficient the purpose of the present invention is overcoming in above-mentioned background technique, DLNA in a kind of Android intelligent television is provided and is thrown The method for shielding authority managing and controlling is realized based on the rights management for throwing screen equipment information, can be implemented forever for determining credible equipment Screen authorization is thrown long, and the throwing screen of unknown device is then rejected, and be ensure that and is thrown screen safety in Android intelligent television in local area network.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television, based on it is mobile throw screen end equipment and Android intelligent television is equipped with DLNA in the Android intelligent television and throws screen application, specifically includes the following steps:
A. mobile screen end equipment of throwing is initiated to throw screen request to Android intelligent television;
The DLNA of B.Android smart television throws screen application and receives analysis request message after throwing screen request, obtains mobile throw Shield the IP address information of end equipment and sends player layer to;
C. player layer is based on the mobile IP address for throwing screen end equipment, in the network routing that Android intelligent television saves The mobile MAC Address for throwing screen end equipment is inquired in address lookup table;
D.DLNA throws the throwing screen that screen application is saved based on the mobile MAC Address for throwing screen end equipment in Android intelligent television The mobile throwing screen permission for throwing screen end equipment is inquired and handled in permissions list, and is saved according to processing result real-time update and thrown screen power Limit list;Wherein, the throwing screen permissions list as key word index and preserves the corresponding movement of each MAC Address using MAC Address Throw the throwing screen rights state of screen end equipment;
E.DLNA, which throws screen and handles this using the query result based on step D and throw, shields request, and processing throws screen and requests specific packet It includes receiving and throws screen or refusal throwing screen.
DLNA throws the method for screen authority managing and controlling, it can be achieved that in Android intelligence in Android intelligent television through the invention Can television reception to push throw screen request when, first distinguish the equipment whether the credible equipment of known identities, only the TV owner The equipment of approval is just allowed to throw screen, otherwise requests the throwing screen for not receiving unidentified equipment, by the permission for throwing screen request Control authorizes throwing screen of the credible equipment in Android intelligent television, prevents the throwing screen of unknown device from occurring, thus effectively It ensure that DLNA throws the safe handling shielded in Android intelligent television.
Further, the equipment throw screen rights state specifically include it is permanent receive to throw screen, permanent refusal throws screen, throws screen power It limits three kinds of states of transient state, and preserves each MAC Address throwing report in screen permissions list corresponding mobile to throw screen end equipment continuous Refusal throws the counting of screen.
Further, the step D specifically includes the following steps:
D1.DLNA throws the inquiry movement in throwing screen permissions list of MAC Address of the screen application based on mobile throwing screen end equipment and throws Shield the throwing screen permission of end equipment;
D2. judge throw in screen permissions list whether recorded the MAC Address, do not record the MAC if throwing in screen permissions list Address then enters step D3, otherwise, enters step D4;
D3. the MAC Address is added in throwing screen permissions list, and corresponding mobile throw of MAC Address is set and shields end equipment It is counted as 0 by continuous refusal throwing screen, then pop-up throws screen request permissions prompting interface and enters step D5;
D4. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address is obtained, if the state obtained is permanent Receive to throw screen, then return to the query result for receiving to throw screen and enters step E;
If the state obtained is that permanent refusal throws screen, returns to refusal and throw the query result of screen and enter step E;
If the state obtained is to throw screen permission transient state, pops up throwing screen request permissions prompting interface and enter step D5;
D5. user's mobile throwing screen end equipment setting corresponding to the MAC Address on throwing screen request permissions prompting interface is thrown Shield permission, throws and provide three kinds of throwing screen permissions in screen request permissions prompting interface for user's selection, specifically include: permanently receiving throwing Screen, this receives, and throwing is shielded, refusal throws screen;
D6 is entered step if user selects permanently to receive to throw screen, is entered step if user selects this to receive throwing screen D7 enters step D8 if user selects refusal to throw screen;
D6. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated for forever It is long to receive to throw screen, and the corresponding movement throwing screen end equipment of the MAC Address is set and is counted as 0 by what continuous refusal throwing was shielded, return connects By the query result for throwing screen and enter step E;
D7. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated to throw Shield permission transient state, and the corresponding movement throwing screen end equipment of the MAC Address is set and is counted as 0 by what continuous refusal throwing was shielded, return connects By the query result for throwing screen and enter step E;
D8. the query result that refusal throws screen is returned, the corresponding mobile screen end of throwing of the MAC Address in screen permissions list will be thrown and set Add 1 and more New count in original count for by the continuous counting for refusing to throw screen, judges updated whether count greater than preset Refuse threshold value N, if updated count is greater than preset refusal threshold value N, it is corresponding to update the MAC Address in throwing screen permissions list The throwing screen rights state of mobile throwing screen end equipment be that permanent refusal throws screen, enter step E.
DLNA throws screen and applies when player layer receives throwing screen request, goes inquiry to throw screen priority assignation state first, such as Fruit is enabled state, then obtains the mobile terminal IP address thrown in screen request, then locally saved using the address in television The MAC Address of the IP address current device is inquired in ARP table (network routing address inquiry table), then is gone based on the MAC Address Screen authority list is thrown in inquiry, (is thrown in screen authority list if the MAC Address equipment does not throw screen authority records and has not been recorded the MAC Address), then it is assumed that it is to throw screen for the first time, screen priority assignation window is thrown in pop-up;It is thrown if the MAC Address equipment has been recorded as refusal Screen then checks that continuous refusal throws screen number, distinguishes situation and make subsequent processing;If the MAC Address equipment has been recorded as forever Refuse to throw screen long, then directly respond and refuse equipment throwing screen, above-mentioned design logic can specifically be located according to the selection situation of user Reason realizes that state machine is jumped and safeguarded, is effectively guaranteed based on the mode that user interface selection and internal layer logic combine DLNA throws the safe handling of screen in Android intelligent television.
Further, the refusal threshold value N is equal to 3, also may be set to other values in practice.
Compared with prior art, the present invention have it is below the utility model has the advantages that
DLNA is thrown in the method for screen authority managing and controlling in Android intelligent television of the invention, throws screen stream in originally requested content Increase rights management node in journey provides authorisation device and throws screen operation, authorised device certainly for screen equipment is thrown come classification processing The processing strategies such as the dynamic throwing screen for throwing screen, refusal unauthorized device, to realize movement on the basis of the throwing screen service of optimized integration The throwing screen authority managing and controlling of end equipment, the unsafe row for efficiently solving malicious interference in WIFI LAN environment, occupying TV To have ensured that Android intelligent television possesses the ownership equity shown to TV screen, having prevented unknown device with other people to TV It pushes uncontrollable matchmaker and provides displaying, be effectively guaranteed the safe handling that DLNA in Android intelligent television throws screen.
Detailed description of the invention
Fig. 1 is that DLNA throws the reality of the method for screen authority managing and controlling in Android intelligent television in one embodiment of the present of invention The schematic diagram of existing framework.
Fig. 2 is the throwing screen permission processing flow schematic diagram that DLNA throws screen application in one embodiment of the present of invention.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
It will be explained in detail a kind of embodiment of a kind of technical solution for realizing this method and this method in the present embodiment, it is real Other schemes can also be used in border and implement this method.
Many application ends are all supported to arrive content push on smaller screen in Android intelligent in same LAN environment It is shown in large-size screen monitors Android intelligent television, such as camera, various sound screen softwares etc., application scenarios are very extensive.But with The opening of WIFI resource and the complexity of access device, multi-screen push class application also suffer from security threat, such as unknown hand After machine equipment accesses the WIFI where Android TV by force, the media push of various pictures, audio-video can be supported, in TV It is shown on screen.If pushed content is illegal or against morals, very severe is brought to user and television manufacturer It influences.Therefore, Android intelligent television is when receiving push and throwing screen request, need to distinguish the equipment whether known identities The equipment that credible equipment, only the TV owner are approved just is allowed to throw screen, otherwise will not receive the throwing screen of unidentified equipment Request.
A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television is disclosed in the present embodiment, is specifically existed The support DLNA push carried in Android intelligent television is thrown in the application of screen, is increased authorization node in request entrance and is handled mould Block just continues original throwing screen and plays business processing flow only by agreeing to throw the mobile terminal of screen.It is mentioned to throw screen for DLNA Flexible rights management is supplied, effective guarantee Android intelligent television upslide screen safety.
A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television, based on it is mobile throw screen end equipment and Android intelligent television is equipped with DLNA in Android intelligent television and throws screen application, specifically includes the following steps:
A. mobile screen end equipment of throwing is initiated to throw screen request to Android intelligent television;
The DLNA of B.Android smart television throws screen application and receives analysis request message after throwing screen request, obtains mobile throw Shield the IP address information of end equipment and sends player layer to;
C. player layer is based on the mobile IP address for throwing screen end equipment, in the network routing that Android intelligent television saves The mobile MAC Address for throwing screen end equipment is inquired in address lookup table;
D.DLNA throws the throwing screen that screen application is saved based on the mobile MAC Address for throwing screen end equipment in Android intelligent television The mobile throwing screen permission for throwing screen end equipment is inquired and handled in permissions list, and is saved according to processing result real-time update and thrown screen power Limit list;Wherein, screen permissions list is thrown using MAC Address as key word index and preserves the corresponding mobile throwing screen of each MAC Address The throwing screen rights state of end equipment;
Equipment throw screen rights state specifically include it is permanent receive to throw screen, permanent refusal throws screen, throws screen three kinds of shapes of permission transient state State, and the meter that the corresponding movement throwing screen end equipment of each MAC Address is shielded by continuous refusal throwing is preserved throwing report in screen permissions list Number refcount.
As shown in Fig. 2, step D specifically includes the following steps:
D1.DLNA throws the inquiry movement in throwing screen permissions list of MAC Address of the screen application based on mobile throwing screen end equipment and throws Shield the throwing screen permission of end equipment;
D2. judge throw in screen permissions list whether recorded the MAC Address, do not record the MAC if throwing in screen permissions list Address then enters step D3, otherwise, enters step D4;
D3. the MAC Address is added in throwing screen permissions list, and corresponding mobile throw of MAC Address is set and shields end equipment It is 0 by the counting refcount that continuous refusal throws screen, then pop-up throws screen request permissions prompting interface and enters step D5;
D4. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address is obtained, if the state obtained is permanent Receive to throw screen, then return to the query result for receiving to throw screen and enters step E;
If the state obtained is that permanent refusal throws screen, returns to refusal and throw the query result of screen and enter step E;
If the state obtained is to throw screen permission transient state, pops up throwing screen request permissions prompting interface and enter step D5;
D5. user's mobile throwing screen end equipment setting corresponding to the MAC Address on throwing screen request permissions prompting interface is thrown Shield permission, throws and provide three kinds of throwing screen permissions in screen request permissions prompting interface for user's selection, specifically include: permanently receiving throwing Screen, this receives, and throwing is shielded, refusal throws screen;
D6 is entered step if user selects permanently to receive to throw screen, is entered step if user selects this to receive throwing screen D7 enters step D8 if user selects refusal to throw screen;
D6. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated for forever It is long to receive to throw screen, and the corresponding movement throwing screen end equipment of the MAC Address is set by the counting refcount that continuous refusal throwing is shielded and is 0, it returns to the query result for receiving to throw screen and enters step E;
D7. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated to throw Shield permission transient state, and the corresponding movement throwing screen end equipment of the MAC Address is set by the counting refcount that continuous refusal throwing is shielded and is 0, it returns to the query result for receiving to throw screen and enters step E;
D8. the query result that refusal throws screen is returned, the corresponding mobile screen end of throwing of the MAC Address in screen permissions list will be thrown and set Add 1 and more New count refcount in original count for the counting refcount for throwing screen by continuous refusal, judges updated meter Whether number refcount is greater than preset refusal threshold value N (N=3), if updated counting refcount is greater than preset refusal Threshold value N updates the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list then permanently to refuse Screen is thrown absolutely, enters step E.
E.DLNA, which throws screen and handles this using the query result based on step D and throw, shields request, and processing throws screen and requests specific packet It includes receiving and throws screen or refusal throwing screen, and throw screen end return processing result to mobile.
DLNA throws the method for screen authority managing and controlling, it can be achieved that in Android intelligence in Android intelligent television through the invention Can television reception to push throw screen request when, first distinguish the equipment whether the credible equipment of known identities, only the TV owner The equipment of approval is just allowed to throw screen, otherwise requests the throwing screen for not receiving unidentified equipment, by the permission for throwing screen request Control authorizes throwing screen of the credible equipment in Android intelligent television, prevents the throwing screen of unknown device from occurring, thus effectively It ensure that DLNA throws the safe handling shielded in Android intelligent television.
Currently, Android intelligent television as the receiving device shielded is thrown, is only to identify throwing screen resource on old process, It is played in the machine.In order to realize that throwing screen equipment permission is controlled, need to throw screen process in originally requested content in this programme Middle increase rights management node, for screen equipment is thrown come classification processing, providing authorisation device, to throw screen operation, authorised device automatic Throw the processing strategies such as the throwing screen of screen, refusal unauthorized device.
In the present embodiment, it in order to implement this programme in the Android intelligent television of the present embodiment, is also based on The throwing screen Authority Design of facility information, the original DLNA device of the Android intelligent television of the present embodiment throws screen process can Summary are as follows: when mobile end equipment is initiated to throw screen operation to Android intelligent television, send throw the ground that screen request carries resource first Location is to television;Television application parses information after receiving throwing screen request, obtains media money according to address by player layer Source plays and shows in the machine.
In order to realize the control for throwing screen equipment permission, request to design in responding process in above-mentioned throwing screen in the present embodiment One independent authority management module, after supporting player layer to receive throwing screen request message, for the throwing of device flag setting The rights management node whether screen operation is allowed to.The throwing screen authority management module provides the static interface of inquiry and modification, mentions Player layer is supplied to call.The unique identification by equipment is only needed when throwing screen rights interface and calling, it can be by simple Static method shields permission to judge or modify throwing.It, can be in addition, based on " throw screen authorization " item is newly increased in complete machine setting application Facilitate enabling to throw screen equipment authorization function, the processing for throwing screen authorization can also be removed in safe WIFI environment.
Specifically, throw the method for screen authority managing and controlling for DLNA in the Android intelligent television of the present embodiment as shown in Figure 1 The schematic diagram for realizing framework has specifically included the DLNA agreement thrown in screen end equipment and Android intelligent television in the architecture Stack processing module, Android player throw screen equipment authority management module, throw screen authorization switch, wherein at DLNA protocol stack It manages module, Android player, throw screen equipment authority management module in DLNA throws and shields.
Wherein, throwing screen equipment authority management module is the starting provided in setting application for compatible subscribers use habit The switch of screen permission is thrown, specifically, mobile end equipment DLNA can be directed to when throwing screen when throwing screen priority assignation is " opening " state The equipment does throwing screen permission processing (the monitoring process in this method can be embodied), and throwing screen permission when setting is " closing " shape State then executes original throwing screen process flow, does not do authority managing and controlling.
Specifically, the DLNA protocol stack such as following table institute that DLNA throws screen is handled in the present embodiment in Android intelligent television Show:
Layered protocol Description
Android player Android broadcast layer
UPnP protocol It encapsulates UPnP " action ".
Http protocol Obtain http data
TCP/IP Socket transmission network data
According to UPnP protocol, there is no the pushing equipment end IP address relevant informations in http protocol in original realization.For Push end equipment information is obtained, the realization of this layer protocol will be implemented to be transformed in the present embodiment, will be parsed in push request The IP address at pushing equipment end be encapsulated in UPnP " action " structure in certain field, pass to broadcast layer.Broadcast layer obtains After the IP address for throwing screen equipment to current push, by the network routing address inquiry table of TV local record, push is got The MAC Address of equipment.For broadcast layer using MAC Address as the unique designation of equipment identities, subsequent throwing shields rights management for foundation MAC Address is realized.
Meanwhile it is also some to having been carried out in Android intelligent television end DLNA throwing screen application to protocol library in the present embodiment Scalability modification, main thought are that the IP address information carried in screen request, the ground saved by the end TV are thrown using pushing equipment Location resolution table (ARP table), finds the MAC Address at pushing equipment end, carries out the identification of equipment throwing screen permission based on MAC Address and tests Card.
Television TV when receiving the push of other equipment is abstract as a DMR, runs a HttpServer thread prison The http packet for listening pushing equipment to send is assisted in http protocol layer calling SetupResponse function to UPnP after receiving push packet It discusses layer transmission request and obtains and respond.
SetupResponse function prototype is as follows:
PLT_HttpServer::SetupResponse(NPT_HttpRequest&request,
const NPT_HttpRequestContext&context,
NPT_HttpResponse&response);
UPnP protocol layer calls ProcessHttpPostRequest parsing http after receiving HTTP server push request Packet, and the action packet that UPnP protocol defines is repacked according to HTTP content, pass to renderer layers of processing.In this mistake Bottom-up information in HttpRequestContext about ip will not be packed into account by the action packet realized originally in journey.And Thoroughly HttpRequestContext can be abandoned not when the PLT_MediaRenderer::OnAction () processing of next step It uploads again.
In this regard, we are when PLT_MediaRenderer::OnAction () is handled by PLT_ Ip information in HttpRequestContext parses and is uploaded to CHMediaRenderDelegate:: OnSetAVTransportURI () passes to Android player layer eventually by jni.
Improved ProcessHttpPostRequest, OnAction, OnSetAVTransportURI function prototype is such as Under:
PLT_DeviceHost::ProcessHttpPostRequest(NPT_HttpRequest&request,
const NPT_HttpRequestContext&context,
NPT_HttpResponse&response);
PLT_MediaRenderer::OnAction(PLT_ActionReference&action,
const PLT_HttpRequestContext&context);
CHMediaRenderDelegate::OnSetAVTransportURI(PLT_ActionReference& action,
NPT_String&remoteIP);
So far, DLNA protocol stack transformation finishes, and the IP address at pushing equipment end is output to player layer.
Meanwhile it is also specifically disclosed that a kind of player layer throws screen permission based on the equipment that MAC Address is realized in the present embodiment Management, ARP, that is, address resolution protocol is the basic agreement of network transmission package, and each networked devices locally can learn and tie up Protect the machine ARP table, be stored in local file system using file mode, as in android smart television/proc/ Net/arp file.Based on ARP information, the MAC Address of available corresponding IP as throws the MAC Address of screen equipment.Based on MAC The query interface of screen rights state is thrown in call by location, returns to the throwing screen of the throwing screen or refusal current device that receive current device. Throw all process steps in the step D for realizing logical process and this method inside screen authority management module.
When being embodied and using this method, when Android intelligent television implements factory reset operation, it will empty The throwing screen authority records of local record, including permanently authorize throwing screen, permanent refusal to throw screen, be rejected throwing screen but continuous refusal The record list of the insufficient three classes equipment of number.When throwing screen permission grant switch state changes, screen authority management module is thrown It is all revert to init state, empties all throwing screen authority records.
When local area network switches, since push section and receiving end when DLNA, which is thrown, to be shielded all must be in same local area networks, such as The access network of fruit television switches, then moving the network at delivery end must also cut in new network.Local area network becomes When change, network ip address may change, but the device mac address of access network is will not to change, to based on MAC The throwing screen rights management of address does not influence, and throws screen authority records and remains unchanged.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (4)

1. a kind of method that DLNA throws screen authority managing and controlling in Android intelligent television throws screen end equipment and Android based on mobile Smart television is equipped with DLNA in the Android intelligent television and throws screen application, which is characterized in that specifically includes following step It is rapid:
A. mobile screen end equipment of throwing is initiated to throw screen request to Android intelligent television;
The DLNA throwing screen application of B.Android smart television, which receives, throws analysis request message after screen is requested, and obtains mobile throwing screen end The IP address information of equipment simultaneously sends player layer to;
C. player layer is based on the mobile IP address for throwing screen end equipment, in the network routing address that Android intelligent television saves The mobile MAC Address for throwing screen end equipment is inquired in inquiry table;
D.DLNA throws the throwing screen permission that screen application is saved based on the mobile MAC Address for throwing screen end equipment in Android intelligent television The mobile throwing screen permission for throwing screen end equipment is inquired and handled in list, and is saved according to processing result real-time update and thrown screen permission column Table;Wherein, the throwing screen permissions list as key word index and preserves the corresponding mobile throwing screen of each MAC Address using MAC Address The throwing screen rights state of end equipment;
E.DLNA, which throws screen and handles this using the query result based on step D and throw, shields request, and processing throws screen and requests to specifically include to connect Shielded by throwing screen or refusing to throw.
2. the method that DLNA throws screen authority managing and controlling in a kind of Android intelligent television according to claim 1, feature exist In the mobile throwing screen rights state for throwing screen end equipment specifically includes permanent receiving and throws screen, permanent refusal throwing screen, throws screen permission Three kinds of states of transient state, and continuously refused throwing report in screen permissions list and preserving the corresponding mobile screen end equipment of throwing of each MAC Address The counting of screen is thrown absolutely.
3. the method that DLNA throws screen authority managing and controlling in a kind of Android intelligent television according to claim 2, feature exist In, the step D specifically includes the following steps:
D1.DLNA throws the inquiry movement in throwing screen permissions list of MAC Address of the screen application based on mobile throwing screen end equipment and throws screen end The throwing screen permission of equipment;
D2. judge throw in screen permissions list whether recorded the MAC Address, do not record the MAC Address if throwing in screen permissions list, D3 is then entered step, otherwise, enters step D4;
D3. the MAC Address is added in throwing screen permissions list, and the corresponding mobile screen end equipment of throwing of MAC Address is set and is connected Continuous refusal throwing screen is counted as 0, and then pop-up throws screen request permissions prompting interface and enters step D5;
D4. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address is obtained, if the state obtained is permanent receives Screen is thrown, then return to the query result for receiving to throw screen and enters step E;
If the state obtained is that permanent refusal throws screen, returns to refusal and throw the query result of screen and enter step E;
If the state obtained is to throw screen permission transient state, pops up throwing screen request permissions prompting interface and enter step D5;
D5. user's mobile throwing screen end equipment setting corresponding to the MAC Address on throwing screen request permissions prompting interface is thrown screen and is weighed Limit, throwing, which is shielded, provides three kinds of throwings screen permissions for user's selection in request permissions prompting interface, specifically includes: permanent receiving throwing screen, This receives to throw screen, refusal throwing screen;
D6 is entered step if user selects permanently to receive to throw screen, if user, which selects this to receive throwing screen, enters step D7, if User selects refusal to throw screen and then enters step D8;
D6. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated permanently to connect Shielded by throwing, and the corresponding movement throwing screen end equipment of the MAC Address is set and is counted as 0 by what continuous refusal throwing was shielded, return receives throwing The query result of screen simultaneously enters step E;
D7. the corresponding mobile throwing screen rights state for throwing screen end equipment of the MAC Address in throwing screen permissions list is updated to throw screen power Transient state is limited, and the corresponding movement throwing screen end equipment of the MAC Address is set and is counted as 0 by what continuous refusal throwing was shielded, return receives throwing The query result of screen simultaneously enters step E;
D8. it returns to refusal and throws the query result shielded, corresponding mobile throw of the MAC Address in screen permissions list will be thrown and shield end equipment quilt The counting that continuous refusal throws screen adds 1 and more New count in original count, judges whether updated count is greater than preset refusal Threshold value N updates the corresponding shifting of the MAC Address in throwing screen permissions list if updated count is greater than preset refusal threshold value N The dynamic throwing screen rights state for throwing screen end equipment is that permanent refusal throws screen, enters step E.
4. the method that DLNA throws screen authority managing and controlling in a kind of Android intelligent television according to claim 3, feature exist In the refusal threshold value N is equal to 3.
CN201811307932.5A 2018-11-05 2018-11-05 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television Pending CN109451345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811307932.5A CN109451345A (en) 2018-11-05 2018-11-05 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811307932.5A CN109451345A (en) 2018-11-05 2018-11-05 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television

Publications (1)

Publication Number Publication Date
CN109451345A true CN109451345A (en) 2019-03-08

Family

ID=65551317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811307932.5A Pending CN109451345A (en) 2018-11-05 2018-11-05 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television

Country Status (1)

Country Link
CN (1) CN109451345A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963178A (en) * 2019-03-15 2019-07-02 北京领度信息技术有限公司 Throw the method for screen using safe throwing screen device and device is shielded in safety throwing
CN109982322A (en) * 2019-03-26 2019-07-05 连尚(新昌)网络科技有限公司 A kind of throwing screen method, equipment, system and storage medium
CN110166823A (en) * 2019-06-26 2019-08-23 北京奇艺世纪科技有限公司 Throw screen method and relevant apparatus
CN110418188A (en) * 2019-08-27 2019-11-05 四川长虹电器股份有限公司 The quick intelligent terminal for throwing screen and method
CN110505516A (en) * 2019-05-15 2019-11-26 中海油信息科技有限公司 A kind of throwing screen control method, device and system
CN111294629A (en) * 2020-03-05 2020-06-16 江苏省广电有线信息网络股份有限公司苏州分公司 Intelligent set top box wireless screen projection management and control system and method
CN111427527A (en) * 2020-03-20 2020-07-17 海信视像科技股份有限公司 Screen projection method, device, equipment and computer readable storage medium
CN111464844A (en) * 2020-04-22 2020-07-28 海信视像科技股份有限公司 Screen projection display method and display equipment
CN111988660A (en) * 2020-08-06 2020-11-24 锐捷网络股份有限公司 DLNA equipment screen projection method, gateway, terminal and system
CN112565843A (en) * 2020-12-02 2021-03-26 广州朗国电子科技有限公司 Projection screen control method, device, all-in-one machine and storage medium based on DLNA
CN112770150A (en) * 2020-12-17 2021-05-07 深圳创维-Rgb电子有限公司 Method and device for controlling mobile terminal by smart television and smart television
CN113115083A (en) * 2020-01-10 2021-07-13 海信视像科技股份有限公司 Display apparatus and display method
CN114168094A (en) * 2021-11-24 2022-03-11 深圳康佳电子科技有限公司 Miracast message processing method, device and equipment based on inheritable state machine
CN115150645A (en) * 2022-06-28 2022-10-04 海信视像科技股份有限公司 Display device and display method of screen projection function page
CN116610274A (en) * 2023-05-09 2023-08-18 北京元心君盛科技有限公司 Cross-equipment screen projection method and device, electronic equipment and readable storage medium
WO2024001257A1 (en) * 2022-06-28 2024-01-04 海信视像科技股份有限公司 Display device and processing method for display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917428A (en) * 2010-08-09 2010-12-15 深圳市同洲电子股份有限公司 Method and system for playing home media videos and mobile communication terminal
CN102170639A (en) * 2011-05-11 2011-08-31 华南理工大学 Authentication method of distributed wireless Ad Hoc network
CN102413221A (en) * 2011-11-24 2012-04-11 中兴通讯股份有限公司 Method for protecting privacy information and mobile terminal
CN104581701A (en) * 2014-12-12 2015-04-29 郑锋 Multiple mobile terminal and multiple access terminal connecting and binding method and network system thereof
CN105306451A (en) * 2015-09-28 2016-02-03 青岛海信电器股份有限公司 Method and device for controlling DLNA (Digital Living Network Alliance) equipment service permission
US20170244712A1 (en) * 2016-02-22 2017-08-24 At&T Intellectual Property I, L.P. Dynamic passcodes in association with a wireless access point

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917428A (en) * 2010-08-09 2010-12-15 深圳市同洲电子股份有限公司 Method and system for playing home media videos and mobile communication terminal
CN102170639A (en) * 2011-05-11 2011-08-31 华南理工大学 Authentication method of distributed wireless Ad Hoc network
CN102413221A (en) * 2011-11-24 2012-04-11 中兴通讯股份有限公司 Method for protecting privacy information and mobile terminal
CN104581701A (en) * 2014-12-12 2015-04-29 郑锋 Multiple mobile terminal and multiple access terminal connecting and binding method and network system thereof
CN105306451A (en) * 2015-09-28 2016-02-03 青岛海信电器股份有限公司 Method and device for controlling DLNA (Digital Living Network Alliance) equipment service permission
US20170244712A1 (en) * 2016-02-22 2017-08-24 At&T Intellectual Property I, L.P. Dynamic passcodes in association with a wireless access point

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何磊: "《网络安全秘技》", 31 May 2010 *
张晓明: "《计算机网络课程设计》", 31 August 2016 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963178A (en) * 2019-03-15 2019-07-02 北京领度信息技术有限公司 Throw the method for screen using safe throwing screen device and device is shielded in safety throwing
CN109982322A (en) * 2019-03-26 2019-07-05 连尚(新昌)网络科技有限公司 A kind of throwing screen method, equipment, system and storage medium
CN109982322B (en) * 2019-03-26 2022-06-03 连尚(新昌)网络科技有限公司 Screen projection method, device, system and storage medium
CN110505516A (en) * 2019-05-15 2019-11-26 中海油信息科技有限公司 A kind of throwing screen control method, device and system
CN110166823A (en) * 2019-06-26 2019-08-23 北京奇艺世纪科技有限公司 Throw screen method and relevant apparatus
CN110166823B (en) * 2019-06-26 2021-11-23 北京奇艺世纪科技有限公司 Screen projection method and related device
CN110418188A (en) * 2019-08-27 2019-11-05 四川长虹电器股份有限公司 The quick intelligent terminal for throwing screen and method
CN113115083A (en) * 2020-01-10 2021-07-13 海信视像科技股份有限公司 Display apparatus and display method
CN111294629A (en) * 2020-03-05 2020-06-16 江苏省广电有线信息网络股份有限公司苏州分公司 Intelligent set top box wireless screen projection management and control system and method
CN111427527A (en) * 2020-03-20 2020-07-17 海信视像科技股份有限公司 Screen projection method, device, equipment and computer readable storage medium
CN111427527B (en) * 2020-03-20 2023-10-31 海信视像科技股份有限公司 Screen projection method, device, equipment and computer readable storage medium
WO2021212668A1 (en) * 2020-04-22 2021-10-28 海信视像科技股份有限公司 Screen projection display method and display device
CN111464844A (en) * 2020-04-22 2020-07-28 海信视像科技股份有限公司 Screen projection display method and display equipment
CN111988660A (en) * 2020-08-06 2020-11-24 锐捷网络股份有限公司 DLNA equipment screen projection method, gateway, terminal and system
CN112565843A (en) * 2020-12-02 2021-03-26 广州朗国电子科技有限公司 Projection screen control method, device, all-in-one machine and storage medium based on DLNA
CN112770150A (en) * 2020-12-17 2021-05-07 深圳创维-Rgb电子有限公司 Method and device for controlling mobile terminal by smart television and smart television
CN114168094A (en) * 2021-11-24 2022-03-11 深圳康佳电子科技有限公司 Miracast message processing method, device and equipment based on inheritable state machine
CN115150645A (en) * 2022-06-28 2022-10-04 海信视像科技股份有限公司 Display device and display method of screen projection function page
WO2024001257A1 (en) * 2022-06-28 2024-01-04 海信视像科技股份有限公司 Display device and processing method for display device
CN116610274A (en) * 2023-05-09 2023-08-18 北京元心君盛科技有限公司 Cross-equipment screen projection method and device, electronic equipment and readable storage medium
CN116610274B (en) * 2023-05-09 2023-11-24 北京元心君盛科技有限公司 Cross-equipment screen projection method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109451345A (en) A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television
US10070165B2 (en) System and method for managing entitlements to data over a network
TWI633781B (en) Program and device class entitlements in a media platform
KR101109232B1 (en) Server architecture for network resource information routing
US8763141B2 (en) Method and system for securing a home domain from external threats received by a gateway
CN1890618B (en) Connection linked rights protection
CN101282330B (en) Method and apparatus for managing network memory access authority, network memory access control method
CN101997722B (en) Three-network convergence-oriented digital home network service management system and method
CN102523180B (en) Networking method and system
US20050138179A1 (en) Techniques for limiting network access
CN100488098C (en) Information-processing apparatus and method
US20130055303A1 (en) Controlling content access and related actions on a dlna network
CN108055575B (en) Network video sharing system based on simulated screen projection for community
CN108259432A (en) A kind of management method of API Calls, equipment and system
EP1695226A2 (en) Routing of resource information in a network
JP2009296625A (en) Method and apparatus for authorized operation of home communication network
WO2016095628A1 (en) Video terminal and video play restricting method and system thereof
CN107784221A (en) Authority control method, service providing method, device, system and electronic equipment
CN102665211B (en) A kind of digital mobile network alliance authority control method and device
US11258826B2 (en) Policy separation
US20070162980A1 (en) SYSTEM AND METHOD FOR PROVIDING CONTENT SECURITY IN UPnP SYSTEMS
US20050132191A1 (en) Method for authenticating different rendering devices with different service providers
CN101094239A (en) Method for registering and processing communication in multiple networks
WO2014073760A1 (en) Set-top box based cloud service method
US20140189718A1 (en) Gateway server and method for providing personalized services

Legal Events

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

Application publication date: 20190308