WO2015180108A1 - 媒体内容的共享方法及装置 - Google Patents

媒体内容的共享方法及装置 Download PDF

Info

Publication number
WO2015180108A1
WO2015180108A1 PCT/CN2014/078830 CN2014078830W WO2015180108A1 WO 2015180108 A1 WO2015180108 A1 WO 2015180108A1 CN 2014078830 W CN2014078830 W CN 2014078830W WO 2015180108 A1 WO2015180108 A1 WO 2015180108A1
Authority
WO
WIPO (PCT)
Prior art keywords
private
media content
private information
wlan
terminal device
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.)
Ceased
Application number
PCT/CN2014/078830
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP14893434.2A priority Critical patent/EP3139563B1/en
Priority to CN201480075923.1A priority patent/CN106031121B/zh
Priority to PCT/CN2014/078830 priority patent/WO2015180108A1/zh
Priority to US15/314,453 priority patent/US10547993B2/en
Publication of WO2015180108A1 publication Critical patent/WO2015180108A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/77Graphical identity

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a method and an apparatus for sharing media content. Background technique
  • the Digital Living Network Alliance (DLNA) device adopts the standard of Universal Plug and Play (UPnP Audio &Video; UPnP AV).
  • DLNA devices can be connected to the same WLAN (Wireless Local Area Networks; WLAN) for device discovery, device service description, device control, and event delivery through the UPnP device architecture and UPnP AV protocol.
  • WLAN Wireless Local Area Networks
  • a DLNA device when a DLNA device goes online, it multicasts online messages or search messages to the entire WLAN for devices to discover each other. All control DLNA devices connected to the WLAN network can receive online messages broadcasted by other DLNA devices with media service functions, and obtain a list of media contents stored by the media service function DLNA devices.
  • the device and the service mechanism may have a risk of privacy leakage, that is, any access.
  • the control point device to the public Wi-Fi network can discover the online DLNA device and obtain the shared media content of the DLNA device, but the DLAN device has no knowledge, thereby causing poor security of the shared media content of the DLAN device.
  • Embodiments of the present invention provide a method and an apparatus for sharing media content, which solve the prior art.
  • the problem of poor security of shared media content of DLNA devices improves the security of private media content sharing and avoids the disclosure of privacy.
  • a first aspect of the embodiments of the present invention provides a method for sharing media content, including:
  • the first device adopts a private sharing mode, and acquires a first private corresponding to the private sharing mode.
  • the first device sends or displays the first private information to the second device, where the second device acquires the first private information, and acquires the first device according to the first private information. Share media content.
  • the that that the first device sends or displays the first private information to the second device includes:
  • the first device establishes an NFC channel with the second device, and sends the first private information to the second device by using the NFC channel;
  • the first device and the second device form a Bluetooth piconet, and send the first private information to the second device in the Bluetooth piconet;
  • the first device encodes the first private information, generates a two-dimensional code image, and displays the first private information corresponding to the two-dimensional code image form for the second device to ingest Decoding the two-dimensional code image to obtain the first private information; or
  • the first device encodes the first private information to generate an acoustic wave signal, and propagates the acoustic wave signal, so that the second device receives the acoustic wave signal through a microphone, and decodes the acoustic wave signal Obtaining the first private information.
  • the first private information includes a unified one of the private device description files of the first device Resource locator DDD URL and private universal unique identifier UUIDo of the first device
  • the first device sends or displays the first private information to a second device, to Obtaining, by the second device, the first private information, and acquiring the shared media content of the first device according to the first private information, including: The first device sends or displays the first private information to the second device, and receives a first request message sent by the second device, where the first request message carries the first device Private DDD URL;
  • the first device sends the second private information to the second device according to the first request message, where the second private information includes a private device description file DDD corresponding to the private DDD URL, where the private DDD includes The private service control protocol of the first device describes a URL of the SCPD file, so that the second device acquires a corresponding private SCPD file according to the URL of the private SCPD file, and invokes corresponding control according to the private SCPD file.
  • the control instruction is an instruction that is invoked by the second device according to the private SCPD file.
  • the first device sends or displays the first private information to the first After the second device, it also includes:
  • the first device acquires a private DDD URL and UUID information of the second device that is sent by the second device.
  • the first private information is a private identifier of the first device.
  • the first device sends or displays the first private information to a second device, where
  • the acquiring, by the second device, the first private information, and acquiring the shared media content of the first device according to the first private information includes:
  • the first device sends or displays the first private information to the second device, so that the second device directly accesses the first device according to the private identifier of the first device, The shared media content of the first device.
  • the first device sends or displays the first private information to the first After the second device, it also includes:
  • the first device acquires a private local domain name of the second device that is sent by the second device.
  • the first private information includes a key generated by the first device.
  • the first device sends or displays the first private information to a second device
  • the acquiring, by the second device, the first private information, and acquiring the shared media content of the first device according to the first private information includes:
  • the first device sends the first private information to the second device, and receives a first authentication message sent by the second device, where the first authentication message is that the second device is based on the secret Key encryption generated by the encrypted sequence;
  • the first device adopts a private sharing mode
  • the method further includes:
  • the first device receives an instruction sent by the user to configure a private sharing mode, and adopts the private sharing mode according to the instruction.
  • the first device adopts a private sharing mode And obtaining the first private information corresponding to the private sharing mode, the method further includes: the first device accessing a wireless local area network WLAN, and acquiring a network identifier of the WLAN; The network identifier is used to determine whether the WLAN is a public network. If the WLAN is a public network, the private sharing mode is adopted.
  • the first device adopts a private sharing mode And obtaining the first private information corresponding to the private sharing mode, the method further includes: the first device accessing the WLAN, and acquiring the network identifier of the WLAN; Determining, by the first device, whether the first device accesses the first device according to the network identifier
  • the first device receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the first device adopts a private sharing mode And obtaining the first private information corresponding to the private sharing mode, the method further includes: the first device accessing the WLAN, and acquiring the network identifier of the WLAN;
  • the first device searches, in the access point list, whether the network identifier and the medium access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted.
  • a second aspect of the embodiments of the present invention provides a method for sharing media content, including:
  • the second device acquires the first private information that is sent or displayed by the first device, where the second device currently adopts a private sharing mode;
  • the second device acquires the shared media content of the first device according to the first private information.
  • the acquiring, by the second device, the first private information that is sent or displayed by the first device includes:
  • the second device establishes an NFC channel with the first device, and receives the first private information sent by the first device by using the NFC channel;
  • the second device and the first device are configured to form a Bluetooth piconet, and receive the first private information sent by the first device in the Bluetooth piconet;
  • the second device Obtaining, by the second device, the two-dimensional code image displayed by the first device, acquiring the first private information of the first device, where the two-dimensional code image is the first device a two-dimensional code image generated by encoding a private information; or
  • the second device receives the sound wave signal propagated by the first device, and inputs the sound wave signal Decoding to obtain the first private information of the first device; wherein the sound wave signal is an acoustic wave signal generated by the first device to encode the first private information.
  • the first private information includes a unified device description file of the first device Resource locator DDD URL and private universal unique identifier UUIDo of the first device
  • the second device acquires the first private information, and acquires the first private information according to the first private information.
  • the shared media content of the first device including:
  • the second device sends a first request message to the first device, where the first request message carries a private DDD URL of the first device;
  • the second device receives the second private information that is sent by the first device, where the second private information includes a private device description file DDD corresponding to the private DDD URL of the first device, where the private DDD includes the first
  • a private service control protocol of a device describes a URL of the SCPD file
  • the second device acquires a corresponding private SCPD file from the first device according to the URL of the private SCPD file, and invokes a corresponding call according to the private SCPD file.
  • the control instruction wherein the first device sends the shared media content list of the first device according to the control instruction;
  • the second device acquires the co-directional media content from the shared media content list.
  • a fourth possible implementation manner of the second aspect after the second device acquires the first private information that is sent or displayed by the first device, also includes:
  • the second device sends or displays the private DDD URL and UUID information of the second device to the first device.
  • the first private information is a private identifier of the first device.
  • the second device acquires the first private information, and obtains the foregoing according to the first private information
  • the shared media content of the first device including:
  • a seventh possible implementation manner of the second aspect after the second device acquires the first private information that is sent or displayed by the first device, also includes:
  • the second device sends the private identifier of the second device to the first device.
  • the first private information includes a key generated by the first device.
  • the second device acquires the first private information, and acquires the first private information according to the first private information.
  • the shared media content of the first device including:
  • the second device invokes a control instruction, and the first device sends the shared media content list of the first device by using the secure channel, and obtains the shared media content from the shared media content list.
  • any one of the first to the ninth possible implementation manners of the second aspect, in the tenth possible implementation manner of the second aspect, the two devices are currently in a private sharing mode, Includes:
  • the second device receives an instruction of a private sharing mode sent by the user, and adopts the private sharing mode according to the instruction.
  • the second device accesses the WLAN, and obtains a network identifier of the WLAN;
  • the second device Determining, by the second device, whether the WLAN is a public network according to the network identifier; if the WLAN is a public network, adopting the private sharing mode.
  • the first to the ninth possible implementation manner of the second aspect in the twelfth possible implementation manner of the second aspect, the two devices are currently in a private sharing mode , Also includes:
  • the second device accesses the WLAN, and obtains a network identifier of the WLAN;
  • the second device receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • any one of the first to the ninth possible implementation manners of the second aspect, in the thirteenth possible implementation manner of the second aspect, the two devices are currently in a private sharing mode. Also includes:
  • the second device accesses the WLAN, and obtains a network identifier of the WLAN;
  • the second device searches for, in the access point list, whether the network identifier and the medium access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted.
  • a third aspect of the embodiments of the present invention provides a device for sharing media content, including:
  • a processing module configured to acquire first private information corresponding to the private sharing mode when the sharing device of the media content adopts a private sharing mode
  • a transceiver module configured to send or display the first private information to the second device, where the second device acquires the first private information, and acquires the sharing of the media content according to the first private information.
  • the shared media content of the device is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, a transceiver module, configured to send or display the first private information to the second device, where the second device acquires the first private information, and acquires the sharing of the media content according to the first private information.
  • the shared media content of the device is not limited to send or display the first private information to the second device, where the second device acquires the first private information, and acquires the sharing of the media content according to the first private information.
  • the transceiver module includes:
  • a near field communication unit configured to establish an NFC channel with the second device, and send the first private information to the second device by using the NFC channel;
  • a Bluetooth processing unit configured to set up a Bluetooth piconet with the second device, and send the first private information to the second device in the Bluetooth piconet;
  • An image encoding unit configured to encode the first private information, generate a two-dimensional code image, and display the first private information in the form of the two-dimensional code image for the second device to ingest Decoding the two-dimensional code image to obtain the first private information;
  • a sound wave encoding unit configured to encode the first private information to generate an acoustic wave signal, and propagate the sound wave signal, so that the second device receives the sound wave signal through a microphone, and performs the sound wave signal on the sound wave signal Decoding to obtain the first private information.
  • the first private information is a private device description file of the shared device of the media content
  • the uniform resource locator DDD URL and the private universal unique identifier UUID of the shared device of the media content the transceiver module is specifically configured to:
  • the private service control protocol of the shared device describes a URL of the SCPD file, so that the second device acquires a corresponding private SCPD file according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file;
  • the control instruction is an instruction that the second device invokes according to the private SCPD file.
  • the transceiver module is further configured to receive a private DDD URL of the second device sent by the second device Port UUID information.
  • the first private information is a private identifier of the shared content of the media content
  • the transceiver module is specifically configured to:
  • the transceiver module is further configured to receive a private identifier of the second device.
  • the first private information includes a private identifier of the shared content of the media content
  • the transceiver module is specifically configured to:
  • the transceiver module is further configured to receive, send by a user
  • the instructions of the private sharing mode are configured, and according to the instructions, the private sharing mode is adopted.
  • the first to the sixth possible implementation manner of the third aspect in an eighth possible implementation manner of the third aspect, Obtaining a network identifier of the WLAN when the sharing device of the media content accesses a wireless local area network WLAN;
  • the processing module is further configured to determine, according to the network identifier, whether the WLAN is a public network; if the WLAN is a public network, adopt the private sharing mode.
  • any one of the first to sixth possible implementation manners of the third aspect in a ninth possible implementation manner of the third aspect, Obtaining a network identifier of the WLAN when the sharing device of the media content accesses the WLAN;
  • the processing module is further configured to determine, according to the network identifier, whether the sharing device of the media content accesses the WLAN for the first time;
  • the transceiver module receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the first to the sixth possible implementation manner of the third aspect in a tenth possible implementation manner of the third aspect, Obtaining a network identifier of the WLAN when the sharing device of the media content accesses the WLAN;
  • the processing module is further configured to: in the access point list, whether the network identifier and the media access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted if the network identifier and the MAC address of the AP corresponding to the network identifier exist in the access point list.
  • a fourth aspect of the embodiments of the present invention provides a device for sharing media content, including:
  • a transceiver module configured to acquire first private information sent by the first device, where the sharing device of the media content currently adopts a private sharing mode
  • the processing module is configured to acquire the shared medium of the first device according to the first private information.
  • the transceiver module includes:
  • a near field communication unit configured to establish the NFC channel with the first device, and receive the first private information sent by the first device by using the NFC channel;
  • a Bluetooth processing unit configured to set up a Bluetooth piconet with the first device, and receive the first private information sent by the first device in the Bluetooth piconet;
  • An image processing unit configured to ingest a two-dimensional code image displayed by the first device, to acquire the first private information of the first device, where the two-dimensional code image is the first device a second-dimensional code image generated by encoding the first private information;
  • a sound wave processing unit configured to receive an acoustic wave signal propagated by the first device through a microphone, and decode the sound wave signal to obtain the first private information of the first device; wherein the sound wave signal is the The first device encodes the first private information to generate the generated acoustic signal.
  • the first private information is a unified one of the private device description files of the first device
  • the transceiver module is configured to send a first request message to the first device, where the first request The request message carries a private DDD URL of the first device
  • the transceiver module is configured to receive second private information sent by the first device, and the second private information includes a private DDD URL of the first device
  • Corresponding private device description file DDD the private DDD including a URL of the first device's private service control protocol description SCPD file;
  • the processing module is configured to acquire a corresponding private SCPD file from the first device according to the URL of the private SCPD file, and invoke a corresponding control instruction according to the private SCPD file, for the first device to
  • the control instruction sends a shared media content list of the first device; the processing module is further configured to obtain the co-directional media content from the shared media content list.
  • the transceiver module is further configured to send, to the first device, the private device of the sharing device of the media content DDD URL and UUID information.
  • the first private information is a private identifier of the first device
  • the transceiver module is configured to receive the first private information that is sent by the first device, and the processing module directly accesses the first device according to the private identifier of the first device, and acquires the sharing of the first device.
  • Media content is a private identifier of the first device
  • the transceiver module is further configured to send, to the first device, a private device of the sharing device of the media content logo.
  • the first private information includes a key generated by the first device,
  • the transceiver module is used to:
  • the second device establishes a secure channel
  • And calling the control instruction acquiring, by the secure channel, the first device to send the shared media content list of the first device, and acquiring the shared media content from the shared media content list.
  • the transceiver module is further configured to receive an instruction of a private sharing mode sent by a user, where the processing module adopts the private sharing mode according to the instruction.
  • any one of the first to sixth possible implementation manners of the fourth aspect in an eighth possible implementation manner of the fourth aspect, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module is configured to determine, according to the network identifier, whether the WLAN is a public network; if the WLAN is a public network, adopt the private sharing mode.
  • any one of the first to sixth possible implementation manners of the fourth aspect in a ninth possible implementation manner of the fourth aspect, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module is configured to determine, according to the network identifier, whether the sharing device of the media content accesses the WLAN for the first time; if, according to the network identifier, determining that the sharing device of the media content accesses the WLAN for the first time And generating a prompt message to prompt the user whether to select a private sharing mode; and receiving, by the transceiver module, the selection information sent by the user according to the prompt information, when the selection information includes a private sharing mode, Private sharing mode.
  • any one of the first to sixth possible implementation manners of the fourth aspect in a tenth possible implementation manner of the fourth aspect, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module is configured to search, in the access point list, whether the network identifier and the medium access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted if the network identifier and the MAC address of the wireless access point AP corresponding to the network identifier are present in the access point list.
  • a fifth aspect of the embodiments of the present invention provides a terminal device, including:
  • a processor configured to set the terminal device to a private sharing mode, and acquire first private information corresponding to the private sharing mode
  • a transceiver module configured to send or display the first private information to another terminal device, where the another terminal device acquires the first private information, and acquires the terminal device according to the first private information. Shared media content.
  • the transceiver module Specifically include:
  • a near field communication NFC transmitter configured to establish an NFC channel with the another terminal device, and send the first private information to the another terminal device by using the NFC channel; or, a Bluetooth transmitter, for Forming a Bluetooth piconet with the other terminal device, and transmitting the first private information to the another terminal device in the Bluetooth piconet; or
  • An image encoder configured to encode the first private information, generate a two-dimensional code image, and display, by using a display, the first private information corresponding to the two-dimensional code image form, for the another
  • the terminal device picks up the two-dimensional code image to obtain the first private information; or, the sound encoder is configured to encode the first private information to generate an acoustic wave signal, and propagate the sound wave signal through a speaker, And the other terminal device receives the sound wave signal through a microphone, and decodes the sound wave signal to obtain the first private information.
  • the first private information includes a unified resource of a private device description file of the terminal device
  • the locator DDD URL and the private universal unique identifier UUID of the terminal device, the transceiver module is specifically configured to:
  • the second private information includes a private device description file DDD corresponding to the private DDD URL, where the private DDD includes the terminal device
  • the private service control protocol describes a URL of the SCPD file, so that the another terminal device acquires a corresponding private SCPD file according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file;
  • controlling The instruction is an instruction that the another terminal device invokes according to the private SCPD file.
  • the first private information is a private identifier of the terminal device
  • the sending and receiving The module is specifically used to: Transmitting or displaying the first private information to the another terminal device, so that the another terminal device directly accesses the terminal device according to the private identifier of the terminal device, and acquires the sharing of the terminal device.
  • Media content is specifically used to: Transmitting or displaying the first private information to the another terminal device, so that the another terminal device directly accesses the terminal device according to the private identifier of the terminal device, and acquires the sharing of the terminal device.
  • the first private information includes a key generated by the terminal device
  • the transceiver module is configured to send the first private information to the another terminal device, and receive a first authentication message sent by the another terminal device, where the first authentication message is Generated by an encrypted sequence of key encryption;
  • the processor is configured to decrypt the first authentication message according to the key, obtain the encrypted sequence, and establish a secure channel between the terminal device and the another terminal device according to the encrypted sequence;
  • the transceiver module is further configured to send, according to the control instruction, the shared media content list of the terminal device to the another terminal device in the secure channel, for the another terminal device to use the shared media content list Get shared media content.
  • the transceiver module is further configured to acquire the The first private information of the another terminal device sent or displayed by another terminal device.
  • any one of the first to fifth possible implementation manners of the fifth aspect in a sixth possible implementation manner of the fifth aspect, is further configured to:
  • the private sharing mode is adopted.
  • any one of the first to fifth possible implementation manners of the fifth aspect in a seventh possible implementation manner of the fifth aspect, is further configured to:
  • the processor is further configured to:
  • the private sharing mode is adopted if the network identifier and the MAC address of the AP corresponding to the network identifier exist in the access point list.
  • a sixth aspect of the embodiments of the present invention provides a terminal device, including:
  • transceiver module configured to acquire first private information sent or displayed by another terminal device, and a processor, configured to set the terminal device to a private sharing mode
  • the transceiver module is further configured to acquire shared media content of the another terminal device according to the first private information.
  • the transceiver module includes:
  • a near field communication NFC transmitter configured to establish an NFC channel with the another terminal device, and receive the first private information sent by the another terminal device by using the NFC channel; or, a Bluetooth transmitter, used Forming a Bluetooth piconet with the other terminal device, and receiving the first private information sent by the another terminal device in the Bluetooth piconet; or
  • a camera configured to capture a two-dimensional code image displayed by the another terminal device, to acquire the first private information of the another terminal device, where the two-dimensional code image is the other terminal device a two-dimensional code image generated by encoding the first private information;
  • a sound wave decoder configured to receive an acoustic wave signal propagated by the another terminal device through a sound collection module, and decode the sound wave signal to obtain the first private information of the another terminal device; wherein the sound wave The signal is an acoustic wave signal generated by the other terminal device to encode the first private information.
  • the first private information includes a private device description file of the another terminal device And the uniformity locator DDD URL and the private universal unique identifier UUID of the another terminal device, where the transceiver module is specifically configured to:
  • the second private information includes a private device description file DDD corresponding to the private DDD URL of the another terminal device, where the private DDD includes the another terminal device
  • the private service control protocol describes the URL of the SCPD file; obtains a corresponding private SCPD file from the another terminal device according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file for Sending, by the other terminal device, the shared media content list of the another terminal device according to the control instruction;
  • the first private information is a private identifier of the another terminal device
  • the transceiver module is specifically used to:
  • the first private information includes a key generated by the another terminal device,
  • the transceiver module is specifically configured to:
  • the transceiver module is further configured to Another terminal device sends or displays the first private information of the terminal device.
  • the processor is specifically configured to: access a WLAN, and acquire a network identifier of the WLAN;
  • the private sharing mode is adopted.
  • any one of the first to fifth possible implementation manners of the sixth aspect in a seventh possible implementation manner of the sixth aspect, is specifically used to:
  • the transceiver module receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • any one of the first to fifth possible implementation manners of the sixth aspect, in the eighth possible implementation manner of the sixth aspect, the processor is specifically used to:
  • the private sharing mode is adopted if the network identifier and the MAC address of the wireless access point AP corresponding to the network identifier are present in the access point list.
  • the first device generates the first private information corresponding to the private mode by using the DLNA device, that is, the first device and the second device, and the first device generates the first private information.
  • the private information is sent to the second device, so that the second device obtains the media shared content shared by the first device according to the first private information, and solves any control point in the prior art that accesses the public WLAN network.
  • the device can discover the online DLNA device and obtain the shared media content of the DLNA device, but the DLNA device has no knowledge and causes the security of the shared media content of the DLNA device to be poor, thereby avoiding leakage of privacy. .
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for sharing media content according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a method for sharing media content according to the present invention
  • Embodiment 4 is a flowchart of Embodiment 4 of a method for sharing media content according to the present invention
  • Embodiment 5 is a flowchart of Embodiment 5 of a method for sharing media content according to the present invention
  • Embodiment 6 is a flowchart of Embodiment 6 of a method for sharing media content according to the present invention.
  • Embodiment 7 is a flowchart of Embodiment 7 of a method for sharing media content according to the present invention.
  • Embodiment 10 of a method for sharing media content according to the present invention.
  • Embodiment 11 of a method for sharing media content according to the present invention.
  • Embodiment 13 is a flowchart of Embodiment 13 of a method for sharing media content according to the present invention.
  • Embodiment 14 is a flowchart of Embodiment 14 of a method for sharing media content according to the present invention.
  • FIG. 11 is a signaling flowchart of Embodiment 16 of a method for sharing media content according to the present invention
  • FIG. 12 is a signaling flowchart of Embodiment 17 of a method for sharing media content according to the present invention
  • FIG. 13 is a device for sharing media content according to the present invention
  • Embodiment 2 of a media content sharing apparatus according to the present invention
  • Embodiment 15 is a schematic structural diagram of Embodiment 3 of a device for sharing media content according to the present invention.
  • Embodiment 4 of a media content sharing apparatus according to the present invention.
  • Embodiment 5 of a media content sharing apparatus is a schematic structural diagram of Embodiment 5 of a media content sharing apparatus according to the present invention.
  • Embodiment 6 of a media content sharing apparatus is a schematic structural diagram of Embodiment 6 of a media content sharing apparatus according to the present invention.
  • Embodiment 7 of a media content sharing apparatus is a schematic structural diagram of Embodiment 7 of a media content sharing apparatus according to the present invention.
  • Embodiment 8 of a media content sharing apparatus according to the present invention.
  • FIG. 21 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present invention.
  • FIG. 22 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art obtain the following without creative efforts. All other embodiments obtained are within the scope of the invention.
  • FIG. 1 is a flowchart of Embodiment 1 of a method for sharing media content according to the present invention.
  • This embodiment provides a secure and efficient media content sharing method for a DLNA-enabled mobile device in a WLAN network environment.
  • the mobile devices involved include mobile electronic devices such as smartphones, tablets, digital cameras, and portable computers, all of which have DLNA-enabled applications installed. As shown in Figure 1, the specific steps are as follows:
  • the first device adopts a private sharing mode, and acquires first private information corresponding to the private sharing mode.
  • the first device and the second device after the first device and the second device respectively access the WLAN network, when the first device and the second device need to share privately under the public WLAN network, the first device and the second device need to be private.
  • the first device In the sharing mode, the first device generates a first private corresponding to the private sharing mode
  • the first device sends or displays the first private information to the second device, where the second device acquires the first private information, and obtains the first private information according to the first private information.
  • the shared media content of the first device is
  • the first device and the second device discover each other through the first private information that is sent or displayed by the first device in the private sharing mode, and the second device obtains the first private information, according to the first A private information acquires shared media content to be shared by the first device.
  • the first device is not limited to one device, and may be multiple mobile devices.
  • the media content shared by the first device can also be securely obtained through the above steps.
  • the first device acquires the first private information corresponding to the private mode by using the private sharing mode, and the first device and the second device, the first private information is obtained by using the private information.
  • the first device in step S102 sends the first private information to the second device.
  • the first device uses an Near Field Communication (NFC) mode to establish an NFC channel with the second device, and sends the first private information to the NFC channel.
  • NFC Near Field Communication
  • the first device and the second device are equipped with an NFC communication chip, and can communicate with each other through the NFC function module. If the first device adopts the private sharing mode, the first device is triggered to be assembled by the NFC.
  • the communication chip is coupled to the NFC communication chip of the second device to generate an RF coupling to establish an NFC channel with the second device.
  • the first private information may be encapsulated into a transport message generated by the communication chip of the NFC, and sent to the second device through the NFC channel.
  • the first private information may be encapsulated into a Simple Service Discovery Protocol (SSDP) packet, and the encapsulated SSDP packet is transmitted through the NFC.
  • SSDP Simple Service Discovery Protocol
  • the first device uses a Bluetooth mode to form a Bluetooth piconet with the second device, and sends the first private information to the second device in the Bluetooth piconet.
  • the first device and the second device are both equipped with a Bluetooth module.
  • the first device and the second device need to perform device discovery and device pairing with each other when setting up the Bluetooth piconet.
  • the user needs to set the device autonomously, and establish a connection after agreeing to pair to form a Bluetooth piconet.
  • the first device transmits the first private information to the second device through the Bluetooth piconet.
  • the first device encodes the first private information, generates a two-dimensional code image, and displays the two-dimensional code image, so that the second device ingests the two-dimensional image a code image, the first private information is obtained.
  • the first device encodes the first private information to generate a two-dimensional code image and displays the second device
  • the second device assembles a camera or other image acquiring device, and has an information processing function
  • the second device passes the camera or other
  • the image acquisition device takes the two-dimensional code displayed by the first device to acquire the first private information.
  • the first device encodes the first private information to generate an acoustic wave signal, and propagates the acoustic wave signal, so that the second device receives the acoustic wave signal through a microphone, and The sound wave signal is decoded to obtain the first private information.
  • the first device encodes the acquired first private information to generate an acoustic wave signal, and propagates through the speaker, and the user turns on the microphone of the second device, receives the acoustic wave signal, and performs decoding to obtain the first private information.
  • 2 is a flowchart of Embodiment 3 of a method for sharing media content according to the present invention.
  • the first private information is a private device description file of the first device.
  • the specific embodiment of S102 in the embodiment shown in FIG. 1 includes:
  • the first device sends or displays the first private information to the second device, and receives a first request message sent by the second device, where the first request message carries the first A private DDD URL for a device.
  • the Simple Service Discovery Protocol (Simple Service Discovery Protocol) is multicast to the WLAN network.
  • SSDP Simple Service Discovery Protocol
  • the first device and the second device may adopt a private sharing mode, and simultaneously send an SSDP byebye message to the WLAN network to notify the first device and the second device that the device has left.
  • the WLAN network may adopt a private sharing mode, and simultaneously send an SSDP byebye message to the WLAN network to notify the first device and the second device that the device has left.
  • the first device sends the first private information to the second device, and the first device receives the private DDD that is sent by the second device to the first device corresponding to the private UUID and carries the first device.
  • a Hyper-text Transfer Protocol (HTTP) GET request of the URL the second device requests its own private DDD file from the first device according to the private DDD URL of the first device.
  • HTTP Hyper-text Transfer Protocol
  • the first device sends the second private information to the second device according to the first request message, where the second private information includes a private device description file DDD corresponding to the private DDD URL, where the private device
  • the DDD includes a URL of a service control protocol description (SCPD) file of the first device, where the second device obtains a corresponding private SCPD file according to the URL of the private SCPD file, and
  • the corresponding control instruction is invoked according to the private SCPD file.
  • SCPD service control protocol description
  • the first device sends, according to the control instruction, a shared media content list of the first device to the second device, where the second device obtains shared media content from the shared media content list.
  • the control instruction is an instruction that is invoked by the second device according to the private SCPD file.
  • the second device may obtain the private SCPD file of the corresponding server through the ⁇ SCPD 13 ⁇ 41 ⁇ , thereby acquiring the related control command (action) of the service and the corresponding parameter variable; With ⁇ controlURL> you can call the corresponding action to complete the corresponding function.
  • the second device can call the "CDS::Browse()/Search()" command to the first device (in a specific implementation manner, The command is mainly used to obtain a shared media content list, and the settings of the command are different in different devices, and the specific command format is not specifically limited in the present invention, so that the first device returns the shared media content list to the second.
  • the second device can obtain the media sharing content by clicking, for example: sharing the photo, so that the shared media content stored in the first device can be shared to the second device. device.
  • the first device receives the private DDD URL and UUID information of the second device that is sent by the second device.
  • the first device receives the private DDD URL and the UUID information sent by the second device, and is used to include the private DDD URL and the UUID information of the first device in the first private information when establishing a connection with the other third device,
  • the method is sent to the third device, so that the second device and the third device directly establish a connection, and the processing process when the plurality of devices share the media content with each other is reduced.
  • the first private information is sent to the second device by the first device, and the second private information is sent to the second device according to the received first request message of the second device, to And causing the second device to obtain the corresponding private SCPD file, and invoking the corresponding control instruction according to the private SCPD file, the first device and the control instruction sending the shared media content list to the second device, so that the second device obtains the shared media content from the second device.
  • the DLNA device that can access the DLNA device is obtained by any control point device that accesses the public WLAN network in the prior art, and the DLNA device is unknowingly caused by the DLNA device.
  • the problem of poor security of shared media content avoids the disclosure of privacy.
  • FIG. 3 is a flowchart of Embodiment 4 of a method for sharing media content according to the present invention.
  • S102 specifically includes:
  • the first device sends or displays the first private information to the second device.
  • the private information is a private identifier of the first device, where the second device is used. And directly accessing the first device according to the private identifier of the first device, and acquiring shared media content of the first device.
  • the first device receives a download request sent by the second device after accessing the first device according to the private identifier, so that the second device can download the media content.
  • the second device directly accesses the private identifier, and the second device directly accesses the private identifier, where the private identifier sent or displayed between the mobile devices of the various types is a private access address.
  • the first device downloads to obtain the required media content.
  • the first device acquires the first private information of the second device that is sent or displayed by the second device. .
  • the first device sends the first private information, that is, the private identifier, to the second device, so that the second device obtains the shared media content by directly accessing the private identifier, thereby solving the present problem.
  • Any control point device that accesses the public WLAN network in the technology can discover the online DLNA device and obtain the shared media content of the DLNA device, and the DLNA device unknowingly causes the shared media content of the DLNA device. The problem of poor security, thus avoiding the leakage of privacy.
  • Embodiment 5 of a method for sharing media content according to the present invention is a flowchart of Embodiment 5 of a method for sharing media content according to the present invention. As shown in FIG. 4, in Embodiment 5 of the method for sharing media content of the present invention, based on the embodiment shown in FIG. When the first private information includes the key generated by the first device, the implementation manner of S102 in the embodiment shown in FIG. 1 is:
  • the first device sends the first private information to the second device, and receives a first authentication message sent by the second device, where the first authentication message is that the second device is according to the Key encryption generated by the encrypted sequence.
  • the first device decrypts the first authentication message according to the key, obtains the encryption sequence, and establishes a security channel between the first device and the second device according to the encryption sequence.
  • S403 The first device sends, according to the control instruction, the shared media content list of the first device to the second device in the security channel, where the second device obtains the sharing from the shared media content list. Media content.
  • the first device sends the key to the second device, so that the second device follows Generating an encrypted sequence code for encrypting all files transmitted between the first device and the second device, the second device encrypting the encrypted sequence code according to the key to generate a first authentication message, and returning to the first device
  • the first device acquires the first authentication message, and decrypts the first authentication message to obtain the encrypted sequence code, and establishes a secure channel with the second device according to the encrypted sequence code, in the process of processing the first device and
  • the data exchanged between the second devices is all encrypted using the encrypted sequence code.
  • the first device sends the first private information, that is, the private key, to the second device, so that the second device generates the encrypted sequence code, and returns the first device, the first device.
  • the DLNA device shares the media content, but the DLNA device is unaware of the problem that the shared media content of the DLNA device is less secure, thereby avoiding the leakage of privacy.
  • FIG. 5 is a flowchart of Embodiment 6 of a method for sharing media content according to the present invention.
  • the private information is the private DDD URL and the UUID of the first device, as shown in FIG. 5, the specific steps are as follows:
  • the first device receives an HTTP GET request that is sent by the second device to the first device corresponding to the private UUID and carries the private DDD URL of the first device.
  • the second device requests its own private DDD file according to the private DDD URL of the first device.
  • the private DDD URL of the first device is: http; //10.11.84.153 : Upnpdevicescription/friendsharing.
  • the message information of the HTTP GET request that the second device sends to the first device corresponding to the private UUID and carries the private DDD URL of the first device may be:
  • the DDD includes: device type ⁇ deviceType>, device name ⁇ friendlyName>, and device manufacturer ⁇ 11 ⁇ 111 ⁇ &.
  • the first device supports the X_MS_MediaReceiverRegistrar, ContentDirectory, and B ConnectionManager3 services.
  • Each service corresponds to three sets of addresses, that is, the description address ⁇ SCPDURL>, which is used to indicate the URL of the service description file SCPD of the service;
  • the address ⁇ 001 ⁇ 0 1111 1 ⁇ is used to indicate the address URL of the corresponding control command (action) in the service;
  • the event address ⁇ 6 ⁇ 11011 1 ⁇ is used to indicate that the parameters of some control commands in the service change.
  • the address URL of the event message is reported to the control point.
  • S504 The first device returns a shared media content list to the second device according to the control command invoked by the second device, so that the second device obtains the media shared content from the shared media content list.
  • the second device may obtain the private SCPD file of the corresponding server through the ⁇ SCPD 13 ⁇ 41 ⁇ , thereby acquiring the related control command (action) of the service and the corresponding parameter variable; With ⁇ controlURL> you can call the corresponding action to complete the corresponding function.
  • the second device sends a CDS : : Browse()/Search() command to the first device, the first device sends the shared media content list to the second device, and the second device acquires the first device.
  • the media sharing content can be obtained by clicking, for example: sharing the photos, so that the shared media content stored in the first device can be shared to the second device.
  • FIG. 6 is a flowchart of Embodiment 7 of the method for sharing media content according to the present invention.
  • S502 may further include:
  • S601 After establishing an NFC channel between the first device and the second device, and sending the first private information to the second device by using the NFC channel, the first device receiving the private DDD URL of the second device sent by the second device And UUID information.
  • the second device after the first device sends the first private information to the second device, the second device returns its own private information, that is, the private DDD URL and UUID information of the second device, to the first device, so that the first device
  • the first private information sent includes the private DDD URL and the UUID information of the second device, so that the second device and the third device directly establish a connection.
  • S602 The first device uses the NFC mode to establish an NFC channel with the third device, and sends the first private information to the third device by using the NFC channel, where the third device is configured according to the third device.
  • the first private information sends an HTTP GET request to the first device.
  • the manner in which the third device acquires the shared media content is similar to the manner in which the second device obtains the shared media content, and details are not described herein again.
  • S602 is an optional step. If there is no third device, the step may not be performed.
  • the implementation manner of the first device adopting the private sharing mode is as follows:
  • the first device receives an instruction sent by a user to configure a private sharing mode, and according to the instruction, adopts the private sharing mode.
  • the first device may receive The private sharing mode instruction sent by the user, and according to the instruction, adopts a private sharing mode.
  • the first device accesses a wireless local area network (WLAN), and obtains the WLAN.
  • WLAN wireless local area network
  • the network identifier of the WLAN determines, according to the network identifier, whether the WLAN is a public network, and if the WLAN is a public network, adopting the private sharing mode.
  • a Service Set Identifier (abbreviated as SSID) of a WLAN network may be determined by a Access Point (AP) constituting the WLAN network.
  • AP Access Point
  • an AP is placed in the airport cafe to form a WLAN network, and the AP periodically broadcasts the SSID of the WLAN network for mobile device ingestion and discovery.
  • the SSID broadcast by an AP is the name of the WLAN network it represents.
  • the SSID of the network can be set by the AP.
  • the general name is set to a vocabulary or statement that can indicate the characteristics of the WLAN network. For example, taking the WLAN network of the airport cafe as an example, the SSID is Airport_cafe, which indicates that the WLAN is Wireless internet at the airport's cafe. Or, some WLAN networks are arranged by the network operator, and their SSIDs are set by the name of the network operator, such as "China Unicom", "China Telecom” and so on. Therefore, the mobile device can determine whether the accessed WLAN network is a public network through the SSID.
  • the encryption authentication method and the SSID can be used to determine, that is, as long as the SSID is displayed as a public WLAN network or if no access password is set.
  • the WLAN can determine that the WLAN network is a public WLAN network. Specifically, since the private WLAN considers the security of the entire network access, it does not want unfamiliar mobile devices to access the WLAN network, so the access password is set, and the access device needs to input and connect to the WLAN network. The password is entered and authenticated, but the public WLAN network does not consider the access restriction. Therefore, the access password is generally not set. The access device will access the WLAN as long as the network SSID is found. Therefore, whether the public WLAN network can be determined by setting the access password through the WLAN network, if it is set, is generally regarded as a private network, and is not considered to be a public network.
  • the first device accesses the WLAN, and obtains the network identifier of the WLAN, where the first device determines, according to the network identifier, whether the WLAN is a public network, and whether the first device is If the first device accesses the WLAN, the first device determines that the WLAN is a public network and the first device accesses the WLAN for the first time, and generates prompt information to prompt the user whether Choose private sharing mode.
  • the first device receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the first device and the second device access the same WLAN network and obtain the SSID of the network, and start detecting whether the WLAN network is first accessed.
  • the mobile device after accessing a WLAN network, the mobile device automatically saves the SSID of the WLAN network, and saves some access parameters of the WLAN network, such as an access password, etc., so as to move the device. After searching for the signal of the WLAN network, it can automatically discover and automatically access. Therefore, how to determine whether the accessed WLAN network is the first access, as long as the SSID number of the previously accessed WLAN network is recorded, as long as it is not recorded, it is considered as the first access WLAN.
  • the internet The internet.
  • the mobile device After accessing the WLAN network, according to the user clicking the instruction, the mobile device is triggered to enter the DLNA application, and an interface is automatically popped up to prompt the user whether to select to trigger the private sharing mode.
  • the user can also configure the incoming mode, for example: After accessing the same WLAN network again, the current mode is automatically set to the private sharing mode or the current mode is not set to the private sharing mode when the DLNA application is opened. In this way, the device also does not need to multicast the SSDP online message to the public WLAN network.
  • the first device accesses the WLAN, and obtains the network identifier of the WLAN, where the first device searches for the presence of the network identifier and the wireless corresponding to the network identifier in the access point list.
  • the medium access control MAC address of the access point AP if the first device The private sharing mode is adopted when the network identifier and the MAC address of the AP corresponding to the network identifier are present in the access point list.
  • the first device accesses a private WLAN network, obtains the SSID number of the WLAN network, and searches the access point list for the network identifier of the network and the MAC address of the AP corresponding to the network identifier.
  • the first device has the network identifier and the AP corresponding to the network identifier in the access point list, and the first device automatically sets the current mode device to the private sharing mode.
  • the access point list records the SSID of the WLAN network when the first device device accesses the wireless local area network and selects to enter the private sharing mode in the past period of time.
  • the list is dynamically updated, and a time threshold can be set. If the last intervention time exceeds the set time threshold, the network SSID in the access point list is deleted, and the new WLAN network is accessed and the user is opening the DLNA.
  • the SSID will also be added to the access point list.
  • the list of mobile devices can be as shown in Table 1:
  • Table 1 records the SSID and MAC address of the network that the mobile device accesses and selects the private sharing mode for a period of time. For example, "Bob's home" in Table 1 proves that the device was previously accessing the private WLAN.
  • the network chooses to enter the private sharing mode, if the DLNA application is opened again when accessing the network, the current mode is automatically set to the private sharing mode; if the record of the private WLAN network is not found, the DLNA application is opened.
  • the SSDP online message is multicast to the entire WLAN network, and the user manually selects whether to set the current mode to the private sharing mode.
  • the first private information is sent or displayed to the second device by the first device, and according to the received first request message of the second device, to the second device Transmitting the second private information, so that the second device acquires the corresponding private SCPD file, and invokes a corresponding control instruction according to the private SCPD file, where the first device sends the shared media content list to the second device, so that the first device
  • the second device obtains the shared media content, and solves any DLNA device that can be found on the control point device that accesses the public WLAN network in the prior art, and obtains the shared media content of the DLNA device, but the DLNA device does not have any
  • the problem of poor security of the shared media content of the DLNA device is uninformed, thereby avoiding the leakage of privacy.
  • the first private information is private to the first device.
  • logo After the first device and the second device are connected to the WLAN, the first device uses the private sharing mode to share the media content, and the first device sends or displays the private private identity message to the second device.
  • the message format and device discovery mechanism of the private identifier and the SSDP are different.
  • the SSDP message carries the DDD URL of the device and the UUID information of the device, and obtains the DDD file of the device according to the DDD URL, thereby completing the discovery of the device.
  • the discovery mechanism using the private identifier is as follows: For example: The first device encapsulates the private identifier in the NFC module and stores it in the to-be-sent cache of the NFC module.
  • the message of the private identity is as follows:
  • the private identity of the first device is John._airplay._tcp.local.
  • the private identity of the second device may be an address domain identifier such as "Alice._airplay._tcp.local” and "Bob._airplay._tcp.local”.
  • the first device sends the first private information, that is, the private identifier, to the second device, so that the second device obtains the shared media content by accessing the private identifier of the first device.
  • the DLNA device that is connected to the public WLAN network in the prior art can be found to be able to discover the online DLNA device, and obtain the shared media content of the DLNA device, but the DLNA device does not know the DLNA device.
  • the problem of poor security of shared media content avoids the disclosure of privacy.
  • FIG. 7 is a flowchart of Embodiment 10 of a method for sharing media content according to the present invention. As shown in FIG.
  • the NFC is sent as an example.
  • the first private information is a key generated by the first device, and the second device obtains the co-directional media from the first device.
  • the specific steps of the content are:
  • the first device and the second device are connected to the public WLAN network, and the NFC module is automatically activated in a private sharing mode, and a string of keys K is generated and encapsulated into the NFC module, and stored in the buffer to be sent of the NFC module.
  • the mobile phone touches each other and triggers the NFC transmission, the first private information carrying the key K is sent to the second device.
  • the first device broadcasts an SSDP: alive message to the second device or more DLNA devices, where the SSDP: alive message carries the DDD URL of the DMS1 and the device UUID information.
  • the key K is a string of fixed length binary sequence codes, and the keys may be randomly generated or pre-configured in the application. Alternatively, it may also be sent by other means in the above embodiments.
  • the second device After acquiring the key K sent by the NFC touch, the second device generates an encryption sequence R, encrypts the encryption sequence R with the key K as an encryption key, generates a first authentication message, and generates the first authentication. The message is sent to the first device.
  • the first device and the second device both obtain the encryption sequence R, that is, R is used as an encryption key for transmitting the data message, and establishes a secure and secure channel.
  • the second device may initiate a request to the first device, obtain the DDD file and the SCPD file corresponding to the first device, and obtain the media playlist shared by the first device, thereby The shared media content is obtained, and the data packet in the secure channel is encrypted by the key R.
  • the first private information that is, the key
  • the second device is sent to the second device by the first device, so that the second device generates an encryption sequence, and the encrypted sequence is generated by the key.
  • An authentication message is returned to the first device, the first device decrypts the encrypted sequence, and establishes a secure channel with the second device, so that the second device sends the request to obtain the shared media content, and solves any access to the public in the prior art.
  • the control point device of the WLAN network can discover the online DLNA device and obtain the shared media content of the DLNA device, and the DLNA device is unaware of the problem that the shared media content of the DLNA device is less secure, thereby Avoid privacy leaks.
  • FIG. 8 is a flowchart of Embodiment 11 of a method for sharing media content according to the present invention. As shown in Figure 8, the specific steps are as follows:
  • S801 The second device acquires the first private information sent or displayed by the first device.
  • the first device and the second device after the first device and the second device respectively access the WLAN network, when the first device and the second device need to share privately under the public WLAN network, the first device and the second device need to be private.
  • the second device receives the corresponding first private information sent by the first device.
  • S802 The second device acquires shared media content of the first device according to the first private information.
  • the second device receives the first private information corresponding to the private mode sent by the first device by adopting the private sharing mode of the DLNA device, that is, the first device and the second device, and Acquiring the media shared content shared by the first device according to the first private information, and solving any DLNA device that can be discovered by any control point device connected to the public WLAN network in the prior art, and acquiring the DLNA device
  • the shared media content, while the DLNA device is unaware of the problem of poor security of the shared media content of the DLNA device, thereby avoiding the leakage of privacy.
  • the second device in step S801 receives the first private information sent by the first device, specifically the following Method to realize:
  • the second device uses a near field communication (NFC) mode to establish the NFC channel with the first device, and receives the first private information sent by the first device by using the NFC channel.
  • NFC near field communication
  • the first device and the second device are equipped with an NFC communication chip, and can communicate with each other through the NFC function module. If the second device adopts the private sharing mode, the second device is triggered to be assembled by the NFC.
  • the communication chip collides with the NFC communication chip of the first device assembly, that is, the second device generates radio frequency coupling with the NFC communication chip of the first device through the assembled NFC communication chip to establish an NFC channel with the first device.
  • the first device encapsulates the first private information into a transport message generated by the communication chip of the NFC, and sends the information to the second device through the NFC channel.
  • the first device may encapsulate the first private information into a Simple Service Discovery Protocol (SSDP) packet, and transmit the encapsulated SSDP packet by using the NFC.
  • SSDP Simple Service Discovery Protocol
  • the second device uses a Bluetooth mode to form a Bluetooth piconet with the first device, and receives the first private information sent by the first device in the Bluetooth piconet.
  • the second device and the first device are equipped with a Bluetooth module, and no assembly is required.
  • the second device and the first device need to perform device discovery and device pairing with each other when setting up the Bluetooth piconet.
  • the user needs to set the device autonomously, and establish a connection after agreeing to pair to form a Bluetooth piconet.
  • the second device receives the first private information sent by the first device by using the Bluetooth piconet.
  • the second device ingests the two-dimensional code image displayed by the first device, and acquires the first private information of the first device, where the two-dimensional code image is the first A device encodes the first private information into a generated two-dimensional code image.
  • the second device generates a two-dimensional code image by capturing the first private information code sent by the first device by the camera, and processing the two-dimensional code image to obtain the first private information.
  • the second device receives the sound wave signal propagated by the first device by using a microphone, and decodes the sound wave signal to obtain the first private information of the first device;
  • the acoustic signal is an acoustic signal generated by the first device to encode the first private information.
  • the user turns on the microphone of the second device, and the receiving first device encodes the first private information by software to generate an acoustic wave signal, and performs decoding to obtain the first private information.
  • FIG. 9 is a flowchart of Embodiment 13 of the method for sharing media content according to the present invention.
  • the first private information is private to the first device.
  • Uniform resource locator DDD URL of device description file and private universal unique of the first device When the identifier UUID is used, the specific implementation method of the media content sharing method is:
  • the second device sends a first request message to the first device, where the first request message carries a private DDD URL of the first device.
  • the private DDD URL of the first device sent by the second device is used to obtain the DDD of the first device private.
  • the second device receives the second private information that is sent by the first device, where the second private information includes a private device description file corresponding to the private DDD URL of the first device.
  • the private DDD includes a URL of the first device's private service control protocol describing the SCPD file.
  • S903 The second device acquires a corresponding private SCPD file from the first device according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file, for the first device. Sending a shared media content list of the first device according to the control instruction.
  • the second device may obtain the private SCPD file of the corresponding server through the ⁇ SCPD 13 ⁇ 41 ⁇ , thereby acquiring the related control command (action) of the service and the corresponding parameter variable; With ⁇ controlURL> you can call the corresponding action to complete the corresponding function.
  • the second device invokes the CDS : : Browse()/Search() command to the first device, and the first device sends the shared media content list to the second device.
  • the second device acquires the co-directional media content from the shared media content list.
  • the second device may obtain the media sharing content by clicking, for example, sharing the photo, so that the shared media content stored in the first device may be implemented. Share to the second device.
  • the second device receives the first private information sent by the first device, obtains the DDD of the first device, and obtains the private SCPD file from the first device according to the DDD file, and invokes Corresponding control instruction, obtaining a shared media content list of the first device, and obtaining the shared media content, and solving any DLNA device that can be found on the control point device accessing the public WLAN network in the prior art, and acquiring The shared media content to the DLNA device, while the DLNA device is unaware of the problem that the shared media content of the DLNA device is less secure, thereby avoiding the leakage of privacy.
  • 10 is a flowchart of Embodiment 14 of the method for sharing media content according to the present invention.
  • Embodiment 14 of the method for sharing media content of the present invention based on the embodiment shown in FIG. 10, the implementation manner of S801 in the embodiment shown in FIG. 8 is:
  • S1001 The second device acquires the first private information sent by the first device.
  • S1002 Directly access the first device according to the private local domain name of the first device, and obtain shared media content of the first device.
  • the device is mainly for a device with a private media sharing solution, and the first device sends the private private identifier to the second device by using an NFC channel, or a Bluetooth, a two-dimensional code, or an acoustic signal. Receiving the private identifier, directly accessing the private identifier, and downloading and obtaining the required media content.
  • the second device receives the first private information sent by the first device, that is, the private identifier, and the second device obtains the shared media content by accessing the private identifier, thereby solving the prior art.
  • Any control point device accessing the public WLAN network can discover the online DLNA device and obtain the shared media content of the DLNA device, and the DLNA device unknowingly causes the shared media content of the DLNA device to be secure. Poorly sexual issues, thus avoiding the disclosure of privacy.
  • the first private information may further include a key generated by the first device.
  • the acquiring, by the second device, the first private information, and acquiring the shared media content of the first device according to the first private information includes: acquiring, by the second device, the first device to send or display The first private information, and encrypting the encrypted sequence according to the key to generate a first authentication message; the second device sending the first authentication message to the first device, so that the first The device decrypts the first authentication message according to the key, obtains the encryption sequence, and establishes a safety channel with the second device according to the encryption sequence; the second device invokes a control instruction, by using the The secure channel acquires, by the first device, the shared media content list of the first device, and obtains the shared media content from the shared media content list.
  • the implementation manner of the second device adopting the private sharing mode is as follows: In a first implementation manner, the second device receives an instruction of a private sharing mode sent by a user, and adopts the private sharing mode according to the instruction.
  • the second device may receive The private sharing mode instruction sent by the user, and according to the instruction, adopts a private sharing mode.
  • the second implementation manner the second device accesses the WLAN, and acquires the network identifier of the WLAN; the second device determines, according to the network identifier, whether the WLAN is a public network; The network uses the private sharing mode.
  • the second device uses the network identifier to determine whether the network is a public network, and the specific manner of determining is the same as the first device.
  • the second device accesses the WLAN, and obtains the network identifier of the WLAN, and the second device determines, according to the network identifier, whether the second device accesses the WLAN for the first time. If the second device determines that the second device accesses the WLAN for the first time according to the network identifier, generating prompt information to prompt the user whether to select a private sharing mode, and the second device receives the user according to the user
  • the selection information sent by the prompt information adopts the private sharing mode when the selection information includes a private sharing mode.
  • the second device accesses a WLAN network and obtains the SSID of the network, and starts to detect whether the WLAN network is first accessed.
  • the mobile device after accessing a WLAN network, the mobile device automatically saves the SSID of the WLAN network, and saves some access parameters of the WLAN network, such as an access password, etc., so as to move the device. After searching for the signal of the WLAN network, it can automatically discover and automatically access.
  • a specific implementation refers to the process of the first device.
  • the second device accesses the WLAN, and obtains the network identifier of the WLAN, where the second device searches for the presence of the network identifier and the wireless corresponding to the network identifier in the access point list.
  • the medium access control MAC address of the access point AP if the second device has the network identifier and the MAC address of the wireless access point AP corresponding to the network identifier in the access point list, Private sharing mode.
  • the second device is not limited to one device, and may be multiple mobile devices.
  • the media content shared by the first device may also be securely obtained through the foregoing steps.
  • the second device can execute The implementation methods of all the embodiments of the first device are similar in principle, and are not described herein again.
  • FIG. 11 is a signaling flowchart of Embodiment 16 of a method for sharing media content according to the present invention.
  • Common DLNA devices are as follows:
  • Digital Media Server used to store media files such as pictures, audio, video, etc., such as: smartphones, tablets, digital cameras, laptops, etc. capable of generating and storing media such as pictures, music, video programs, etc. Content device.
  • Digital Media Player A device for playing media files such as pictures, audio, video, etc., such as: audio, TV, projector, smartphone, tablet, laptop, personal digital terminal (Personal) Digital Assistant, PDA for short.
  • DMP Digital Media Player
  • DMC Digital Media Controller
  • the first device functions as a DMS device, and shares the media content to the second device that is the DMP device.
  • the first device and the second device access the public WLAN network, and open the DLNA function.
  • the first device and the second device multicast the SSDP online message to the WLAN network, where the SSDP online message carries the DDD URL and the UUID of the device, and the device is a DMS or DMP, and also carries the service supported by the device.
  • a device and a second device set the current mode to a private sharing mode at the WLAN.
  • the specific implementation method of the sharing method of the media content in this embodiment is as follows:
  • S1101 The first device and the second device adopt a private sharing mode.
  • the first device when the first device and the second device both adopt the private sharing mode, the first device generates the first private information, and simultaneously, the SSDP byebye message is respectively multicast to the WLAN network, to notify the first device and the second device.
  • the device has left the WLAN network.
  • S1102 Establish a connection between the first device and the second device, and send or display the first private information to the second device.
  • the respective NFC communication chip may be triggered to generate radio frequency coupling, and an NFC channel is established, and the first device sends the first private information to the second device.
  • the first private information may also be sent to the second device by using a two-dimensional code, a Bluetooth, a sound wave signal, or the like.
  • the first private information comprises a private one of the first device DDD URL and UUIDo
  • the second device receives the first private information sent or displayed by the first device, and sends an HTTP GET request to the first device.
  • the second device obtains the private DDD URL of the first device from the first private information, and sends an HTTP GET request carrying the DDD URL to the first device to obtain the private DDD of the first device.
  • the first device returns, according to the HTTP GET request, a private device description file DDD corresponding to the private DDD URL of the first device to the second device.
  • the first device after receiving the HTTP GET request sent by the second device, the first device sends a private DDD to the second device, where the DDD includes the device type, device name, device manufacturer, and device of the first device.
  • the identifier, etc. also includes the service information supported by the first device, each service corresponding to three sets of addresses, that is, the description address SCPD URL, indicating the URL of the SCPD file of the service; and the control address, indicating the calling of the service.
  • the URL of the corresponding control command the event address, used to indicate the URL of the event message to the control point when the parameter of some control commands in the service changes.
  • S1105 The second device receives the private DDD of the first device returned by the first device, and obtains a service control protocol description file address SCPD URL from the private DDD, where the second device sends the HTTP GET request for SCPD URL.
  • the first device receives the HTTP GET request that is sent by the second device and carries the SCPD URL, and returns a private SCPD file of the first device corresponding to the SCPD URL to the second device according to the request.
  • the second device acquires a control command corresponding to the SCPD file from the private SCPD file of the first device.
  • the second device may obtain, from the SCPD file, related control commands of the service supported by the first device and corresponding parameter variables.
  • S1108 The second device invokes a control command obtained from the first device SCPD file to obtain a shared media content list of the first device.
  • the second device invokes the acquired control command. For example, if the second device acquires the media content list of the photo shared by the first device, the second device calls the CDS::Browse()/Search () command, the first device sends a list of media content that it shares Give the second device.
  • S1109 The first device returns a shared media content list to the second device according to the control command invoked by the second device.
  • S1110 The second device obtains the media content according to the shared media content list.
  • the second device may click to obtain the shared photo, so that the photos stored in the first device may be shared with the second device.
  • the first device and the second device use a private sharing mode to establish a connection between the devices, and the first device sends the first private information to the second device, and the second device is configured according to the first device.
  • the DDD URL in the private information sends an HTTP GET request to the first device, obtains the private DDD of the first device, and obtains the SCPD URL of the first device from the DDD file, and sends an HTTP GET request to the first device to obtain the first
  • the device has a private SCPD file, and the second device obtains a corresponding service control command from the SCPD file, and invokes a corresponding control command to obtain a shared media content list of the first device, where the second device obtains the media sharing from the shared media content list.
  • the content of the DLNA device that can be discovered by any control point device that accesses the public WLAN network in the prior art, and obtains the shared media content of the DLNA device, but the DLNA device does not know about the DLNA.
  • the security of the shared media content of the device is poor, thus avoiding the leakage of privacy.
  • FIG. 12 is a signaling flowchart of Embodiment 17 of a method for sharing media content according to the present invention.
  • the three mobile devices enter the public WLAN network, and all adopt the private sharing mode, and all the three mobile devices need to share the media sharing content with the other two devices as an example, and the technical solution of the embodiment is described in detail.
  • the specific implementation process of the method in this embodiment is:
  • S1201 The first device establishes a connection with the second device.
  • the first device sends or displays a DDD URL and a UUID that are private to the first device to the second device.
  • the second device sends the DDD URL and the UUID of the second device to the first device, and generates a list of discovery devices in the device.
  • the first device and the second device serve as the DMS and the DMP at the same time, so the information sent by the first device and the second device should carry their respective searches in addition to the respective private DDD URLs and UUIDs (M-SEARCH).
  • Request a message to allow the mobile device to receive the other party's can be generated after the message.
  • the second device sends or displays the first private information of the second device to the first device.
  • the first device and the second device exchange private DDD URLs as DMS or DMP and private UUIDs in their respective DLNA applications. Since the mobile device serves as the DMS and the DMP at the same time, the information transmitted should carry the first device and the second device as the M-SEARCH request message of the DMP in addition to the above-mentioned private DDD URL and UUID.
  • the specific packet format sent by the first device to the second device is:
  • the first device and the second device After receiving the discovery message of the other party, the first device and the second device generate a discovery device list to record the device information discovered through the NFC channel in the private sharing mode, for example, the first device receives the data sent by the second device.
  • the specific packet format of the generated device discovery list is:
  • the device discovery list generated by the first device includes DMS and DMP, which are both the second device, and the device discovery list of the same second device includes the first device as the DMS and the DMP respectively.
  • the first device sends, to the second device, a private DDD URL carrying the second device.
  • S1205 The HTTP GET request sent by the second device to the first device that carries the private DDD URL of the first device, to obtain the private DDD of the first device.
  • the first device returns, according to the HTTP GET request, the private DDD of the first device corresponding to the private DDD URL to the second device.
  • the second device returns, according to the HTTP GET request, the private DDD of the second device corresponding to the private DDD URL to the first device.
  • the first device acquires the SCPD URL of the second device from the private DDD of the second device, and sends an HTTP GET request carrying the private SCPD URL to the second device, to obtain the SCPD file of the second device.
  • the second device obtains the SCPD URL of the first device from the private DDD of the first device, and sends an HTTP GET request carrying the private SCPD URL to the first device, to obtain the SCPD file of the first device.
  • S1210 The first device receives the SCPD file of the second device returned by the second device.
  • S1211 The second device receives the SCPD file of the first device returned by the first device. After obtaining the control command from the SCPD file, the first device and the first device can obtain the shared shared media content list and obtain the shared media content.
  • the specific acquisition manner is as follows: I will not repeat them here.
  • S1212 The first device establishes a connection with the third device, where the first device sends the first private information to the third device, where the first private information includes the DDD URL and the UUID of the first device and the DDD URL and the UUID of the second device. .
  • the first device updates the device discovery list and adds the third device to the list.
  • the third device sends or displays a DDD URL and a UUID that are private to the third device to the first device.
  • the third device generates a discovery device list, where the discovery device list includes the first device and the second device.
  • the second device is already included in the device discovery list stored by the DLNA application of the first device, that is, the third device has discovered the second device in the private sharing mode.
  • the discovery device list stored by the DLNA application in the third device is updated, and the discovery message of the second device is added, where the private DDD URL and UUID of the second device are carried.
  • the third device requests the first device and the second device to request the respective private DDD and the private SCPD file according to the private DDD URLs of the first device and the second device.
  • S1215 The third device acquires a control command corresponding to the first device and the private device service of the second device. And calling the command to obtain a shared media content list of the first device or the second device.
  • the sharing of media content can also be performed in the same manner.
  • the method for sharing the media content provided by the embodiment the first device and the second device are multiple devices, all adopt a private sharing mode, and an NFC channel is established between the devices, and the first device and the second device exchange respective private DDDs.
  • the URL and the UUID the first device sends an HTTP GET request to obtain the private DDD of the second device, and obtains the SCPD URL of the second device from the DDD file, and sends an HTTP GET request to the second device again to obtain the SCPD private to the second device.
  • the second device sends an HTTP GET request to obtain the private DDD of the first device, and obtains the SCPD URL of the first device from the DDD file, and sends an HTTP GET request to the first device again to obtain the SCPD of the first device private. file.
  • the first device establishes an NFC channel with the third device, and sends the first private information including the private DDD URL and the UUID of the second device to the third device, and the third device sends the private private DDD URL and the UUID to the third device.
  • the mobile device can obtain control commands from each other, and call the corresponding control command to obtain the shared media content list of the mobile device, and obtain the responsive media content, and solve any access to the public WLAN network in the prior art.
  • the control point device can discover the online DLNA device and obtain the shared media content of the DLNA device, but the DLNA device has no knowledge and causes the security of the shared media content of the DLNA device to be poor, thereby avoiding privacy.
  • the leak, and in the case of a large number of mobile devices, the media content sharing between the mobile devices can be quickly established, which is convenient for the user to operate and improve the user experience.
  • FIG. 13 is a schematic structural diagram of Embodiment 1 of a media content sharing apparatus according to the present invention.
  • the media content sharing apparatus includes: a processing module 11 and a transceiver module 12.
  • the processing module 11 is configured to: when the sharing device of the media content adopts a private sharing mode, acquire first private information corresponding to the private sharing mode; and send and receive module 12, configured to send the first private information Or displaying to the second device, the second device acquiring the first private information, and acquiring the shared media content of the sharing device of the media content according to the first private information.
  • the device for sharing the media content of the embodiment is used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the implementation manner and principle are similar, and the device is not described here.
  • the control point device of the public WLAN network can discover the online DLNA device and obtain the shared media content of the DLNA device, but the DLNA device has no knowledge and causes the security of the shared media content of the DLNA device to be poor. Thereby avoiding the leakage of privacy.
  • the transceiver module 12 includes:
  • a near field communication unit configured to establish an NFC channel with the second device by using a near field communication NFC mode, and send the first private information to the second device by using the NFC channel;
  • a Bluetooth processing unit a Bluetooth piconet is set up with the second device, and the first private information is sent to the second device in the Bluetooth piconet; or an image coding unit is used to Encoding the first private information, generating a two-dimensional code image, and displaying the first private information in the form of the two-dimensional code image, for the second device to ingest the two-dimensional code image, and acquiring The first private information; or
  • a sound wave encoding unit configured to encode the first private information to generate an acoustic wave signal, and propagate the sound wave signal, so that the second device receives the sound wave signal through a microphone, and performs the sound wave signal on the sound wave signal Decoding to obtain the first private information.
  • the first private information is a private device description of the shared device of the media content.
  • the uniform resource locator DDD URL of the file and the private universal unique identifier UUID of the shared device of the media content, the transceiver module 12 is specifically configured to:
  • the private service control protocol of the shared device describes a URL of the SCPD file, so that the second device acquires a corresponding private SCPD file according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file;
  • the control instruction is an instruction that the second device invokes according to the private SCPD file.
  • the transceiver module 12 is further configured to receive a private DDD URL and UUID information of the second device that is sent by the second device.
  • the first private information is a private identifier of the shared content of the media content
  • the transceiver module is specifically configured to:
  • the transceiver module 12 is further configured to receive a private identifier of the second device.
  • the first private information includes a private identifier of the shared content of the media content
  • the transceiver module 12 is specifically configured to:
  • the transceiver module 12 is further configured to receive an instruction for configuring a private sharing mode sent by the user, and adopt the private sharing mode according to the instruction.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 14 is a schematic structural diagram of Embodiment 2 of a media content sharing apparatus according to the present invention. As shown in FIG. 14, the apparatus further includes: a first acquiring module 13 for Obtaining a network identifier of the WLAN when the sharing device of the media content accesses the wireless local area network WLAN;
  • the processing module 11 is further configured to determine, according to the network identifier, whether the WLAN is a public network, and if the WLAN is a public network, adopt the private sharing mode.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 15 is a schematic structural diagram of Embodiment 3 of a device for sharing media content according to the present invention.
  • the device further includes: a second acquiring module 14 according to the embodiment shown in FIG. And acquiring, when the sharing device of the media content accesses the WLAN, acquiring a network identifier of the WLAN;
  • the processing module 11 is further configured to determine, according to the network identifier, whether the sharing device of the media content accesses the WLAN for the first time;
  • the transceiver module 12 receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 16 is a schematic structural diagram of Embodiment 4 of a media content sharing apparatus according to the present invention.
  • the apparatus further includes: a third acquiring module 15 according to the foregoing embodiment shown in FIG. And acquiring, when the sharing device of the media content accesses the WLAN, acquiring a network identifier of the WLAN;
  • the processing module 11 is further configured to: in the access point list, whether the network identifier and the medium access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted if the network identifier and the MAC address of the AP corresponding to the network identifier exist in the access point list.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 17 is a schematic structural diagram of Embodiment 5 of a media content sharing apparatus according to the present invention.
  • the media content sharing apparatus includes: a transceiver module 21 and a processing module 22.
  • the transceiver module 21 is configured to acquire the first private information that is sent by the first device, where the sharing device of the media content currently uses a private sharing mode
  • the processing module 22 is configured to acquire the first private information according to the first private information.
  • the shared media content of the first device includes: a transceiver module 21 and a processing module 22.
  • the transceiver module 21 is configured to acquire the first private information that is sent by the first device, where the sharing device of the media content currently uses a private sharing mode
  • the processing module 22 is configured to acquire the first private information according to the first private information.
  • the shared media content of the first device is configured to acquire the first private information according to the first private information.
  • the sharing device of the media content in this embodiment is used to implement the technical solution of the method embodiment shown in FIG. 8.
  • the implementation principle is the same as the technical principle, and is not described herein. Any access to the public WLAN in the prior art is solved.
  • the control point device of the network can discover the online DLNA device and obtain the shared media content of the DLNA device, but the DLNA device has no knowledge and causes the security of the shared media content of the DLNA device to be poor, thereby avoiding A leak of privacy.
  • the transceiver module 21 includes: a near field communication unit, configured to establish the NFC channel with the first device by using a near field communication NFC mode, and receive the NFC channel by using the NFC channel The first private information sent by the first device; or
  • a Bluetooth processing unit configured to set up a Bluetooth piconet with the first device, and receive the first private information sent by the first device in the Bluetooth piconet; or, an image processing unit, For acquiring the two-dimensional code image displayed by the first device, acquiring the first private information of the first device, where the two-dimensional code image is that the first device uses the first private information Performing a two-dimensional code image generated by encoding; or
  • a sound wave processing unit configured to receive an acoustic wave signal propagated by the first device through a microphone, and decode the sound wave signal to obtain the first private information of the first device; wherein the sound wave signal is the The first device encodes the first private information to generate the generated acoustic signal.
  • the first private information is a uniform resource locator DDD URL of the private device description file of the first device, and a private universal unique identifier UUID of the first device
  • the transceiver module 21 is configured to: Sending a first request message to the first device, where the first request message carries a private DDD URL with the first device; the transceiver module 21 is configured to receive second private information sent by the first device, where the second private information includes a private DDD URL of the first device a private device description file DDD, the private DDD including a URL of the first device's private service control protocol description SCPD file;
  • the processing module 22 is configured to obtain a corresponding private SCPD file from the first device according to the URL of the private SCPD file, and invoke a corresponding control instruction according to the private SCPD file, for the first device. Sending, by the control instruction, the shared media content list of the first device; the processing module 22 is further configured to obtain the co-directional media content from the shared media content list.
  • the transceiver module 21 is further configured to send, to the first device, a private DDD URL and UUID information of the sharing device of the media content.
  • the first private information is a private identifier of the first device
  • the transceiver module 21 is configured to receive the first private information that is sent by the first device, where the processing module 22 is configured according to the The private identifier of the first device directly accesses the first device, and acquires shared media content of the first device.
  • the transceiver module 21 is further configured to send, to the first device, a private identifier of the sharing device of the media content.
  • the first private information includes a key generated by the first device, and the transceiver module 21 is configured to:
  • the second device establishes a secure channel
  • And calling the control instruction acquiring, by the secure channel, the first device to send the shared media content list of the first device, and acquiring the shared media content from the shared media content list.
  • the transceiver module 21 is further configured to receive an instruction of a private sharing mode sent by the user, where the processing module 22 adopts the private sharing mode according to the instruction.
  • FIG. 18 is a schematic structural diagram of Embodiment 6 of a media content sharing device according to the present invention. As shown in FIG. 18, the device further includes: a first acquiring module 23, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module 22 is configured to determine, according to the network identifier, whether the WLAN is a public network, and if the WLAN is a public network, adopt the private sharing mode.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 19 is a schematic structural diagram of Embodiment 7 of a media content sharing device according to the present invention.
  • the device further includes: a second acquiring module 24, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module 22 is configured to determine, according to the network identifier, whether the sharing device of the media content accesses the WLAN for the first time; if, according to the network identifier, determining that the sharing device of the media content first accesses the The WLAN generates the prompt information to prompt the user whether to select the private sharing mode.
  • the transceiver module 21 receives the selection information sent by the user according to the prompt information, and when the selection information includes the private sharing mode, The private sharing mode.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 20 is a schematic structural diagram of Embodiment 8 of a media content sharing device according to the present invention.
  • the device further includes: a third acquiring module 25, Obtaining a network identifier of the WLAN when accessing the WLAN;
  • the processing module 22 is configured to search, in the access point list, whether the network identifier and the medium access control MAC address of the wireless access point AP corresponding to the network identifier are present;
  • the private sharing mode is adopted if the network identifier and the MAC address of the wireless access point AP corresponding to the network identifier are present in the access point list.
  • the sharing device of the media content provided in this embodiment is used to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 21 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present invention.
  • the terminal device includes: a processor 31 and a transceiver module 32, wherein the processor 31 is configured to set the terminal device as a private share. a mode, and acquiring the first private information corresponding to the private sharing mode; the transceiver module 32, configured to send or display the first private information to another terminal device, to provide The other terminal device acquires the first private information, and acquires the shared media content of the terminal device according to the first private information.
  • the terminal device provided in this embodiment is configured to perform the technical solution shown in FIG. 1-12, and the first private information of the terminal device is obtained by using a processor to set the terminal device to a private sharing mode, and is sent by using a transceiver or Displaying to another terminal device, for another terminal device to obtain the co-directional media content of the terminal device, and solving any DLNA device that can be found on the control point device that accesses the public WLAN network in the prior art, Moreover, the shared media content of the DLNA device is obtained, and the DLNA device is unaware of the problem that the security of the shared media content of the DLNA device is poor, thereby avoiding leakage of privacy.
  • the transceiver module 32 shown in FIG. 22 specifically includes:
  • An NFC transmitter configured to establish an NFC channel with the another terminal device, and send the first private information to the another terminal device by using the NFC channel;
  • a Bluetooth transmitter configured to set up a Bluetooth piconet with the other terminal device, and send the first private information to the another terminal device in the Bluetooth piconet;
  • An image encoder configured to encode the first private information, generate a two-dimensional code image, and display, by using a display, the first private information corresponding to the two-dimensional code image form, for the another
  • the terminal device picks up the two-dimensional code image to obtain the first private information; or, the sound encoder is configured to encode the first private information to generate an acoustic wave signal, and propagate the sound wave signal through a speaker, And the other terminal device receives the sound wave signal through a microphone, and decodes the sound wave signal to obtain the first private information.
  • the first private information includes a uniform resource locator DDD URL of the private device description file of the terminal device and a private universal unique identifier UUID of the terminal device, where the transceiver module 32 is specifically configured to:
  • the second private information includes a private device description file DDD corresponding to the private DDD URL, where the private DDD includes the terminal device
  • the private service control protocol describes the URL of the SCPD file, Obtaining, by the another terminal device, a corresponding private SCPD file according to the URL of the private SCPD file, and invoking a corresponding control instruction according to the private SCPD file;
  • controlling The instruction is an instruction that the another terminal device invokes according to the private SCPD file.
  • the first private information is a private identifier of the terminal device, and the transceiver module 32 is specifically configured to:
  • Transmitting or displaying the first private information to the another terminal device so that the another terminal device directly accesses the terminal device according to the private identifier of the terminal device, and acquires the sharing of the terminal device.
  • Media content
  • the first private information includes a key generated by the terminal device
  • the transceiver module 32 is configured to send the first private information to the another terminal device, and receive the another a first authentication message sent by the terminal device, where the first authentication message is generated by the another terminal device according to the encrypted sequence encrypted by the key;
  • the processor 31 is configured to decrypt the first authentication message according to the key, obtain the encryption sequence, and establish security between the terminal device and the another terminal device according to the encryption sequence. channel;
  • the transceiver module 32 is further configured to send, according to the control instruction, a shared media content list of the terminal device to the another terminal device in the secure channel, where the another terminal device obtains the shared media content from the shared media content. Get shared media content in the list.
  • the transceiver module 32 is further configured to acquire first private information of the another terminal device that is sent or displayed by the another terminal device.
  • the processor 31 is further configured to:
  • the private sharing mode is adopted.
  • the processor 31 is further configured to:
  • the transceiver module 32 receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the processor 31 is further configured to:
  • the private sharing mode is adopted if the network identifier and the MAC address of the AP corresponding to the network identifier exist in the access point list.
  • the terminal device provided in this embodiment corresponds to the technical solution of the first device in the method shown in FIG. 1-12, and is used to implement the technical solution shown in FIG. 1-12, and the implementation principle and technical effect thereof are similar. No longer.
  • FIG. 22 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present invention.
  • the terminal device includes: a transceiver module 41 and a processor 42.
  • the transceiver module 41 is configured to acquire a first transmission or display by another terminal device.
  • the terminal device provided by the embodiment is configured to set the terminal device to the private sharing mode by using the processor, and the transceiver module acquires the first private information corresponding to the private mode sent by the other terminal device, and obtains the first private information according to the first private information.
  • the media shared content shared by the other terminal device solves any DLNA device that can be found on the control point device that accesses the public WLAN network in the prior art, and obtains the shared media content of the DLNA device, and the DLNA The device is unknowingly causing the problem of poor security of the shared media content of the DLNA device, thereby avoiding the leakage of privacy.
  • the transceiver module 41 specifically includes: an NFC transmitter, configured to establish an NFC channel with the another terminal device, and pass the NFC channel, on the basis of the foregoing embodiment.
  • an NFC transmitter configured to establish an NFC channel with the another terminal device, and pass the NFC channel, on the basis of the foregoing embodiment.
  • Receiving the first private information sent by the another terminal device or, a Bluetooth transmitter, configured to set up a Bluetooth piconet with the another terminal device, and receive the another terminal in the Bluetooth piconet
  • a sound wave decoder configured to receive an acoustic wave signal propagated by the another terminal device through a sound collection module, and decode the sound wave signal to obtain the first private information of the another terminal device; wherein the sound wave The signal is an acoustic wave signal generated by the other terminal device to encode the first private information.
  • the first private information includes a uniform resource locator DDD URL of the private device description file of the another terminal device, and a private universal unique identifier UUID of the another terminal device, where the transceiver module 41 Specifically used for:
  • the second private information includes a private device description file DDD corresponding to the private DDD URL of the another terminal device, where the private DDD includes the another terminal device
  • the private service control protocol describes the URL of the SCPD file; obtains a corresponding private SCPD file from the another terminal device according to the URL of the private SCPD file, and invokes a corresponding control instruction according to the private SCPD file for Sending, by the other terminal device, the shared media content list of the another terminal device according to the control instruction;
  • the first private information is a private identifier of the another terminal device, and the sending and receiving module 41 is specifically configured to:
  • the first private information includes a key generated by the another terminal device, and the transceiver module 41 is specifically configured to:
  • the transceiver module 41 is further configured to send or display the first private information of the terminal device to the another terminal device.
  • the processor 42 is specifically configured to:
  • the private sharing mode is adopted.
  • the processor 42 is specifically configured to:
  • the transceiver module 41 receives the selection information sent by the user according to the prompt information, and adopts the private sharing mode when the selection information includes a private sharing mode.
  • the processor 42 is specifically configured to:
  • the private sharing mode is adopted if the network identifier and the MAC address of the wireless access point AP corresponding to the network identifier are present in the access point list.
  • the terminal device provided in this embodiment is the same as the second device in the method embodiment of the present invention.
  • the terminal device is used to execute the technical solution shown in FIG. 1-12, and the execution method thereof is implemented.
  • the principle and technical effects refer to the method embodiment, which is not described here.
  • the storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供一种媒体内容的共享方法及装置,该媒体内容的共享方法包括:第一设备采用私有共享模式,获取与所述私有共享模式对应的第一私有信息;所述第一设备将所述第一私有信息发送或显示给第二设备,以供所述第二设备获取所述第一私有信息,并根据所述第一私有信息获取所述第一设备的共享媒体内容。通过第一设备和第二设备在私有共享模式下分享共享媒体内容,解决了现有技术中任何接入到该公共WLAN网络的控制点设备都能够发现上线的DLNA设备,并且获取到该DLNA设备的共享媒体内容,而DLNA设备却毫不知情而造成了DLNA设备的共享媒体内容的安全性较差的问题,从而避免了隐私的泄露。

Description

媒体内容的共享方法及装置
技术领域
本发明实施例涉及通信领域,尤其涉及一种媒体内容的共享方法及装置。 背景技术
随着互联网技术和服务的快速发展, 互联网媒体内容的数量和种类越来 越丰富, 包括音乐、 电影、 电视剧、 新闻、 自制短片等等, 互联网媒体的普 及极大地丰富了用户的视觉和听觉体验。 为了实现家庭网络设备在播放互联 网媒体内容的同时, 也具备内容分享的功能, 即把一个设备上播放的互联网 媒体内容切换到另一设备上进行播放, 目前, 家庭网络中的设备主要采用数 字生活网络联盟 (Digital Living Network Alliance; 简称: DLNA) 设备, 该 设备采用通用即插即用(Universal Plug and Play; 简称: UPnP)音视频(UPnP Audio & Video; 简称: UPnP AV)的标准, 即在 DLNA的协议架构中, DLNA 设备只要连入同一个无线局域网络 (Wireless Local Area Networks; 简称: WLAN) , 就可以通过 UPnP设备架构和 UPnP AV协议完成设备发现、 设备 服务描述、 设备控制、 事件传递、 内容展示等一系列歩骤, 从而实现 DLNA 设备之间媒体内容的传输和共享。
另外, 根据 DLNA规范, 当 DLNA设备上线时, 它就会向整个 WLAN 组播上线消息或者搜索消息, 以供设备互相发现。所有连入该 WLAN网络的 具有控制功能的 DLNA设备均能收到其它具有媒体服务功能的 DLNA设备组 播的上线消息, 并获取该具有媒体服务功能的 DLNA设备存储的媒体内容列 表。
但是, 当具有媒体服务功能的 DLNA设备接入的 WLAN为公共 Wi-Fi 网络, 例如机场、 商场、 餐厅等网络, 这时这种设备和服务机制就会存在隐 私泄露的风险, 即任何接入到该公共 Wi-Fi网络的控制点设备都能够发现上 线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLAN设 备却毫不知情, 从而造成了 DLAN设备的共享媒体内容的安全性差。 发明内容
本发明实施例提供一种媒体内容的共享方法及装置, 解决了现有技术中
DLNA设备的共享媒体内容的安全性较差的问题, 提高私有媒体内容共享的 安全性, 避免了隐私的泄露。
本发明实施例第一方面提供一种媒体内容的共享方法, 包括:
第一设备采用私有共享模式, 获取与所述私有共享模式对应的第一私有
I Ή自、 .,
所述第一设备将所述第一私有信息发送或显示给第二设备, 以供所述第 二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第一设备 的共享媒体内容。
结合第一方面, 在第一方面的第一种可能的实施方式中, 所述第一设备 将所述第一私有信息发送或显示给所述第二设备, 具体包括:
所述第一设备与所述第二设备建立 NFC信道, 并通过所述 NFC信道将 所述第一私有信息发送给所述第二设备; 或者,
所述第一设备与所述第二设备组建蓝牙微微网, 并在所述蓝牙微微网中 将所述第一私有信息发送给所述第二设备; 或者,
所述第一设备将所述第一私有信息进行编码, 生成二维码图像, 并对所 述二维码图像形式对应的所述第一私有信息进行显示, 以供所述第二设备摄 取所述二维码图像, 获取所述第一私有信息; 或者,
所述第一设备将所述第一私有信息进行编码生成声波信号, 并对所述声 波信号进行传播, 以供所述第二设备通过麦克风接收所述声波信号, 并对所 述声波信号进行解码获取所述第一私有信息。
结合第一方面或第一方面的第一种可能的实施方式, 在第一方面的第二 种可能的实施方式中, 所述第一私有信息包括所述第一设备的私有设备描述 文件的统一资源定位符 DDD URL 和所述第一设备的私有通用唯一标识符 UUIDo
结合第一方面的第二种可能的实施方式, 在第一方面的第三种可能的实 施方式中, 所述所述第一设备将所述第一私有信息发送或显示给第二设备, 以供所述第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所 述第一设备的共享媒体内容, 包括: 所述第一设备将所述第一私有信息发送或显示给所述第二设备, 并接收 所述第二设备发送的第一请求消息, 所述第一请求消息中携带有所述第一设 备的私有 DDD URL;
所述第一设备根据所述第一请求消息, 向所述第二设备发送第二私有信 息, 所述第二私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文 件的 URL, 以供所述第二设备根据所述私有 SCPD文件的 URL, 获取对应的 私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
所述第一设备根据所述控制指令, 向所述第二设备发送所述第一设备的 共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享 媒体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD文件调 用的指令。
结合第一方面的第二种或第三种可能的实施方式, 在第一方面的第四种 可能的实施方式中, 所述第一设备将所述第一私有信息发送或显示给所述第 二设备之后, 还包括:
所述第一设备获取所述第二设备发送的第二设备的私有 DDD URL 和 UUID信息。
结合第一方面或第一方面的第一种可能的实施方式, 在第一方面的第五 种可能的实施方式中, 所述第一私有信息为所述第一设备的私有标识。
结合第一方面第五种可能的实施方式, 在第一方面的第六种可能的实施 方式中, 所述第一设备将所述第一私有信息发送或显示给第二设备, 以供所 述第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第一 设备的共享媒体内容, 包括:
所述第一设备将所述第一私有信息发送或显示给所述第二设备, 以供所 述第二设备根据所述第一设备的所述私有标识直接访问所述第一设备, 获取 所述第一设备的共享媒体内容。
结合第一方面的第五种或第六种可能的实施方式, 在第一方面的第七种 可能的实施方式中, 所述第一设备将所述第一私有信息发送或显示给所述第 二设备之后, 还包括:
所述第一设备获取所述第二设备发送的所述第二设备的私有本地域名。 结合第一方面或第一方面的第一种可能的实施方式, 在第一方面的第八 种可能的实施方式中, 所述第一私有信息包括所述第一设备生成的密钥。
结合第一方面的第八种可能的实施方式, 在第一方面的第九种可能的实 施方式中, 所述第一设备将所述第一私有信息发送或显示给第二设备, 以供 所述第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第 一设备的共享媒体内容, 包括:
所述第一设备将所述第一私有信息发送给所述第二设备, 并接收所述第 二设备发送的第一认证消息, 所述第一认证消息是所述第二设备根据所述密 钥加密的加密序列生成的;
所述第一设备根据所述密钥对所述第一认证消息进行解密, 获得所述加 密序列, 并根据所述加密序列在所述第一设备和所述第二设备之间建立安全 信道;
所述第一设备根据控制指令, 在所述安全信道中向所述第二设备发送所 述第一设备的共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列 表中获取共享媒体内容。
结合第一方面、第一方面的第一种到第九种可能的实施方式中的任一种, 在第一方面的第十种可能的实施方式中, 所述第一设备采用私有共享模式, 获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括:
所述第一设备接收用户发送的配置私有共享模式的指令, 并根据所述指 令, 采用所述私有共享模式。
结合第一方面、第一方面的第一种到第九种可能的实施方式中的任一种, 在第一方面的第十一种可能的实施方式中,所述第一设备采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括: 所述第一设备接入无线局域网 WLAN, 并获取所述 WLAN的网络标识; 所述第一设备根据所述网络标识, 判断所述 WLAN是否为公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
结合第一方面、第一方面的第一种到第九种可能的实施方式中的任一种, 在第一方面的第十二种可能的实施方式中,所述第一设备采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括: 所述第一设备接入 WLAN, 并获取所述 WLAN的网络标识; 所述第一设备根据所述网络标识, 判断所述第一设备是否首次接入所述
WLAN;
所述第一设备若根据所述网络标识,确定所述 WLAN为所述第一设备首 次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模 式;
所述第一设备在接收所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
结合第一方面、第一方面的第一种到第九种可能的实施方式中的任一种, 在第一方面的第十三种可能的实施方式中,所述第一设备采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括: 所述第一设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第一设备在接入点列表中査找是否存在所述网络标识以及所述网络 标识对应的无线接入点 AP的介质访问控制 MAC地址;
所述第一设备若在所述接入点列表中存在所述网络标识以及所述网络标 识对应的 AP的 MAC地址, 则采用所述私有共享模式。
本发明实施例第二方面提供一种媒体内容的共享方法, 包括:
第二设备获取第一设备发送或显示的第一私有信息; 其中, 所述第二设 备当前采用私有共享模式;
所述第二设备根据所述第一私有信息获取所述第一设备的共享媒体内 容。
结合第二方面, 在第二方面的第一种可能的实施方式中, 所述第二设备 获取第一设备发送或显示的第一私有信息, 具体包括:
所述第二设备与所述第一设备建立 NFC信道, 并通过所述 NFC信道接 收所述第一设备发送的所述第一私有信息; 或者,
所述第二设备与所述第一设备组建蓝牙微微网, 并在所述蓝牙微微网中 接收所述第一设备发送的所述第一私有信息; 或者,
所述第二设备摄取所述第一设备显示的二维码图像, 获取所述第一设备 的所述第一私有信息; 其中, 所述二维码图像为所述第一设备将所述第一私 有信息进行编码生成的二维码图像; 或者,
所述第二设备接收所述第一设备传播的声波信号, 并对所述声波信号进 行解码获取所述第一设备的所述第一私有信息; 其中, 所述声波信号为所述 第一设备将所述第一私有信息进行编码生成的声波信号。
结合第二方面或第二方面的第一种可能的实施方式, 在第二方面的第二 种可能的实施方式中, 所述第一私有信息包括所述第一设备的私有设备描述 文件的统一资源定位符 DDD URL 和所述第一设备的私有通用唯一标识符 UUIDo
结合第二方面的第二种可能的实施方式, 在第二方面的第三种可能的实 施方式中, 所述第二设备获取所述第一私有信息, 并根据所述第一私有信息 获取所述第一设备的共享媒体内容, 包括:
所述第二设备向所述第一设备发送第一请求消息, 所述第一请求消息中 携带有所述第一设备的私有 DDD URL;
所述第二设备接收所述第一设备发送的第二私有信息, 所述第二私有信 息包括所述第一设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述 私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文件的 URL; 所述第二设备根据所述私有 SCPD文件的 URL, 从所述第一设备中获取 对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体内容列 表;
所述第二设备从所述共享媒体内容列表中获取共向媒体内容。
结合第二方面的第二种或第三种可能的实施方式, 在第二方面的第四种 可能的实施方式中, 所述第二设备获取第一设备发送或显示的第一私有信息 之后, 还包括:
所述第二设备向所述第一设备发送或显示所述第二设备的私有 DDD URL禾口 UUID信息。
结合第二方面或第二方面的第一种可能的实施方式, 在第二方面的第五 种可能的实施方式中, 所述第一私有信息为所述第一设备的私有标识。
结合第二方面第五种可能的实施方式, 在第二方面的第六种可能的实施 方式中, 所述第二设备获取所述第一私有信息, 并根据所述第一私有信息获 取所述第一设备的共享媒体内容, 包括:
所述第二设备获取所述第一设备发送的所述第一私有信息, 并根据所述 第一设备的所述私有本地域名直接访问所述第一设备, 获取所述第一设备的 共享媒体内容。
结合第二方面的第五种或第六种可能的实施方式, 在第二方面的第七种 可能的实施方式中, 所述第二设备获取第一设备发送或显示的第一私有信息 之后, 还包括:
所述第二设备向所述第一设备发送所述第二设备的私有标识。
结合第二方面或第二方面的第一种可能的实施方式, 在第二方面的第八 种可能的实施方式中, 所述第一私有信息包括所述第一设备生成的密钥。
结合第二方面的第八种可能的实施方式, 在第二方面的第九种可能的实 施方式中, 所述第二设备获取所述第一私有信息, 并根据所述第一私有信息 获取所述第一设备的共享媒体内容, 包括:
所述第二设备获取所述第一设备发送或显示的所述第一私有信息, 并根 据所述密钥对加密序列进行加密生成第一认证消息;
所述第二设备将所述第一认证消息发送给所述第一设备, 以使所述第一 设备根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根 据所述加密序列与所述第二设备建立安全信道;
所述第二设备调用控制指令, 通过所述安全信道获取所述第一设备发送 所述第一设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享 媒体内容。
结合第二方面、第二方面的第一种到第九种可能的实施方式中的任一种, 在第二方面的第十种可能的实施方式中,所述二设备当前采用私有共享模式, 包括:
所述第二设备接收用户发送的私有共享模式的指令, 并根据所述指令, 采用所述私有共享模式。
结合第二方面、第二方面的第一种到第九种可能的实施方式中的任一种, 在第二方面的第十一种可能的实施方式中, 所述二设备当前采用私有共享模 式, 包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备根据所述网络标识, 确定所述 WLAN是否为公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。 结合第二方面、第二方面的第一种到第九种可能的实施方式中的任一种, 在第二方面的第十二种可能的实施方式中, 所述二设备当前采用私有共享模 式, 还包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备根据所述网络标识, 确定所述第二设备是否首次接入所述
WLAN;
所述第二设备若根据所述网络标识, 确定所述第二设备首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
所述第二设备接收所述用户根据所述提示信息发送的选择信息, 在所述 选择信息包括私有共享模式时, 采用所述私有共享模式。
结合第二方面、第二方面的第一种到第九种可能的实施方式中的任一种, 在第二方面的第十三种可能的实施方式中, 所述二设备当前采用私有共享模 式, 还包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备在接入点列表中査找是否存在所述网络标识以及所述网络 标识对应的无线接入点 AP的介质访问控制 MAC地址;
所述第二设备若在所述接入点列表中存在所述网络标识以及所述网络标 识对应的无线接入点 AP的 MAC地址, 则采用所述私有共享模式。
本发明实施例第三方面提供一种媒体内容的共享装置, 包括:
处理模块, 用于当所述媒体内容的共享装置采用私有共享模式时, 获取 与所述私有共享模式对应的第一私有信息;
收发模块, 用于将所述第一私有信息发送或显示给第二设备, 以供所述 第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述媒体内 容的共享装置的共享媒体内容。
结合第三方面, 在第三方面的第一种可能的实施方式中, 所述收发模块 包括:
近场通信单元, 用于与所述第二设备建立 NFC信道, 并通过所述 NFC 信道将所述第一私有信息发送给所述第二设备; 或者,
蓝牙处理单元, 用于与所述第二设备组建蓝牙微微网, 并在所述蓝牙微 微网中将所述第一私有信息发送给所述第二设备; 或者, 图像编码单元, 用于将所述第一私有信息进行编码, 生成二维码图像, 并对所述二维码图像形式的所述第一私有信息进行显示, 以供所述第二设备 摄取所述二维码图像, 获取所述第一私有信息; 或者,
声波编码单元, 用于将所述第一私有信息进行编码生成声波信号, 并对 所述声波信号进行传播, 以供所述第二设备通过麦克风接收所述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
结合第三方面或第三方面的第一种可能的实施方式, 在第三方面的第二 种可能的实施方式中, 所述第一私有信息为所述媒体内容的共享装置的私有 设备描述文件的统一资源定位符 DDD URL和所述媒体内容的共享装置的私 有通用唯一标识符 UUID, 则所述收发模块具体用于:
将所述第一私有信息发送或显示给所述第二设备, 并接收所述第二设备 发送的第一请求消息, 所述第一请求消息中携带有所述媒体内容的共享装置 的私有 DDD URL;
根据所述第一请求消息, 向所述第二设备发送第二私有信息, 所述第二 私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述媒体内容的共享装置的私有服务控制协议描述 SCPD 文件的 URL, 以供所述第二设备根据所述私有 SCPD文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述第二设备发送所述媒体内容的共享装置的共 享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享媒 体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD文件调用 的指令。
结合第三方面的第二种可能的实施方式, 在第三方面的第三种可能的实 施方式中, 所述收发模块还用于接收所述第二设备发送的第二设备的私有 DDD URL禾口 UUID信息。
结合第三方面或第三方面的第一种可能的实施方式, 在第三方面的第四 种可能的实施方式中, 所述第一私有信息为所述媒体内容的共享装的私有标 识, 则所述收发模块具体用于:
将所述第一私有信息发送或显示给所述第二设备, 以供所述第二设备根 据所述媒体内容的共享装置的所述私有标识直接访问所述媒体内容的共享装 置, 获取所述媒体内容的共享装置的共享媒体内容。
结合第三方面的第四种可能的实施方式, 在第三方面的第五种可能的实 施方式中, 所述收发模块还用于接收所述第二设备的私有标识。
结合第三方面或第三方面的第一种可能的实施方式, 在第三方面的第六 种可能的实施方式中, 所述第一私有信息包括所述媒体内容的共享装的私有 标识, 则所述收发模块具体用于:
将所述第一私有信息发送给所述第二设备, 并接收所述第二设备发送的 第一认证消息, 所述第一认证消息是所述第二设备根据所述密钥加密的加密 序列生成的;
根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根 据所述加密序列在所述第一设备和所述第二设备之间建立安全信道;
根据控制指令, 在所述安全信道中向所述第二设备发送所述第一设备的 共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享 媒体内容。
结合第三方面、第三方面的第一种至第六种可能的实施方式中的任一种, 在第三方面的第七种可能的实施方式中, 所述收发模块还用于接收用户发送 的配置私有共享模式的指令, 并根据所述指令, 采用所述私有共享模式。
结合第三方面、第三方面的第一种至第六种可能的实施方式中的任一种, 在第三方面的第八种可能的实施方式中, 还包括: 第一获取模块, 用于在所 述媒体内容的共享装置接入无线局域网 WLAN时, 获取所述 WLAN的网络 标识;
则所述处理模块还用于根据所述网络标识,确定所述 WLAN是否为公共 网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
结合第三方面、第三方面的第一种至第六种可能的实施方式中的任一种, 在第三方面的第九种可能的实施方式中, 还包括: 第二获取模块, 用于在所 述媒体内容的共享装置接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块还用于根据所述网络标识, 确定所述媒体内容的共享装 置是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述媒体内容的共享装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式; 在所述收发模块接收所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
结合第三方面、第三方面的第一种至第六种可能的实施方式中的任一种, 在第三方面的第十种可能的实施方式中, 还包括: 第三获取模块, 用于在所 述媒体内容的共享装置接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块还用于在接入点列表中査找是否存在所述网络标识以及 所述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
本发明实施例第四方面提供一种媒体内容的共享装置, 包括:
收发模块, 用于获取第一设备发送的第一私有信息; 其中, 所述媒体内 容的共享装置当前采用私有共享模式;
处理模块, 用于根据所述第一私有信息获取所述第一设备的共享媒体内 结合第四方面, 在第四方面的第一种可能的实施方式中, 所述收发模块 包括:
近场通信单元, 用于与所述第一设备建立所述 NFC 信道, 并通过所述 NFC信道接收所述第一设备发送的所述第一私有信息; 或者,
蓝牙处理单元, 用于与所述第一设备组建蓝牙微微网, 并在所述蓝牙微 微网中接收所述第一设备发送的所述第一私有信息; 或者,
图像处理单元, 用于摄取所述第一设备显示的二维码图像, 获取所述第 一设备的所述第一私有信息; 其中, 所述二维码图像为所述第一设备将所述 第一私有信息进行编码生成的二维码图像; 或者,
声波处理单元, 用于通过麦克风接收所述第一设备传播的声波信号, 并 对所述声波信号进行解码获取所述第一设备的所述第一私有信息; 其中, 所 述声波信号为所述第一设备将所述第一私有信息进行编码生成的声波信号。
结合第四方面或第四方面的第一种可能的实施方式, 在第四方面的第二 种可能的实施方式中, 所述第一私有信息为所述第一设备的私有设备描述文 件的统一资源定位符 DDD URL 和所述第一设备的私有通用唯一标识符 UUID, 则所述收发模块用于向所述第一设备发送第一请求消息, 所述第一请 求消息中携带有所述第一设备的私有 DDD URL;所述收发模块用于接收所述 第一设备发送的第二私有信息, 所述第二私有信息包括所述第一设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述第一设 备的私有服务控制协议描述 SCPD文件的 URL;
所述处理模块用于根据所述私有 SCPD文件的 URL, 从所述第一设备中 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指 令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体内容 列表; 所述处理模块还用于从所述共享媒体内容列表中获取共向媒体内容。
结合第四方面的第二种可能的实施方式, 在第四方面的第三种可能的实 施方式中, 所述收发模块还用于向所述第一设备发送所述媒体内容的共享装 置的私有 DDD URL和 UUID信息。
结合第四方面或第四方面的第一种可能的实施方式, 在第四方面的第四 种可能的实施方式中, 所述第一私有信息为所述第一设备的私有标识, 则所 述收发模块用于接收所述第一设备发送的所述第一私有信息, 所述处理模块 根据所述第一设备的所述私有标识直接访问所述第一设备, 获取所述第一设 备的共享媒体内容。
结合第四方面的第四种可能的实施方式, 在第四方面的第五种可能的实 施方式中, 所述收发模块还用于向所述第一设备发送所述媒体内容的共享装 置的私有标识。
结合第四方面或第四方面的第一种可能的实施方式, 在第四方面的第六 种可能的实施方式中, 所述第一私有信息包括所述第一设备生成的密钥, 则 所述收发模块用于:
获取所述第一设备发送或显示的所述第一私有信息, 并根据所述密钥对 加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述第一设备, 以使所述第一设备根据所述 密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所述加密序 列与所述第二设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述第一设备发送所述第一设备 的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体内容。
结合第四方面、第四方面的第一种至第六种可能的实施方式中的任一种, 在第四方面的第七种可能的实施方式中, 所述收发模块还用于接收用户发送 的私有共享模式的指令, 所述处理模块根据所述指令, 采用所述私有共享模 式。
结合第四方面、第四方面的第一种至第六种可能的实施方式中的任一种, 在第四方面的第八种可能的实施方式中, 还包括: 第一获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于根据所述网络标识,确定所述 WLAN是否为公共网 络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
结合第四方面、第四方面的第一种至第六种可能的实施方式中的任一种, 在第四方面的第九种可能的实施方式中, 还包括: 第二获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于根据所述网络标识, 确定所述媒体内容的共享装置 是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述媒体内容的共享 装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有 共享模式;在所述收发模块接收所述用户根据所述提示信息发送的选择信息, 在所述选择信息包括私有共享模式时, 采用所述私有共享模式。
结合第四方面、第四方面的第一种至第六种可能的实施方式中的任一种, 在第四方面的第十种可能的实施方式中, 还包括: 第三获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于在接入点列表中査找是否存在所述网络标识以及所 述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
本发明实施例第五方面提供一种终端设备, 包括:
处理器, 用于将所述终端设备设置为私有共享模式, 并获取与所述私有 共享模式对应的第一私有信息;
收发模块, 用于将所述第一私有信息发送或显示给另一终端设备, 以供 所述另一终端设备获取所述第一私有信息, 并根据所述第一私有信息获取所 述终端设备的共享媒体内容。
结合第五方面, 在第五方面的第一种可能的实施方式中, 所述收发模块 具体包括:
近场通信 NFC发射器, 用于与所述另一终端设备建立 NFC信道, 并通 过所述 NFC信道将所述第一私有信息发送给所述另一终端设备; 或者, 蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中将所述第一私有信息发送给所述另一终端设备; 或者,
图像编码器, 用于将所述第一私有信息进行编码, 生成二维码图像, 并 通过显示器对所述二维码图像形式对应的所述第一私有信息进行显示, 以供 所述另一终端设备摄取所述二维码图像, 获取所述第一私有信息; 或者, 声音编码器, 用于将所述第一私有信息进行编码生成声波信号, 并通过 扬声器对所述声波信号进行传播, 以供所述另一终端设备通过麦克风接收所 述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
结合第五方面或第五方面的第一种可能的实施方式, 在第五方面的第二 种可能的实施方式中, 所述第一私有信息包括所述终端设备的私有设备描述 文件的统一资源定位符 DDD URL 和所述终端设备的私有通用唯一标识符 UUID, 则所述收发模块具体用于:
将所述第一私有信息发送或显示给所述另一终端设备, 并接收所述另一 终端设备发送的第一请求消息, 所述第一请求消息中携带有所述终端设备的 私有 DDD URL;
根据所述第一请求消息, 向所述另一终端设备发送第二私有信息, 所述 第二私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述 私有 DDD包括所述终端设备的私有服务控制协议描述 SCPD文件的 URL, 以供所述另一终端设备根据所述私有 SCPD 文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述另一终端设备发送所述终端设备的共享媒体 内容列表, 以供所述另一终端设备从所述共享媒体内容列表中获取共享媒体 内容; 其中, 所述控制指令为所述另一终端设备根据所述私有 SCPD文件调 用的指令。
结合第五方面或第五方面的第一种可能的实施方式, 在第五方面的第三 种可能的实施方式中, 所述第一私有信息为所述终端设备的私有标识, 则所 述收发模块具体用于: 将所述第一私有信息发送或显示给所述另一终端设备, 以供所述另一终 端设备根据所述终端设备的所述私有标识直接访问所述终端设备, 获取所述 终端设备的共享媒体内容。
结合第五方面或第五方面的第一种可能的实施方式, 在第五方面的第四 种可能的实施方式中, 所述第一私有信息包括所述终端设备生成的密钥, 则 所述收发模块用于将所述第一私有信息发送给所述另一终端设备, 并接收所 述另一终端设备发送的第一认证消息, 所述第一认证消息是所述另一终端设 备根据所述密钥加密的加密序列生成的;
所述处理器用于根据所述密钥对所述第一认证消息进行解密, 获得所述 加密序列, 并根据所述加密序列在所述终端设备和所述另一终端设备之间建 立安全信道;
所述收发模块还用于根据控制指令, 在所述安全信道中向所述另一终端 设备发送所述终端设备的共享媒体内容列表, 以供所述另一终端设备从所述 共享媒体内容列表中获取共享媒体内容。
结合第五方面、第五方面的第一种至第四种可能的实施方式中的任一种, 在第五方面的第五种可能的实施方式中, 所述收发模块还用于获取所述另一 终端设备发送或显示的所述另一终端设备的第一私有信息。
结合第五方面、第五方面的第一种至第五种可能的实施方式中的任一种, 在第五方面的第六种可能的实施方式中, 所述处理器还用于:
接入无线局域网 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
结合第五方面、第五方面的第一种至第五种可能的实施方式中的任一种, 在第五方面的第七种可能的实施方式中, 所述处理器还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述终端设备是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述 WLAN 为所述终端设备首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
在所述收发模块接收到所述用户根据所述提示信息发送的选择信息, 在 所述选择信息包括私有共享模式时, 采用所述私有共享模式。 结合第五方面、第五方面的第一种至第五种可能的实施方式中的任一种, 在第五方面的第八种可能的实施方式中, 所述处理器还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
本发明实施例第六方面提供一种终端设备, 包括:
收发模块, 用于获取另一终端设备发送或显示的第一私有信息; 处理器, 用于将所述终端设备当前设置为私有共享模式;
所述收发模块还用于根据所述第一私有信息获取所述另一终端设备的共 享媒体内容。
结合第六方面, 在第六方面的第一种可能的实施方式中, 所述收发模块 包括:
近场通信 NFC发射器, 用于与所述另一终端设备建立 NFC信道, 并通 过所述 NFC信道接收所述另一终端设备发送的所述第一私有信息; 或者, 蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中接收所述另一终端设备发送的所述第一私有信息; 或者,
摄像头, 用于摄取所述另一终端设备显示的二维码图像, 获取所述另一 终端设备的所述第一私有信息; 其中, 所述二维码图像为所述另一终端设备 将所述第一私有信息进行编码生成的二维码图像; 或者,
声波解码器, 用于通过声音采集模块接收所述另一终端设备传播的声波 信号, 并对所述声波信号进行解码获取所述另一终端设备的所述第一私有信 息; 其中, 所述声波信号为所述另一终端设备将所述第一私有信息进行编码 生成的声波信号。
结合第六方面或第六方面的第一种可能的实施方式, 在第六方面的第二 种可能的实施方式中, 所述第一私有信息包括所述另一终端设备的私有设备 描述文件的统一资源定位符 DDD URL和所述另一终端设备的私有通用唯一 标识符 UUID, 则所述收发模块具体用于:
向所述另一终端设备发送第一请求消息, 所述第一请求消息中携带有所 述另一终端设备的私有 DDD URL;
接收所述另一终端设备发送的第二私有信息, 所述第二私有信息包括所 述另一终端设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述另一终端设备的私有服务控制协议描述 SCPD文件的 URL; 根据所述私有 SCPD文件的 URL, 从所述另一终端设备中获取对应的私 有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令, 以供所述 另一终端设备根据所述控制指令发送所述另一终端设备的共享媒体内容列 表;
从所述共享媒体内容列表中获取共向媒体内容。
结合第六方面或第六方面的第一种可能的实施方式, 在第六方面的第三 种可能的实施方式中, 所述第一私有信息为所述另一终端设备的私有标识, 则所述收发模块具体用于:
获取所述另一终端设备发送的所述第一私有信息, 并根据所述另一终端 设备的所述私有本地域名直接访问所述另一终端设备, 获取所述另一终端设 备的共享媒体内容。
结合第六方面或第六方面的第一种可能的实施方式, 在第六方面的第四 种可能的实施方式中,所述第一私有信息包括所述另一终端设备生成的密钥, 则所述收发模块具体用于:
获取所述另一终端设备发送或显示的所述第一私有信息, 并根据所述密 钥对加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述另一终端设备, 以使所述另一终端设备 根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所 述加密序列与所述终端设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述另一终端设备发送所述另一 终端设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体 内容。
结合第六方面、第六方面的第一种至第四种可能的实施方式中的任一种, 在第六方面的第五种可能的实施方式中, 所述收发模块还用于向所述另一终 端设备发送或显示所述终端设备的第一私有信息。
结合第六方面、第六方面的第一种至第五种可能的实施方式中的任一种, 在第六方面的第六种可能的实施方式中, 所述处理器具体用于: 接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
结合第六方面、第六方面的第一种至第五种可能的实施方式中的任一种, 在第六方面的第七种可能的实施方式中, 所述处理器具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述终端设备是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述终端设备首次接入所述 WLAN, 则生成 提示信息, 以提示所述用户是否选择私有共享模式;
所述收发模块接收到所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
结合第六方面、第六方面的第一种至第五种可能的实施方式中的任一种, 在第六方面的第八种可能的实施方式中, 所述处理器具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
本发明实施例提供的媒体内容的共享方法及装置, 通过将 DLNA设备, 即第一设备和第二设备采用私有共享模式, 第一设备生成与该私有模式对应 的第一私有信息, 将该第一私有信息发送给第二设备, 以供该第二设备根据 该第一私有信息, 获取该第一设备共享的媒体共享内容, 解决了现有技术中 任何接入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容,而 DLNA设备却毫不知情而造成 了 DLNA设备的共享媒体内容的安全性较差的问题,从而避免了隐私的泄露。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明媒体内容的共享方法实施例一的流程图;
图 2为本发明媒体内容的共享方法实施例三的流程图;
图 3为本发明媒体内容的共享方法实施例四的流程图;
图 4为本发明媒体内容的共享方法实施例五的流程图;
图 5为本发明媒体内容的共享方法实施例六的流程图;
图 6为本发明媒体内容的共享方法实施例七的流程图;
图 7为本发明媒体内容的共享方法实施例十的流程图;
图 8为本发明媒体内容的共享方法实施例十一的流程图;
图 9为本发明媒体内容的共享方法实施例十三的流程图;
图 10为本发明媒体内容的共享方法实施例十四的流程图;
图 11为本发明媒体内容的共享方法实施例十六的信令流程图; 图 12为本发明媒体内容的共享方法实施例十七的信令流程图; 图 13为本发明媒体内容的共享装置实施例一的结构示意图;
图 14为本发明媒体内容的共享装置实施例二的结构示意图;
图 15为本发明媒体内容的共享装置实施例三的结构示意图;
图 16为本发明媒体内容的共享装置实施例四的结构示意图;
图 17为本发明媒体内容的共享装置实施例五的结构示意图;
图 18为本发明媒体内容的共享装置实施例六的结构示意图;
图 19为本发明媒体内容的共享装置实施例七的结构示意图;
图 20为本发明媒体内容的共享装置实施例八的结构示意图;
图 21为本发明终端设备实施例一的结构示意图;
图 22为本发明终端设备实施例三的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明媒体内容的共享方法实施例一的流程图。 本实施例提供一 种应用于 WLAN网络环境下的具有 DLNA功能的移动设备安全、 高效的媒 体内容共享方法。 所涉及的移动设备包括智能手机、 平板电脑、 数码照相机、 便携式计算机等移动电子设备, 这些设备上都安装了具有 DLNA功能的应用 程序。 如图 1所示, 具体的歩骤如下:
S101 : 第一设备采用私有共享模式, 获取与所述私有共享模式对应的第 一私有信息。
在本实施例中, 第一设备和第二设备分别接入 WLAN网络后, 第一设备 和第二设备需要在该公共 WLAN网络下进行私人的分享时,第一设备和第二 设备需采用私有共享模式, 第一设备生成与该私有共享模式对应的第一私有
I Ft自、。
S102: 所述第一设备将所述第一私有信息发送或显示给所述第二设备, 以供所述第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所 述第一设备的共享媒体内容。
在本实施例中, 第一设备和第二设备通过在私有共享模式下, 通过第一 设备发送或显示的第一私有信息互相发现,第二设备获取到该第一私有信息, 可以根据该第一私有信息获取第一设备要分享的共享媒体内容。
第一设备并不限于一个设备, 可以是多个移动设备, 通过上述歩骤同样 可以安全的获得第一设备分享的媒体内容。
本实施例提供的媒体内容的共享方法, 通过将 DLNA设备, 即第一设备 和第二设备采用私有共享模式, 第一设备获取与该私有模式对应的第一私有 信息, 将该第一私有信息发送或者显示给第二设备, 以供该第二设备根据该 第一私有信息, 获取该第一设备共享的媒体共享内容, 解决了现有技术中任 何接入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容,而 DLNA设备却毫不知情而造成 了 DLNA设备的共享媒体内容的安全性较差的问题,从而避免了隐私的泄露。
在本发明媒体内容的共享方法实施例二中, 在上述图 1所示实施例的基 础上, 歩骤 S102 中的所述第一设备将所述第一私有信息发送给所述第二设 备, 具体有以下几种实现方式: 第一种实现方式, 所述第一设备采用近场通信 ( Near Field Communication, 简称 NFC) 方式, 与所述第二设备建立 NFC信道, 并通过 所述 NFC信道将所述第一私有信息发送给所述第二设备。
在本实现方式中, 第一设备和第二设备, 同时装配了 NFC的通信芯片, 可以通过 NFC的功能模块实现相互通信, 若第一设备采用私有共享模式, 则 触发第一设备通过装配的 NFC的通信芯片与第二设备装配的 NFC的通信芯 片产生射频耦合, 以与第二设备建立 NFC通道。 另外, 可以将该第一私有信 息封装到 NFC的通信芯片所生成的传输报文中, 并通过该 NFC信道发送给 第二设备。 或者, 可以将该第一私有信息封装进简单服务发现协议 (Simple Service Discovery Protocol, 简称 SSDP) 报文中, 通过 NFC方式传输封装后 的 SSDP报文。
第二种实现方式, 所述第一设备采用蓝牙方式, 与所述第二设备组建蓝 牙微微网,并在所述蓝牙微微网中将所述第一私有信息发送给所述第二设备。
在本实现方式中, 第一设备和第二设备中都装配有蓝牙模块。 第一设备 和第二设备组建蓝牙微微网时需要互相进行设备发现和设备配对, 需要用户 自主进行设置, 在同意配对后建立连接, 形成蓝牙微微网。 第一设备通过该 蓝牙微微网将第一私有信息发送给第二设备。
第三种实现方式, 所述第一设备将所述第一私有信息进行编码, 生成二 维码图像, 并对所述二维码图像进行显示, 以供所述第二设备摄取所述二维 码图像, 获取所述第一私有信息。
在本实现方式中, 第一设备将第一私有信息编码生成二维码图像并进行 显示, 第二设备装配摄像头或其他图像获取装置, 并具有信息处理功能, 第 二设备通过所述摄像头或其他图像获取装置摄取第一设备显示的二维码, 获 取第一私有信息。
第四种实现方式, 所述第一设备将所述第一私有信息进行编码生成声波 信号, 并对所述声波信号进行传播, 以供所述第二设备通过麦克风接收所述 声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
在本实现方式中, 第一设备将获取的第一私有信息进行编码生成声波信 号, 通过扬声器传播出去, 用户打开第二设备的麦克风, 接收该声波信号, 并进行解码获取第一私有信息。 图 2为本发明媒体内容的共享方法实施例三的流程图, 在上述图 1所示 实施例的基础上, 如图 2所示, 当该第一私有信息为第一设备的私有设备描 述文件统一资源定位符 ( Device Description Document Universal Resource Locator, 简称 DDD URL) 和通用唯一标识符 (Universally Unique Identifier, 简称 UUID) 时, 图 1所示实施例中 S102的具体包括:
S201 : 所述第一设备将所述第一私有信息发送或显示给所述第二设备, 并接收所述第二设备发送的第一请求消息, 所述第一请求消息中携带有所述 第一设备的私有 DDD URL。
在本实施例中, 第一设备向第二设备发送第一私有信息之前, 第一设备 与第二设备分别接入 WLAN网络后, 均向该 WLAN网络组播简单服务发现 协议 (Simple Service Discovery Protocol, 简称 SSDP) 上线消息, 以通知第 一设备和第二设备均为 DLNA设备, 并接入该 WLAN网络, 处于在线状态, 当该 WLAN网络为公共 WLAN网络, 且第一设备和第二设备需要在该公共 WLAN网络下进行私人的分享时, 第一设备和第二设备可以采用私有共享模 式, 同时, 分别向该 WLAN网络组播发送 SSDP byebye消息, 以通知第一设 备和第二设备已经离开该 WLAN网络。然后第一设备将所述第一私有信息发 送给所述第二设备, 第一设备接收所述第二设备向所述私有 UUID对应的第 一设备发送的携带有所述第一设备的私有 DDD URL 的超文本传输协议 (Hyper-text transfer protocol, 简称, HTTP) GET请求, 第二设备根据第一 设备的私有 DDD URL, 向第一设备请求其私有的 DDD文件。
S202: 所述第一设备根据所述第一请求消息, 向所述第二设备发送第二 私有信息, 所述第二私有信息包括所述私有 DDD URL对应的私有设备描述 文件 DDD , 所述私有 DDD 包括所述第一设备的私有服务控制协议描述 (Service Control Protocol Description, 简称 SCPD) 文件的 URL, 以供所述 第二设备根据所述私有 SCPD文件的 URL, 获取对应的私有 SCPD文件, 并 根据所述私有 SCPD文件调用对应的控制指令。
S203: 所述第一设备根据所述控制指令, 向所述第二设备发送所述第一 设备的共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获 取共享媒体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD 文件调用的指令。 在本实施例中, 第二设备获取第一设备的私有 DDD 后, 就可以通过 <SCPD 1¾1^获取相应服务器的私有 SCPD文件, 从而获取该服务的相关控 制命令(action) 以及相应的参数变量; 通过 <controlURL〉就可以调用相应的 action, 完成相应的功能。 举例来说, 若第一设备和第二设备都为智能手机, 例如: 第二设备可以向第一设备调用 "CDS::Browse()/Search() "命令 (在具 体的实现方式中, 该命令主要用于用于获取共享媒体内容列表, 不同设备中 对于该命令的设置不尽相同, 对于具体的命令格式, 本发明不作具体限制) , 以使第一设备将共享媒体内容列表返回第二设备, 第二设备在获取到第一设 备的共享媒体内容列表后, 就可以通过点击获取其媒体共享内容, 例如: 共 享照片, 从而实现在第一设备中存储的共享媒体内容可以共享给第二设备。
可选的, 第一设备将第一私有信息发送给第二设备后, 所述第一设备接 收所述第二设备发送的第二设备的私有 DDD URL和 UUID信息。
第一设备接收第二设备发送的私有 DDD URL和 UUID信息, 用于与别 的第三设备建立连接的时候将其与第一设备的私有 DDD URL和 UUID信息 一起包括在第一私有信息中, 发送给第三设备, 使得第二设备和第三设备直 接建立连接, 减少多个设备互相分享媒体内容时的处理过程。
本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息发 送给第二设备, 并根据接收的第二设备的第一请求消息, 向第二设备发送第 二私有信息, 以使第二设备获取对应的私有 SCPD文件,并根据该私有 SCPD 文件调用对应的控制指令, 第一设备跟该控制指令向第二设备发送共享媒体 内容列表, 以使第二设备从中获取共享媒体内容, 解决了现有技术中任何接 入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设备, 并且 获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免了隐私的泄露。
图 3为本发明媒体内容的共享方法实施例四的流程图。 如图 3所示, 在 本发明媒体内容的共享方法实施例四中,在上述图 1所示的实施例的基础上, 当所述第一私有信息为所述第一设备的私有标识时, 图 1所示实施例中 S102 具体包括:
S301 : 所述第一设备将所述第一私有信息发送或显示给所述第二设备。 在本实施例中, 该私有信息为第一设备的私有标识, 以供所述第二设备 根据所述第一设备的所述私有标识直接访问所述第一设备, 获取所述第一设 备的共享媒体内容。
S302: 所述第一设备接收第二设备根据所述私有标识进行访问所述第一 设备后发送的下载请求, 以使第二设备能够下载媒体内容。
在本实施例中, 主要针对具有私有媒体共享解决方案的设备, 例如各类 的移动设备之间进行发送或显示的私有标识为私有的访问网址时, 第二设备 直接访问该私有标识, 从所述第一设备下载获取需要的媒体内容。
可选的,第一设备将所述第一私有信息发送或显示给所述第二设备之后, 所述第一设备获取所述第二设备发送或显示的所述第二设备的第一私有信 息。
本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息, 即私有标识发送给第二设备, 以使第二设备通过直接访问该私有标识从而获 取共享媒体内容,解决了现有技术中任何接入到该公共 WLAN网络的控制点 设备都能够发现上线的 DLNA设备,并且获取到该 DLNA设备的共享媒体内 容,而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性 较差的问题, 从而避免了隐私的泄露。
图 4为本发明媒体内容的共享方法实施例五的流程图, 如图 4所示在本 发明媒体内容的共享方法实施例五中, 在上述图 1所示的实施例的基础上, 当所述第一私有信息包括所述第一设备生成的密钥时, 图 1 所示实施例中 S102的实现方式为:
S401 : 第一设备将所述第一私有信息发送给所述第二设备, 并接收所述 第二设备发送的第一认证消息, 所述第一认证消息是所述第二设备根据所述 密钥加密的加密序列生成的。
S402: 第一设备根据所述密钥对所述第一认证消息进行解密, 获得所述 加密序列, 并根据所述加密序列在所述第一设备和所述第二设备之间建立安 全信道。
S403: 第一设备根据控制指令, 在所述安全信道中向所述第二设备发送 所述第一设备的共享媒体内容列表, 以供所述第二设备从所述共享媒体内容 列表中获取共享媒体内容。
在本实施例中, 第一设备将所述密钥发送给第二设备, 以使第二设备随 机生成加密序列码, 用于加密在第一设备和第二设备之间传输的所有文件, 第二设备根据所述密钥对该加密序列码进行加密生成第一认证消息, 并返回 第一设备, 所述第一设备获取所述第一认证消息, 并将该第一认证消息解密 获取所述加密序列码, 根据该加密序列码与第二设备建立安全信道, 处理过 程中在第一设备和第二设备之间交换的数据全部使用所述加密序列码加密。
本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息, 即私有的密钥发送给第二设备, 以使第二设备生成加密序列码, 返回第一设 备, 第一设备与第二设备之间建立安全信道, 并用过所述安全信道获取共享 媒体内容,解决了现有技术中任何接入到该公共 WLAN网络的控制点设备都 能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差的 问题, 从而避免了隐私的泄露。
图 5为本发明媒体内容的共享方法实施例六的流程图, 在上述图 2所示 实施例的基础上, 下面特举一实例, 说明本发明媒体内容的共享方法的具体 实现, 该第一私有信息为第一设备的私有 DDD URL和 UUID时, 如图 5所 示, 具体歩骤为:
S501 : 第一设备接收第二设备向私有 UUID对应的第一设备发送的携带 有第一设备的私有 DDD URL的 HTTP GET请求;
在本实施例中,第二设备根据第一设备的私有 DDD URL, 向第一设备请 求其私有的 DDD 文件, 举例来说, 第一设备的私有 DDD URL 为: http;//10.11.84.153 :upnpdevicescription/friendsharing。则第二设备向私有 UUID 对应的第一设备发送的携带有第一设备的私有 DDD URL的 HTTP GET请求 的报文信息可以为:
" GET /upnpdevicedescription/friendsharing HTTP/ 1.1
Cache-Control: no-cache
Connection: Close
Pragma: no-cache
Accept: text/xml, application/xml
Host: 10.11.84.153:7050
User- AgentMicrosoft- Windows/6. lUPnP/1.0Windows-Media-Player/l 2.0.7 <
Figure imgf000028_0001
3oavNia~ ^ui >
Figure imgf000028_0002
8' x χ Ό I //: dwq<q¾nuopBiu9S9jd> ςζ
<N m/ 9£6Zt^P^Z-000 9II-£q -09£8^IP:P n<N m>
<j9jn BjnTOui/>igWYnH<J9jn ¾nTOm>
ouiBis[XtPu9 J/>^a_iaAVilH<9m13N^iPu9 J>
Figure imgf000028_0003
<JOUTUI/>0<JOUTUI>
Figure imgf000028_0004
<"()-l-30 3p:§jo-miip-smiraips:iuri"=miip:suiurx ς\ 110-I-90IA9 :§JO-dudn-SBui9qos:ujn11=su^uix JOOJ>
Figure imgf000028_0005
,,Ο·Ι,,=ΙΙΟ Λ ιι >,,
s夸粤「i ¾f¾ ad s
Figure imgf000028_0006
1 ' ψ# ados ^Yi^^m^m Qdos m mn m
蚩^ ^in ic s 回 ¾ ¾二蚩 '^#ixao JXXH i^ '本 丄 39 cLLLH ^ M S阜^鮮^ ¾二蚩^ ¾ ¾—蚩 :£0SS
ί (T ados
'ΎάΠ uopduosaa loooiojj \o oo ∞I J^) ^ 骈" £
Figure imgf000028_0007
¾η ααα阜
¾f¾ ¾一蚩 回 ¾ ¾二蚩
Figure imgf000028_0008
osi/3oavNia w i。9
0C88.0/M0ZN3/X3d 80l08l/ST0Z OAV 〇 〇 /〇ot <rv"
/devce <iv
Figure imgf000029_0001
gevetsubu/doectoaae/evet./evetsubu <nRLVnninMnrnxml<nRLV
gcotou/coectoaae/coto./cotou <nrlRLVnninMnrnrlxml<nrlRLV
gpSCU/coectoaae/scd./SCU <PDRLVnninMnrxml<PDRLV
p¾ggsevcedu uo sevced:门 oectoaae/ sevced <ril vrnnrrilnninMnr<ril V- ypppggsevceeu sceasuo sevce Coectoaae sevce AriH vrnhmnrrimiinMnr 1ri-- yevetsubu/dotetecto/evet/evetsubu AnRLVnnDirrnxmlAnRLV
ycotou/cotetecto/coto./cotou AnrlRLVnnDirrnrlxmlAnrlRLV
ypSCU/cotetecto/scd./SCU <PDRLVnnDirrxml<PDRL>
ppgysevcedu uo sevced:门 otetecto/ sevced <ril vrnnrrilnnDirr <ril V- yp¾pgyysevceeu sceasuo sevce ootetecto sevce <riT vrnhmnrrinnDirr 1riT--
gIIevetsubu/Sedaeceveesta/evet./evetsubu AnRLVXMMiRirRirrnxmlAn gIIcotou/Sedaeceveesta/coto./cotou <nrlRLVXMMiRirRirrnrlxml<nrlR
gpIISCUZSedaeceveesta/scd./SCU <PDRLVXMMiRirRirrxml<PDRL> gIIsevcedu:cosot.co:sevced:Sedaeceveesta/se <riIvrnmirfmriIXMMiRirRirr< y¾gIIsevceeu:cosot.co:sevce:Sedaeceveesta: <riTvrnmirfmriXMMiRirR.irrl< 在本实施例中, 从该私有 DDD中可以看出, 该 DDD中包括: 设备类型 <deviceType>、 设备名 <friendlyName>、 设备生产厂商<11^111^&。1;11 1 禾口设 备标识 <UDN〉等基本描述信息, 其中设备标识字段中的设备 UUID即为第一 设备的私有设备 UUID; 同时 DDD中还包含该设备所支持的服务 (service)信 息, 从 DDD 可以看出, 第一设备支持 X_MS_MediaReceiverRegistrar、 ContentDirectory禾 B ConnectionManager3禾中服务, 每种服务都对应三套地址, 即描述地址 <SCPDURL〉, 用于指示该服务的服务描述文件 SCPD的 URL; 控制地址<001^01111 1^, 用于指示调用该服务中相应的控制命令 (action)的地 址 URL;事件地址<6^11011 1^, 用于指示该服务中某些控制命令的参数发生 变化时, 向控制点上报事件消息的地址 URL。
S504: 第一设备根据第二设备调用的控制命令, 向第二设备返回共享媒 体内容列表, 以供第二设备从共享媒体内容列表中获取媒体共享内容。
在本实施例中, 第二设备获取第一设备的私有 DDD 后, 就可以通过 <SCPD 1¾1^获取相应服务器的私有 SCPD文件, 从而获取该服务的相关控 制命令(action) 以及相应的参数变量; 通过 <controlURL〉就可以调用相应的 action , 完成相应的功能。 举例来说, 第二设备向第一设备调用 CDS: :Browse()/Search()命令, 则第一设备将其所共享媒体内容列表发送给第 二设备, 第二设备在获取到第一设备的媒体共享内容列表后, 就可以通过点 击获取其媒体共享内容, 例如: 共享照片, 从而实现在第一设备中存储的共 享媒体内容可以共享给第二设备。
可选地, 图 6为本发明媒体内容的共享方法实施例七的流程图, 在上述 实施例的基础上, S502之后还可以包括:
S601 : 在第一设备与第二设备之间建立 NFC信道, 并通过 NFC信道将 第一私有信息发送给第二设备之后, 第一设备接收所述第二设备发送的第二 设备的私有 DDD URL和 UUID信息。
在本实施例中, 第一设备向第二设备发送第一私有信息之后, 第二设备 将自身的私有信息, 即第二设备的私有 DDD URL和 UUID信息返回给第一 设备, 以使第一设备在于别的第三设备建立 NFC信道后, 发送的第一私有信 息中还包括第二设备的私有 DDD URL和 UUID信息, 使得第二设备和第三 设备直接建立连接。 S602: 第一设备采用所述 NFC方式, 与第三设备之间建立 NFC信道, 并通过所述 NFC信道将所述第一私有信息发送给所述第三设备, 以供所述第 三设备根据所述第一私有信息, 向所述第一设备发送 HTTP GET请求。
在本实施例中, 第三设备的获取共享媒体内容的方式与第二设备的获取 共享媒体内容的方式相类似, 此处不再赘述。特别的, S602为可以选的歩骤, 若没有第三设备, 可以不进行该歩骤。
进一歩的, 在本发明的实施例八中, 在上述图 1、 图 2所示实施例一、 二、 三的基础上, 第一设备采用私有共享模式的实现方式有以下几种:
第一种实现方式,该第一设备接收用户发送的配置私有共享模式的指令, 并根据该指令, 采用所述私有共享模式。
在本实施例中,当第一设备和第二设备接入的 WLAN网络为公共 WLAN 网络, 且第一设备和第二设备需要在该公共 WLAN 网络下进行私人的分享 时, 第一设备可以接收用户发送的私有共享模式指令, 并根据该指令, 采用 私有共享模式。
第二种实现方式, 所述第一设备接入无线局域网 WLAN, 并获取所述
WLAN的网络标识, 所述第一设备根据所述网络标识, 确定所述 WLAN是 否为公共网络, 若所述 WLAN为公共网络, 则采用所述私有共享模式。
在本实施例中, 一个 WLAN网络的服务集标识(Service Set Identifier, 简 称 SSID)可以由组成该 WLAN网络的无线接入点(Access Point, 简称 AP)决 定。 举例来说, 在机场咖啡厅内布置一台 AP, 用于组建 WLAN网络, 该 AP 会定时广播该 WLAN网络的 SSID, 用于移动设备摄取和发现。 通常来说, AP 所广播的 SSID就是其所代表的 WLAN网络的名称。
另外, 网络的 SSID可由 AP进行设置, 一般的名称都会设置为能够表示 WLAN网络特点的词汇或者语句, 例如: 以机场咖啡厅的 WLAN网络为例, 则其 SSID为 Airport_cafe, 即表明了该 WLAN是位于机场的咖啡厅的无线网 络。 或者, 一些 WLAN网络是由网络运营商布置的, 其 SSID会用网络运营商 的名称设置, 例如" China Unicom", "China Telecom"等。 因此, 移动设备可 以通过 SSID判断所接入的 WLAN网络是否为公共网络。
在本实施例中, 还需要说明的是, 可以通过加密认证方式与 SSID两个因 素进行判断, 即只要 SSID显示为公共 WLAN网络或者为没有设置接入密码的 WLAN,就可以判断该 WLAN网络为公共 WLAN网络。具体的,私人的 WLAN 由于考虑到整个网络接入的安全性, 并不希望陌生的移动设备接入该 WLAN 网络, 因此都会设置接入密码, 接入设备想要接入该 WLAN网络必须输入接 入密码并通过认证, 但是公共 WLAN网络并不会考虑接入限制的问题, 因此 一般都不会设置接入密码, 接入设备只要发现该网络 SSID就会接入 WLAN。 因此, 可以通过该 WLAN网络有无设置接入密码来判断是否为公共 WLAN网 络, 如果设置, 一般就认为是私人网络, 而没有设置就认为是公共网络。
第三种实现方式, 所述第一设备接入 WLAN, 并获取所述 WLAN的网 络标识, 所述第一设备根据所述网络标识, 确定所述 WLAN是否为公共网络 且所述第一设备是否首次接入所述 WLAN, 所述第一设备若根据所述网络标 识, 确定所述 WLAN为公共网络且所述第一设备首次接入所述 WLAN, 则 生成提示信息, 以提示所述用户是否选择私有共享模式。 所述第一设备在接 收所述用户根据所述提示信息发送的选择信息, 在所述选择信息包括私有共 享模式时, 采用所述私有共享模式。
在本实施例中, 第一设备和第二设备接入同一 WLAN网络并且获取到该 网络的 SSID, 开始检测该 WLAN网络是否为首次接入的。 根据现有的 WLAN 网络接入模块, 在接入某一 WLAN网络之后, 移动设备会自动保存该 WLAN 网络的 SSID, 并且保存该 WLAN网络的一些接入参数, 例如接入密码等, 以 便移动设备搜索到该 WLAN网络的信号之后能够自动发现并且自动接入。 因 此, 如何判别所接入的 WLAN网络是否为首次接入, 只要査看所记录保存的 曾经接入的 WLAN网络的 SSID号即可, 只要没有在记录中的, 都认为为首次 接入的 WLAN网络。 在接入该 WLAN网络之后, 根据用户点击指令, 以触发 移动设备进入 DLNA的应用程序, 并自动弹出界面, 提示用户是否选择触发 私有共享模式。 此外, 用户也可以对进入的方式进行配置, 例如: 再次接入 同一 WLAN网络后, 在开启 DLNA应用程序时自动将当前模式设置为私有共 享模式或者将当前模式不设置为私有共享模式。 这种方式设备同样不需要向 该公共 WLAN网络组播 SSDP上线消息。
第四种实现方式, 所述第一设备接入 WLAN, 并获取所述 WLAN的网 络标识, 所述第一设备在接入点列表中査找是否存在所述网络标识以及所述 网络标识对应的无线接入点 AP的介质访问控制 MAC地址,所述第一设备若 在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP的 MAC 地址, 则采用所述私有共享模式。
在本实施例中, 第一设备接入一私有 WLAN网络, 获取该 WLAN网络 的 SSID号,并在其接入点列表中査找有此网络的网络标识以及网络标识对应 的 AP的 MAC地址,若第一设备在接入点列表中存在网络标识以及网络标识 对应的 AP, 则第一设备自动将当前模式设备为私有共享模式。
其中, 接入点列表记载着过去一段时间之内第一设备设备接入无线局域 网络之后选择进入私有共享模式时的 WLAN网络的 SSID。 该列表是动态更新 的, 可以设定一个时间阈值, 若距离上次介入时间超过设定的时间阈值, 则 删除接入点列表中的网络 SSID , 并且接入新的 WLAN网络且用户在打开 DLNA应用时选择了私有共享模式, 则该 SSID也会加入接入点列表之中。 在 本实施例中, 举例来说, 移动设备的 列表可以如表 1所示:
Figure imgf000033_0001
Figure imgf000033_0002
如表 1所示, 表 1记录了该移动设备一段时间内接入并选择私有共享模式 的网络的 SSID以及 MAC地址,例如:表 1中" Bob's home"证明该设备以前在接 入该私有 WLAN网络时选择进入的是私有共享模式, 若再次接入此网络打开 DLNA应用程序时, 则自动将当前模式设置为私有共享模式; 若没有发现有 此私有 WLAN网络的记录, 则在打开 DLNA应用程序时默认向整个 WLAN网 络组播 SSDP上线消息, 用户手动选择是否将当前模式设置为私有共享模式。
本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息发 送或显示给第二设备, 并根据接收的第二设备的第一请求消息, 向第二设备 发送第二私有信息, 以使第二设备获取对应的私有 SCPD文件, 并根据该私 有 SCPD文件调用对应的控制指令, 第一设备跟该控制指令向第二设备发送 共享媒体内容列表, 以使第二设备从中获取共享媒体内容, 解决了现有技术 中任何接入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设 备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而 造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免了隐私的 泄露。
在本发明媒体内容的共享方法实施例九中, 在上述实施例的基础上, 下 面特举一实例, 说明本发明媒体内容的共享方法的具体实现, 该第一私有信 息为第一设备的私有标识。第一设备和第二设备接入 WLAN后, 确定采用私 有共享模式进行媒体内容的分享, 第一设备将私有的私有标识消息报文发送 或显示给第二设备。
其中, 私有标识和 SSDP的消息格式和设备发现机制有所不同, SSDP消 息中携带有设备的 DDD URL以及设备 UUID信息, 根据 DDD URL获取设 备的 DDD文件, 从而完成设备的发现。 利用私有标识的发现机制为: 例如: 第一设备将私有标识封装在 NFC模块中, 并存储在 NFC模块的待发送缓存 中。 例如, 该私有标识的报文如下:
John._airplay._tcp. local
从上述报文 中 可 以 看 出 , 该第一设备 的 私有标识为 John._airplay._tcp.local。 同样的, 第二设备的私有标识可以为例如 "Alice._airplay._tcp.local"和" Bob._airplay._tcp.local"等这样的地址域名标识。 在生成获取包括第一设备的私有本地域名私有标识的第一私有信息报文之 后, 第一设备将该第一私有消息发送给第二设备, 该第二设备可直接访问第 一设备的私有本地域名私有标识, 下载第一设备分享的媒体内容。
本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息, 即私有标识发送给第二设备, 以使第二设备通过访问第一设备的私有标识, 从而获取共享媒体内容,解决了现有技术中任何接入到该公共 WLAN网络的 控制点设备都能够发现上线的 DLNA设备,并且获取到该 DLNA设备的共享 媒体内容,而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的 安全性较差的问题, 从而避免了隐私的泄露。 图 7为本发明媒体内容的共享方法实施例十的流程图, 如图 7所示, 在 本发明媒体内容的共享方法实施例十中, 在上述实施例的基础上, 下面特举 一实例,说明本发明媒体内容的共享方法的具体实现,在本实施例中,以 NFC 发送为例, 该第一私有信息为第一设备生成的密钥, 则第二设备从第一设备 获取共向媒体内容的具体歩骤为:
S701 : 第一设备和第二设备连接进入公共 WLAN网络, 并采用私有共享 模式, 自动激活 NFC模块, 同时生成一串密钥 K, 封装到 NFC模块中, 存放到 NFC模块的待发送缓存中,当手机相互触碰而触发 NFC发送时将携带该密钥 K 的第一私有信息发送给第二设备。
在本实施例中, 采用私有共享模式之前, 第一设备向第二设备或者更多 的 DLNA设备广播发送 SSDP:alive消息, 所述 SSDP:alive消息中携带了 DMS1 的 DDD URL以及设备 UUID信息。 该密钥 K为一串长度固定的二进制序列码, 所述密钥可以是随机生成的, 也可以是预先配置在应用程序之中的。可选的, 也可以通过上述实施例中的其他方式发送。
S702:第二设备获取通过 NFC触碰发送的密钥 K之后,生成一加密序列 R, 以密钥 K作为加密密钥对加密序列 R进行加密, 生成第一认证消息, 并将该第 一认证消息发送给第一设备。
具体的加密过程可以表示成第一认证消息 =E(R, K), 其中 Ε()被称为加 密算子, 表示一种具体的加密算法, 包括 DES算法、 3DES算法、 TDEA算 法、 IDEA算法等等, 在本发明实施例中并不限定特定的加密算法。 需要指出 的是, 具体采用哪种加密算法, 可由第二设备自身的决定, 也可以由第一设 备和第二设备协商决定。
S703 : 第一设备在收到第二设备发送的第一认证消息之后, 利用密钥 K 进行解密, 解密出随机序列1^。
S704: 第一设备和第二设备都获取到了加密序列 R, 即将 R作为传输数据 报文的加密密钥, 建立安全的安全信道。
在本实施例中, 当安全信道建立起来后, 第二设备就可以向第一设备发 起请求,获取第一设备对应的 DDD文件和 SCPD文件,并且获取第一设备共享 出来的媒体播放列表, 从而获取共享媒体内容, 在所述安全信道中的数据报 文都要经过密钥 R加密。 具体的获取过程可参考上述任一实施例的方法。 本实施例提供的媒体内容的共享方法, 通过第一设备将第一私有信息, 即密钥发送给第二设备, 以使第二设备生成加密序列, 并通过该密钥加密该 加密序列生成第一认证消息返回第一设备, 第一设备解密获取加密序列, 并 与第二设备建立安全信道, 以使第二设备发送请求从而获取共享媒体内容, 解决了现有技术中任何接入到该公共 WLAN 网络的控制点设备都能够发现 上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA 设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免了隐私的泄露。
图 8为本发明媒体内容的共享方法实施例十一的流程图。 如图 8所示, 具体的歩骤如下:
S801 : 第二设备获取第一设备发送或显示的第一私有信息。
在本实施例中, 第一设备和第二设备分别接入 WLAN网络后, 第一设备 和第二设备需要在该公共 WLAN网络下进行私人的分享时,第一设备和第二 设备需采用私有共享模式, 第二设备接收该第一设备发送的对应的第一私有 信息。
S802: 所述第二设备根据所述第一私有信息获取所述第一设备的共享媒 体内容。
本实施例提供的媒体内容的共享方法, 通过将 DLNA设备, 即第一设备 和第二设备采用私有共享模式, 第二设备接收第一设备发送的与该私有模式 对应的第一私有信息, 并根据该第一私有信息, 获取该第一设备共享的媒体 共享内容,解决了现有技术中任何接入到该公共 WLAN网络的控制点设备都 能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差的 问题, 从而避免了隐私的泄露。
在本发明媒体内容的共享方法实施例十二中, 在上述图 8所示实施例的 基础上, 歩骤 S801中的第二设备接收第一设备发送的第一私有信息, 具体有 以下几种实现方式:
第一种实现方式, 所述第二设备采用近场通信 NFC方式, 与所述第一设 备建立所述 NFC信道, 并通过所述 NFC信道接收所述第一设备发送的所述 第一私有信息。 在本实现方式中, 第一设备和第二设备, 同时装配了 NFC的通信芯片, 可以通过 NFC的功能模块实现相互通信, 若第二设备采用私有共享模式, 则 触发第二设备通过装配的 NFC的通信芯片与第一设备装配的 NFC的通信芯 片产生碰撞,即第二设备通过装配的 NFC的通信芯片与第一设备装配的 NFC 的通信芯片产生射频耦合, 以与第一设备建立 NFC通道。 另外, 第一设备将 该第一私有信息封装到 NFC的通信芯片所生成的传输报文中,并通过该 NFC 信道发送给第二设备。 或者, 第一设备可以将该第一私有信息封装进简单服 务发现协议 (Simple Service Discovery Protocol, 简称 SSDP) 报文中, 通过 NFC方式传输封装后的 SSDP报文。
第二种实现方式, 所述第二设备采用蓝牙方式, 与所述第一设备组建蓝 牙微微网, 并在所述蓝牙微微网中接收所述第一设备发送的所述第一私有信 息。
在本实现方式中, 第二设备和第一设备中都装配有蓝牙模块, 无需装配
NFC芯片。 第二设备和第一设备组建蓝牙微微网时需要互相进行设备发现和 设备配对, 需要用户自主进行设置, 在同意配对后建立连接, 形成蓝牙微微 网。 第二设备通过该蓝牙微微网接收第一设备发送的第一私有信息。
第三种实现方式, 所述第二设备摄取所述第一设备显示的二维码图像, 获取所述第一设备的所述第一私有信息; 其中, 所述二维码图像为所述第一 设备将所述第一私有信息进行编码生成的二维码图像。
在本实现方式中, 第二设备通过摄像头摄取第一设备发送的第一私有信 息编码生成二维码图像, 并对该二维码图像进行处理, 获取第一私有信息。
第四种实现方式, 所述第二设备通过麦克风接收所述第一设备传播的声 波信号,并对所述声波信号进行解码获取所述第一设备的所述第一私有信息; 其中, 所述声波信号为所述第一设备将所述第一私有信息进行编码生成的声 波信号。
在本实现方式中, 用户打开第二设备的麦克风, 接收第一设备通过软件 方式将第一私有信息进行编码生成声波信号,并进行解码获取第一私有信息。
图 9为本发明媒体内容的共享方法实施例十三的流程图, 在上述图 8所 示实施例的基础上, 如图 9所示, 所述第一私有信息为所述第一设备的私有 设备描述文件的统一资源定位符 DDD URL和所述第一设备的私有通用唯一 标识符 UUID时, 该媒体内容的共享方法具体实现方式为:
S901 : 所述第二设备向所述第一设备发送第一请求消息, 所述第一请求 消息中携带有所述第一设备的私有 DDD URL。
在本实施例中, 该第二设备发送的第一设备的私有 DDD URL用于获取 第一设备私有的 DDD。
S902: 所述第二设备接收所述第一设备发送的第二私有信息, 所述第二 私有信息包括所述第一设备的私有 DDD URL 对应的私有设备描述文件
DDD, 所述私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文 件的 URL。
S903: 所述第二设备根据所述私有 SCPD文件的 URL, 从所述第一设备 中获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制 指令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体内 容列表。
在本实施例中, 第二设备获取第一设备的私有 DDD 后, 就可以通过 <SCPD 1¾1^获取相应服务器的私有 SCPD文件, 从而获取该服务的相关控 制命令(action) 以及相应的参数变量; 通过 <controlURL〉就可以调用相应的 action , 完成相应的功能。 举例来说, 第二设备向第一设备调用 CDS: :Browse()/Search()命令, 则第一设备将其所共享媒体内容列表发送给第 二设备。
S904: 所述第二设备从所述共享媒体内容列表中获取共向媒体内容。 在本实施例中, 第二设备在获取到第一设备的媒体共享内容列表后, 就 可以通过点击获取其媒体共享内容, 例如: 共享照片, 从而实现在第一设备 中存储的共享媒体内容可以共享给第二设备。
本实施例提供的媒体内容的共享方法, 通过第二设备接收第一设备发送 的第一私有信息, 获取第一设备私有的 DDD, 本根据该 DDD文件从第一设 备获取私有 SCPD文件, 并调用对应的控制指令, 获取第一设备的共享媒体 内容列表, 并从中获取共享媒体内容, 解决了现有技术中任何接入到该公共 WLAN 网络的控制点设备都能够发现上线的 DLNA 设备, 并且获取到该 DLNA设备的共享媒体内容,而 DLNA设备却毫不知情而造成了 DLNA设备 的共享媒体内容的安全性较差的问题, 从而避免了隐私的泄露。 图 10为本发明媒体内容的共享方法实施例十四的流程图,如图 10所示, 在本发明媒体内容的共享方法实施例十四中, 在上述图 8所示的实施例的基 础上, 当所述第一私有信息为所述第一设备的私有标识时, 图 8所示实施例 中 S801的实现方式为:
S1001 : 所述第二设备获取所述第一设备发送的所述第一私有信息。
S1002: 根据所述第一设备的所述私有本地域名直接访问所述第一设备, 获取所述第一设备的共享媒体内容。
在本实施例中, 主要针对具有私有媒体共享解决方案的设备, 第一设备 将私有的私有标识, 通过 NFC信道, 或者蓝牙, 二维码或者声波信号等形式 发送给第二设备, 第二设备接收到该私有标识, 直接访问该私有标识, 下载 获取需要的媒体内容。
本实施例提供的媒体内容的共享方法, 通过第二设备接收第一设备发送 的第一私有信息, 即私有标识, 第二设备通过访问该私有标识, 从而获取共 享媒体内容,解决了现有技术中任何接入到该公共 WLAN网络的控制点设备 都能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差 的问题, 从而避免了隐私的泄露。
此外, 所述第一私有信息还可以包括所述第一设备生成的密钥。 则所述 第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第一设 备的共享媒体内容, 包括: 所述第二设备获取所述第一设备发送或显示的所 述第一私有信息, 并根据所述密钥对加密序列进行加密生成第一认证消息; 所述第二设备将所述第一认证消息发送给所述第一设备, 以使所述第一设备 根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所 述加密序列与所述第二设备建立安全信道; 所述第二设备调用控制指令, 通 过所述安全信道获取所述第一设备发送所述第一设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体内容。
上述实施例十三和实施例十四的具体的实现方式可以参考第一设备的实 施例的过程, 其实现方法和原理, 以及技术效果类似, 在此不作赘述。
在本发明实施例十五中, 在上述实施例的基础上, 第二设备采用私有共 享模式的实现方式有以下几种: 第一种实现方式, 所述第二设备接收用户发送的私有共享模式的指令, 并根据所述指令, 采用所述私有共享模式。
在本实现方式中, 当第一设备和第二设备接入的 WLAN 网络为公共 WLAN网络, 且第一设备和第二设备需要在该公共 WLAN网络下进行私人 的分享时, 第二设备可以接收用户发送的私有共享模式指令, 并根据该指令, 采用私有共享模式。
第二种实现方式, 所述第二设备接入 WLAN, 并获取所述 WLAN的网 络标识;所述第二设备根据所述网络标识,确定所述 WLAN是否为公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
在本实现方式中, 第二设备利用网络标识判断网络是否为公共网络, 具 体的判断方式与第一设备相同。
第三种实现方式, 所述第二设备接入 WLAN, 并获取所述 WLAN的网 络标识, 所述第二设备根据所述网络标识, 确定所述第二设备是否首次接入 所述 WLAN, 所述第二设备若根据所述网络标识, 确定所述第二设备首次接 入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式, 所述第二设备接收所述用户根据所述提示信息发送的选择信息, 在所述选择 信息包括私有共享模式时, 采用所述私有共享模式。
在本实现方式中, 第二设备接入一 WLAN 网络并且获取到该网络的 SSID, 开始检测该 WLAN网络是否为首次接入的。 根据现有的 WLAN网络 接入模块, 在接入某一 WLAN网络之后, 移动设备会自动保存该 WLAN网 络的 SSID, 并且保存该 WLAN网络的一些接入参数, 例如接入密码等, 以 便移动设备搜索到该 WLAN网络的信号之后能够自动发现并且自动接入。具 体的实现方式参照第一设备的过程。
第四种实现方式, 所述第二设备接入 WLAN, 并获取所述 WLAN的网 络标识, 所述第二设备在接入点列表中査找是否存在所述网络标识以及所述 网络标识对应的无线接入点 AP的介质访问控制 MAC地址,所述第二设备若 在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线接入点 AP的 MAC地址, 则采用所述私有共享模式。
在本实施例中, 第二设备并不限于一个设备, 可以是多个移动设备, 通过 上述歩骤同样可以安全的获得第一设备分享的媒体内容。 第二设备可以执行 第一设备所有的实施例的方法, 其实现原理相类似, 此处不再赘述。
图 11 为本发明媒体内容的共享方法实施例十六的信令流程图。 常见的 DLNA设备有如下几种:
数字媒体服务器 (Digital Media Server, 简称 DMS ) : 用于存储图片、 音频、 视频等媒体文件, 例如: 智能手机、 平板电脑、 数码照相机、 便携式 计算机等能够生成、 存储图片、 音乐、 视频节目等媒体内容设备。
数字媒体播放器 (Digital Media Player, 简称 DMP) : 用于播放图片、 音频、 视频等媒体文件的设备, 例如: 音响、 电视、 投影仪、 智能手机、 平 板电脑、 便携式计算机、 个人数字终端 (Personal Digital Assistant, 简称 PDA) 等。
数字媒体控制器(Digital Media Controller, 简称 DMC) : 用于网络中上 线的 DMS和 DMP, 并对各设备进行控制的设备, 通常有智能手机、 平板电 脑等移动手持设备。
在本实施例中, 如图 6所示, 第一设备作为 DMS设备, 向作为 DMP设 备的第二设备分享媒体内容, 第一设备跟第二设备接入公用 WLAN网络, 并 打开具有 DLNA 功能的应用, 第一设备与第二设备向该 WLAN 网络组播 SSDP上线消息, 该 SSDP上线消息中携带了设备的 DDD URL以及 UUID, 以及设备是 DMS或者 DMP, 还携带了设备所支持的服务, 第一设备与第二 设备在该 WLAN将当前模式设置为私有共享模式。本实施例的媒体内容的共 享方法具体的实现歩骤如下:
S1101 : 第一设备与第二设备采用私有共享模式。
在本实施例中, 第一设备与第二设备都采用私有共享模式时, 第一设备 生成第一私有信息, 同时, 分别向该 WLAN网络组播 SSDP byebye消息, 以 通知第一设备和第二设备已经离开该 WLAN网络。
S1102: 第一设备与第二设备之间建立连接, 并将第一私有信息发送或显 示给第二设备。
在本实施例中, 第一设备与第二设备采用私有共享模式后, 可以触发各 自的 NFC的通信芯片, 产生射频耦合, 建立 NFC信道, 此第一设备将第一 私有信息发送给第二设备, 还可以通过二维码、 蓝牙、 声波信号等方式将第 一私有信息发送给第二设备。 其中该第一私有信息包括第一设备的私有的 DDD URL禾口 UUIDo
S1103: 第二设备接收第一设备发送或显示的第一私有信息, 向第一设备 发送 HTTP GET请求。
在本实施例中, 第二设备从第一私有信息中获取第一设备的私有 DDD URL, 向第一设备发送携带有 DDD URL的 HTTP GET请求, 以获取第一设 备的私有的 DDD。
S1104: 第一设备根据所述 HTTP GET请求, 向所述第二设备返回与所 述第一设备的私有 DDD URL对应的私有设备描述文件 DDD。
在本实施例中, 第一设备收到第二设备发送的 HTTP GET请求后, 向第 二设备发送私有的 DDD, 其中该 DDD包含了第一设备的设备类型、 设备名 称、 设备生产商、 设备标识等, 还包含了第一设备所支持的服务信息, 每种 服务都对应三套地址, 即描述地址 SCPD URL, 用于指示该服务的 SCPD文 件的 URL; 控制地址, 用于指示调用该服务中相应的控制命令的 URL; 事件 地址, 用于指示该服务中某些控制命令的参数发生变化时, 向控制点上报事 件消息的 URL。
S1105: 第二设备接收第一设备返回的第一设备的私有 DDD, 并从所述 私有 DDD中获取服务控制协议描述文件地址 SCPD URL,第二设备向所述第 一设备发送的携带有所述 SCPD URL的 HTTP GET请求。
S1106: 第一设备接收第二设备发送的携带有 SCPD URL的 HTTP GET 请求, 并根据该请求, 向第二设备返回与 SCPD URL对应的第一设备的私有 的 SCPD文件。
S1107: 第二设备从第一设备的私有 SCPD文件中, 获取与该 SCPD文件 对应的控制命令。
在本实施例中, 第二设备可以从该 SCPD文件中获取第一设备所支持的 服务的相关控制命令以及相应的参数变量。
S1108: 第二设备调用从所述第一设备 SCPD文件中获取的控制命令, 以 获取第一设备的共享媒体内容列表。
在本实施例中, 第二设备调用获取的控制命令, 例如, 第二设备要获取 到第一设备所共享出来的照片的媒体内容列表, 就向第一设备调用 CDS::Browse()/Search()命令, 第一设备将其所共享出来的媒体内容列表发送 给第二设备。
S1109: 第一设备根据第二设备调用的控制命令, 向第二设备返回共享媒 体内容列表。
S1110: 第二设备根据该共享媒体内容列表, 获取媒体内容。
在本实施例中, 第二设备在获取到第一设备的共享照片的媒体内容列表 后, 就可以点击获取其共享照片, 从而实现在第一设备中存储的照片可以共 享给第二设备。
本实施例提供的媒体内容的共享方法, 通过第一设备和第二设备采用私 有共享模式, 在设备之间建立连接, 第一设备向第二设备发送第一私有信息, 第二设备根据第一私有信息中的 DDD URL向第一设备发送 HTTP GET请求, 获取第一设备的私有 DDD,并从该 DDD文件中获取第一设备的 SCPD URL, 并再次向第一设备发送 HTTP GET请求获取第一设备私有的 SCPD文件, 第 二设备从该 SCPD文件中获取相应的服务控制命令, 并调用相应的控制命令 获取第一设备的共享媒体内容列表, 第二设备从该共享媒体内容列表中获取 媒体共享内容,解决了现有技术中任何接入到该公共 WLAN网络的控制点设 备都能够发现上线的 DLNA设备,并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差 的问题, 从而避免了隐私的泄露。
图 12为本发明媒体内容的共享方法实施例十七的信令流程图。在本实施 例中, 以三个移动设备进入公共 WLAN网络, 并全部采用私有共享模式, 且 三个移动设备均需要向其他两个设备分享媒体共享内容为例, 详细介绍本实 施例的技术方案, 如图 7所示, 本实施例的方法具体实现过程为:
S1201 : 第一设备与第二设备建立连接。
S1202: 第一设备向第二设备发送或显示第一设备私有的 DDD URL和 UUID。
S1203: 第二设备向第一设备发送第二设备私有的 DDD URL和 UUID, 并且在设备中生成发现设备列表。
在本实施例中, 第一设备与第二设备同时作为 DMS和 DMP, 因此第一 设备与第二设备发送的信息除了各自私有的 DDD URL和 UUID以外, 还应 该携带各自的搜索 (M-SEARCH) 请求消息, 以使移动设备接收到对方的消 息后能够生成发现设备列表。
在本实施例中, 所述第二设备向所述第一设备发送或显示所述第二设备 的第一私有信息。 第一设备与第二设备, 交换各自的 DLNA应用程序中作 为 DMS或者 DMP的私有 DDD URL以及私有的 UUID。 由于移动设备同 时作为 DMS和 DMP,发送的信息除了上述私有 DDD URL和 UUID以夕卜, 还应该携带第一设备和第二设备作为 DMP的 M-SEARCH请求消息。举例 说明, 第一设备发送给第二设备的具体报文格式为:
NOTIFY * HTTP/1.1
HOST:239.255.255.250: 1900
EXT:
CACHE-CONTROL: max-age=1810
LOCATION: http://10.11.84.153 :7050/upnpdevicedescription/friendsharing NT: urn:schemas-upnp-org:device:MediaServer: 1
NTS: ssdp:alive
SERVER: Windows NT/5.0, UPnP/1.0, Huawei UPnP SDK/1.0
USN:
uuid:dl578360-feb3-1167-1000-2c27d742936c::urn:schemas-upnp-org:device:Me diaServer: 1
M-SEARCH * HTTP/1.1
ST: urn: schemas-upnp-org: device: MediaServer: 1
MX: 3
MAN: "ssdp:discover"
HOST: 239.255.255.250:1900
第一设备和第二设备都接收到对方的发现消息报文后生成发现设备列 表, 以记录私有共享模式下通过 NFC信道发现的设备信息, 例如: 第一设备 在接收到第二设备发送的数据报文后, 所生成的设备发现列表的具体报文格 式为:
<device_discovery_list>
<deviceltem #0〉
<deviceType>urn:schema-upnp-org:device:MediaServer:l</deviceType> <ipAddr>10.11.84.153</ipAddr>
<Location>http://10.11.84.153 :7050/upnpdevicedescription/friendsharing</L ocation>
<uuid>dl578360-feb3-1167-1000-2c27d742936c</uuid>
</deviceItem>
<deviceltem #1〉
<deviceType>urn:schema-upnp-org:MediaServerControlPoint:l</deviceTyp e>
<ipAddr>10.11.84.153</ipAddr>
<S T>urn: schemas-upnp-org: device: MediaS erver: 1 </uuid>
</deviceItem>
</ device_discovery_list>
第一设备生成的设备发现列表中包含 DMS, DMP, 均为第二设备, 同样 的第二设备的设备发现列表中包括分别作为 DMS和 DMP的第一设备。
S1204: 第一设备向第二设备发送携带有第二设备的私有 DDD URL 的
HTTP GET请求, 以获取第二设备的私有 DDD。
S1205:第二设备向第一设备发送的携带有第一设备的私有 DDD URL的 HTTP GET请求, 以获取第一设备的私有 DDD。
S1206:第一设备根据 HTTP GET请求,向第二设备返回与私有 DDD URL 对应的第一设备的私有 DDD。
S1207:第二设备根据 HTTP GET请求,向第一设备返回与私有 DDD URL 对应的第二设备的私有 DDD。
S1208: 第一设备从第二设备的私有 DDD中获取第二设备私有的 SCPD URL, 并向第二设备发送携带其私有的 SCPD URL的 HTTP GET请求, 用以 获得第二设备的 SCPD文件。
S1209: 第二设备从第一设备的私有 DDD中获取第一设备私有的 SCPD URL, 并向第一设备发送携带其私有的 SCPD URL的 HTTP GET请求, 用以 获得第一设备的 SCPD文件。
S1210: 第一设备接收第二设备返回的第二设备的 SCPD文件。
S1211 : 第二设备接收第一设备返回的第一设备的 SCPD文件。 第一设备和第一设备互相从 SCPD文件中获取到控制命令后, 可以互相 获取分享的共享媒体内容列表, 进一歩获取共享媒体内容, 具体的获取方式 参照实施例三, 原理及实现方式相似, 此处不再赘述。
S1212: 第一设备与第三设备建立连接, 第一设备向第三设备发送第一私 有信息, 其中第一私有信息包括第一设备私有的 DDD URL和 UUID和第二 设备私有的 DDD URL和 UUID。第一设备更新设备发现列表,将第三设备加 入列表中。
S1213: 第三设备向第一设备发送或显示第三设备私有的 DDD URL和 UUID。 第三设备生成发现设备列表, 其中, 发现设备列表中包含第一设备和 第二设备。
在本实施例中, 由于第一设备的 DLNA应用程序存储的设备发现列表中 已经包含了第二设备, 即第三设备已经在私有共享模式下发现第二设备。 第 三设备中 DLNA应用程序存储的发现设备列表进行更新, 增加了第二设备的 发现消息, 其中携带第二设备的私有的 DDD URL和 UUID。
S1214: 第三设备根据获取到第一设备和第二设备的私有的 DDD URL, 向第一设备和第二设备请求其各自的私有 DDD以及私有 SCPD文件。
S1215:第三设备获取第一设备以及第二设备的私有的设备服务对应的控 制命令。 并调用该命令以获取第一设备或者第二设备的共享媒体内容列表。
本实施例中的第三设备为多个移动设备时, 也可以通过同样的方式进行 媒体内容的共享。
本实施例提供的媒体内容的共享方法, 通过第一设备和第二设备为多个 设备, 全部采用私有共享模式, 在设备之间建立 NFC信道, 第一设备与第二 设备交换各自私有的 DDD URL和 UUID, 第一设备发送 HTTP GET请求获 取第二设备的私有 DDD, 并从该 DDD文件中获取第二设备的 SCPD URL, 并再次向第二设备发送 HTTP GET请求获取第二设备私有的 SCPD文件, 同 时, 第二设备发送 HTTP GET请求获取第一设备的私有 DDD, 并从该 DDD 文件中获取第一设备的 SCPD URL, 并再次向第一设备发送 HTTP GET请求 获取第一设备私有的 SCPD文件。 第一设备与第三设备建立 NFC信道, 并将 包含第二设备的私有 DDD URL和 UUID的第一私有信息发送给第三设备, 同时, 第三设备将其私有的私有 DDD URL和 UUID发送给第一设备, 并更 新发现设备列表, 移动设备可互相获取控制命令, 并调用相应的控制命令获 取移动设备的共享媒体内容列表, 并获取响应的媒体内容, 解决了现有技术 中任何接入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设 备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而 造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免了隐私的 泄露, 并且在移动设备数量较多的情况下, 可迅速建立移动设备两两之间的 媒体内容分享, 便于用户操作, 提高用户体验。
图 13为本发明媒体内容的共享装置实施例一的结构示意图, 如图 13所 示, 该媒体内容的共享装置, 包括: 处理模块 11和收发模块 12。 其中, 处 理模块 11, 用于当所述媒体内容的共享装置采用私有共享模式时, 获取与所 述私有共享模式对应的第一私有信息; 收发模块 12, 用于将所述第一私有信 息发送或显示给第二设备, 以供所述第二设备获取所述第一私有信息, 并根 据所述第一私有信息获取所述媒体内容的共享装置的共享媒体内容。
本实施例的媒体内容的共享装置用于实现图 1所示方法实施例的技术方 案, 其实现方式和原理相类似, 在此不再赘述, 该装置解决了现有技术中任 何接入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容,而 DLNA设备却毫不知情而造成 了 DLNA设备的共享媒体内容的安全性较差的问题,从而避免了隐私的泄露。
在上述实施例的基础上, 所述收发模块 12包括:
近场通信单元,用于采用近场通信 NFC方式, 与所述第二设备建立 NFC 信道,并通过所述 NFC信道将所述第一私有信息发送给所述第二设备;或者, 蓝牙处理单元, 用于采用蓝牙方式, 与所述第二设备组建蓝牙微微网, 并在所述蓝牙微微网中将所述第一私有信息发送给所述第二设备; 或者, 图像编码单元, 用于将所述第一私有信息进行编码, 生成二维码图像, 并对所述二维码图像形式的所述第一私有信息进行显示, 以供所述第二设备 摄取所述二维码图像, 获取所述第一私有信息; 或者,
声波编码单元, 用于将所述第一私有信息进行编码生成声波信号, 并对 所述声波信号进行传播, 以供所述第二设备通过麦克风接收所述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
可选的, 所述第一私有信息为所述媒体内容的共享装置的私有设备描述 文件的统一资源定位符 DDD URL和所述媒体内容的共享装置的私有通用唯 一标识符 UUID, 则所述收发模块 12具体用于:
将所述第一私有信息发送或显示给所述第二设备, 并接收所述第二设备 发送的第一请求消息, 所述第一请求消息中携带有所述媒体内容的共享装置 的私有 DDD URL;
根据所述第一请求消息, 向所述第二设备发送第二私有信息, 所述第二 私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述媒体内容的共享装置的私有服务控制协议描述 SCPD 文件的 URL, 以供所述第二设备根据所述私有 SCPD文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述第二设备发送所述媒体内容的共享装置的共 享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享媒 体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD文件调用 的指令。
可选的,所述收发模块 12还用于接收所述第二设备发送的第二设备的私 有 DDD URL和 UUID信息。
可选的, 所述第一私有信息为所述媒体内容的共享装的私有标识, 则所 述收发模块具体用于:
将所述第一私有信息发送或显示给所述第二设备, 以供所述第二设备根 据所述媒体内容的共享装置的所述私有标识直接访问所述媒体内容的共享装 置, 获取所述媒体内容的共享装置的共享媒体内容。
可选的, 所述收发模块 12还用于接收所述第二设备的私有标识。
可选的, 所述第一私有信息包括所述媒体内容的共享装的私有标识, 则 所述收发模块 12具体用于:
将所述第一私有信息发送给所述第二设备, 并接收所述第二设备发送的 第一认证消息, 所述第一认证消息是所述第二设备根据所述密钥加密的加密 序列生成的;
根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根 据所述加密序列在所述第一设备和所述第二设备之间建立安全信道;
根据控制指令, 在所述安全信道中向所述第二设备发送所述第一设备的 共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享 媒体内容。
可选的,所述收发模块 12还用于接收用户发送的配置私有共享模式的指 令, 并根据所述指令, 采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
图 14为本发明媒体内容的共享装置实施例二的结构示意图, 如图 14所 示, 在上述图 13所示实施例的基础上, 该装置还包括: 第一获取模块 13, 用于在所述媒体内容的共享装置接入无线局域网 WLAN时,获取所述 WLAN 的网络标识;
则所述处理模块 11还用于根据所述网络标识, 确定所述 WLAN是否为 公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
可选的, 图 15为本发明媒体内容的共享装置实施例三的结构示意图, 如 图 15所示, 在上述图 13所示实施例的基础上, 该装置还包括: 第二获取模 块 14, 用于在所述媒体内容的共享装置接入 WLAN时, 获取所述 WLAN的 网络标识;
则所述处理模块 11还用于根据所述网络标识,确定所述媒体内容的共享 装置是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述媒体内容的共享装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
在所述收发模块 12接收所述用户根据所述提示信息发送的选择信息,在 所述选择信息包括私有共享模式时, 采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
可选的, 图 16为本发明媒体内容的共享装置实施例四的结构示意图, 如 图 16所示, 在上述图 13所示实施例的基础上, 该装置还包括: 第三获取模 块 15, 用于在所述媒体内容的共享装置接入 WLAN时, 获取所述 WLAN的 网络标识; 则所述处理模块 11 还用于在接入点列表中査找是否存在所述网络标识 以及所述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
图 17为本发明媒体内容的共享装置实施例五的结构示意图, 如图 17所 示, 该媒体内容的共享装置, 包括: 收发模块 21和处理模块 22。 其中, 收 发模块 21, 用于获取第一设备发送的第一私有信息; 其中, 所述媒体内容的 共享装置当前采用私有共享模式; 处理模块 22, 用于根据所述第一私有信息 获取所述第一设备的共享媒体内容。
本实施例媒体内容的共享装置用于执行图 8 所示方法实施例的技术方 案, 其实现歩骤和技术原理相同, 在此不做赘述, 解决了现有技术中任何接 入到该公共 WLAN网络的控制点设备都能够发现上线的 DLNA设备, 并且 获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免了隐私的泄露。
在上述实施例的基础上, 所述收发模块 21包括: 近场通信单元, 用于采 用近场通信 NFC方式,与所述第一设备建立所述 NFC信道,并通过所述 NFC 信道接收所述第一设备发送的所述第一私有信息; 或者,
蓝牙处理单元, 用于采用蓝牙方式, 与所述第一设备组建蓝牙微微网, 并在所述蓝牙微微网中接收所述第一设备发送的所述第一私有信息; 或者, 图像处理单元, 用于摄取所述第一设备显示的二维码图像, 获取所述第 一设备的所述第一私有信息; 其中, 所述二维码图像为所述第一设备将所述 第一私有信息进行编码生成的二维码图像; 或者,
声波处理单元, 用于通过麦克风接收所述第一设备传播的声波信号, 并 对所述声波信号进行解码获取所述第一设备的所述第一私有信息; 其中, 所 述声波信号为所述第一设备将所述第一私有信息进行编码生成的声波信号。
可选的, 所述第一私有信息为所述第一设备的私有设备描述文件的统一 资源定位符 DDD URL和所述第一设备的私有通用唯一标识符 UUID,则所述 收发模块 21用于向所述第一设备发送第一请求消息,所述第一请求消息中携 带有所述第一设备的私有 DDD URL; 所述收发模块 21用于接收所述第一设 备发送的第二私有信息, 所述第二私有信息包括所述第一设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述第一设备的私 有服务控制协议描述 SCPD文件的 URL;
所述处理模块 22用于根据所述私有 SCPD文件的 URL, 从所述第一设 备中获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控 制指令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体 内容列表;所述处理模块 22还用于从所述共享媒体内容列表中获取共向媒体 内容。
可选的,所述收发模块 21还用于向所述第一设备发送所述媒体内容的共 享装置的私有 DDD URL和 UUID信息。
可选的, 所述第一私有信息为所述第一设备的私有标识, 则所述收发模 块 21用于接收所述第一设备发送的所述第一私有信息, 所述处理模块 22根 据所述第一设备的所述私有标识直接访问所述第一设备, 获取所述第一设备 的共享媒体内容。
可选的,所述收发模块 21还用于向所述第一设备发送所述媒体内容的共 享装置的私有标识。
可选的, 所述第一私有信息包括所述第一设备生成的密钥, 则所述收发 模块 21用于:
获取所述第一设备发送或显示的所述第一私有信息, 并根据所述密钥对 加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述第一设备, 以使所述第一设备根据所述 密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所述加密序 列与所述第二设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述第一设备发送所述第一设备 的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体内容。
可选的, 所述收发模块 21还用于接收用户发送的私有共享模式的指令, 所述处理模块 22根据所述指令, 采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。 可选的, 图 18为本发明媒体内容的共享装置实施例六的结构示意图, 如 图 18所示, 在上述图 17所示实施例的基础上, 该装置还包括: 第一获取模 块 23, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块 22用于根据所述网络标识, 确定所述 WLAN是否为公 共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
可选的, 图 19为本发明媒体内容的共享装置实施例七的结构示意图, 如 图 19所示, 在上述图 17所示实施例的基础上, 该装置还包括: 第二获取模 块 24, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块 22用于根据所述网络标识,确定所述媒体内容的共享装 置是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述媒体内容的共 享装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私 有共享模式;在所述收发模块 21接收所述用户根据所述提示信息发送的选择 信息, 在所述选择信息包括私有共享模式时, 采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
可选的, 图 20为本发明媒体内容的共享装置实施例八的结构示意图, 如 图 20所示, 在上述图 17所示实施例的基础上, 该装置还包括: 第三获取模 块 25, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块 22 用于在接入点列表中査找是否存在所述网络标识以 及所述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
本实施例提供的媒体内容的共享装置用于执行方法实施例的技术方案, 其实现原理和技术效果类似, 在此不再赘述。
图 21为本发明终端设备实施例一的结构示意图, 如图 21所示, 该终端 设备包括: 处理器 31和收发模块 32, 其中, 处理器 31, 用于将所述终端设 备设置为私有共享模式, 并获取与所述私有共享模式对应的第一私有信息; 收发模块 32, 用于将所述第一私有信息发送或显示给另一终端设备, 以供所 述另一终端设备获取所述第一私有信息, 并根据所述第一私有信息获取所述 终端设备的共享媒体内容。
本实施例提供的终端设备, 用于执行图 1-12所示的技术方案, 通过处理 器将该终端设备设置为私有共享模式, 获取该终端设备的第一私有信息, 并 通过收发器发送或显示给另一终端设备, 以供另一终端设备进一歩获取终端 设备的共向媒体内容,解决了现有技术中任何接入到该公共 WLAN网络的控 制点设备都能够发现上线的 DLNA设备,并且获取到该 DLNA设备的共享媒 体内容,而 DLNA设备却毫不知情而造成了 DLNA设备的共享媒体内容的安 全性较差的问题, 从而避免了隐私的泄露。
在本发明终端设备实施例二中, 在上述实施例的基础上, 如图 22所示所 述收发模块 32具体包括:
NFC发射器,用于与所述另一终端设备建立 NFC信道,并通过所述 NFC 信道将所述第一私有信息发送给所述另一终端设备; 或者,
蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中将所述第一私有信息发送给所述另一终端设备; 或者,
图像编码器, 用于将所述第一私有信息进行编码, 生成二维码图像, 并 通过显示器对所述二维码图像形式对应的所述第一私有信息进行显示, 以供 所述另一终端设备摄取所述二维码图像, 获取所述第一私有信息; 或者, 声音编码器, 用于将所述第一私有信息进行编码生成声波信号, 并通过 扬声器对所述声波信号进行传播, 以供所述另一终端设备通过麦克风接收所 述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
可选的, 所述第一私有信息包括所述终端设备的私有设备描述文件的统 一资源定位符 DDD URL和所述终端设备的私有通用唯一标识符 UUID,则所 述收发模块 32具体用于:
将所述第一私有信息发送或显示给所述另一终端设备, 并接收所述另一 终端设备发送的第一请求消息, 所述第一请求消息中携带有所述终端设备的 私有 DDD URL;
根据所述第一请求消息, 向所述另一终端设备发送第二私有信息, 所述 第二私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述 私有 DDD包括所述终端设备的私有服务控制协议描述 SCPD文件的 URL, 以供所述另一终端设备根据所述私有 SCPD 文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述另一终端设备发送所述终端设备的共享媒体 内容列表, 以供所述另一终端设备从所述共享媒体内容列表中获取共享媒体 内容; 其中, 所述控制指令为所述另一终端设备根据所述私有 SCPD文件调 用的指令。
可选的, 所述第一私有信息为所述终端设备的私有标识, 则所述收发模 块 32具体用于:
将所述第一私有信息发送或显示给所述另一终端设备, 以供所述另一终 端设备根据所述终端设备的所述私有标识直接访问所述终端设备, 获取所述 终端设备的共享媒体内容。
可选的, 所述第一私有信息包括所述终端设备生成的密钥, 则所述收发 模块 32用于将所述第一私有信息发送给所述另一终端设备,并接收所述另一 终端设备发送的第一认证消息, 所述第一认证消息是所述另一终端设备根据 所述密钥加密的加密序列生成的;
所述处理器 31用于根据所述密钥对所述第一认证消息进行解密,获得所 述加密序列, 并根据所述加密序列在所述终端设备和所述另一终端设备之间 建立安全信道;
所述收发模块 32还用于根据控制指令,在所述安全信道中向所述另一终 端设备发送所述终端设备的共享媒体内容列表, 以供所述另一终端设备从所 述共享媒体内容列表中获取共享媒体内容。
可选的,所述收发模块 32还用于获取所述另一终端设备发送或显示的所 述另一终端设备的第一私有信息。
可选的, 所述处理器 31还用于:
接入无线局域网 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
可选的, 所述处理器 31还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述终端设备是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述 WLAN 为所述终端设备首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
在所述收发模块 32接收到所述用户根据所述提示信息发送的选择信息, 在所述选择信息包括私有共享模式时, 采用所述私有共享模式。
可选的, 所述处理器 31还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
本实施例提供的终端设备, 与图 1-12所示的方法中的第一设备的技术方 案对应, 用于执行图 1-12所示的技术方案, 其实现原理和技术效果类似, 在 此不再赘述。
图 22为本发明终端设备实施例三的结构示意图, 如图 22所示, 该终端 设备包括: 收发模块 41和处理器 42, 收发模块 41, 用于获取另一终端设备 发送或显示的第一私有信息; 处理器 42, 用于将所述终端设备当前设置为私 有共享模式;所述收发模块 41还用于根据所述第一私有信息获取所述第一设 备的共享媒体内容。
本实施例提供的终端设备, 通过处理器将该终端设备设置为私有共享模 式, 收发模块获取另一终端设备发送的与该私有模式对应的第一私有信息, 并根据该第一私有信息, 获取该另一终端设备共享的媒体共享内容, 解决了 现有技术中任何接入到该公共 WLAN 网络的控制点设备都能够发现上线的 DLNA设备, 并且获取到该 DLNA设备的共享媒体内容, 而 DLNA设备却毫 不知情而造成了 DLNA设备的共享媒体内容的安全性较差的问题, 从而避免 了隐私的泄露。
在本发明终端设备的实施例四中, 在上述实施例的基础上, 所述收发模 块 41具体包括: NFC发射器, 用于与所述另一终端设备建立 NFC信道, 并 通过所述 NFC信道接收所述另一终端设备发送的所述第一私有信息; 或者, 蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中接收所述另一终端设备发送的所述第一私有信息; 或者, 摄像头, 用于摄取所述另一终端设备显示的二维码图像, 获取所述另一 终端设备的所述第一私有信息; 其中, 所述二维码图像为所述另一终端设备 将所述第一私有信息进行编码生成的二维码图像; 或者,
声波解码器, 用于通过声音采集模块接收所述另一终端设备传播的声波 信号, 并对所述声波信号进行解码获取所述另一终端设备的所述第一私有信 息; 其中, 所述声波信号为所述另一终端设备将所述第一私有信息进行编码 生成的声波信号。
可选的, 所述第一私有信息包括所述另一终端设备的私有设备描述文件 的统一资源定位符 DDD URL 和所述另一终端设备的私有通用唯一标识符 UUID, 则所述收发模块 41具体用于:
向所述另一终端设备发送第一请求消息, 所述第一请求消息中携带有所 述另一终端设备的私有 DDD URL;
接收所述另一终端设备发送的第二私有信息, 所述第二私有信息包括所 述另一终端设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述另一终端设备的私有服务控制协议描述 SCPD文件的 URL; 根据所述私有 SCPD文件的 URL, 从所述另一终端设备中获取对应的私 有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令, 以供所述 另一终端设备根据所述控制指令发送所述另一终端设备的共享媒体内容列 表;
从所述共享媒体内容列表中获取共向媒体内容。
可选的, 所述第一私有信息为所述另一终端设备的私有标识, 则所述收 发模块 41具体用于:
获取所述另一终端设备发送的所述第一私有信息, 并根据所述另一终端 设备的所述私有本地域名直接访问所述另一终端设备, 获取所述另一终端设 备的共享媒体内容。
可选的, 所述第一私有信息包括所述另一终端设备生成的密钥, 则所述 收发模块 41具体用于:
获取所述另一终端设备发送或显示的所述第一私有信息, 并根据所述密 钥对加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述另一终端设备, 以使所述另一终端设备 根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所 述加密序列与所述终端设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述另一终端设备发送所述另一 终端设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体 内容。
可选的,所述收发模块 41还用于向所述另一终端设备发送或显示所述终 端设备的第一私有信息。
可选的, 所述处理器 42具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
可选的, 所述处理器 42具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述终端设备是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述终端设备首次接入所述 WLAN, 则生成 提示信息, 以提示所述用户是否选择私有共享模式;
所述收发模块 41接收到所述用户根据所述提示信息发送的选择信息,在 所述选择信息包括私有共享模式时, 采用所述私有共享模式。
可选的, 所述处理器 42具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
本实施例提供的终端设备, 与本发明图 1-12所提供的方法实施例中的第 二设备的实现方式相同, 该终端设备用于执行图 1-12所示的技术方案, 其执 行方法、 原理以及技术效果可参见方法实施例, 此处不再赘述。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分歩骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的歩骤; 而前述 的存储介质包括: ROM、 RAM,磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种媒体内容的共享方法, 其特征在于, 包括:
第一设备采用私有共享模式, 获取与所述私有共享模式对应的第一私有
I Ft Ή自、 .,
所述第一设备将所述第一私有信息发送或显示给第二设备, 以供所述第 二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第一设备 的共享媒体内容。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一设备将所述第一 私有信息发送或显示给所述第二设备, 具体包括:
所述第一设备与所述第二设备建立 NFC信道, 并通过所述 NFC信道将 所述第一私有信息发送给所述第二设备; 或者,
所述第一设备与所述第二设备组建蓝牙微微网, 并在所述蓝牙微微网中 将所述第一私有信息发送给所述第二设备; 或者,
所述第一设备将所述第一私有信息进行编码, 生成二维码图像, 并对所 述二维码图像形式对应的所述第一私有信息进行显示, 以供所述第二设备摄 取所述二维码图像, 获取所述第一私有信息; 或者,
所述第一设备将所述第一私有信息进行编码生成声波信号, 并对所述声 波信号进行传播, 以供所述第二设备通过麦克风接收所述声波信号, 并对所 述声波信号进行解码获取所述第一私有信息。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一私有信息包 括所述第一设备的私有设备描述文件的统一资源定位符 DDD URL和所述第 一设备的私有通用唯一标识符 UUID, 则所述第一设备将所述第一私有信息 发送或显示给第二设备, 以供所述第二设备获取所述第一私有信息, 并根据 所述第一私有信息获取所述第一设备的共享媒体内容, 包括:
所述第一设备将所述第一私有信息发送或显示给所述第二设备, 并接收 所述第二设备发送的第一请求消息, 所述第一请求消息中携带有所述第一设 备的私有 DDD URL;
所述第一设备根据所述第一请求消息, 向所述第二设备发送第二私有信 息, 所述第二私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文 件的 URL, 以供所述第二设备根据所述私有 SCPD文件的 URL, 获取对应的 私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
所述第一设备根据所述控制指令, 向所述第二设备发送所述第一设备的 共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享 媒体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD文件调 用的指令。
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一私有信息为 所述第一设备的私有标识, 则所述第一设备将所述第一私有信息发送或显示 给第二设备, 以供所述第二设备获取所述第一私有信息, 并根据所述第一私 有信息获取所述第一设备的共享媒体内容, 包括:
所述第一设备将所述第一私有信息发送或显示给所述第二设备, 以供所 述第二设备根据所述第一设备的所述私有标识直接访问所述第一设备, 获取 所述第一设备的共享媒体内容。
5、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一私有信息包 括所述第一设备生成的密钥, 则所述第一设备将所述第一私有信息发送或显 示给第二设备, 以供所述第二设备获取所述第一私有信息, 并根据所述第一 私有信息获取所述第一设备的共享媒体内容, 包括:
所述第一设备将所述第一私有信息发送给所述第二设备, 并接收所述第 二设备发送的第一认证消息, 所述第一认证消息是所述第二设备根据所述密 钥加密的加密序列生成的;
所述第一设备根据所述密钥对所述第一认证消息进行解密, 获得所述加 密序列, 并根据所述加密序列在所述第一设备和所述第二设备之间建立安全 信道;
所述第一设备根据控制指令, 在所述安全信道中向所述第二设备发送所 述第一设备的共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列 表中获取共享媒体内容。
6、 根据权利要求 1至 7任一所述的方法, 其特征在于, 所述第一设备将 所述第一私有信息发送或显示给所述第二设备之后, 还包括:
所述第一设备获取所述第二设备发送或显示的所述第二设备的第一私有 信息。
7、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 所述第一设备 采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括:
所述第一设备接入无线局域网 WLAN, 并获取所述 WLAN的网络标识; 所述第一设备根据所述网络标识, 判断所述 WLAN是否为公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
8、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 所述第一设备 采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括:
所述第一设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第一设备根据所述网络标识, 判断所述第一设备是否首次接入所述 WLAN;
所述第一设备若根据所述网络标识,确定所述 WLAN为所述第一设备首 次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模 式;
所述第一设备在接收所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
9、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 所述第一设备 采用私有共享模式, 则获取与所述私有共享模式对应的第一私有信息之前, 所述方法还包括:
所述第一设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第一设备在接入点列表中査找是否存在所述网络标识以及所述网络 标识对应的无线接入点 AP的介质访问控制 MAC地址;
所述第一设备若在所述接入点列表中存在所述网络标识以及所述网络标 识对应的 AP的 MAC地址, 则采用所述私有共享模式。
10、 一种媒体内容的共享方法, 其特征在于, 包括:
第二设备获取第一设备发送或显示的第一私有信息; 其中, 所述第二设 备当前采用私有共享模式;
所述第二设备根据所述第一私有信息获取所述第一设备的共享媒体内
11、 根据权利要求 10所述的方法, 其特征在于, 所述第二设备获取第一 设备发送或显示的第一私有信息, 具体包括:
所述第二设备与所述第一设备建立 NFC信道, 并通过所述 NFC信道接 收所述第一设备发送的所述第一私有信息; 或者,
所述第二设备与所述第一设备组建蓝牙微微网, 并在所述蓝牙微微网中 接收所述第一设备发送的所述第一私有信息; 或者,
所述第二设备摄取所述第一设备显示的二维码图像, 获取所述第一设备 的所述第一私有信息; 其中, 所述二维码图像为所述第一设备将所述第一私 有信息进行编码生成的二维码图像; 或者,
所述第二设备接收所述第一设备传播的声波信号, 并对所述声波信号进 行解码获取所述第一设备的所述第一私有信息; 其中, 所述声波信号为所述 第一设备将所述第一私有信息进行编码生成的声波信号。
12、 根据权利要求 10或 11所述的方法, 其特征在于, 所述第一私有信 息包括所述第一设备的私有设备描述文件的统一资源定位符 DDD URL和所 述第一设备的私有通用唯一标识符 UUID, 则所述第二设备获取所述第一私 有信息, 并根据所述第一私有信息获取所述第一设备的共享媒体内容, 包括: 所述第二设备向所述第一设备发送第一请求消息, 所述第一请求消息中 携带有所述第一设备的私有 DDD URL;
所述第二设备接收所述第一设备发送的第二私有信息, 所述第二私有信 息包括所述第一设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述 私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文件的 URL; 所述第二设备根据所述私有 SCPD文件的 URL, 从所述第一设备中获取 对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体内容列 表;
所述第二设备从所述共享媒体内容列表中获取共向媒体内容。
13、 根据权利要求 10或 11所述的方法, 其特征在于, 所述第一私有信 息为所述第一设备的私有标识, 则所述第二设备获取所述第一私有信息, 并 根据所述第一私有信息获取所述第一设备的共享媒体内容, 包括:
所述第二设备获取所述第一设备发送的所述第一私有信息, 并根据所述 第一设备的所述私有本地域名直接访问所述第一设备, 获取所述第一设备的 共享媒体内容。
14、 根据权利要求 10或 11所述的方法, 其特征在于, 所述第一私有信 息包括所述第一设备生成的密钥, 则所述第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述第一设备的共享媒体内容, 包括:
所述第二设备获取所述第一设备发送或显示的所述第一私有信息, 并根 据所述密钥对加密序列进行加密生成第一认证消息;
所述第二设备将所述第一认证消息发送给所述第一设备, 以使所述第一 设备根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根 据所述加密序列与所述第二设备建立安全信道;
所述第二设备调用控制指令, 通过所述安全信道获取所述第一设备发送 所述第一设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享 媒体内容。
15、 根据权利要求 10至 14任一项所述的方法, 其特征在于, 所述第二 设备获取第一设备发送或显示的第一私有信息之后, 还包括:
所述第二设备向所述第一设备发送或显示所述第二设备的第一私有信 息。
16、 根据权利要求 10至 15任一项所述的方法, 其特征在于, 所述二设 备当前采用私有共享模式, 包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备根据所述网络标识, 确定所述 WLAN是否为公共网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
17、 根据权利要求 10至 15任一项所述的方法, 其特征在于, 所述二设 备当前采用私有共享模式, 还包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备根据所述网络标识, 确定所述第二设备是否首次接入所述 WLAN;
所述第二设备若根据所述网络标识, 确定所述第二设备首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
所述第二设备接收所述用户根据所述提示信息发送的选择信息, 在所述 选择信息包括私有共享模式时, 采用所述私有共享模式。
18、 根据权利要求 10至 15任一项所述的方法, 其特征在于, 所述二设 备当前采用私有共享模式, 还包括:
所述第二设备接入 WLAN, 并获取所述 WLAN的网络标识;
所述第二设备在接入点列表中査找是否存在所述网络标识以及所述网络 标识对应的无线接入点 AP的介质访问控制 MAC地址;
所述第二设备若在所述接入点列表中存在所述网络标识以及所述网络标 识对应的无线接入点 AP的 MAC地址, 则采用所述私有共享模式。
19、 一种媒体内容的共享装置, 其特征在于, 包括:
处理模块, 用于当所述媒体内容的共享装置采用私有共享模式时, 获取 与所述私有共享模式对应的第一私有信息;
收发模块, 用于将所述第一私有信息发送或显示给第二设备, 以供所述 第二设备获取所述第一私有信息, 并根据所述第一私有信息获取所述媒体内 容的共享装置的共享媒体内容。
20、 根据权利要求 19所述的装置, 其特征在于, 所述收发模块包括: 近场通信单元, 用于与所述第二设备建立 NFC信道, 并通过所述 NFC 信道将所述第一私有信息发送给所述第二设备; 或者,
蓝牙处理单元, 用于与所述第二设备组建蓝牙微微网, 并在所述蓝牙微 微网中将所述第一私有信息发送给所述第二设备; 或者,
图像编码单元, 用于将所述第一私有信息进行编码, 生成二维码图像, 并对所述二维码图像形式的所述第一私有信息进行显示, 以供所述第二设备 摄取所述二维码图像, 获取所述第一私有信息; 或者,
声波编码单元, 用于将所述第一私有信息进行编码生成声波信号, 并对 所述声波信号进行传播, 以供所述第二设备通过麦克风接收所述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
21、 根据权利要求 19或 20所述的装置, 其特征在于, 所述第一私有信 息为所述媒体内容的共享装置的私有设备描述文件的统一资源定位符 DDD URL和所述媒体内容的共享装置的私有通用唯一标识符 UUID, 则所述收发 模块具体用于:
将所述第一私有信息发送或显示给所述第二设备, 并接收所述第二设备 发送的第一请求消息, 所述第一请求消息中携带有所述媒体内容的共享装置 的私有 DDD URL;
根据所述第一请求消息, 向所述第二设备发送第二私有信息, 所述第二 私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述媒体内容的共享装置的私有服务控制协议描述 SCPD 文件的 URL, 以供所述第二设备根据所述私有 SCPD文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述第二设备发送所述媒体内容的共享装置的共 享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享媒 体内容; 其中, 所述控制指令为所述第二设备根据所述私有 SCPD文件调用 的指令。
22、 根据权利要求 19或 20所述的装置, 其特征在于, 所述第一私有信 息为所述媒体内容的共享装的私有标识, 则所述收发模块具体用于:
将所述第一私有信息发送或显示给所述第二设备, 以供所述第二设备根 据所述媒体内容的共享装置的所述私有标识直接访问所述媒体内容的共享装 置, 获取所述媒体内容的共享装置的共享媒体内容。
23、 根据权利要求 19或 20所述的装置, 其特征在于, 所述第一私有信 息包括所述媒体内容的共享装的私有标识, 则所述收发模块具体用于:
将所述第一私有信息发送给所述第二设备, 并接收所述第二设备发送的 第一认证消息, 所述第一认证消息是所述第二设备根据所述密钥加密的加密 序列生成的;
根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根 据所述加密序列在所述第一设备和所述第二设备之间建立安全信道;
根据控制指令, 在所述安全信道中向所述第二设备发送所述第一设备的 共享媒体内容列表, 以供所述第二设备从所述共享媒体内容列表中获取共享 媒体内容。
24、 根据权利要求 19至 23任一项所述的装置, 其特征在于, 所述收发 模块还用于接收所述第二设备发送的第二设备的第一私有信息。
25、 根据权利要求 19至 24任一项所述的装置, 其特征在于, 还包括: 第一获取模块, 用于在所述媒体内容的共享装置接入无线局域网 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块还用于根据所述网络标识,确定所述 WLAN是否为公共 网络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
26、 根据权利要求 19至 24任一项所述的装置, 其特征在于, 还包括: 第二获取模块, 用于在所述媒体内容的共享装置接入 WLAN 时, 获取所述 WLAN的网络标识;
则所述处理模块还用于根据所述网络标识, 确定所述媒体内容的共享装 置是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述媒体内容的共享装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
在所述收发模块接收所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
27、 根据权利要求 19至 24任一项所述的装置, 其特征在于, 还包括: 第三获取模块, 用于在所述媒体内容的共享装置接入 WLAN 时, 获取所述 WLAN的网络标识;
则所述处理模块还用于在接入点列表中査找是否存在所述网络标识以及 所述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
28、 一种媒体内容的共享装置, 其特征在于, 包括:
收发模块, 用于获取第一设备发送的第一私有信息; 其中, 所述媒体内 容的共享装置当前采用私有共享模式;
处理模块, 用于根据所述第一私有信息获取所述第一设备的共享媒体内
29、 根据权利要求 28所述的装置, 其特征在于, 所述收发模块包括: 近场通信单元, 用于与所述第一设备建立所述 NFC 信道, 并通过所述 NFC信道接收所述第一设备发送的所述第一私有信息; 或者,
蓝牙处理单元, 用于与所述第一设备组建蓝牙微微网, 并在所述蓝牙微 微网中接收所述第一设备发送的所述第一私有信息; 或者,
图像处理单元, 用于摄取所述第一设备显示的二维码图像, 获取所述第 一设备的所述第一私有信息; 其中, 所述二维码图像为所述第一设备将所述 第一私有信息进行编码生成的二维码图像; 或者,
声波处理单元, 用于通过麦克风接收所述第一设备传播的声波信号, 并 对所述声波信号进行解码获取所述第一设备的所述第一私有信息; 其中, 所 述声波信号为所述第一设备将所述第一私有信息进行编码生成的声波信号。
30、 根据权利要求 28或 29所述的装置, 其特征在于, 所述第一私有信 息为所述第一设备的私有设备描述文件的统一资源定位符 DDD URL和所述 第一设备的私有通用唯一标识符 UUID, 则所述收发模块用于向所述第一设 备发送第一请求消息,所述第一请求消息中携带有所述第一设备的私有 DDD URL; 所述收发模块用于接收所述第一设备发送的第二私有信息, 所述第二 私有信息包括所述第一设备的私有 DDD URL 对应的私有设备描述文件 DDD, 所述私有 DDD包括所述第一设备的私有服务控制协议描述 SCPD文 件的 URL;
所述处理模块用于根据所述私有 SCPD文件的 URL, 从所述第一设备中 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指 令, 以供所述第一设备根据所述控制指令发送所述第一设备的共享媒体内容 列表; 所述处理模块还用于从所述共享媒体内容列表中获取共向媒体内容。
31、 根据权利要求 28或 29所述的装置, 其特征在于, 所述第一私有信 息为所述第一设备的私有标识, 则所述收发模块用于接收所述第一设备发送 的所述第一私有信息, 所述处理模块根据所述第一设备的所述私有标识直接 访问所述第一设备, 获取所述第一设备的共享媒体内容。
32、 根据权利要求 28或 29所述的装置, 其特征在于, 所述第一私有信 息包括所述第一设备生成的密钥, 则所述收发模块用于:
获取所述第一设备发送或显示的所述第一私有信息, 并根据所述密钥对 加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述第一设备, 以使所述第一设备根据所述 密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所述加密序 列与所述第二设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述第一设备发送所述第一设备 的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体内容。
33、 根据权利要求 28至 32任一项所述的装置, 其特征在于, 所述收发 模块还用于向所述第一设备发送所述媒体内容的共享装置的第一私有信息。
34、 根据权利要求 28至 33任一项所述的装置, 其特征在于, 还包括: 第一获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于根据所述网络标识,确定所述 WLAN是否为公共网 络; 若所述 WLAN为公共网络, 则采用所述私有共享模式。
35、 根据权利要求 28至 33任一项所述的装置, 其特征在于, 还包括: 第二获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于根据所述网络标识, 确定所述媒体内容的共享装置 是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述媒体内容的共享 装置首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有 共享模式;在所述收发模块接收所述用户根据所述提示信息发送的选择信息, 在所述选择信息包括私有共享模式时, 采用所述私有共享模式。
36、 根据权利要求 28至 33任一项所述的装置, 其特征在于, 还包括: 第三获取模块, 用于接入 WLAN时, 获取所述 WLAN的网络标识;
则所述处理模块用于在接入点列表中査找是否存在所述网络标识以及所 述网络标识对应的无线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
37、 一种终端设备, 其特征在于, 包括:
处理器, 用于将所述终端设备设置为私有共享模式, 并获取与所述私有 共享模式对应的第一私有信息;
收发模块, 用于将所述第一私有信息发送或显示给另一终端设备, 以供 所述另一终端设备获取所述第一私有信息, 并根据所述第一私有信息获取所 述终端设备的共享媒体内容。
38、 根据权利要求 37所述的终端设备, 其特征在于, 所述收发模块具体 包括:
近场通信 NFC发射器, 用于与所述另一终端设备建立 NFC信道, 并通 过所述 NFC信道将所述第一私有信息发送给所述另一终端设备; 或者,
蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中将所述第一私有信息发送给所述另一终端设备; 或者, 图像编码器, 用于将所述第一私有信息进行编码, 生成二维码图像, 并 通过显示器对所述二维码图像形式对应的所述第一私有信息进行显示, 以供 所述另一终端设备摄取所述二维码图像, 获取所述第一私有信息; 或者, 声音编码器, 用于将所述第一私有信息进行编码生成声波信号, 并通过 扬声器对所述声波信号进行传播, 以供所述另一终端设备通过麦克风接收所 述声波信号, 并对所述声波信号进行解码获取所述第一私有信息。
39、 根据权利要求 37或 38所述的终端设备, 其特征在于, 所述第一私 有信息包括所述终端设备的私有设备描述文件的统一资源定位符 DDD URL 和所述终端设备的私有通用唯一标识符 UUID, 则所述收发模块具体用于: 将所述第一私有信息发送或显示给所述另一终端设备, 并接收所述另一 终端设备发送的第一请求消息, 所述第一请求消息中携带有所述终端设备的 私有 DDD URL;
根据所述第一请求消息, 向所述另一终端设备发送第二私有信息, 所述 第二私有信息包括所述私有 DDD URL对应的私有设备描述文件 DDD, 所述 私有 DDD包括所述终端设备的私有服务控制协议描述 SCPD文件的 URL, 以供所述另一终端设备根据所述私有 SCPD 文件的 URL, 获取对应的私有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令;
根据所述控制指令, 向所述另一终端设备发送所述终端设备的共享媒体 内容列表, 以供所述另一终端设备从所述共享媒体内容列表中获取共享媒体 内容; 其中, 所述控制指令为所述另一终端设备根据所述私有 SCPD文件调 用的指令。
40、 根据权利要求 37或 38所述的终端设备, 其特征在于, 所述第一私 有信息为所述终端设备的私有标识, 则所述收发模块具体用于:
将所述第一私有信息发送或显示给所述另一终端设备, 以供所述另一终 端设备根据所述终端设备的所述私有标识直接访问所述终端设备, 获取所述 终端设备的共享媒体内容。
41、 根据权利要求 37或 38所述的终端设备, 其特征在于, 所述第一私 有信息包括所述终端设备生成的密钥, 则所述收发模块用于将所述第一私有 信息发送给所述另一终端设备, 并接收所述另一终端设备发送的第一认证消 息, 所述第一认证消息是所述另一终端设备根据所述密钥加密的加密序列生 成的;
所述处理器用于根据所述密钥对所述第一认证消息进行解密, 获得所述 加密序列, 并根据所述加密序列在所述终端设备和所述另一终端设备之间建 立安全信道;
所述收发模块还用于根据控制指令, 在所述安全信道中向所述另一终端 设备发送所述终端设备的共享媒体内容列表, 以供所述另一终端设备从所述 共享媒体内容列表中获取共享媒体内容。
42、 根据权利要求 37至 41任一所述的终端设备, 其特征在于, 所述收 发模块还用于获取所述另一终端设备发送或显示的所述另一终端设备的第一 私有信息。
43、 根据权利要求 37至 42任一项所述的终端设备, 其特征在于, 所述 处理器还用于:
接入无线局域网 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
44、 根据权利要求 37至 42任一项所述的终端设备, 其特征在于, 所述 处理器还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 判断所述终端设备是否首次接入所述 WLAN;
若根据所述网络标识, 确定所述 WLAN 为所述终端设备首次接入所述 WLAN, 则生成提示信息, 以提示所述用户是否选择私有共享模式;
在所述收发模块接收到所述用户根据所述提示信息发送的选择信息, 在 所述选择信息包括私有共享模式时, 采用所述私有共享模式。
45、 根据权利要求 37至 42任一项所述的终端设备, 其特征在于, 所述 处理器还用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的 AP 的 MAC地址, 则采用所述私有共享模式。
46、 一种终端设备, 其特征在于, 包括:
收发模块, 用于获取另一终端设备发送或显示的第一私有信息; 处理器, 用于将所述终端设备当前设置为私有共享模式;
所述收发模块还用于根据所述第一私有信息获取所述另一终端设备的共 享媒体内容。
47、根据权利要求 46所述的终端设备,其特征在于,所述收发模块包括: 近场通信 NFC发射器, 用于与所述另一终端设备建立 NFC信道, 并通 过所述 NFC信道接收所述另一终端设备发送的所述第一私有信息; 或者, 蓝牙发射器, 用于与所述另一终端设备组建蓝牙微微网, 并在所述蓝牙 微微网中接收所述另一终端设备发送的所述第一私有信息; 或者,
摄像头, 用于摄取所述另一终端设备显示的二维码图像, 获取所述另一 终端设备的所述第一私有信息; 其中, 所述二维码图像为所述另一终端设备 将所述第一私有信息进行编码生成的二维码图像; 或者,
声波解码器, 用于通过声音采集模块接收所述另一终端设备传播的声波 信号, 并对所述声波信号进行解码获取所述另一终端设备的所述第一私有信 息; 其中, 所述声波信号为所述另一终端设备将所述第一私有信息进行编码 生成的声波信号。
48、 根据权利要求 46或 47所述的终端设备, 其特征在于, 所述第一私 有信息包括所述另一终端设备的私有设备描述文件的统一资源定位符 DDD
URL和所述另一终端设备的私有通用唯一标识符 UUID, 则所述收发模块具 体用于:
向所述另一终端设备发送第一请求消息, 所述第一请求消息中携带有所 述另一终端设备的私有 DDD URL;
接收所述另一终端设备发送的第二私有信息, 所述第二私有信息包括所 述另一终端设备的私有 DDD URL对应的私有设备描述文件 DDD, 所述私有 DDD包括所述另一终端设备的私有服务控制协议描述 SCPD文件的 URL; 根据所述私有 SCPD文件的 URL, 从所述另一终端设备中获取对应的私 有 SCPD文件, 并根据所述私有 SCPD文件调用对应的控制指令, 以供所述 另一终端设备根据所述控制指令发送所述另一终端设备的共享媒体内容列 表;
从所述共享媒体内容列表中获取共向媒体内容。
49、 根据权利要求 46或 47所述的终端设备, 其特征在于, 所述第一私 有信息为所述另一终端设备的私有标识, 则所述收发模块具体用于:
获取所述另一终端设备发送的所述第一私有信息, 并根据所述另一终端 设备的所述私有本地域名直接访问所述另一终端设备, 获取所述另一终端设 备的共享媒体内容。
50、 根据权利要求 46或 47所述的终端设备, 其特征在于, 所述第一私 有信息包括所述另一终端设备生成的密钥, 则所述收发模块具体用于:
获取所述另一终端设备发送或显示的所述第一私有信息, 并根据所述密 钥对加密序列进行加密生成第一认证消息;
将所述第一认证消息发送给所述另一终端设备, 以使所述另一终端设备 根据所述密钥对所述第一认证消息进行解密, 获得所述加密序列, 并根据所 述加密序列与所述终端设备建立安全信道;
调用控制指令, 通过所述安全信道获取所述另一终端设备发送所述另一 终端设备的共享媒体内容列表, 并从所述共享媒体内容列表中获取共享媒体 内容。
51、 根据权利要求 46至 50任一项所述的终端设备, 其特征在于, 所述 收发模块还用于向所述另一终端设备发送或显示所述终端设备的第一私有信 息。
52、 根据权利要求 46至 51任一项所述的终端设备, 其特征在于, 所述 处理器具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述 WLAN是否为公共网络;
若所述 WLAN为公共网络, 则采用所述私有共享模式。
53、 根据权利要求 46至 51任一项所述的终端设备, 其特征在于, 所述 处理器具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
根据所述网络标识, 确定所述终端设备是否首次接入所述 WLAN; 若根据所述网络标识, 确定所述终端设备首次接入所述 WLAN, 则生成 提示信息, 以提示所述用户是否选择私有共享模式;
所述收发模块接收到所述用户根据所述提示信息发送的选择信息, 在所 述选择信息包括私有共享模式时, 采用所述私有共享模式。
54、 根据权利要求 46至 51任一项所述的终端设备, 其特征在于, 所述 处理器具体用于:
接入 WLAN, 并获取所述 WLAN的网络标识;
在接入点列表中査找是否存在所述网络标识以及所述网络标识对应的无 线接入点 AP的介质访问控制 MAC地址;
若在所述接入点列表中存在所述网络标识以及所述网络标识对应的无线 接入点 AP的 MAC地址, 则采用所述私有共享模式。
PCT/CN2014/078830 2014-05-29 2014-05-29 媒体内容的共享方法及装置 Ceased WO2015180108A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP14893434.2A EP3139563B1 (en) 2014-05-29 2014-05-29 Media content sharing method and apparatus
CN201480075923.1A CN106031121B (zh) 2014-05-29 2014-05-29 媒体内容的共享方法及装置
PCT/CN2014/078830 WO2015180108A1 (zh) 2014-05-29 2014-05-29 媒体内容的共享方法及装置
US15/314,453 US10547993B2 (en) 2014-05-29 2014-05-29 Media content sharing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/078830 WO2015180108A1 (zh) 2014-05-29 2014-05-29 媒体内容的共享方法及装置

Publications (1)

Publication Number Publication Date
WO2015180108A1 true WO2015180108A1 (zh) 2015-12-03

Family

ID=54697887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078830 Ceased WO2015180108A1 (zh) 2014-05-29 2014-05-29 媒体内容的共享方法及装置

Country Status (4)

Country Link
US (1) US10547993B2 (zh)
EP (1) EP3139563B1 (zh)
CN (1) CN106031121B (zh)
WO (1) WO2015180108A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022083589A1 (zh) * 2020-10-20 2022-04-28 北京字节跳动网络技术有限公司 终端的控制方法、装置、终端和存储介质
WO2024012344A1 (zh) * 2022-07-14 2024-01-18 华为技术有限公司 投屏方法和电子设备
CN118947100A (zh) * 2022-04-02 2024-11-12 Oppo广东移动通信有限公司 设备分享方法、装置、设备、存储介质及程序产品

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11074618B2 (en) * 2013-06-13 2021-07-27 Blackberry Limited Method and apparatus pertaining to history-based content-sharing recommendations
JP2017526291A (ja) 2014-08-21 2017-09-07 華為技術有限公司Huawei Technologies Co.,Ltd. 無線ネットワークアクセス制御方法、装置、およびシステム
US10003964B1 (en) * 2015-04-14 2018-06-19 Acronis International Gmbh Method for sending secret messages between mobile devices
CN106162827A (zh) * 2016-08-16 2016-11-23 Tcl移动通信科技(宁波)有限公司 一种基于移动终端的网络接入点存储处理方法及系统
US10672066B2 (en) * 2017-02-23 2020-06-02 Wesley John Boudville Digital assistant interacting with mobile devices
CN108133161A (zh) * 2017-12-25 2018-06-08 横琴国际知识产权交易中心有限公司 一种移动终端读取数据信息的方法及系统
CN110473599B (zh) * 2018-05-09 2022-11-29 上海商汤智能科技有限公司 信息处理方法及装置、电子设备及存储介质
US11200896B2 (en) * 2019-09-03 2021-12-14 Bose Corporation Multi-home shared media
US11899757B2 (en) * 2019-12-02 2024-02-13 Cox Automotive, Inc. Systems and methods for temporary digital content sharing
KR102830396B1 (ko) * 2020-01-16 2025-07-07 삼성전자주식회사 모바일 디바이스 및 그 동작 방법
JP7527866B2 (ja) * 2020-07-01 2024-08-05 キヤノン株式会社 プログラム、情報処理装置及び制御方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060797A1 (en) * 2009-09-08 2011-03-10 Nokia Corporation Method and apparatus for selective sharing of semantic information sets
CN102571776A (zh) * 2011-12-28 2012-07-11 中兴通讯股份有限公司 数字生活网络联盟设备的接入控制方法及装置
CN102789463A (zh) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 电子设备间数据分享方法和电子设备

Family Cites Families (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345882B2 (en) * 2003-11-11 2013-01-01 Siemens Aktiengesellschaft Method for safeguarding data traffic between a first terminal and a first network and a second terminal and a second network
CN1798048A (zh) 2004-12-29 2006-07-05 国际商业机器公司 用于内容信息共享的方法和装置
US7654455B1 (en) * 2005-06-03 2010-02-02 Hewlett-Packard Development Company, L.P. Method and apparatus for achieving a tailored content response based upon a product identifier combined with a user identifier and a device identifier
KR100736046B1 (ko) * 2005-09-07 2007-07-06 삼성전자주식회사 기접속 기록을 사용하여 안정적인 액세스 포인트에결합하도록 가이드하는 방법 및 장치
WO2009014734A2 (en) * 2007-07-23 2009-01-29 Intertrust Technologies Corporation Tethered device systems and methods
US8495375B2 (en) * 2007-12-21 2013-07-23 Research In Motion Limited Methods and systems for secure channel initialization
JP4670950B2 (ja) * 2008-12-09 2011-04-13 ソニー株式会社 通信装置、通信方法、及びプログラム
US8151336B2 (en) * 2008-12-10 2012-04-03 At&T Intellectual Property Ii, Lp Devices and methods for secure internet transactions
JP2011109290A (ja) * 2009-11-16 2011-06-02 Hitachi Plant Technologies Ltd 無線送受信装置及び移動体管理システム
JP5840138B2 (ja) * 2009-11-25 2016-01-06 アクララ・テクノロジーズ・リミテッド・ライアビリティ・カンパニーAclara Technologies LLC. 暗号法的に安全な認証装置、システム及び方法
CN102081727B (zh) * 2009-11-30 2014-04-30 中兴通讯股份有限公司 一种射频识别安全认证方法及系统
EP2525604B1 (en) * 2010-01-14 2016-04-06 France Brevets Electronic device and operating method thereof
JP5587034B2 (ja) * 2010-05-27 2014-09-10 キヤノン株式会社 サービス公開装置、方法、及び、プログラム
CN101959321B (zh) * 2010-09-17 2014-03-19 惠州Tcl移动通信有限公司 一种基于手机wifi的情景模式切换方法及手机
JP5700128B2 (ja) * 2011-07-27 2015-04-15 富士通株式会社 暗号化処理装置および認証方法
CN102510371B (zh) 2011-09-30 2017-12-22 中兴通讯股份有限公司 一种控制数字移动网络联盟内容的方法及装置
KR101796975B1 (ko) 2011-09-30 2017-11-14 삼성전자주식회사 디엘엔에이 네트워크를 공유하는 시스템
CN103108326A (zh) 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 一种建立会话关系的方法、装置和系统
CN102665211B (zh) 2011-12-16 2017-11-07 中兴通讯股份有限公司 一种数字移动网络联盟权限控制方法及装置
CN103248616A (zh) 2012-02-14 2013-08-14 中兴通讯股份有限公司 Dlna网络中进行身份验证的方法及装置、系统
CN103384232B (zh) 2012-05-02 2016-08-24 华为终端有限公司 身份认证的方法及装置
JP5963528B2 (ja) * 2012-05-07 2016-08-03 キヤノン株式会社 通信装置およびその制御方法
KR101979380B1 (ko) * 2012-08-24 2019-05-17 삼성전자주식회사 전자 기기의 콘텐트 공유 방법 및 그 전자 기기
US9717005B2 (en) * 2012-11-21 2017-07-25 Empire Technology Development Llc Schemes for connecting to wireless network
JP2014121034A (ja) * 2012-12-19 2014-06-30 Konica Minolta Inc 端末装置、メール送信システム、および制御プログラム
US20150365375A1 (en) * 2013-01-31 2015-12-17 Nokia Technologies Oy Delivery of a media item
JP6323811B2 (ja) * 2013-03-15 2018-05-16 パナソニックIpマネジメント株式会社 コンテンツ配信方法及びソース機器
JP6157222B2 (ja) * 2013-05-30 2017-07-05 キヤノン株式会社 通信装置、制御方法、及びプログラム
JP2015001784A (ja) * 2013-06-13 2015-01-05 富士通株式会社 情報処理システム、情報処理装置、及び情報処理プログラム
JP6248527B2 (ja) * 2013-10-10 2017-12-20 富士通株式会社 無線通信装置、無線通信方法および無線通信プログラム
JP6400715B2 (ja) * 2014-01-14 2018-10-03 エルジー エレクトロニクス インコーポレイティド ネットワークにより連結された放送受信デバイスと他のデバイス間の連結を管理する方法及び装置
US20150312622A1 (en) * 2014-04-25 2015-10-29 Sony Corporation Proximity detection of candidate companion display device in same room as primary display using upnp
US9439131B2 (en) * 2014-05-13 2016-09-06 Adtran, Inc. Detecting and disabling rogue access points in a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060797A1 (en) * 2009-09-08 2011-03-10 Nokia Corporation Method and apparatus for selective sharing of semantic information sets
CN102789463A (zh) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 电子设备间数据分享方法和电子设备
CN102571776A (zh) * 2011-12-28 2012-07-11 中兴通讯股份有限公司 数字生活网络联盟设备的接入控制方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3139563A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022083589A1 (zh) * 2020-10-20 2022-04-28 北京字节跳动网络技术有限公司 终端的控制方法、装置、终端和存储介质
CN118947100A (zh) * 2022-04-02 2024-11-12 Oppo广东移动通信有限公司 设备分享方法、装置、设备、存储介质及程序产品
WO2024012344A1 (zh) * 2022-07-14 2024-01-18 华为技术有限公司 投屏方法和电子设备

Also Published As

Publication number Publication date
CN106031121B (zh) 2020-09-08
EP3139563A4 (en) 2017-03-15
CN106031121A (zh) 2016-10-12
US10547993B2 (en) 2020-01-28
EP3139563A1 (en) 2017-03-08
US20170201852A1 (en) 2017-07-13
EP3139563B1 (en) 2020-02-19

Similar Documents

Publication Publication Date Title
CN106031121B (zh) 媒体内容的共享方法及装置
CN103888324B (zh) 电子装置、个人云设备和系统以及注册个人云设备的方法
US10425454B2 (en) Device and method for transferring the rendering of multimedia content
JP6036814B2 (ja) 無線通信装置、情報処理装置および通信方法
CN103858406B (zh) 媒体数据传输方法及设备
CN110312160A (zh) 无线投屏方法、装置、智能平板、终端及系统
US20160165663A1 (en) Secure connected device control and monitoring system
CN118921234A (zh) 附件通信控制
WO2022143071A1 (zh) 连接建立方法及电子设备
CN104378801A (zh) 接入无线网络的方法及装置
KR20140126641A (ko) 전자 기기 및 이의 개인 클라우드 기기 등록 방법
CN102057716A (zh) 接入点
JP2009543446A (ja) 移動電話及びヘッドセットを用いるマルチメディアネットワーキングのためのシステム及び方法
CN103004186B (zh) 在计算机设备之间配置高清晰度视频电话的装置和方法
EP2263361A1 (en) Service delivery to a consumer electronic device using a mobile communication unit for access and service control
WO2012103721A1 (zh) 终端访问数字家庭设备的方法和设备
KR101741229B1 (ko) 멀티서비스를 위한 홈 클라우드 게이트웨이 장치 및 서비스 제공 방법
KR20120083869A (ko) 홈 네트워크를 이용한 통화 방법 및 장치
CN113301563A (zh) 网络配置方法、装置、设备和存储介质
CN104871481A (zh) 用于本地网络设备的基于云的功率管理的方法和装置
CN108881162B (zh) 传输视听数据的方法以及相应的设备
JP2007174536A (ja) 無線制御端末、無線通信システムおよび無線通信方法
KR101834547B1 (ko) 멀티서비스를 위한 홈 클라우드 게이트웨이 장치 및 서비스 제공 방법
KR101262122B1 (ko) 웹콘텐츠를 UPnP 장치에 제공하기 위한 미디에이션 방법 및 서버
JP2013172274A (ja) 情報変更方法及びネットワークシステム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14893434

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15314453

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014893434

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014893434

Country of ref document: EP