WO2016070414A1 - 媒体资源共享方法及设备 - Google Patents

媒体资源共享方法及设备 Download PDF

Info

Publication number
WO2016070414A1
WO2016070414A1 PCT/CN2014/090597 CN2014090597W WO2016070414A1 WO 2016070414 A1 WO2016070414 A1 WO 2016070414A1 CN 2014090597 W CN2014090597 W CN 2014090597W WO 2016070414 A1 WO2016070414 A1 WO 2016070414A1
Authority
WO
WIPO (PCT)
Prior art keywords
verification information
source device
user
fingerprint
fingerprint image
Prior art date
Application number
PCT/CN2014/090597
Other languages
English (en)
French (fr)
Inventor
匡运生
单振威
朱萸
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US15/525,022 priority Critical patent/US20180335926A1/en
Priority to PCT/CN2014/090597 priority patent/WO2016070414A1/zh
Priority to CN201480066736.7A priority patent/CN105814904B/zh
Publication of WO2016070414A1 publication Critical patent/WO2016070414A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1347Preprocessing; Feature extraction
    • G06V40/1359Extracting features related to ridge properties; Determining the fingerprint type, e.g. whorl or loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42224Touch pad or touch panel provided on the remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4367Establishing a secure communication between the client and a peripheral device or smart card
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/441Acquiring end-user identification, e.g. using personal code sent by the remote control or by inserting a card
    • H04N21/4415Acquiring end-user identification, e.g. using personal code sent by the remote control or by inserting a card using biometric characteristics of the user, e.g. by voice recognition or fingerprint scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a media resource sharing method and device.
  • Media sharing is an important application for mobile electronic devices, especially in home networks.
  • the digital media transmission and sharing solutions that are currently on the market are manually transmitted and shared by users.
  • the source device that provides the media content and the sink device that receives and plays the media content must access the same local area network (LAN) through wired or wireless access to ensure that the two devices can establish a connection. And complete the transmission of media data.
  • LAN local area network
  • DLNA Digital Living Network Alliance
  • the user opens the DLNA application and clicks the "peripheral device” button to search for the source device in the same local area network;
  • the system displays all the source devices in the surrounding area to the user, and the user selects the required devices from the list of peripheral devices. Assume that a total of two peripheral devices are searched for, and the user clicks to select the device identifier as "[Mobile]GT-N7000".
  • Source device
  • the system displays the list of media content shared by the source device "[Mobile]GT-N7000" to the user;
  • the user selects the media content to be played from the media content list, and assumes that the user clicks on the media content whose media name is "GALAXY_Note_Tutorial";
  • the playback device plays the media content named "GALAXY_Note_Tutorial”.
  • the default device identifier of the system is generally the device model and design.
  • a Universally Unique Identifier (UUID)
  • IP Device Internet Protocol
  • MAC Media Access Control
  • the system identifies the device by its device model. If there are two devices of the same model in the LAN, it will be difficult for the user to distinguish between the two devices.
  • the existing media sharing mode is cumbersome to operate and the user experience is poor.
  • the embodiments of the present invention provide a media resource sharing method and device, which are used to simplify the process of implementing media sharing.
  • a method for sharing a media resource including:
  • the source device determines the media resource selected by the user, and generates first verification information according to the user operation, and receives the second verification information sent by the playback device and the identifier of the playback device.
  • the source device determines that the source device and the playback device are successfully paired according to the first verification information and the second verification information, and sends the media resource to the playback device according to the identifier of the playback device. And playing the address information of the media resource to the playing device according to the identifier of the playing device, and the playing device obtains the media resource according to the address information of the media resource and plays the same.
  • the source device generates the first verification information according to the user operation
  • the playback device generates the second verification information according to the user operation
  • the source device compares the second verification information sent by the playback device with the first verification information generated by the user.
  • the shared media resource or the address information of the media resource is sent to the playback device, and the user only needs to perform an operation on the playback device and the source device of the shared media resource to complete the media resource.
  • the sharing process simplifies the number of user operations in the process of sharing media resources, and reduces the difficulty of sharing media resources. degree.
  • the source device determines a media resource selected by a user, and generates first verification information according to a user operation, and receives second verification information sent by the playback device and the playback device.
  • logo including:
  • the device After the source device determines the media resource selected by the user and generates the first verification information according to the user operation, the device sends a pairing request message to the playing device, where the pairing request message includes the identifier of the source device, and receives the playing.
  • the pairing response message returned by the device according to the pairing request message, where the pairing response message carries the second verification information and the identifier of the playing device;
  • the source device After receiving the pairing notification message sent by the playing device, the source device determines the media resource selected by the user, and generates the first verification information according to the user operation, where the pairing notification message includes the second verification information and the The identifier of the playback device;
  • the source device determines the media resource selected by the user and generates the first verification information according to the user operation, receiving a pairing notification message sent by the playback device, where the pairing notification message includes the second verification information and the The identifier of the playback device.
  • the playing device is received within a set time period.
  • the pairing response message returned according to the pairing request message
  • the source device After receiving the pairing notification message sent by the playing device, the source device determines a media resource selected by the user within a set time period, and generates the first verification information according to a user operation;
  • the source device After the source device determines the media resource selected by the user and generates the first verification information according to the user operation, the source device receives the pairing notification message sent by the playback device within a set duration.
  • the method further includes:
  • the source device displays a list of shared media resources
  • the method further includes:
  • the source device determines that a list of shared media resources is currently displayed.
  • the source device generates the first verification information according to a user operation, including:
  • the source device generates the first verification information according to the collected sound information input by the user;
  • the source device generates the first verification information according to the collected sliding track on the screen
  • the source device generates the first verification information according to the collected touch operation of the user at the first position of the screen;
  • the source device generates the first verification information according to the collected fingerprint image.
  • the source device In combination with the first possible implementation of the first aspect to the third possible implementation, in a fifth possible implementation, the source device generates first verification information according to a user operation, including :
  • the source device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracts a fingerprint local feature point in all or a predetermined sub-region of the corrected fingerprint image, according to the extracted local feature of the fingerprint. Point generating the first verification information;
  • the source device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a local feature point of the fingerprint in at least one sub-region of the corrected fingerprint image, according to the extracted local feature point of the fingerprint Generating the first verification information, and carrying the location information of the at least one sub-area in the pairing request message;
  • the pairing notification message carries the second verification information generated by the playback device.
  • Position information of the sub-area of the fingerprint image the source device collects the fingerprint image input by the user and performs direction field correction on the collected fingerprint image, and the position information of the sub-area in the corrected fingerprint image
  • the determined sub-region extracts a fingerprint local feature point, and generates the first verification information according to the extracted fingerprint local feature point.
  • the second aspect provides a media resource sharing method, including:
  • the playing device generates second verification information according to a user operation
  • the playing device sends the second verification information and the identifier of the playing device to the source device;
  • the playback device receives the media resource returned by the source device according to the identifier of the playback device, or receives the address information of the media resource returned by the source device according to the identifier of the playback device, according to the media resource. Address information to obtain media resources and play;
  • the source information or the address information of the media resource is determined by the source device according to the second verification information and the first verification information generated by the user according to the user operation, and the source device and the playback device are successfully matched and returned.
  • the playing device sends the second verification information and the identifier of the playback device to the source device, including:
  • the playing device receives the pairing request message sent by the source device, where the pairing request message is sent after the source device determines the media resource and generates the first verification information, where the pairing request message includes the
  • the identifier of the source device returns a pairing response message to the source device according to the identifier of the source device, where the pairing response message carries the second verification information and the identifier of the playback device;
  • the playing device sends a pairing notification message to the source device, where the pairing notification message includes the second verification information and the identifier of the playing device.
  • the playing device generates the second verification information according to the user operation, including:
  • the playing device generates the second verification information according to the collected sound information input by the user;
  • the playing device generates the second verification information according to the collected sliding track on the screen
  • the playing device generates the second verification information according to a touch operation of the user at the second position of the screen;
  • the playing device generates the second verification information according to the collected fingerprint image.
  • the playing device generates the second verification information according to the user operation, including:
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a local feature point of the fingerprint in the agreed sub-region in the corrected fingerprint image, according to all or part of the extracted fingerprint Generating the second verification information by the local feature point;
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the source device, and the playback device collects the fingerprint image input by the user and collects the fingerprint image.
  • the fingerprint local feature points are extracted in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and the second verification is generated according to all or part of the extracted fingerprint local feature points.
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a fingerprint local feature point in at least one sub-region of the corrected fingerprint image, according to all or part of the extracted fingerprint
  • the local feature point generates the second verification information, and carries the location information of the at least one sub-area in the pairing notification message.
  • the third aspect provides a media resource sharing method, which is characterized by:
  • the playing device generates the first verification information according to the user operation, and receives the second verification information sent by the source device and the address information of the media resource selected by the user, where the second verification information is generated by the source device according to the user operation;
  • the playing device determines the source device according to the first verification information and the second verification information
  • the device is successfully paired with the playback device, and the media resource is obtained and played according to the address information of the media resource.
  • the playback device generates the first verification information according to the user operation
  • the source device generates the second verification information according to the user operation
  • the playback device compares the second verification information sent by the source device with the first verification information generated by the source device.
  • the source device requests the shared media resource, and the source device sends the media resource selected by the user to the playback device for playback, and only needs the user to play the media device and the source device respectively.
  • the media resource sharing process can be completed in one operation, which simplifies the number of user operations in the process of media resource sharing, and reduces the operation difficulty of media resource sharing.
  • the playing device generates the first verification information according to the user operation, and the second verification information sent by the source device and the address information of the media resource selected by the user, including:
  • the playback device After the first verification information is generated, the playback device sends a pairing request message to the source device, where the pairing request message carries the identifier of the playback device, and receives the pairing request message according to the source device. a pairing response message, where the pairing response message carries the second verification information and address information of the media resource;
  • the first verification information is generated according to a user operation, where the pairing notification message carries the second verification information and address information of the media resource;
  • the playback device receives the pairing notification message sent by the source device, where the pairing notification message carries the second verification information and the address information of the media resource.
  • the source device receives the source device according to the set time Said pairing response message returned by the pairing request message;
  • the playing device After receiving the pairing notification message sent by the source device, the playing device generates the first verification information according to a user operation within a set time period;
  • the playback device After the first verification information is generated according to a user operation, the playback device receives the pairing notification message sent by the source device within a set duration.
  • the method further includes:
  • the playback device starts an operation mode of acquiring and playing a shared media resource
  • the method further includes:
  • the playback device determines that it is in the working mode of acquiring and playing the shared media resource.
  • the playback device generates first verification information according to a user operation, including :
  • the playing device generates the first verification information according to the collected sound information input by the user;
  • the playing device generates the first verification information according to the collected sliding track on the screen
  • the playing device generates the first verification information according to the touch operation of the collected user at the first position of the screen;
  • the playing device generates the first verification information according to the collected fingerprint image.
  • the playback device generates the first verification information according to a user operation, including :
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a fingerprint local feature point in all or a predetermined sub-region of the corrected fingerprint image, according to the extracted local feature of the fingerprint Point generating the first verification information;
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a local feature point of the fingerprint in at least one sub-region of the corrected fingerprint image, according to the extracted partial fingerprint portion.
  • the feature point generates the first verification information, and carries the location information of the at least one sub-area in the pairing request message;
  • the playback device collects the fingerprint image input by the user and the collected After the fingerprint image is subjected to the directional field correction, the fingerprint local feature point is extracted in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and the first verification information is generated according to the extracted local feature point of the fingerprint. .
  • the fourth aspect provides a media resource sharing method, including:
  • the source device generates second verification information according to a user operation, and determines address information of the media resource selected by the user;
  • the source device sends the second verification information and the address information of the media resource to the playback device, where the playback device determines the play according to the second verification information and the first verification information generated by the user according to the user operation. After the device and the source device are successfully matched, the media resource is obtained and played according to the address information of the media resource.
  • the sending, by the source device, the second verification information and the address information of the media resource to the playing device includes:
  • the source device receives a pairing request message that is sent by the playing device after the first authentication information is generated, where the pairing request message carries the identifier of the playing device, and returns a pairing response message according to the pairing request message.
  • the pairing response message carries the second verification information and address information of the media resource;
  • the source device sends a pairing notification message, where the pairing notification message carries the second verification Information and address information of the media resource.
  • the source device generates second verification information according to a user operation, including:
  • the source device generates the second verification information according to the collected sliding track on the screen
  • the source device generates the second verification information according to a touch operation of the user at a second location of the screen
  • the source device generates the second verification information according to the collected fingerprint image.
  • the source device generates second verification information according to a user operation, including:
  • the source device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a local feature point of the fingerprint in the agreed sub-region in the corrected fingerprint image, according to all or part of the extracted fingerprint. Generating the second verification information by the local feature point;
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the playback device, and the source device collects the fingerprint image input by the user and collects the fingerprint image.
  • the fingerprint local feature points are extracted in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and the second verification is generated according to all or part of the extracted fingerprint local feature points.
  • the source device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a fingerprint local feature point in at least one sub-region of the corrected fingerprint image, according to all or part of the extracted fingerprint.
  • the local feature point generates the second verification information, and carries the location information of the at least one sub-area in the pairing notification message.
  • a source device including:
  • a first processing module configured to determine a media resource selected by the user, and generate a first The verification information, and the second verification information sent by the playback device and the identifier of the playback device, where the second verification information is generated by the playback device according to a user operation;
  • a second processing module configured to determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired, and send the media resource to the The playback device performs the playback; or the address information of the media resource is sent to the playback device according to the identifier of the playback device, and the playback device obtains the media resource according to the address information of the media resource and plays the same.
  • the first processing module is specifically configured to:
  • the pairing notification message After receiving the pairing notification message sent by the playing device, determining the media resource selected by the user, and generating the first verification information according to the user operation, where the pairing notification message includes the second verification information and the playing device Identification
  • the first processing module is specifically configured to:
  • the pairing response message returned by the playing device according to the pairing request message is received within a set time period
  • the pairing notification message sent by the playback device is received within a set duration.
  • the first processing module is further configured to:
  • the first processing module is specifically configured to:
  • the first verification information is generated according to the collected fingerprint image.
  • the first processing module is specifically configured to:
  • the fingerprint local feature point generates the first verification information, and carries the location information of the at least one sub-area in the pairing request message;
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction on the collected fingerprint image.
  • the sub-region determined by the position information of the sub-region in the corrected fingerprint image extracts a fingerprint local feature point, and the first verification information is generated according to the extracted fingerprint local feature point.
  • a playback device including:
  • a generating module configured to generate second verification information according to a user operation
  • a sending module configured to send the second verification information and an identifier of the playback device to the source device
  • a receiving module configured to receive a media resource returned by the source device according to the identifier of the playback device, or receive address information of the media resource returned by the source device according to the identifier of the playback device, according to the media resource
  • the address information is used to obtain the media resource;
  • the media resource or the address information of the media resource is determined by the source device according to the second verification information and the first verification information generated by the user according to the user operation, the source device and the playing. Return after the device matches successfully;
  • a playing module configured to play the media resource.
  • the receiving module is further configured to receive a pairing request message sent by the source device, where the pairing request message is used by the source device to determine the media resource and generate After the first verification information is sent, the pairing request message includes an identifier of the source device, and the sending module is configured to return a pairing response message to the source device according to the identifier of the source device, where the pairing is performed.
  • the second verification information and the identifier of the playback device are carried in the response message;
  • the sending module is specifically configured to send a pairing notification message, where the pairing notification message includes the second verification information and an identifier of the playing device.
  • the generating module is specifically configured to:
  • the generating module is specifically configured to:
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the source device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. After the sub-region determined by the position information of the sub-region in the corrected fingerprint image, the fingerprint local feature point is extracted, and the second verification information is generated according to all or part of the extracted fingerprint local feature points;
  • the sending module is further configured to carry the location information of the at least one sub-area in the pairing notification message.
  • a playback device including:
  • a first processing module configured to generate first verification information according to a user operation, and receive second verification information sent by the source device and address information of the media resource selected by the user, where the second verification information is operated by the source device according to the user Generate
  • a second processing module configured to determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired, obtain a media resource according to the address information of the media resource, and play the same.
  • the first processing module is specifically configured to:
  • the pairing request message is sent to the source device, where the pairing request message carries the identifier of the playing device, and receives the pairing response returned by the source device according to the pairing request message. a message, the pairing response message carrying the second verification information and address information of the media resource;
  • the first verification information is generated according to a user operation, where the pairing notification message carries the second verification information and address information of the media resource;
  • the pairing notification message sent by the source device is received, where the pairing notification message carries the second verification information and address information of the media resource.
  • the first processing module is specifically configured to:
  • the pairing response message returned by the source device according to the pairing request message is received within a set duration
  • the pairing notification message sent by the source device is received within a set duration.
  • the first processing module is further configured to:
  • the first processing module is specifically configured to:
  • the first verification information is generated according to the collected fingerprint image.
  • the first processing module is specifically configured to:
  • the location information of the sub-area of the fingerprint image corresponding to the second verification information generated by the source device is collected in the pairing notification message, and the fingerprint image input by the user is collected and collected.
  • the fingerprint local feature point is extracted in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and the first local feature point is generated according to the extracted fingerprint local feature point.
  • a source device including:
  • a processing module configured to generate second verification information according to a user operation, and determine address information of the media resource selected by the user
  • a sending module configured to send the second verification information and the address information of the media resource to the playing device, where the playing device determines, according to the second verification information, the first verification information generated by the user according to the user operation After the matching between the playback device and the source device is successful, the media resource is obtained and played according to the address information of the media resource.
  • the method further includes: a receiving module, configured to receive a pairing request message sent by the playing device after generating the first verification information, where the pairing request message carries The sending module is configured to: return, according to the pairing request message, a pairing response message, where the pairing response message carries the second verification information and address information of the media resource;
  • the sending module is specifically configured to send a pairing notification message, where the pairing notification message carries the second verification information and address information of the media resource.
  • the processing module is specifically configured to:
  • the processing module is specifically configured to:
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. After the sub-region determined by the position information of the sub-region in the corrected fingerprint image, the fingerprint local feature point is extracted, and the second verification information is generated according to all or part of the extracted fingerprint local feature points;
  • FIG. 1 is a schematic flowchart of a method for sharing a media resource according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a detailed process of media resource sharing in an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a process of generating second verification information according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing an example of second verification information in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a detailed process of another media resource sharing according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for sharing another media resource according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a source device according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of a source device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a playback device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another structure of a playback device according to an embodiment of the present invention.
  • FIG. 11 is another schematic structural diagram of a playback device according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another structure of a playback device according to an embodiment of the present invention.
  • FIG. 13 is another schematic structural diagram of a source device according to an embodiment of the present invention.
  • FIG. 14 is another schematic structural diagram of a source device according to an embodiment of the present invention.
  • the local area network has at least one source device and at least one playback device.
  • one physical device in the local area network can simultaneously integrate the functions of the active device and the functions of the playback device.
  • the source device is a provider of media content in a media sharing application scenario, and a home network device usually having a network connection function or a storage function can be used as a source device, such as a smart phone, a tablet, a set top box, a network hard disk, and a personal digital assistant (Personal Digital) Assistant, PDA), etc.
  • a home network device usually having a network connection function or a storage function can be used as a source device, such as a smart phone, a tablet, a set top box, a network hard disk, and a personal digital assistant (Personal Digital) Assistant, PDA), etc.
  • PDA Personal Digital Assistant
  • the source device may share the media resources stored in the local device, or provide the address information of the media resources stored on the network side or other devices, so that the playback device obtains and plays from the network side or other devices through the given address information.
  • Corresponding media content; or the source device may also encode its own screen image into a media stream for transmission to the playback device for on-screen sharing.
  • the source device shares the media content, it is necessary to provide a content list of the shared media content so that the user selects the media content to be played.
  • the playback device is a recipient of the media content in the media sharing application scenario and is capable of playing the selected shared media content.
  • Home network devices that typically have network connectivity and playback capabilities can be used as source devices such as smartphones, tablets, televisions, stereos, digital versatile disc (DVD) players, and the like.
  • the playback device can discover the source device accessing the same local area network, and can be from the source device or The media content to be played is obtained according to the media address information provided by the source device and played locally.
  • a typical application scenario implemented by the present invention is a home network, which has multiple types of mobile electronic devices in a home network environment, and these mobile electronic devices can be connected to a home network, and some mobile electronic devices have a storage function and can store a certain number of The media files are shared into the home network and can be used as source devices; some mobile electronic devices have the ability to play media, and can play media content such as music, movies, etc., as a playback device.
  • Another typical application scenario is mutual sharing between friends, such as visiting a friend's home, sharing the shared media content in the home network of the friend's home, or several friends sharing the same wireless local area network outside ( In the Wireless Local Area Network (WLAN), media content is shared with each other.
  • WLAN Wireless Local Area Network
  • This situation belongs to a temporary media sharing network. It requires a convenient and fast way to select devices that meet user operating habits.
  • a detailed method for media resource sharing between a source device and a playback device located in the same local area network is as follows:
  • Step 101 The source device determines the media resource selected by the user, and generates the first verification information according to the user operation, and receives the second verification information sent by the playback device and the identifier of the playback device, where the second verification information is that the playback device operates according to the user. generate.
  • Step 102 The source device determines that the source device and the playback device are successfully paired according to the first verification information and the second verification information, and sends the media resource selected by the user to the playback device for playing according to the identifier of the playback device, or according to the playback device.
  • the identifier is sent to the playback device by the address information of the media resource selected by the user, and the playback device obtains the media resource according to the address information of the media resource and plays the media resource.
  • the source device and the playback device are connected to the same local area network, and the source device and the playback device discover each other.
  • the source device generates the first verification information and the second verification information of the receiving device and the identifier of the playback device, and specifically has the following three specific implementation manners:
  • the source device sends a pairing request message to the playing device in the local area network, where the pairing request message is included in the packet.
  • the identifier of the source device is received, and the pairing response message returned by the playback device in the local area network according to the pairing request message is received, and the pairing response message carries the second verification information and the identifier of the playback device.
  • the pairing response message returned by the playing device in the local area network according to the pairing request message is received within the set time period.
  • the pairing response message received by the source device after the set time is exceeded is invalid.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the second type after the source device receives the pairing notification message sent by the playing device in the local area network, determines the media resource selected by the user, and generates the first verification information according to the user operation, where the pairing notification message includes the second verification information and the playing device. logo.
  • the source device determines the media resource selected by the user within the set time period and generates the first verification information according to the user operation, if The source device does not determine the media resource selected by the user within the set time period and generates the first verification information according to the user operation, and the pairing notification message received by the source device is invalid.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the source device determines the media resource selected by the user, and generates the first verification information according to the user operation, and receives the pairing notification message sent by the playing device in the local area network, where the pairing notification message includes the second verification information and the playing device. logo.
  • the source device determines the media resource selected by the user, and after generating the first verification information according to the user operation, receives the pairing notification message sent by the playing device in the local area network within the set duration, and the source The pairing notification message received by the device after the set time is exceeded is invalid.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the playing device After the playing device receives the pairing request message, the playing device starts to acquire and play the working mode of the shared media resource;
  • the playing device determines to be in the working mode of acquiring and playing the shared media resource.
  • the source device displays the shared media resource list
  • the source device determines that the shared media resource list is currently displayed.
  • the first verification information and the second verification information may have multiple generation manners, including but not limited to the following:
  • the first verification information is generated by the source device according to the collected sound information input by the user
  • the second verification information is generated by the playback device according to the collected sound information input by the user.
  • the source device collects the voice signal sent by the user, extracts the voiceprint feature data from the voice signal, and uses the extracted voiceprint feature data as the first verification information
  • the playback device collects the voice signal sent by the user.
  • the voiceprint feature data is extracted from the voice signal, and the extracted voiceprint feature data is used as the second verification information.
  • the first verification information is generated by the source device according to the collected sliding track on the screen
  • the second verification information is generated by the playing device according to the collected sliding track on the screen.
  • the sliding track comprises a composition pattern (such as a circle, a square, a triangle, a heart, and other irregular patterns) and a sliding vector (such as left, right, up, down, clockwise, counterclockwise, etc.) , but does not include the starting and ending positions of the sliding track on the device screen.
  • the first verification information is generated by the source device according to the touch operation of the collected user at the first position of the screen
  • the second verification information is generated by the playback device according to the touch operation of the user at the second position of the screen
  • the touch operation may be a click operation, a long press operation, a slide operation, or the like.
  • the first verification information is generated by the source device according to the collected fingerprint image
  • the second verification information is generated by the playback device according to the collected fingerprint image.
  • the source device Preferably, if the first verification information and the second verification information are generated by collecting the fingerprint image of the user, the source device generates the first verification information according to the user operation, including but not limited to the following implementation manners:
  • the source device collects the fingerprint image input by the user, and after performing the direction field correction on the fingerprint image, extracts the local feature points of the fingerprint in all or the agreed sub-regions of the corrected fingerprint image, according to the extracted local feature points of the fingerprint. Generating first verification information;
  • the source device collects the fingerprint image input by the user, and performs direction field correction on the fingerprint image, and extracts a local feature point of the fingerprint in at least one sub-region of the corrected fingerprint image, and generates a local feature point according to the extracted fingerprint. First verifying information, and carrying location information of the at least one sub-area in the pairing request message;
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the playback device, and the source device collects the fingerprint image input by the user and performs direction field correction on the collected fingerprint image.
  • the sub-region determined by the position information of the sub-region carried in the pairing notification message in the corrected fingerprint image extracts the local feature point of the fingerprint, according to the extracted local feature point of the fingerprint Generate first verification information.
  • the playback device generates the second verification information according to the user operation, including but not limited to the following implementation manners:
  • the playback device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting the agreed sub-region in the corrected fingerprint image. Fingerprint local feature points, generating second verification information according to all or part of the fingerprint local feature points extracted;
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the source device, and the playback device collects the fingerprint input by the user.
  • the determined location information of the sub-area carried in the pairing request message in the corrected fingerprint image is determined. Extracting a local feature point of the fingerprint, and generating second verification information according to all or part of the fingerprint local feature points extracted;
  • the third type corresponding to the third one of the first verification information generating manners, the playing device collects the fingerprint image input by the user, and performs direction field correction on the fingerprint image, and extracts at least one sub-region in the corrected fingerprint image.
  • the fingerprint local feature point generates second verification information according to all or part of the fingerprint local feature points, and carries the location information of the at least one sub-area in the pairing notification message.
  • the second verification information can function as a matching identifier, that is, can Comparing the first verification information and the second verification information to identify whether the fingerprints collected twice before and after are from the same finger of the same user, and the second verification information does not carry any identity information related to the user fingerprint, even if the third party acquires the user's
  • the second verification information cannot use the second verification information to verify the identity of the user, and the third party cannot obtain the fingerprint information of the user by acquiring the second verification information of the user multiple times.
  • the source device compares the first verification information with the second verification information, and determines that the first verification information is the same as the second verification information, or the second verification information is included in the first verification information, or the second verification information and the second verification information. If the similarity of the verification information reaches the set threshold, or the second verification information includes and the ratio of the feature included in the first verification information to the total feature of the second verification information exceeds the set threshold, determining the first verification information and the second Verify that the information matches.
  • the sliding track collected by the source device is a triangle
  • the first verification information is a triangle
  • the second verification information is also a triangle
  • the first voice information collected by the source device is the first voice information
  • the second verification information collected by the playback device is the second voice information
  • the first voice information and the second voice information are If the similarity is higher than the set threshold, it is determined that the source device matches the playing device, and specifically, the content of the recognized sound information may be matched, or the sound color in the recognized sound information may be matched.
  • the source device collects three triple-click operations of the user in the first location, the first verification information is a three-click operation, and the playback device collects three triple-click operations of the user in the second location, and the second verification information is also three.
  • the combo operation determines that the first verification information matches the second verification information.
  • the source device compares the second verification information with the first verification information, and determines that each fingerprint local feature point in the second verification information has a corresponding fingerprint local feature point in the first verification information, and determines the source device and the playback device.
  • Successful pairing ;
  • the source device determines that the proportion of the local fingerprint feature points in the first verification information in the second verification information accounts for the total number of fingerprint local feature points in the second verification information exceeds a set threshold, and determines the source device and the playback. Device pairing was successful.
  • the identifier of the playback device may be any identifier information that can uniquely determine the identity of the playback device, for example, a UUID, a device serial number, an IP address, a MAC address, etc. of the playback device, and a digital sequence or string that can characterize the identity of the device. Wait.
  • the identifier of the source device may be any identifier information capable of uniquely determining the identity of the source device, for example, a UUID of the source device, a device serial number, an IP address, a MAC address, and the like, or a numerical sequence or a character string that can characterize the identity of the device.
  • the source device locally stores the content of the media resource selected by the user, the media resource selected by the user is directly sent to the playback device for playing; if the source device does not locally save the content of the media resource selected by the user, The address information of the media resource selected by the user is sent to the playing device, and the playing device obtains the media resource from the network or other storage device according to the address information and plays the media resource.
  • the source device generates the first verification information according to the user operation
  • the playback device generates the second verification information according to the user operation
  • the source device performs the second verification information sent by the playback device and the first verification information generated by the source device.
  • the address information of the shared media resource or the media resource is sent to the playback device, and only the user needs to perform an operation on the playback device and the source device of the shared media resource.
  • the process of sharing the media resources is completed, which simplifies the number of user operations in the process of media resource sharing, and reduces the difficulty of media resource sharing operations.
  • the following describes a specific process for the source device to verify that the source device matches the playback device and then sends the shared media resource to the playback device for playing.
  • Step 201 The source device and the playback device discover each other.
  • DLNA Home network media resource sharing solutions
  • Airplay In home network media resource sharing solutions such as DLNA, Airplay, Miracast, and Airdrop, mutual discovery and connection establishment of source devices and playback devices are involved, which is the first step to complete media resource sharing.
  • the mechanisms for device and service discovery in different solutions are different.
  • the DLNA device uses the Simple Service Discovery Protocol (Simple Service Discovery Protocol).
  • the SSDP protocol is implemented
  • the Airplay device is implemented using the Multicast Domain Name System (MDNS) protocol.
  • MDNS Multicast Domain Name System
  • the multicast message is periodically sent to the entire local area network through a protocol-defined or pre-agreed multicast address and port, and the multicast message carries Device and service discovery information of the sending device, including device model, device network protocol (IP) address, device type (source device or playback device), device UUID, and other device information, and service identifier supported by the device, service access unified resource location Service information such as (Universal Resource Locator, URL).
  • IP device network protocol
  • source device or playback device device UUID
  • service identifier supported by the device service access unified resource location Service information such as (Universal Resource Locator, URL).
  • URL Universal Resource Locator
  • the other mobile electronic devices accessing the same local area network will receive the multicast message, thereby acquiring the device and service discovery information of the mobile electronic device that sends the multicast message, and the mobile electronic device transmitting the multicast message is moved by other mobile devices. Discovered by electronic devices.
  • Step 202 The playback device collects a fingerprint image input by the user touching the screen of the playback device or the fingerprint collection area.
  • the mobile electronic device corresponding to the playback device is a device with a fingerprint collection function.
  • the fingerprint collection mode is determined by the specific function configuration of the mobile electronic device.
  • Some mobile electronic devices can realize full-screen fingerprint collection, that is, the mobile electronic device can collect fingerprint images when the user clicks on any area of the touch screen; some mobile electronic devices The fingerprint part of the screen can be collected, and the mobile electronic device collects the fingerprint image when the user clicks on a part of the touch screen; and some mobile electronic devices can only click or touch on a fixed area (such as the Home button) to collect and stay.
  • the fingerprint image below.
  • the fingerprint collector on the playback device can collect the fingerprint of the user through optical, thermal or biological radio frequency.
  • Step 203 The playback device processes the collected fingerprint image to generate second verification information.
  • the process of generating the second verification information is as follows:
  • S301 Determine a direction field of the fingerprint image.
  • the fingerprint collection device in the playback device does not limit the finger pressing direction of the user when acquiring the fingerprint image, and the user can press the finger to input the fingerprint image in any direction in the screen or other designated fingerprint collection regions.
  • the fingerprint image collected by the playback device is composed of a central pattern, a ridge line and a valley line. These line textures have a certain trend and shape, and the directionality they represent is the direction field of the fingerprint image.
  • the direction field of the fingerprint is a description of the topological structure of the shape of the line, which characterizes the direction of the trend of the fingerprint line.
  • the direction field of the fingerprint image can be calculated by the mask method and the formula method.
  • the fingerprint image is rotated such that the direction of the directional field of the rotated fingerprint image is parallel to the preset axis direction to ensure that the direction of the directional field of the fingerprint image collected on the playback device and the source device is consistent.
  • S303 Perform equal division on the fingerprint image after the direction field correction, and divide the complete fingerprint image into a plurality of fingerprint sub-images in equal proportion.
  • the second verification information by carrying the partial fingerprint feature information in the second verification information, it is ensured that the second verification information does not carry any user identity information related to the user fingerprint, that is, the second verification information is prohibited from being carried in the fingerprint image. All fingerprint feature information.
  • each fingerprint sub-image has the same size.
  • S304 Randomly extract a plurality of fingerprint sub-images at different positions, and extract fingerprint local feature points in the selected plurality of fingerprint sub-images.
  • Human fingerprint features are composed of general features and local features.
  • the local feature points include six types of endpoints, bifurcation points, bifurcation points, isolated points, ring points and short lines.
  • a complete fingerprint has about 100 local feature points.
  • For each local feature point it is described by six information dimensions: type, horizontal position, vertical position, direction, curvature and quality.
  • the feature information of these local feature points is life-changing.
  • the system randomly selects two fingerprint sub-images from the fingerprint sub-image after segmentation, wherein the left side is recorded as the fingerprint sub-image A, and the right side is recorded as the fingerprint sub-image B, and the two fingerprint sub- Images have the same size (ie, the length and width have the same number of pixels).
  • Fingerprint subgraph Image A contains six fingerprint local feature points, numbered 1-6; fingerprint sub-image B contains five fingerprint local feature points, numbered 7-11.
  • a feature point list is generated for each fingerprint sub-image, and each local feature point in the feature point list includes the type, horizontal position, and vertical position of the feature point.
  • Six descriptions of direction, curvature and quality, wherein the horizontal position and the vertical position refer to the relative position of the local feature point of the fingerprint in the fingerprint sub-image in which it is located, rather than the absolute position in the entire fingerprint image.
  • edge region of the fingerprint image should be selected as much as possible when randomly extracting the fingerprint sub-image, because the fingerprint image resolution of the region is low, which is not conducive to the later feature extraction and verification matching.
  • S305 Select a partial local feature point to generate second verification information.
  • the fingerprint sub-image A and the fingerprint sub-image B are randomly extracted in S304, and six fingerprint local feature points are extracted from the fingerprint sub-image A and five fingerprint local feature points are extracted from the fingerprint sub-image B. A part of the fingerprint local feature points are randomly extracted from each fingerprint sub-image to form a mixed fingerprint local feature point list.
  • the second verification information of the six fingerprint local feature points numbered 1, 3, 4, 7, 9, 11 is generated from the fingerprint sub-image A and the fingerprint sub-image B, respectively, wherein 1, 3, 4 belong to the fingerprint local feature point in the fingerprint sub-image A, and 7, 9, 11 belong to the fingerprint local feature point in the fingerprint sub-image B.
  • the second verification information includes feature information of partial fingerprint local feature points of the plurality of fingerprint sub-images, and the positions of the fingerprint sub-images are different, the local features of the fingerprints given in the second verification information are in the fingerprint image of the user. The fingerprint local features of any area cannot be matched. Even if the second verification data is obtained by a third party, the third party cannot use the second verification information to perform any operation related to user identification and verification, and the third party cannot obtain it through repeated acquisition. The second verification information acquires all fingerprint feature information of the user.
  • Step 204 The playback device sends a multicast event message to all source devices accessing the same local area network by using a multicast format.
  • the multicast event message includes the second verification information, and also includes the IP address, device UUID, and access of the playback device. Information such as an address URL so that the source device can determine the playback device that sent the message when it receives the multicast event message.
  • the playback device When the playback device generates the second verification information, it means that the selection of the playback device in the media resource sharing is completed.
  • the playback device broadcasts a multicast event message to the local area network that is accessed, and all the source devices in the network can receive the multicast event message.
  • Step 205 The user selects the shared media resource on the source device selected by the user.
  • the source device collects the fingerprint image input by the user.
  • the user selects a source device, and the source device displays a list of shared media resources.
  • the display screen is touched when the shared media resource is selected, a fingerprint is left on the display screen, so the source device can simultaneously collect the fingerprint image of the user.
  • Step 206 The source device processes the collected fingerprint image to generate first verification information.
  • the source device determines the direction field of the collected fingerprint image, and corrects the direction field, so that the fingerprint image collected by the source device is parallel to the preset axis direction to ensure the fingerprint collected on the playback device and the source device.
  • the direction of the direction field of the image is the same.
  • the source device scales the corrected fingerprint image to be the same size as the fingerprint image collected on the playback device, and according to the received second verification information, the location and size of the fingerprint sub-image extracted by the local feature point Information, extracting fingerprint sub-images of the same size at the same location of the fingerprint image acquired by the source device.
  • the source device extracts fingerprint local feature points in each extracted fingerprint sub-image, and summarizes the extracted feature information of all fingerprint local feature points to generate first verification information.
  • Step 207 The source device compares the first verification information and the second verification information to verify whether the two acquired fingerprints on the playback device and the source device match.
  • the second verification information received by the source device includes the feature information of the partial fingerprint local feature points of the two fingerprint sub-images, and the second verification information generated by the source device includes the fingerprint sub-images with the same location as the two fingerprint sub-images. Characteristic information of all fingerprint local feature points. Comparing the feature information of each fingerprint local feature point in the second verification information, comparing whether there is a corresponding fingerprint local feature point in the first verification information, and comparing the fingerprint feature information for each fingerprint local feature point 6 description dimensions of type, horizontal position, vertical position, direction, curvature and quality, if feature letter If the information is consistent, the fingerprint local feature point has a matching fingerprint local feature point in the first verification information, and the comparison passes, otherwise the fingerprint local feature point comparison does not pass.
  • a certain threshold is usually set, that is, if the number of local feature points of the fingerprints in the second verification information is passed or the fingerprint local feature points are compared If the ratio of the number of the local feature points of the fingerprint in the second verification information exceeds a certain threshold, the second verification information is matched with the first verification information, that is, the fingerprints collected on both sides of the playback device and the source device are the same. The fingerprint of the user; otherwise, it is determined that the second verification information does not match the first verification information.
  • the second verification information includes six fingerprint local feature points
  • the first verification information includes 11 fingerprint local feature points.
  • the six fingerprint local feature points in the first verification information are sequentially compared with the feature information of the 11 fingerprint local feature points in the second verification information, and the number of fingerprint local feature points passed in the second verification information is compared. If it is greater than or equal to the threshold 4, it is determined that the match passes.
  • the threshold is preset according to the specific situation and the actual needs of the user. The larger the threshold is set, the higher the security, the larger the calculation amount, and the longer the response time. The smaller the threshold is set, the shorter the response time is, and the lower the security is. .
  • Step 208 If the matching is passed, the source device directly sends the address information of the media resource selected by the user to the playing device, and the playing device acquires the media content according to the address information and plays the content on the playing device.
  • the source device directly sends a request play command to the selected play device, where the request play command includes address information (URL) of the media resource selected by the user, and the playback device receives the request play command according to the
  • the address information sends a request to the source device or the server storing the content of the media resource, and the received corresponding message is the media stream of the content of the media resource, and the playback device can play the content. Users do not need to participate in the entire process.
  • Step 501 The source device and the playback device discover each other.
  • step 201 For the specific process, refer to the description of step 201 in the first embodiment, and details are not described herein again.
  • Step 502 The user touches the touch screen of the source device, selects the shared media resource, and the source device adopts The fingerprint image input when the user touches the screen is set, and the user selects the shared media resource.
  • Step 503 The source device processes the fingerprint image to generate first verification information.
  • the specific process is substantially the same as the description of generating the first verification information in the first embodiment.
  • the difference is that the fingerprint image is randomly selected after direction field correction and equal division, and two fingerprint sub-images are randomly selected and recorded as fingerprints.
  • the sub-image C and the fingerprint sub-image D extract the fingerprint local feature points in the two fingerprint sub-images, assuming that eight fingerprint local feature points are extracted in the fingerprint sub-image C, and six fingerprints are extracted in the fingerprint sub-image D.
  • the local feature point includes the feature information of all 14 fingerprint local feature points extracted from the fingerprint sub-image C and the fingerprint sub-image D.
  • Step 504 The source device sends a pairing request message to all the playing devices in the accessed local area network.
  • the pairing request message carries address information of the source device.
  • the source device After the source device generates the first verification information, the source device sends a pairing request message to all the playing devices in the same local area network, where the pairing request includes the number of fingerprint sub-images randomly extracted by the active device and each fingerprint sub- The position information of the image, so that the playback device can obtain the fingerprint sub-image at the same position after acquiring the user fingerprint image.
  • the source device sets a waiting time threshold. If the response message sent back by the playback device is not received within the waiting time threshold range after the pairing request is sent, the request is automatically considered invalid. The playback device corresponding to the pairing request does not establish a pairing relationship.
  • Step 505 The user touches the screen on the selected playback device, and the playback device collects the fingerprint image of the user, and processes the fingerprint image to generate second verification information.
  • the playing device determines the direction field of the collected fingerprint image, and corrects the direction field, so that the fingerprint image collected by the source device is consistent with the direction field of the fingerprint image collected by the playing device, and the corrected fingerprint image is Scale it to the same size as the fingerprint image captured on the source device. Then, according to the number, location and size information of the fingerprint sub-images carried in the received pairing request message, the fingerprint sub-images of the same size are extracted at the same position in the fingerprint image collected by the playback device.
  • the playing device extracts fingerprint local feature points in each extracted fingerprint sub-image, and randomly extracts partial fingerprint parts from the fingerprint local feature points in each extracted fingerprint sub-image.
  • the feature point summarizes the extracted feature information of the partial fingerprint local feature points to generate second verification information.
  • the playback device extracts two fingerprint sub-images as fingerprint sub-images C and fingerprints according to the number, location, and size information of the fingerprint sub-images carried in the pairing request message.
  • Sub-image D and extract 14 fingerprint local feature points in the two fingerprint sub-images, wherein 8 fingerprint local feature points are extracted from the fingerprint sub-image C, and 6 fingerprint local features are extracted from the fingerprint sub-image D Point, randomly extract 5 feature points from 8 fingerprint local feature points in the fingerprint sub-image C, randomly extract 4 feature points from 6 fingerprint local feature points in the fingerprint sub-image D, and extract a total of 9 features
  • the feature information of the points is aggregated to generate second verification information.
  • Step 506 The playback device sends the second verification information to the source device in the response message (ie, the pairing response message) of the pairing request message.
  • the pairing response message also carries address information of the playback device.
  • Step 507 The source device matches the first verification information and the second verification information, and verifies whether the fingerprints collected twice on the playback device and the source device are the same.
  • step 207 For the specific process, refer to step 207 in the first embodiment.
  • Step 508 If the matching is passed, the source device directly sends the URL of the media resource selected by the user to the playing device, so that the playing device acquires the content of the media resource according to the URL information and plays the content on the playing device.
  • step 208 in the first embodiment.
  • the detailed method for performing media resource sharing is as follows:
  • Step 601 The playback device generates the first verification information according to the user operation, and receives the second verification information sent by the source device and the address information of the media resource selected by the user, where the second verification information is generated by the source device according to the user operation.
  • the playing device generates the first verification information according to the user operation, and receives the second verification information sent by the source device and the address information of the media resource selected by the user, and specifically has the following three specific implementation manners:
  • the first type after the first verification information is generated by the user, the device sends a pairing request message to the source device in the local area network, where the pairing request message carries the identifier of the playing device, and the source device requests the pairing device according to the pairing request. a pairing response message returned by the message, where the pairing response message carries the second verification information and address information of the media resource.
  • the playing device after the playing device sends a pairing request message to the source device in the local area network, the playing device receives the pairing response message returned by the source device according to the pairing request message within a set time period.
  • the pairing response message received by the playback device after the set time period is exceeded is invalid.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the second type after the playing device receives the pairing notification message sent by the source device in the local area network, the first verification information is generated according to the user operation, where the pairing notification message carries the second verification information and the media resource. Address information.
  • the first verification information is generated according to a user operation within a set time period, if the playing device is not When the first verification information is generated according to the user operation within the set time period, the received pairing notification message is invalid.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the playback device receives the pairing notification message sent by the playing device in the local area network, where the pairing notification message carries the second verification information and the media resource. Address information.
  • the playback device receives the pairing notification message sent by the source device in the local area network within a set time period.
  • the playback device receives the pairing notification message after the set time is exceeded.
  • the set duration can be set to 1 minute, 2 minutes, and the like.
  • the playing device After the playing device receives the pairing notification message, the playing device starts an operation mode of acquiring and playing the shared media resource;
  • the playing device determines that it is in the working mode of acquiring and playing the shared media resource.
  • the source device displays a shared media resource list
  • the source device Before the source device generates the second verification information according to a user operation, the source device determines that the shared media resource list is currently displayed.
  • the first verification information and the second verification information are generated in various manners, including but not limited to the following:
  • the first verification information is generated by the playing device according to the collected sound information input by the user
  • the second verification information is generated by the source device according to the collected sound information input by the user.
  • the playing device collects the voice signal sent by the user, extracts the voiceprint feature data from the voice signal, and uses the extracted voiceprint feature data as the first verification information
  • the source device collects the voice signal sent by the user.
  • the voiceprint feature data is extracted from the voice signal, and the extracted voiceprint feature data is used as the second verification information.
  • the first verification information is generated by the playing device according to the collected sliding track on the screen
  • the second verification information is generated by the source device according to the collected sliding track on the screen.
  • the sliding track comprises a composition pattern (such as a circle, a square, a triangle, a heart, and other irregular patterns) and a sliding vector (such as left, right, up, down, clockwise, counterclockwise, etc.) , but does not include the starting and ending positions of the sliding track on the device screen.
  • a composition pattern such as a circle, a square, a triangle, a heart, and other irregular patterns
  • a sliding vector such as left, right, up, down, clockwise, counterclockwise, etc.
  • the first verification information is generated by the playback device according to the collected touch operation of the user at the first position of the screen, and the second verification information is touched by the source device according to the user's second position on the screen.
  • the operation is generated.
  • the touch operation may be a click operation, a long press operation, a sliding operation, or the like.
  • the first verification information is generated by the playback device according to the collected fingerprint image
  • the second verification information is generated by the source device according to the collected fingerprint image
  • Step 602 The playback device determines that the source device and the playback device are successfully paired according to the first verification information and the second verification information, and obtains content of the media resource according to the address information of the media resource and plays the content.
  • the playing device compares the second verification information with the first verification information, and determines that each fingerprint local feature point in the second verification information has a corresponding local fingerprint feature point in the first verification information, and determines the source device and the playback device.
  • Successful pairing ;
  • the playing device determines that the number of the local fingerprint feature points corresponding to the first verification information in the second verification information accounts for the proportion of the total number of local fingerprint feature points in the second verification information exceeds a set threshold, and determines the source device and the playback. Device pairing was successful.
  • the playing device generates the first verification information according to the fingerprint image input by the user, including but not limited to the following specific implementation manners:
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting fingerprint local feature points in all or a predetermined sub-region of the corrected fingerprint image, according to the extracted Generating the first verification information by the fingerprint local feature point;
  • the playing device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting a local feature point of the fingerprint in at least one sub-region of the corrected fingerprint image, according to the extracted
  • the fingerprint local feature point generates the first verification information, and carries the location information of the at least one sub-area in the pairing request message;
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the source device, and the playback device collects the fingerprint image input by the user and collects the captured image.
  • the fingerprint image is subjected to the directional field correction
  • the fingerprint local feature point is extracted in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and the first feature is generated according to the extracted fingerprint local feature point. verify message.
  • the source device generates the second verification information according to the fingerprint image input by the user, including but not limited to the following specific implementation manners:
  • the source device collects a fingerprint image input by the user, and performs direction field correction on the fingerprint image, and the agreed-upon in the corrected fingerprint image.
  • the sub-region extracts a fingerprint local feature point, and generates the second verification information according to all or part of the extracted fingerprint local feature points;
  • the pairing request message And carrying the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the playback device, the source device collecting the fingerprint image input by the user, and performing direction field correction on the collected fingerprint image And extracting a fingerprint local feature point in the sub-region determined by the position information of the sub-region in the corrected fingerprint image, and generating the second verification information according to all or part of the extracted fingerprint local feature points;
  • the third type corresponding to the third one of the first verification information generating manners, the source device collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, at least one of the corrected fingerprint images.
  • the sub-region extracts the fingerprint local feature point, generates the second verification information according to all or part of the fingerprint local feature points, and carries the location information of the at least one sub-region in the pairing notification message.
  • the playback device generates the first verification information according to the user operation
  • the source device generates the second verification information according to the user operation
  • the playback device performs the second verification information sent by the source device and the first verification information generated by the source device.
  • the source device requests the shared media resource, and the source device sends the media resource selected by the user to the playback device for playback, and only needs the user to play the media resource separately.
  • the media resource sharing process can be completed by performing an operation on the source device, which simplifies the number of user operations in the process of media resource sharing, and reduces the operation difficulty of media resource sharing.
  • a source device is provided.
  • the source device mainly includes:
  • the first processing module 701 is configured to determine a media resource selected by the user, and generate first verification information according to the user operation, and receive second verification information sent by the playback device and an identifier of the playback device, where the second verification information is The playback device is generated according to user operations;
  • the second processing module 702 is configured to determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired, and send the media resource to the device according to the identifier of the playback device.
  • the playback device is configured to play, or the address information of the media resource is sent to the playback device according to the identifier of the playback device, and the playback device is configured according to the media
  • the source address information gets the media resource and plays.
  • the first processing module 701 is specifically configured to:
  • the pairing notification message After receiving the pairing notification message sent by the playing device, determining the media resource selected by the user, and generating the first verification information according to the user operation, where the pairing notification message includes the second verification information and the playing device Identification
  • the first processing module 701 is specifically configured to:
  • the pairing response message returned by the playing device according to the pairing request message is received within a set time period
  • the pairing notification message sent by the playback device is received within a set duration.
  • the first processing module 701 is further configured to:
  • the first processing module 701 is specifically configured to:
  • the first verification information is generated according to the collected fingerprint image.
  • the first processing module 701 is specifically configured to:
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction on the collected fingerprint image.
  • the sub-region determined by the position information of the sub-region in the corrected fingerprint image extracts a fingerprint local feature point, and the first verification information is generated according to the extracted fingerprint local feature point.
  • a source device is provided.
  • the source device mainly includes:
  • the transceiver 801 is configured to receive second verification information sent by the playback device and a label of the playback device The second verification information is generated by the playback device according to a user operation;
  • the processor 802 is configured to determine a media resource selected by the user, and generate first verification information according to the user operation, and determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired, and the indication is
  • the transceiver 801 sends the address information of the media resource to the playback device according to the identifier of the playback device, and the playback device obtains the media resource according to the address information of the media resource and plays the same.
  • the processor 802 determines the media resource selected by the user and generates the first verification information according to the user operation, and then instructs the transceiver 801 to send a pairing request message to the playing device, where the pairing request message includes the identifier of the source device.
  • the transceiver 801 receives the pairing response message returned by the playing device according to the pairing request message, where the pairing response message carries the second verification information and the identifier of the playing device;
  • the processor 802 After receiving the pairing notification message sent by the playing device, the processor 802 determines the media resource selected by the user, and generates the first verification information according to the user operation, where the pairing notification message includes the second verification. Information and an identification of the playback device;
  • the instruction transceiver 801 receives the pairing notification message sent by the playing device, where the pairing notification message includes the second verification information. And an identification of the playback device.
  • the transceiver 801 receives the pairing response message returned by the playing device according to the pairing request message within a set time period;
  • the transceiver 801 After receiving the pairing notification message sent by the playing device, the transceiver 801 determines a media resource selected by the user within a set time period, and generates the first verification information according to a user operation;
  • the transceiver 801 determines the media resource selected by the user, and after generating the first verification information according to the user operation, receives the pairing notification message sent by the playback device within a set duration.
  • the display 803 further includes a display 803, after the transceiver 801 receives the pairing notification message sent by the playing device, the processor 802 instructs the display 803 to display the shared media resource list;
  • the processor 802 Before the processor 802 generates the first verification information according to a user operation, it is determined that the display 803 currently displays the shared media resource list.
  • the processor 802 generates the first verification information according to the collected voice information input by the user;
  • the processor 802 generates the first verification information according to the collected sliding track on the screen
  • the processor 802 generates the first verification information according to the collected touch operation of the user at the first position of the screen;
  • the processor 802 generates the first verification information according to the collected fingerprint image.
  • the processor 802 collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracting fingerprint local feature points in all or a predetermined sub-region of the corrected fingerprint image, according to the extracted fingerprint. Generating the first verification information by a local feature point;
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction on the collected fingerprint image.
  • the sub-region determined by the position information of the sub-region in the corrected fingerprint image extracts a fingerprint local feature point, and the first verification information is generated according to the extracted fingerprint local feature point.
  • the playback device mainly includes:
  • a generating module 901 configured to generate second verification information according to a user operation
  • the sending module 902 is configured to send the second verification information and the identifier of the playback device to the source device.
  • the receiving module 903 is configured to receive the media resource returned by the source device according to the identifier of the playback device, or receive the address information of the media resource returned by the source device according to the identifier of the playback device, according to the media resource.
  • the address information is obtained by the media information; the media resource or the address information of the media resource is determined by the source device according to the second verification information and the first verification information generated by the user according to the user operation, the source device and the Return after the playback device matches successfully;
  • the playing module 904 is configured to play the media resource.
  • the receiving module 903 is further configured to receive a pairing request message sent by the source device, where the pairing request message is sent after the source device determines the media resource and generates the first verification information, where The pairing request message includes an identifier of the source device, and the sending module 902 is configured to: return a pairing response message to the source device according to the identifier of the source device, where the pairing response message carries the second verification information And an identifier of the playback device;
  • the sending module 902 is specifically configured to send a pairing notification message, where the pairing notification message includes the second verification information and an identifier of the playing device.
  • the sending module 902 sends a pairing response message within a set time period.
  • the generating module 901 is specifically configured to:
  • the generating module 901 is specifically configured to:
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the source device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. After the sub-region determined by the position information of the sub-region in the corrected fingerprint image, the fingerprint local feature point is extracted, and the second verification information is generated according to all or part of the extracted fingerprint local feature points;
  • the sending module 902 is further configured to carry the location information of the at least one sub-area in the pairing notification message.
  • the playback device mainly includes:
  • the processor 1001 is configured to generate second verification information according to a user operation.
  • the transceiver 1002 is configured to send the second verification information and the identifier of the playback device to the source device, and receive the media resource returned by the source device according to the identifier of the playback device; or receive the source device according to the Decoding the address information of the media resource returned by the identifier of the playback device, and acquiring the media resource according to the address information of the media resource;
  • the player 1003 is configured to play the media resource.
  • the media resource or address information of the media resource is used by the source device according to the The second verification information and the first verification information generated by the user according to the user operation determine that the source device and the playback device match successfully and then return.
  • the transceiver 1002 is further configured to receive a pairing request message sent by the source device, where the pairing request message is sent after the source device determines the media resource and generates the first verification information, where the pairing request is sent.
  • the message includes an identifier of the source device, and a pairing response message is returned to the source device according to the identifier of the source device, where the pairing response message carries the second verification information and an identifier of the playback device.
  • the transceiver 1002 is specifically configured to send a pairing notification message, where the pairing notification message includes the second verification information and an identifier of the playback device.
  • the transceiver 1002 sends a pairing response message within a set time period after receiving the pairing request message.
  • the processor 1001 generates the second verification information according to the collected voice information input by the user;
  • the processor 1001 generates the second verification information according to the collected sliding track on the screen
  • the processor 1001 generates the second verification information according to a touch operation of the user at the second position of the screen;
  • the processor 1001 generates the second verification information according to the collected fingerprint image.
  • the processor 1001 is specifically configured to:
  • the pairing request message carries the first verification information corresponding to the first verification information generated by the source device. Position information of the sub-area of the fingerprint image, collecting the fingerprint image input by the user, and performing direction field correction on the collected fingerprint image, and extracting the sub-region determined by the position information of the sub-region in the corrected fingerprint image And generating, by the fingerprint local feature point, the second verification information according to all or part of the extracted fingerprint local feature points;
  • the second verification information carries location information of the at least one sub-area in the pairing notification message.
  • the playback device mainly includes:
  • the first processing module 1101 is configured to generate first verification information according to a user operation, and receive second verification information sent by the source device and address information of the media resource selected by the user, where the second verification information is used by the source device according to the user. Operation generation
  • the second processing module 1102 is configured to determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired, obtain content of the media resource according to the address information of the media resource, and play .
  • the first processing module 1101 is specifically configured to:
  • the pairing request message is sent to the source device, where the pairing request message carries the identifier of the playing device, and receives the pairing response returned by the source device according to the pairing request message. a message, the pairing response message carrying the second verification information and address information of the media resource;
  • the first verification information is generated according to a user operation, where the pairing notification message carries the second verification information and address information of the media resource;
  • the pairing notification message sent by the source device is received, where the pairing notification message carries the second verification information and address information of the media resource.
  • the first processing module 1101 is specifically configured to:
  • the pairing response message returned by the source device according to the pairing request message is received within a set duration
  • the pairing notification message sent by the source device is received within a set duration.
  • the first processing module 1101 is further configured to:
  • the first processing module 1101 is specifically configured to:
  • the first verification information is generated according to the collected fingerprint image.
  • the first processing module 1101 is specifically configured to:
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the source device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. Then, the sub-region determined by the position information of the sub-region in the corrected fingerprint image extracts the fingerprint local feature point, and generates the first verification information according to the extracted fingerprint local feature point.
  • a playback device is provided.
  • the playback device mainly includes:
  • the transceiver 1201 is configured to receive second verification information sent by the source device and address information of the media resource selected by the user, where the second verification information is generated by the source device according to a user operation.
  • the processor 1202 is configured to generate first verification information according to a user operation, and determine, according to the first verification information and the second verification information, that the source device and the playback device are successfully paired according to the address information of the media resource.
  • the transceiver 1201 is instructed to acquire the content of the media resource and play it.
  • the processor 1202 after generating the first verification information according to the user operation, instructs the transceiver 1201 to send a pairing request message to the source device, where the pairing request message carries the identifier of the playing device; the transceiver 1201 receives the The pairing response message returned by the source device according to the pairing request message, where the pairing response message carries the second verification information and address information of the media resource;
  • the processor 1202 after the transceiver 1201 receives the pairing notification message sent by the source device, generates the first verification information according to a user operation, where the pairing notification message carries the second verification information and an address of the media resource. information;
  • the processor 1202 after generating the first verification information according to the user operation, instructs the transceiver 1201 to receive the pairing notification message sent by the source device, where the pairing notification message carries the second verification information and the media resource. Address information.
  • the transceiver 1201 receives the pairing response message returned by the source device according to the pairing request message within a set duration;
  • the transceiver 1201 After receiving the pairing notification message sent by the source device, the transceiver 1201 generates the first verification information according to a user operation within a set time period;
  • the processor 1202 After generating the first verification information according to the user operation, the processor 1202 instructs the transceiver 1201 to receive the pairing notification message sent by the source device within a set duration.
  • the transceiver 1202 After receiving the pairing notification message, the transceiver 1202 starts an operation mode of acquiring and playing the shared media resource;
  • the processor 1202 determines that it is in the working mode of acquiring and playing the shared media resource before generating the first verification information according to the user operation.
  • the processor 1202 generates the first verification information according to the collected voice information input by the user;
  • the processor 1202 generates the first verification information according to the collected sliding track on the screen
  • the processor 1202 generates the first part according to the collected touch operation of the user at the first position of the screen. a verification message
  • the processor 1202 generates the first verification information according to the collected fingerprint image.
  • the processor 1202 collects a fingerprint image input by the user, and after performing direction field correction on the fingerprint image, extracts a fingerprint local feature point in all or a predetermined sub-region of the corrected fingerprint image, according to the extracted fingerprint. Generating the first verification information by a local feature point;
  • the pairing notification message carries the location information of the sub-region of the fingerprint image corresponding to the second verification information generated by the source device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. Then, the sub-region determined by the position information of the sub-region in the corrected fingerprint image extracts the fingerprint local feature point, and generates the first verification information according to the extracted fingerprint local feature point.
  • the source device mainly includes:
  • the processing module 1301 is configured to generate second verification information according to a user operation, and determine address information of the media resource selected by the user;
  • the sending module 1302 is configured to send the second verification information and the address information of the media resource to the playing device, where the playing device determines, according to the second verification information and the first verification information generated by the user according to the user operation. After the matching between the playback device and the source device is successful, the media resource is obtained and played according to the address information of the media resource.
  • the method further includes a receiving module 1303, configured to receive, by the playing device, the first a pairing request message sent after the information is verified, where the pairing request message carries an identifier of the playing device; the sending module 1302 is specifically configured to return a pairing response message according to the pairing request message, where the pairing response message carries Decoding second verification information and address information of the media resource;
  • the sending module 1302 is specifically configured to send a pairing notification message, where the pairing notification message carries the second verification information and address information of the media resource.
  • processing module 1302 is specifically configured to:
  • processing module 1301 is specifically configured to:
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. After the sub-region determined by the position information of the sub-region in the corrected fingerprint image, the fingerprint local feature point is extracted, and the second verification information is generated according to all or part of the extracted fingerprint local feature points;
  • the source device mainly includes:
  • the processor 1401 is configured to generate second verification information according to a user operation, and determine address information of the media resource selected by the user;
  • the transceiver 1402 is configured to send the second verification information and the address information of the media resource to the playback device, where the playback device determines, according to the second verification information, the first verification information generated by the user according to the user operation. After the matching between the playback device and the source device is successful, the media resource is obtained and played according to the address information of the media resource.
  • the transceiver 1402 receives a pairing request message sent by the playing device after generating the first verification information, where the pairing request message carries an identifier of the playing device, and returns a pairing response message according to the pairing request message.
  • the pairing response message carries the second verification information and address information of the media resource;
  • the transceiver 1402 sends a pairing notification message, where the pairing notification message carries the second verification information and address information of the media resource.
  • the processor 1401 is specifically configured to:
  • the processor 1401 is specifically configured to:
  • the pairing request message carries the location information of the sub-region of the fingerprint image corresponding to the first verification information generated by the playback device, collects the fingerprint image input by the user, and performs direction field correction on the collected fingerprint image. After the sub-region determined by the position information of the sub-region in the corrected fingerprint image, the fingerprint local feature point is extracted, and the second verification information is generated according to all or part of the extracted fingerprint local feature points;
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

本发明公开了一种媒体资源共享方法及设备,用以简化媒体共享实现过程。该方法为:源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识,所述第二验证信息为所述播放设备根据用户操作生成;所述源设备根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。

Description

媒体资源共享方法及设备 技术领域
本发明涉及通信技术领域,尤其涉及一种媒体资源共享方法及设备。
背景技术
媒体共享是移动电子设备的重要应用,尤其是在家庭网络中。目前市场上出现的数字媒体传输和共享解决方案都是用户手动操作实现媒体传输和共享的。首先,提供媒体内容的源设备(source)和接收并播放媒体内容的播放设备(sink)必须通过有线或无线接入方式接入同一局域网(Local Area Network,LAN),以保证两设备能够建立连接并完成媒体数据的传输。
以数字生活网络联盟(Digital Living Network Alliance,DLNA)为例,假设用户在播放设备上操作,发现并获取源设备上共享的媒体资源并在播放设备上播放,具体过程如下:
用户打开DLNA的应用程序,点击“周边设备”按钮,搜索处于同一局域网的源设备;
系统将搜索到的周边的所有源设备显示给用户,用户从周边设备列表中选择所需要的设备,假设一共搜索出2台周边设备,用户点击选择设备标识为“[Mobile]GT-N7000”的源设备;
系统将源设备“[Mobile]GT-N7000”所共享的媒体内容列表展示给用户;
用户从媒体内容列表中选择想要播放的媒体内容,假设用户点击选择了媒体名称为“GALAXY_Note_Tutorial”的媒体内容;
播放设备播放名称为“GALAXY_Note_Tutorial”的媒体内容。
该媒体内容共享过程中操作步骤较多,从开始到最后播放需要经历5个操作步骤,其中4个步骤需要用户手动选择,操作起来很繁琐。
并且,媒体共享的应用程序,系统默认的设备标识一般为设备型号、设 备通用唯一识别码(Universally Unique Identifier,UUID)、设备互联网协议(Internet Protocol,IP)地址和设备介质访问控制(Media Access Control,MAC)地址,这些设备标识对于用户而言就是一串数字或者字符,用户很难读懂并与实体物理设备匹配,增加了用户选择设备的难度。用户可以为设备设置易于识别的别名,该设置过程同样较为繁琐。
另外,系统通过设备型号来标识设备,如果局域网中有两台相同型号的设备,则用户将难以区分两个设备。
综上可知,现有的媒体共享方式操作繁琐,用户体验差。
发明内容
本发明实施例提供一种媒体资源共享方法及设备,用以简化媒体共享实现过程。
本发明实施例提供的具体技术方案如下:
第一方面,提供了一种媒体资源共享方法,包括:
源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识;
所述源设备根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。
该实施例中,源设备根据用户操作生成第一验证信息,播放设备根据用户操作生成第二验证信息,源设备将播放设备发送的第二验证信息与自身生成的第一验证信息进行比对,确定该源设备与该播放设备匹配后,将共享的媒体资源或媒体资源的地址信息发送给播放设备,只需要用户分别在共享媒体资源的播放设备和源设备上进行一次操作即可完成媒体资源共享过程,简化了媒体资源共享的过程中用户操作的次数,降低了媒体资源共享的操作难 度。
结合第一方面,在第一种可能的实现方式中,所述源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识,包括:
所述源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识,并接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
所述源设备接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
或者,
所述源设备确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述源设备向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请求消息返回的所述配对响应消息;
或者,
所述源设备接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成所述第一验证信息;
或者,
所述源设备确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述源设备接收所述播放设备发送的配对通知消息后,所述方法还包括:
所述源设备显示共享的媒体资源列表;
和/或,
所述源设备根据用户操作生成所述第一验证信息之前,所述方法还包括:
所述源设备确定当前显示共享的媒体资源列表。
结合第一方面至第三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述源设备根据用户操作生成第一验证信息,包括:
所述源设备根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
所述源设备根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
所述源设备根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
所述源设备根据采集到的指纹图像生成所述第一验证信息。
结合第一方面的第一种可能的实现方式至第三种可能的实现方式中的任意一种,在第五种可能的实现方式中,所述源设备根据用户操作生成第一验证信息,包括:
所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,
所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,
所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应 的指纹图像的子区域的位置信息,所述源设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
第二方面,提供了一种媒体资源共享方法,包括:
播放设备根据用户操作生成第二验证信息;
所述播放设备向源设备发送第二验证信息以及所述播放设备的标识;
所述播放设备接收所述源设备根据所述播放设备的标识返回的媒体资源进行播放,或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源并播放;
所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回。
结合第二方面,在第一种可能的实现方式中,所述播放设备向源设备发送第二验证信息以及所述播放设备的标识,包括:
所述播放设备接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识,根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
所述播放设备向所述源设备发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述播放设备根据用户操作生成第二验证信息,包括:
所述播放设备根据采集的用户输入的声音信息生成所述第二验证信息;
或者,
所述播放设备根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
所述播放设备根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
所述播放设备根据采集到的指纹图像生成所述第二验证信息。
结合第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述播放设备根据用户操作生成第二验证信息,包括:
所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,所述播放设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
第三方面,提供了一种媒体资源共享方法,其特征在于,包括:
播放设备根据用户操作生成第一验证信息,接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
所述播放设备根据所述第一验证信息和所述第二验证信息确定所述源设 备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源并播放。
该实施例中,播放设备根据用户操作生成第一验证信息,源设备根据用户操作生成第二验证信息,播放设备将源设备发送的第二验证信息与自身生成的第一验证信息进行比对,确定该源设备与该播放设备匹配后,向源设备请求共享的媒体资源,源设备将用户选择的媒体资源发送给播放设备进行播放,只需要用户分别在共享媒体资源的播放设备和源设备上进行一次操作即可完成媒体资源共享过程,简化了媒体资源共享的过程中用户操作的次数,降低了媒体资源共享的操作难度。
结合第三方面,在第一种可能的实现方式中,所述播放设备根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,包括:
所述播放设备根据用户操作生成第一验证信息后,向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述播放设备接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述播放设备根据用户操作生成所述第一验证信息后,接收所述源设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述播放设备向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息;
或者,
所述播放设备接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
或者,
所述播放设备根据用户操作生成所述第一验证信息后,在设定时长内接收所述源设备发送的所述配对通知消息。
结合第三方面的第一种可能的实现方式,在第三种可能的实现方式中,所述播放设备接收所述配对通知消息后,所述方法还包括:
所述播放设备启动获取并播放共享的媒体资源的工作模式;
和/或,
所述播放设备根据用户操作生成第一验证信息之前,所述方法还包括:
所述播放设备确定处于所述获取并播放共享的媒体资源的工作模式下。
结合第三方面的第一种可能的实现方式至第三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述播放设备根据用户操作生成第一验证信息,包括:
所述播放设备根据采集到的用户输入的声音信息生成所述第一验证信息成;
或者,
所述播放设备根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
所述播放设备根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
所述播放设备根据采集到的指纹图像生成所述第一验证信息。
结合第三方面的第一种可能的实现方式至第三种可能的实现方式中的任意一种,在第五种可能的实现方式中,所述播放设备根据用户操作生成第一验证信息,包括:
所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,所述播放设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
第四方面,提供了一种媒体资源共享方法,包括:
源设备根据用户操作生成第二验证信息,以及确定用户选择的媒体资源的地址信息;
所述源设备向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
结合第四方面,在第一种可能的实现方式中,所述源设备向播放设备发送所述第二验证信息和所述媒体资源的地址信息,包括:
所述源设备接收所述播放设备在生成所述第一验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识,根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述源设备发送配对通知消息,所述配对通知消息中携带所述第二验证 信息和所述媒体资源的地址信息。
结合第四方面,在第二种可能的实现方式中,所述源设备根据用户操作生成第二验证信息,包括:
所述源设备根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
所述源设备根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
所述源设备根据采集到的指纹图像生成所述第二验证信息。
结合第四方面的第一种可能的实现方式,在第三种可能的实现方式中,所述源设备根据用户操作生成第二验证信息,包括:
所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,所述源设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
第五方面,提供了一种源设备,包括:
第一处理模块,用于确定用户选择的媒体资源并根据用户操作生成第一 验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识,所述第二验证信息为所述播放设备根据用户操作生成;
第二处理模块,用于根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。
结合第五方面,在第一种可能的实现方式中,所述第一处理模块具体用于:
确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识,并接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
或者,
确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
结合第五方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一处理模块具体用于:
向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请求消息返回的所述配对响应消息;
或者,
接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户 选择的媒体资源并根据用户操作生成所述第一验证信息;
或者,
确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
结合第五方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一处理模块还用于:
接收所述播放设备发送的配对通知消息后,显示共享的媒体资源列表;
和/或,
根据用户操作生成所述第一验证信息之前,确定当前显示共享的媒体资源列表。
结合第五方面至第三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述第一处理模块具体用于:
根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
根据采集到的指纹图像生成所述第一验证信息。
结合第五方面的第一种可能的实现方式至第三种可能的实现方式中的任意一种,在第五种可能的实现方式中,所述第一处理模块具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到 的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
第六方面,提供了一种播放设备,包括:
生成模块,用于根据用户操作生成第二验证信息;
发送模块,用于向源设备发送所述第二验证信息和所述播放设备的标识;
接收模块,用于接收所述源设备根据所述播放设备的标识返回的媒体资源;或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源;所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回;
播放模块,用于播放所述媒体资源。
结合第六方面,在第一种可能的实现方式中,所述接收模块还用于接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识;所述发送模块具体用于根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
所述发送模块具体用于发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
结合第六方面的第一种可能的实现方式,在第二种可能的实现方式中,所述生成模块具体用于:
根据采集的用户输入的声音信息生成所述第二验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
根据采集到的指纹图像生成所述第二验证信息。
结合第六方面的第一种可能的实现方式,在第三种可能的实现方式中,所述生成模块具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,所述发送模块还用于在所述配对通知消息中携带所述至少一个子区域的位置信息。
第七方面,提供了一种播放设备,包括:
第一处理模块,用于根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
第二处理模块,用于根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源并播放。
结合第七方面,在第一种可能的实现方式中,所述第一处理模块具体用于:
根据用户操作生成第一验证信息后,向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
根据用户操作生成所述第一验证信息后,接收所述源放设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
结合第七方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一处理模块具体用于:
向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息;
或者,
接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
或者,
根据用户操作生成所述第一验证信息后,在设定时长内接收所述源设备发送的所述配对通知消息。
结合第七方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一处理模块还用于:
接收所述配对通知消息后,启动获取并播放共享的媒体资源的工作模式;
和/或,
根据用户操作生成第一验证信息之前,确定处于所述获取并播放共享的媒体资源的工作模式下。
结合第七方面至第三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述第一处理模块具体用于:
根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
根据采集到的指纹图像生成所述第一验证信息。
结合第七方面至第三种可能的实现方式中的任意一种,在第五种可能的实现方式中,所述第一处理模块具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到 的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
第八方面,提供了一种源设备,包括:
处理模块,用于根据用户操作生成第二验证信息以及确定用户选择的媒体资源的地址信息;
发送模块,用于向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
结合第八方面,在第一种可能的实现方式中,还包括接收模块,用于接收所述播放设备在生成所述第一验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识;所述发送模块具体用于根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述发送模块具体用于发送配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
结合第八方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理模块具体用于:
根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
根据采集到的指纹图像生成所述第二验证信息。
结合第八方面的第一种可能的实现方式,在第三种可能的实现方式中,所述处理模块具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
附图说明
图1为本发明实施例中媒体资源共享的方法流程示意图;
图2为本发明实施例中媒体资源共享的详细过程示意图;
图3为本发明实施例中第二验证信息的生成过程示意图;
图4为本发明实施例中第二验证信息举例示意图;
图5为本发明实施例中另一媒体资源共享的详细过程示意图;
图6为本发明实施例中另一媒体资源共享的方法流程示意图;
图7为本发明实施例中源设备的结构示意图;
图8为本发明实施例中源设备的另一结构示意图;
图9为本发明实施例中播放设备的结构示意图;
图10为本发明实施例中播放设备的另一结构示意图;
图11为本发明实施例中播放设备的另一结构示意图;
图12为本发明实施例中播放设备的另一结构示意图;
图13为本发明实施例中源设备的另一结构示意图;
图14为本发明实施例中源设备的另一结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例中,按照功能划分,局域网至少有一个源设备且至少有一个播放设备。具体实施中,局域网中的一个物理设备可以同时集成有源设备的功能和播放设备的功能。
源设备是媒体共享应用场景中媒体内容的提供者,通常具有网络连接功能或者存储功能的家庭网络设备都可以作为源设备,例如智能手机、平板电脑、机顶盒、网络硬盘、个人数字助手(Personal Digital Assistant,PDA)等。
源设备可以将存储在本地的媒体资源进行共享,也可以提供存储在网络侧或者其他设备上的媒体资源的地址信息,让播放设备通过给定的地址信息从网络侧或者其他设备上获取并播放对应的媒体内容;或者源设备也可以将自己的屏幕画面编码成媒体流传输给播放设备实现同屏共享。
当源设备共享媒体内容时,需要提供共享媒体内容的内容列表,以便用户选择所要播放的媒体内容。
播放设备是媒体共享应用场景中媒体内容的接收者,能够播放所选定的共享媒体内容。通常具有网络连接功能和播放能力的家庭网络设备都可以作为源设备,例如智能手机、平板电脑、电视、音响、数字多功能光盘(DVD)播放机等。
播放设备可以发现接入同一局域网络的源设备,并且可以从源设备或者 根据源设备提供的媒体地址信息获取所要播放的媒体内容并且在本地播放。
本发明实施的一个典型应用场景为家庭网络,在家庭网络环境下具有多种类型的移动电子设备,这些移动电子设备均可连入家庭网络,一部分移动电子设备具有存储功能,可存储一定数量的媒体文件并共享到家庭网络之中,可作为源设备;一部分移动电子设备具有媒体的播放能力,能够播放诸如音乐、电影等媒体内容,可作为为播放设备。
另外一种典型应用场景就是好友之间的互相共享,例如去好友家访问,在好友家的家庭网络中想要分享其共享的媒体内容,或者几个好友在外面共同接入同一个无线局域网(Wireless Local Area Network,WLAN)中进行媒体内容的相互共享,这种情况属于临时搭建的媒体共享网络,需要一种方便快捷、符合用户操作习惯的设备选定的方式。
本发明第一实施例中,如图1所示,位于同一局域网中的源设备和播放设备进行媒体资源共享的详细方法流程如下:
步骤101:源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和该播放设备的标识,该第二验证信息为该播放设备根据用户操作生成。
步骤102:源设备根据第一验证信息和第二验证信息确定该源设备和该播放设备配对成功,根据播放设备的标识将用户选择的媒体资源发送给该播放设备进行播放,或者,根据播放设备的标识将用户选择的媒体资源的地址信息发送给播放设备,由播放设备根据该媒体资源的地址信息获取媒体资源并播放。
其中,源设备与播放设备连接至同一局域网络,且源设备与播放设备相互发现。
本发明实施例中,源设备生成第一验证信息以及接收播放设备的第二验证信息和该播放设备的标识,具体有以下三种不同的具体实施方式:
第一种,源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向局域网络中的播放设备发送配对请求消息,该配对请求消息中包 含源设备的标识,并接收局域网络中的播放设备根据该配对请求消息返回的配对响应消息,该配对响应消息中携带第二验证信息以及该播放设备的标识。
优选地,该第一种具体实施方式中,源设备向局域网络中的播放设备发送配对请求消息后,在设定时长内接收局域网络中的播放设备根据该配对请求消息返回的配对响应消息,源设备在超出该设定时长之后接收到的配对响应消息无效。例如,该设定时长可设置为1分钟、2分钟等。
第二种,源设备接收局域网络中的播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成第一验证信息,该配对通知消息中包含第二验证信息以及播放设备的标识。
优选地,该第二种具体实施方式中,源设备接收局域网络中的播放设备发送的配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成第一验证信息,如果源设备在该设定时长内未确定用户选择的媒体资源并根据用户操作生成第一验证信息,则源设备接收到的配对通知消息无效。例如,该设定时长可设置为1分钟、2分钟等。
第三种,源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息后,接收局域网络中的播放设备发送的配对通知消息,该配对通知消息中包含第二验证信息以及该播放设备的标识。
优选地,该第三种具体实施方式中,源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息后,在设定时长内接收局域网络中的播放设备发送的配对通知消息,源设备在超出该设定时长之后接收到的配对通知消息无效。例如,该设定时长可设置为1分钟、2分钟等。
优选地,播放设备接收配对请求消息后,播放设备启动获取并播放共享的媒体资源的工作模式;
和/或,播放设备根据用户操作生成所述第二验证信息之前,播放设备确定处于所述获取并播放共享的媒体资源的工作模式下。
优选地,源设备接收局域网络中的播放设备发送的配对通知消息后,源设备显示共享的媒体资源列表;
和/或,源设备根据用户操作生成第一验证信息之前,源设备确定当前显示共享的媒体资源列表。
本发明实施例中,第一验证信息和第二验证信息可以有多种生成方式,包括但不限于以下几种:
第一种,第一验证信息由源设备根据采集到的用户输入的声音信息生成,第二验证信息由播放设备根据采集到的用户输入的声音信息生成。具体地,源设备采集到用户发出的语音信号,从语音信号中提取出声纹特征数据,将提取到的声纹特征数据作为第一验证信息,同样地,播放设备采集到用户发出的语音信号,从语音信号中提取出声纹特征数据,将提取到的声纹特征数据作为第二验证信息。
第二种,第一验证信息由源设备根据采集到的屏幕上的滑动轨迹生成,第二验证信息由播放设备根据采集到的屏幕上的滑动轨迹生成。优选地,该滑动轨迹包括组成的图案(如圆形、方形、三角形、心形以及其他不规则图案)和滑动向量(如向左、向右、向上、向下、顺时针、逆时针等),但不包括滑动轨迹在设备屏幕上的起始位置和终止位置。
第三种,第一验证信息由源设备根据采集到的用户在屏幕的第一位置的触摸操作生成,第二验证信息由所述播放设备根据用户在屏幕的第二位置的触摸操作生成,具体实施中,触摸操作可以为点击操作、长按操作、滑动操作等。
第四种,第一验证信息由源设备根据采集到的指纹图像生成,第二验证信息由播放设备根据采集到的指纹图像生成。
优选地,若第一验证信息、第二验证信息为通过采集用户的指纹图像生成,则源设备根据用户操作生成第一验证信息,包括但不限于以下几种实现方式:
第一种,源设备采集用户输入的指纹图像,对该指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的指纹局部特征点生成第一验证信息;
第二种,源设备采集用户输入的指纹图像,对该指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的指纹局部特征点生成第一验证信息,并在配对请求消息中携带该至少一个子区域的位置信息;
第三种,配对通知消息中携带播放设备生成的第二验证信息所对应的指纹图像的子区域的位置信息,源设备采集用户输入的指纹图像并对采集到的指纹图像进行方向场校正后,以及在接收播放设备发送的该配对通知消息后,在校正后的指纹图像中该配对通知消息中携带的子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的指纹局部特征点生成第一验证信息。
相应地,播放设备根据用户操作生成第二验证信息,包括但不限于以下几种实现方式:
第一种,相应于第一验证信息生成方式中的第一种,播放设备采集用户输入的指纹图像,对该指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分指纹局部特征点生成第二验证信息;
第二种,相应于第一验证信息生成方式中的第二种,配对请求消息中携带源设备生成的第一验证信息所对应的指纹图像的子区域的位置信息,播放设备采集用户输入的指纹图像并对采集到的该指纹图像进行方向场校正后,以及接收源设备发送的该配对请求消息后,在校正后的指纹图像中该配对请求消息中携带的该子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分指纹局部特征点生成第二验证信息;
第三种,相应于第一验证信息生成方式中的第三种,播放设备采集用户输入的指纹图像,对该指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分指纹局部特征点生成第二验证信息,并在配对通知消息中携带该至少一个子区域的位置信息。
该优先地实施方式中,第二验证信息能够起到匹配识别的作用,即能够 通过比较第一验证信息和第二验证信息识别出前后两次采集的指纹是否来自同一用户的同一手指,且第二验证信息中未携带任何与用户指纹相关的身份信息,即使第三方获取用户的第二验证信息,也不能利用该第二验证信息进行用户身份的验证,同时第三方也不能通过多次获取一个用户的第二验证信息来获取用户所有的指纹特征信息。
本发明实施例中,源设备比较第一验证信息与第二验证信息,确定第一验证信息与第二验证信息相同,或者第二验证信息包含于第一验证信息,或者第二验证信息与第一验证信息的相似度达到设定阈值,或者第二验证信息中包含且第一验证信息也包含的特征占第二验证信息总特征的比值超过设定阈值,则确定第一验证信息与第二验证信息匹配。
例如,源设备采集到的滑动轨迹为三角形,第一验证信息为三角形,若播放设备采集到的滑动轨迹也为三角形,即第二验证信息也为三角形,则确定源设备与播放设备匹配。
又例如,源设备采集到的第一声音信息,第一验证信息为该第一声音信息,播放设备采集到的第二验证信息为第二声音信息,该第一声音信息与第二声音信息的相似度高于设定阈值,则确定源设备与播放设备匹配,具体可以为识别出的声音信息的内容匹配,也可以是识别出的声音信息中的音色匹配等。
又例如,源设备采集到用户在第一位置的三连击操作,第一验证信息为三连击操作,播放设备采集到用户在第二位置的三连击操作,第二验证信息也为三连击操作,可确定第一验证信息与第二验证信息匹配。
优选地,源设备比较第二验证信息与第一验证信息,确定第二验证信息中的每个指纹局部特征点均在第一验证信息中有对应的指纹局部特征点,确定源设备与播放设备配对成功;
或者,源设备确定第二验证信息中在第一验证信息中有对应的指纹局部特征点的个数占第二验证信息中的指纹局部特征点总数的比例超过设定阈值,确定源设备与播放设备配对成功。
本发明实施例中,播放设备的标识可以是任何能够唯一确定播放设备身份的标识信息,例如,播放设备的UUID、设备序列号、IP地址、MAC地址等可以表征设备身份的数字序列或者字符串等。
同样地,源设备的标识可以是任何能够唯一确定源设备身份的标识信息,例如,源设备的UUID、设备序列号、IP地址、MAC地址等可以表征设备身份的数字序列或者字符串等。
本发明实施例中,若源设备本地保存有用户选择的媒体资源的内容,直接将用户选择的媒体资源发送给播放设备进行播放;若源设备本地并未保存用户选择的媒体资源的内容,将用户选择的媒体资源的地址信息发送给播放设备,由播放设备根据该地址信息从网络或其他存储设备获取媒体资源并播放。
本发明第一实施例中,源设备根据用户操作生成第一验证信息,播放设备根据用户操作生成第二验证信息,源设备将播放设备发送的第二验证信息与自身生成的第一验证信息进行比对,确定该源设备与该播放设备匹配后,将共享的媒体资源或媒体资源的地址信息发送给播放设备,只需要用户分别在共享媒体资源的播放设备和源设备上进行一次操作即可完成媒体资源共享过程,简化了媒体资源共享的过程中用户操作的次数,降低了媒体资源共享的操作难度。
以下通过两个具体实施例对本发明第一实施例源设备验证源设备与播放设备相匹配后发送共享的媒体资源给播放设备进行播放的具体过程进行说明。
第一具体实施例中,如图2所示,进行媒体资源共享的详细过程如下:
步骤201:源设备和播放设备相互发现。
在诸如DLNA、Airplay、Miracast和Airdrop等家庭网络媒体资源共享解决方案中都涉及源设备和播放设备的相互发现和连接的建立,这是完成媒体资源共享的第一步。不同的解决方案中设备和服务发现的机制不尽相同,例如DLNA设备采用的是简单服务发现协议(Simple Service Discovery Protocol, SSDP)协议来实现,而Airplay设备采用的是多播域名系统(Multicast Domain Name System,MDNS)协议来实现,还有一些其他的媒体共享解决方案是采用自己开发的私有设备和服务发现机制来实现。
当源设备或者播放设备接入家庭网络或者其他类型的局域网,会通过协议规定或者预先约定的多播地址和端口向整个局域网络周期性地发送多播消息,所述多播消息中会携带有发送设备的设备和服务发现信息,包括设备型号、设备网络协议(IP)地址、设备类型(源设备或播放设备)、设备UUID等设备信息以及该设备所支持的服务标识、服务访问统一资源定位符(Universal Resource Locator,URL)等服务信息。
接入在同一局域网络的其他移动电子设备都会接收到该多播消息,从而获取了发送该多播消息的移动电子设备的设备和服务发现信息,发送多播消息的移动电子设备被其他的移动电子设备所发现。
步骤202:播放设备采集用户触摸播放设备的屏幕或者指纹采集区域输入的指纹图像。
该具体实施方式中,播放设备所对应的移动电子设备是一台具有指纹采集功能的设备。指纹采集方式由移动电子设备具体的功能配置决定,有的移动电子设备可以实现全屏采集指纹,即移动电子设备均在用户点击触摸屏幕的任何区域时均可采集到指纹图像;有的移动电子设备可以实现屏幕部分区域采集指纹,移动电子设备在用户点击触摸屏幕的一部分区域时采集到指纹图像;而有的移动电子设备只能在固定的区域(如Home键)上点击或者触摸才能采集到留下的指纹图像。
当用户在播放设备上点击或者触摸屏幕或者触摸指纹采集区域,播放设备上的指纹采集器就能通过光学、热敏或者生物射频等方式采集到用户的指纹。
步骤203:播放设备对采集到的指纹图像进行处理,生成第二验证信息。
具体地,如图3所示,第二验证信息的生成过程如下:
S301:确定指纹图像的方向场。
本发明实施例中,播放设备中的指纹采集装置在采集指纹图像时并不限定用户的手指按压方向,用户可在屏幕或者其他指定的指纹采集区域内在任何方向上按压手指输入指纹图像。
播放设备所采集到的指纹图像是由中心花纹、脊线和谷线构成的,这些线条纹理具有一定的走势和形状,它们所表现出来的方向性即为指纹图像的方向场。指纹的方向场是对纹线形状的拓扑结构的一种描述,表征了指纹纹线的走势方向。指纹图像的方向场可以采用掩膜法和公式法计算得到。
S302:计算出指纹图像的方向场后对方向场进行校正。
具体地,对指纹图像进行旋转,使得旋转后的指纹图像的方向场方向与预设的轴线方向平行,以保证在播放设备和源设备上采集的指纹图像的方向场方向一致。
S303:对方向场校正后的指纹图像进行等比例分割,将完整的指纹图像等比例地分割成若干个指纹子图像。
本发明实施例中,通过在第二验证信息中携带部分指纹特征信息,保证第二验证信息中不携带任何与用户指纹相关的用户身份信息,即禁止在第二验证信息中携带指纹图像中的所有指纹特征信息。
其中,每个指纹子图像的尺寸相同。
S304:随机抽取多个不同位置的指纹子图像,提取所选取的多个指纹子图像中的指纹局部特征点。
人类的指纹特征由总体特征和局部特征构成,其中局部特征点包括终结点、分叉点、分歧点、孤立点、环点和短纹六种类型,一个完整的指纹大约有100个局部特征点,对于每一个局部特征点通过类型、水平位置、垂直位置、方向、曲率和质量这6个信息维度来描述,这些局部特征点的特征信息都是终身不变的。
如图4所示,系统从分割之后的指纹子图像中随机选取了2个指纹子图像,其中位于左边的记为指纹子图像A,位于右边的记为指纹子图像B,这两个指纹子图像具有相同的尺寸(即长和宽具有相同的像素点数量)。指纹子图 像A中包含有6个指纹局部特征点,编号为1-6;指纹子图像B中包含有5个指纹局部特征点,编号为7-11。提取出这两个指纹子图像中的指纹局部特征点后针对每个指纹子图像生成特征点列表,在特征点列表中的每个局部特征点都包含该特征点的类型、水平位置、垂直位置、方向、曲率和质量这6个描述信息,其中水平位置和垂直位置指的是该指纹局部特征点在所在的指纹子图像中的相对位置,而不是在整个指纹图像中的绝对位置。
需要注意的是,在随机抽取指纹子图像时应尽量不选取指纹图像的边缘区域,因为该区域的指纹图像分辨率较低,不利于后期的特征提取和验证匹配。
S305:选取部分局部特征点,生成第二验证信息。
S304中随机抽取了指纹子图像A和指纹子图像B,并从指纹子图像A中提取出了6个指纹局部特征点和从指纹子图像B中提取出了5个指纹局部特征点。从每个指纹子图像中都随机抽取一部分指纹局部特征点,组成一个混合的指纹局部特征点列表。
在本发明实施例中,分别从指纹子图像A和指纹子图像B中选取了编号为1,3,4,7,9,11这6个指纹局部特征点生成第二验证信息,其中1,3,4属于指纹子图像A中的指纹局部特征点,而7,9,11属于指纹子图像B中的指纹局部特征点。由于第二验证信息中包含有多个指纹子图像的部分指纹局部特征点的特征信息,而这些指纹子图像的位置不同,因此第二验证信息中给出的指纹局部特征与用户指纹图像中的任何一块区域的指纹局部特征均不能匹配,即使第二验证数据被第三方获取到,第三方也无法利用第二验证信息进行任何与用户身份识别和验证的操作,同时第三方也不能通过反复获取第二验证信息的方式获取用户的全部指纹特征信息。
步骤204:播放设备通过多播形式发送多播事件消息给接入同一局域网的所有源设备,该多播事件消息中除了包含有第二验证信息,也包含播放设备的IP地址、设备UUID、访问地址URL等信息,以便源设备在接收到多播事件消息时能够确定发出该消息的播放设备。
当播放设备生成了第二验证信息时,即意味着完成了媒体资源共享中播放设备的选定。播放设备向通过接入的局域网广播多播事件消息,网络中所有的源设备都可接收到该多播事件消息。
步骤205:用户在自己选择的源设备上选择共享的媒体资源,在用户选择媒体资源的同时,源设备采集用户输入的指纹图像。
用户选择一个源设备,此时源设备上展示着共享的媒体资源列表。用户点击源设备的触摸屏幕,选择共享的媒体资源,完成媒体资源的选定。同时,由于在选择共享的媒体资源的时候触摸了显示屏,在显示屏上留下了指纹,因此源设备可以同时采集用户的指纹图像。
步骤206:源设备对采集到的指纹图像进行处理,生成第一验证信息。
具体地,源设备确定采集到的指纹图像的方向场,并对方向场进行校正,使在源设备采集的指纹图像与预设的轴线方向平行,以保证在播放设备和源设备上采集的指纹图像的方向场方向一致。源设备对校正后的指纹图像进行等比例缩放,使其与播放设备上采集的指纹图像的尺寸相同,根据接收到的第二验证信息中携带的提取局部特征点的指纹子图像的位置和尺寸信息,在源设备采集的指纹图像的相同的位置提取尺寸相同的指纹子图像。源设备在所提取的每个指纹子图像提取指纹局部特征点,对提取到的所有指纹局部特征点的特征信息进行汇总,生成第一验证信息。
生成第一验证信息的具体方法可参见上述S301至S305的描述。
步骤207:源设备对比第一验证信息和第二验证信息,验证在播放设备和源设备上的两次采集的指纹是否匹配。
源设备接收的第二验证信息中包含两个指纹子图像中的部分指纹局部特征点的特征信息,源设备生成的第二验证信息中包含了与两个指纹子图像位置相同的指纹子图像中所有指纹局部特征点的特征信息。对第二验证信息中的每个指纹局部特征点的特征信息进行比对,比对在第一验证信息中是否有对应的指纹局部特征点,针对每个指纹局部特征点要比对指纹特征信息中的类型、水平位置、垂直位置、方向、曲率和质量这6个描述维度,如果特征信 息一致,则该指纹局部特征点在第一验证信息中有匹配的指纹局部特征点,比对通过,否则该指纹局部特征点比对不通过。
在对第二验证信息与第一验证信息是否匹配的判决上,通常设置一定的阈值,即如果第二验证信息中通过比对的指纹局部特征点的个数或者通过比对的指纹局部特征点个数占第二验证信息中的指纹局部特征点总数的比例超过某一阈值,则判决为第二验证信息与第一验证信息匹配,即在播放设备和源设备上两侧采集的指纹为同一用户的指纹;否则,则判决为第二验证信息与第一验证信息不匹配。
该具体实施例中,第二验证信息中包含了6个指纹局部特征点,而第一验证信息中包含了11个指纹局部特征点。分别将第一验证信息中的6个指纹局部特征点依次与第二验证信息中的11个指纹局部特征点的特征信息比对,第二验证信息中比对通过的指纹局部特征点的个数大于或者等于阈值4,则确定匹配通过。阈值根据具体的情况和用户的实际需求预先设定,阈值设置的越大,安全性越高,计算量越大,响应时间较长;阈值设置的越小,响应时间越短,安全性越低。
步骤208:若匹配通过,则源设备直接将用户选择共享的媒体资源的地址信息发送给播放设备,播放设备根据该地址信息获取媒体内容并在播放设备上播放。
若匹配通过,则源设备直接向选定的播放设备发送请求播放命令,该请求播放命令中包含有用户选择共享的媒体资源的地址信息(URL),播放设备接收到该请求播放命令后根据该地址信息向源设备或者存储有该媒体资源的内容的服务器发送请求,所接收的相应消息即为该媒体资源的内容的媒体流,播放设备就可以播放该内容。整个过程用户是无需参与的。
第二具体实施例中,如图5所示,进行媒体资源共享的详细过程如下:
步骤501:源设备和播放设备相互发现。
具体过程参见第一具体实施例中步骤201的描述,此处不再赘述。
步骤502:用户触摸源设备的触控屏幕,选择共享的媒体资源,源设备采 集用户触摸屏幕时输入的指纹图像,并确定用户选择共享的媒体资源。
步骤503:源设备对指纹图像进行处理,生成第一验证信息。
具体过程与第一具体实施例中生成第一验证信息的描述大致相同,不同之处在于:假设采集到的指纹图像经过方向场校正和等比例分割后随机抽取2个指纹子图像,记为指纹子图像C和指纹子图像D,在这2个指纹子图像中提取指纹局部特征点,假定在指纹子图像C中提取出8个指纹局部特征点,在指纹子图像D中提取出6个指纹局部特征点,则生成的第一验证信息中包含指纹子图像C和指纹子图像D中提取到的所有14个指纹局部特征点的特征信息。
步骤504:源设备向所接入的局域网中所有的播放设备发送配对请求消息。
该配对请求消息中携带源设备的地址信息。
在源设备生成第一验证信息之后,源设备就会向接入同一局域网中的所有播放设备发送配对请求消息,该配对请求中包含有源设备随机抽取的指纹子图像的数量以及每个指纹子图像的位置信息,以便播放设备在采集到用户指纹图像后能够根据获得相同位置上的指纹子图像。对于发送的配对请求消息,源设备会设置一个等待时间阈值,如果在发出配对请求之后在等待时间阈值范围之内没有接收到播放设备发回的响应报文,则自动认为该请求失效,源设备与该配对请求对应的播放设备没有建立配对关系。
步骤505:用户在其所选定的播放设备上触摸屏幕,播放设备采集用户的指纹图像,对指纹图像进行处理,生成第二验证信息。
具体地,播放设备确定采集到的指纹图像的方向场,并对方向场进行校正,使在源设备采集的指纹图像与在播放设备采集的指纹图像的方向场方向一致,对校正后的指纹图像进行等比例缩放,使其与源设备上采集的指纹图像的尺寸相同。然后根据接收到的配对请求消息中所携带的指纹子图像的数量、位置和尺寸信息在播放设备采集的指纹图像中的相同的位置上提取尺寸相同的指纹子图像。播放设备在提取的每个指纹子图像中提取指纹局部特征点,从提取的每个指纹子图像中的指纹局部特征点中随机抽取部分指纹局部 特征点,将抽取到的部分指纹局部特征点的特征信息进行汇总,生成第二验证信息。
该具体实施例中,播放设备根据配对请求消息中携带的指纹子图像的数量、位置和尺寸信息,在播放设备采集的指纹图像中对应位置提取2个指纹子图像记为指纹子图像C和指纹子图像D,并在这2个指纹子图像中提取出14个指纹局部特征点,其中,指纹子图像C中提取到8个指纹局部特征点,指纹子图像D中提取到6个指纹局部特征点,在指纹子图像C中的8个指纹局部特征点中随机抽取5个特征点,在指纹子图像D中的6个指纹局部特征点中随机抽取4个特征点,总共抽取的9个特征点的特征信息进行汇总,生成第二验证信息。
步骤506:播放设备将第二验证信息加载到配对请求消息的响应报文(即配对响应消息)中发送给源设备。该配对响应消息中还携带播放设备的地址信息。
步骤507:源设备对第一验证信息和第二验证信息进行匹配,验证在播放设备和源设备上的两次采集的指纹是否为同一个。
具体过程参见第一具体实施例中的步骤207。
步骤508:若匹配通过,则源设备直接将用户选择共享的媒体资源的URL发送给播放设备,以便播放设备根据该URL信息获取媒体资源的内容并在播放设备上播放。
具体过程参见第一具体实施例中的步骤208。
基于同一发明构思,本发明第二实施例中,如图6所示,进行媒体资源共享的详细方法流程如下:
步骤601:播放设备根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成。
优选地,播放设备根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,具体有以下三种具体实施方式:
第一种,播放设备根据用户操作生成第一验证信息后,向局域网络中的源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,该第一种具体实施方式中,播放设备向局域网络中的源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息,播放设备在超出该设定时长之后接收到的配对响应消息无效。例如,该设定时长可设置为1分钟、2分钟等。
第二种,播放设备接收局域网络中的源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,该第二种具体实施方式中,所述播放设备接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息,如果播放设备未在该设定时长内根据用户操作生成第一验证信息,则接收到的配对通知消息无效。例如,该设定时长可设置为1分钟、2分钟等。
第三种,播放设备根据用户操作生成所述第一验证信息后,接收局域网络中的播放设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,该第三种具体实施方式中,所述播放设备根据用户操作生成所述第一验证信息后,在设定时长内接收所述局域网络中的源设备发送的所述配对通知消息,播放设备在超出该设定时长之后接收到配对通知消息无效。例如,该设定时长可设置为1分钟、2分钟等。
优先地,所述播放设备接收所述配对通知消息后,所述播放设备启动获取并播放共享的媒体资源的工作模式;
和/或,
所述播放设备根据用户操作生成第一验证信息之前,所述播放设备确定处于所述获取并播放共享的媒体资源的工作模式下。
优先地,所述源设备接收所述配对请求消息后,所述源设备显示共享的媒体资源列表;
和/或,
所述源设备根据用户操作生成所述第二验证信息之前,所述源设备确定当前显示共享的媒体资源列表。
优先地,第一验证信息和第二验证信息的生成方式有多种,包括但不限于以下几种:
第一种,第一验证信息由所述播放设备根据采集到的用户输入的声音信息生成,所述第二验证信息由所述源设备根据采集到的用户输入的声音信息生成。具体地,播放设备采集到用户发出的语音信号,从语音信号中提取出声纹特征数据,将提取到的声纹特征数据作为第一验证信息,同样地,源设备采集到用户发出的语音信号,从语音信号中提取出声纹特征数据,将提取到的声纹特征数据作为第二验证信息。
第二种,第一验证信息由所述播放设备根据采集到的屏幕上的滑动轨迹生成,所述第二验证信息由所述源设备根据采集到的屏幕上的滑动轨迹生成。
优选地,该滑动轨迹包括组成的图案(如圆形、方形、三角形、心形以及其他不规则图案)和滑动向量(如向左、向右、向上、向下、顺时针、逆时针等),但不包括滑动轨迹在设备屏幕上的起始位置和终止位置。
第三种,第一验证信息由所述播放设备根据采集到的用户在屏幕的第一位置的触摸操作生成,所述第二验证信息由所述源设备根据用户在屏幕的第二位置的触摸操作生成,具体实施中,触摸操作可以为点击操作、长按操作、滑动操作等。
第四种,第一验证信息由所述播放设备根据采集到的指纹图像生成,所述第二验证信息由所述源设备根据采集到的指纹图像生成。
步骤602:播放设备根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源的内容并播放。
优选地,播放设备比较第二验证信息与第一验证信息,确定第二验证信息中的每个指纹局部特征点均在第一验证信息中有对应的指纹局部特征点,确定源设备与播放设备配对成功;
或者,播放设备确定第二验证信息中在第一验证信息中有对应的指纹局部特征点的个数占第二验证信息中的指纹局部特征点总数的比例超过设定阈值,确定源设备与播放设备配对成功。
优先地,所述播放设备根据用户输入的指纹图像生成第一验证信息,具体包括但不限于以下几种具体实施方式:
第一种,所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
第二种,所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
第三种,所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,所述播放设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
相应的,所述源设备根据用户输入的指纹图像生成第二验证信息,包括但不限于以下几种具体实施方式:
第一种,相应于第一验证信息生成方式中的第一种,所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
第二种,相应于第一验证信息生成方式中的第二种,所述配对请求消息 中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,所述源设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
第三种,相应于第一验证信息生成方式中的第三种,所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
本发明第二实施例中,播放设备根据用户操作生成第一验证信息,源设备根据用户操作生成第二验证信息,播放设备将源设备发送的第二验证信息与自身生成的第一验证信息进行比对,确定该源设备与该播放设备匹配后,向源设备请求共享的媒体资源,源设备将用户选择的媒体资源发送给播放设备进行播放,只需要用户分别在共享媒体资源的播放设备和源设备上进行一次操作即可完成媒体资源共享过程,简化了媒体资源共享的过程中用户操作的次数,降低了媒体资源共享的操作难度。
本发明第三实施例中,基于与第一实施例相同的发明构思,提供了一种源设备,该源设备的具体实施可参见上述第一方法实施例中源设备的描述,重复之处不再赘述,如图7所示,该源设备主要包括:
第一处理模块701,用于确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识,所述第二验证信息为所述播放设备根据用户操作生成;
第二处理模块702,用于根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资 源的地址信息获取媒体资源并播放。
优选地,第一处理模块701具体用于:
确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识,并接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
或者,
确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
优选地,所述第一处理模块701具体用于:
向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请求消息返回的所述配对响应消息;
或者,
接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成所述第一验证信息;
或者,
确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
优选地,所述第一处理模块701还用于:
接收所述播放设备发送的配对通知消息后,显示共享的媒体资源列表;
和/或,
根据用户操作生成所述第一验证信息之前,确定当前显示共享的媒体资 源列表。
具体实施中,所述第一处理模块701具体用于:
根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
根据采集到的指纹图像生成所述第一验证信息。
优选地,所述第一处理模块701具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
本发明第四实施例中,基于与第一实施例相同的发明构思,提供了一种源设备,该源设备的具体实施可参见上述第一实施例中源设备的描述,重复之处不再赘述,如图8所示,该源设备主要包括:
收发器801,用于接收播放设备发送的第二验证信息和所述播放设备的标 识,所述第二验证信息为所述播放设备根据用户操作生成;
处理器802,用于确定用户选择的媒体资源并根据用户操作生成第一验证信息,根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,指示收发器801根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。
优选地,处理器802确定用户选择的媒体资源并根据用户操作生成第一验证信息后,指示收发器801向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识;收发器801接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
处理器802在收发器801接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
或者,
处理器802确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,指示收发器801接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
优选地,收发器801向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请求消息返回的所述配对响应消息;
或者,
收发器801接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成所述第一验证信息;
或者,
收发器801确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
优选地,还包括显示器803,处理器802在收发器801接收所述播放设备发送的配对通知消息后,指示显示器803显示共享的媒体资源列表;
和/或,
处理器802根据用户操作生成所述第一验证信息之前,确定显示器803当前显示共享的媒体资源列表。
具体实施中,处理器802根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
处理器802根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
处理器802根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
处理器802根据采集到的指纹图像生成所述第一验证信息。
优选地,处理器802采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
本发明第五实施例中,基于与第一实施例相同的发明构思,提供了一种 播放设备,该播放设备的具体实施可参见上述第一实施例中播放设备的描述,重复之处不再赘述,如图9所示,该播放设备主要包括:
生成模块901,用于根据用户操作生成第二验证信息;
发送模块902,用于向源设备发送所述第二验证信息和所述播放设备的标识;
接收模块903,用于接收所述源设备根据所述播放设备的标识返回的媒体资源;或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源;所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回;
播放模块904,用于播放所述媒体资源。
优选地,所述接收模块903还用于接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识;所述发送模块902具体用于根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
所述发送模块902具体用于发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
优选地,发送模块902在接收模块903接收所述配对请求消息后,在设定时长内发送配对响应消息。
其中,所述生成模块901具体用于:
根据采集到的用户输入的声音信息生成所述第二验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
根据采集到的指纹图像生成所述第二验证信息。
优选地,所述生成模块901具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,所述发送模块902还用于在所述配对通知消息中携带所述至少一个子区域的位置信息。
本发明第六实施例中,基于与第一实施例相同的发明构思,提供了一种播放设备,该播放设备的具体实施可参见上述第一实施例中播放设备的描述,重复之处不再赘述,如图10所示,该播放设备主要包括:
处理器1001,用于根据用户操作生成第二验证信息;
收发器1002,用于向源设备发送所述第二验证信息和所述播放设备的标识,接收所述源设备根据所述播放设备的标识返回的媒体资源;或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源;
播放器1003,用于播放所述媒体资源。
其中,所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述 第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回。
优选地,收发器1002还用于接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识;根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
或者,
收发器1002具体用于发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
优选地,收发器1002在接收所述配对请求消息后,在设定时长内发送配对响应消息。
其中,处理器1001根据采集到的用户输入的声音信息生成所述第二验证信息;
或者,
处理器1001根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
处理器1001根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
处理器1001根据采集到的指纹图像生成所述第二验证信息。
优选地,处理器1001具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的 指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,在所述配对通知消息中携带所述至少一个子区域的位置信息。
本发明第七实施例中,基于与第二实施例相同的发明构思,提供了一种播放设备,该播放设备的具体实施可参见上述第二实施例中播放设备的描述,重复之处不再赘述,如图11所示,该播放设备主要包括:
第一处理模块1101,用于根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
第二处理模块1102,用于根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源的内容并播放。
优选地,所述第一处理模块1101具体用于:
根据用户操作生成第一验证信息后,向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
根据用户操作生成所述第一验证信息后,接收所述源放设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,所述第一处理模块1101具体用于:
向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息;
或者,
接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
或者,
根据用户操作生成所述第一验证信息后,在设定时长内接收所述源设备发送的所述配对通知消息。
优选地,所述第一处理模块1101还用于:
接收所述配对通知消息后,启动获取并播放共享的媒体资源的工作模式;
和/或,
根据用户操作生成第一验证信息之前,确定处于所述获取并播放共享的媒体资源的工作模式下。
具体地,所述第一处理模块1101具体用于:
根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
或者,
根据采集到的指纹图像生成所述第一验证信息。
优选地,所述第一处理模块1101具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,
所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
本发明第八实施例中,基于与第二实施例相同的发明构思,提供了一种播放设备,该播放设备的具体实施可参见上述第二实施例中播放设备的描述,重复之处不再赘述,如图12所示,该播放设备主要包括:
收发器1201,用于接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
处理器1202,用于根据用户操作生成第一验证信息,根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息指示收发器1201获取媒体资源的内容并播放。
优选地,处理器1202根据用户操作生成第一验证信息后,指示收发器1201向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识;收发器1201接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
处理器1202在收发器1201接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
处理器1202根据用户操作生成所述第一验证信息后,指示收发器1201接收所述源放设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,收发器1201向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息;
或者,
收发器1201接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
或者,
处理器1202根据用户操作生成所述第一验证信息后,指示收发器1201在设定时长内接收所述源设备发送的所述配对通知消息。
优选地,处理器1202在收发器1201接收所述配对通知消息后,启动获取并播放共享的媒体资源的工作模式;
和/或,
处理器1202根据用户操作生成第一验证信息之前,确定处于所述获取并播放共享的媒体资源的工作模式下。
具体地,处理器1202根据采集到的用户输入的声音信息生成所述第一验证信息;
或者,
处理器1202根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
或者,
处理器1202根据采集到的用户在屏幕的第一位置的触摸操作生成所述第 一验证信息;
或者,
处理器1202根据采集到的指纹图像生成所述第一验证信息。
优选地,处理器1202采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
或者,
所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
本发明第九实施例中,基于与第二实施例相同的发明构思,提供了一种源设备,该源设备的具体实施可参见上述第二实施例中源设备的描述,重复之处不再赘述,如图13所示,该源设备主要包括:
处理模块1301,用于根据用户操作生成第二验证信息以及确定用户选择的媒体资源的地址信息;
发送模块1302,用于向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
优选地,还包括接收模块1303,用于接收所述播放设备在生成所述第一 验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识;所述发送模块1302具体用于根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述发送模块1302具体用于发送配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,所述处理模块1302具体用于:
根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
根据采集到的指纹图像生成所述第二验证信息。
优选地,所述处理模块1301具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
本发明第十实施例中,基于与第二实施例相同的发明构思,提供了一种源设备,该源设备的具体实施可参见上述第二实施例中源设备的描述,重复之处不再赘述,如图14所示,该源设备主要包括:
处理器1401,用于根据用户操作生成第二验证信息以及确定用户选择的媒体资源的地址信息;
收发器1402,用于向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
优选地,收发器1402接收所述播放设备在生成所述第一验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识;根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
或者,
所述收发器1402发送配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
优选地,处理器1401具体用于:
根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
或者,
根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
或者,
根据采集到的指纹图像生成所述第二验证信息。
优选地,处理器1401具体用于:
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
或者,
采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (40)

  1. 一种媒体资源共享方法,其特征在于,包括:
    源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识;
    所述源设备根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。
  2. 如权利要求1所述的方法,其特征在于,所述源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识,包括:
    所述源设备确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识,并接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
    或者,
    所述源设备接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
    或者,
    所述源设备确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
  3. 如权利要求2所述的方法,其特征在于,所述源设备向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请 求消息返回的所述配对响应消息;
    或者,
    所述源设备接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成所述第一验证信息;
    或者,
    所述源设备确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
  4. 如权利要求2所述的方法,其特征在于,所述源设备接收所述播放设备发送的配对通知消息后,所述方法还包括:
    所述源设备显示共享的媒体资源列表;
    和/或,
    所述源设备根据用户操作生成所述第一验证信息之前,所述方法还包括:
    所述源设备确定当前显示共享的媒体资源列表。
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述源设备根据用户操作生成第一验证信息,包括:
    所述源设备根据采集到的用户输入的声音信息生成所述第一验证信息,;
    或者,
    所述源设备根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
    或者,
    所述源设备根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
    或者,
    所述源设备根据采集到的指纹图像生成所述第一验证信息。
  6. 如权利要求2-4任一项所述的方法,其特征在于,所述源设备根据用户操作生成第一验证信息,包括:
    所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据 提取到的所述指纹局部特征点生成所述第一验证信息;
    或者,
    所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
    或者,
    所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,所述源设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
  7. 一种媒体资源共享方法,其特征在于,包括:
    播放设备根据用户操作生成第二验证信息;
    所述播放设备向源设备发送第二验证信息以及所述播放设备的标识;
    所述播放设备接收所述源设备根据所述播放设备的标识返回的媒体资源进行播放,或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源并播放;
    所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回。
  8. 如权利要求7所述的方法,其特征在于,所述播放设备向源设备发送第二验证信息以及所述播放设备的标识,包括:
    所述播放设备接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识,根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放 设备的标识;
    或者,
    所述播放设备向所述源设备发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
  9. 如权利要求8所述的方法,其特征在于,所述播放设备根据用户操作生成第二验证信息,包括:
    所述播放设备根据采集的用户输入的声音信息生成所述第二验证信息;
    或者,
    所述播放设备根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
    或者,
    所述播放设备根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
    或者,
    所述播放设备根据采集到的指纹图像生成所述第二验证信息。
  10. 如权利要求8所述的方法,其特征在于,所述播放设备根据用户操作生成第二验证信息,包括:
    所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,所述播放设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校 正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
  11. 一种媒体资源共享方法,其特征在于,包括:
    播放设备根据用户操作生成第一验证信息,接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
    所述播放设备根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源并播放。
  12. 如权利要求11所述的方法,其特征在于,所述播放设备根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,包括:
    所述播放设备根据用户操作生成第一验证信息后,向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    所述播放设备接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    所述播放设备根据用户操作生成所述第一验证信息后,接收所述源设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
  13. 如权利要求12所述的方法,其特征在于,所述播放设备向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消 息返回的所述配对响应消息;
    或者,
    所述播放设备接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
    或者,
    所述播放设备根据用户操作生成所述第一验证信息后,在设定时长内接收所述源设备发送的所述配对通知消息。
  14. 如权利要求12所述的方法,其特征在于,所述播放设备接收所述配对通知消息后,所述方法还包括:
    所述播放设备启动获取并播放共享的媒体资源的工作模式;
    和/或,
    所述播放设备根据用户操作生成第一验证信息之前,所述方法还包括:
    所述播放设备确定处于所述获取并播放共享的媒体资源的工作模式下。
  15. 如权利要求12-14任一项所述的方法,其特征在于,所述播放设备根据用户操作生成第一验证信息,包括:
    所述播放设备根据采集到的用户输入的声音信息生成所述第一验证信息;
    或者,
    所述播放设备根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
    或者,
    所述播放设备根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
    或者,
    所述播放设备根据采集到的指纹图像生成所述第一验证信息。
  16. 如权利要求12-14任一项所述的方法,其特征在于,所述播放设备根据用户操作生成第一验证信息,包括:
    所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校 正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
    或者,所述播放设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
    或者,所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,所述播放设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
  17. 一种媒体资源共享方法,其特征在于,包括:
    源设备根据用户操作生成第二验证信息,以及确定用户选择的媒体资源的地址信息;
    所述源设备向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
  18. 如权利要求17所述的方法,其特征在于,所述源设备向播放设备发送所述第二验证信息和所述媒体资源的地址信息,包括:
    所述源设备接收所述播放设备在生成所述第一验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识,根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    所述源设备发送配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
  19. 如权利要求17所述的方法,其特征在于,所述源设备根据用户操作生成第二验证信息,包括:
    所述源设备根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
    或者,
    所述源设备根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
    或者,
    所述源设备根据采集到的指纹图像生成所述第二验证信息。
  20. 如权利要求18所述的方法,其特征在于,所述源设备根据用户操作生成第二验证信息,包括:
    所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,所述源设备采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述源设备采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
  21. 一种源设备,其特征在于,包括:
    第一处理模块,用于确定用户选择的媒体资源并根据用户操作生成第一验证信息,以及接收播放设备发送的第二验证信息和所述播放设备的标识, 所述第二验证信息为所述播放设备根据用户操作生成;
    第二处理模块,用于根据所述第一验证信息和所述第二验证信息确定所述源设备和所述播放设备配对成功,根据所述播放设备的标识将所述媒体资源发送给所述播放设备进行播放;或者,根据所述播放设备的标识将所述媒体资源的地址信息发送给所述播放设备,由所述播放设备根据所述媒体资源的地址信息获取媒体资源并播放。
  22. 如权利要求21所述的源设备,其特征在于,所述第一处理模块具体用于:
    确定用户选择的媒体资源并根据用户操作生成第一验证信息后,向所述播放设备发送配对请求消息,所述配对请求消息中包含所述源设备的标识,并接收所述播放设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
    或者,
    接收所述播放设备发送的配对通知消息后,确定用户选择的媒体资源,并根据用户操作生成所述第一验证信息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识;
    或者,
    确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,接收所述播放设备发送的配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
  23. 如权利要求22所述的源设备,其特征在于,所述第一处理模块具体用于:
    向所述播放设备发送所述配对请求消息后,在设定时长内接收所述播放设备根据所述配对请求消息返回的所述配对响应消息;
    或者,
    接收所述播放设备发送的所述配对通知消息后,在设定时长内确定用户选择的媒体资源并根据用户操作生成所述第一验证信息;
    或者,
    确定用户选择的媒体资源并根据用户操作生成所述第一验证信息后,在设定时长内接收所述播放设备发送的所述配对通知消息。
  24. 如权利要求22所述的源设备,其特征在于,所述第一处理模块还用于:
    接收所述播放设备发送的配对通知消息后,显示共享的媒体资源列表;
    和/或,
    根据用户操作生成所述第一验证信息之前,确定当前显示共享的媒体资源列表。
  25. 如权利要求21-24任一项所述的源设备,其特征在于,所述第一处理模块具体用于:
    根据采集到的用户输入的声音信息生成所述第一验证信息;
    或者,
    根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
    或者,
    根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
    或者,
    根据采集到的指纹图像生成所述第一验证信息。
  26. 如权利要求22-24任一项所述的源设备,其特征在于,所述第一处理模块具体用于:
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
    或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携 带所述至少一个子区域的位置信息;
    或者,所述配对通知消息中携带所述播放设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
  27. 一种播放设备,其特征在于,包括:
    生成模块,用于根据用户操作生成第二验证信息;
    发送模块,用于向源设备发送所述第二验证信息和所述播放设备的标识;
    接收模块,用于接收所述源设备根据所述播放设备的标识返回的媒体资源;或者,接收所述源设备根据所述播放设备的标识返回的媒体资源的地址信息,根据所述媒体资源的地址信息获取媒体资源;所述媒体资源或所述媒体资源的地址信息由所述源设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述源设备与所述播放设备匹配成功后返回;
    播放模块,用于播放所述媒体资源。
  28. 如权利要求27所述的播放设备,其特征在于,所述接收模块还用于接收所述源设备发送的配对请求消息,所述配对请求消息为所述源设备确定所述媒体资源并生成所述第一验证信息后发送,所述配对请求消息中包含所述源设备的标识;所述发送模块具体用于根据所述源设备的标识向所述源设备返回配对响应消息,所述配对响应消息中携带所述第二验证信息以及所述播放设备的标识;
    或者,
    所述发送模块具体用于发送配对通知消息,所述配对通知消息中包含所述第二验证信息以及所述播放设备的标识。
  29. 如权利要求28所述的播放设备,其特征在于,所述生成模块具体用于:
    根据采集的用户输入的声音信息生成所述第二验证信息;
    或者,
    根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
    或者,
    根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
    或者,
    根据采集到的指纹图像生成所述第二验证信息。
  30. 如权利要求28所述的播放设备,其特征在于,所述生成模块具体用于:
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述配对请求消息中携带所述源设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,所述发送模块还用于在所述配对通知消息中携带所述至少一个子区域的位置信息。
  31. 一种播放设备,其特征在于,包括:
    第一处理模块,用于根据用户操作生成第一验证信息,以及接收源设备发送的第二验证信息和用户选择的媒体资源的地址信息,所述第二验证信息由所述源设备根据用户操作生成;
    第二处理模块,用于根据所述第一验证信息和所述第二验证信息确定所 述源设备和所述播放设备配对成功,根据所述媒体资源的地址信息获取媒体资源并播放。
  32. 如权利要求31所述的播放设备,其特征在于,所述第一处理模块具体用于:
    根据用户操作生成第一验证信息后,向所述源设备发送配对请求消息,所述配对请求消息中携带所述播放设备的标识,并接收所述源设备根据所述配对请求消息返回的配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    接收所述源设备发送的配对通知消息后,根据用户操作生成所述第一验证信息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    根据用户操作生成所述第一验证信息后,接收所述源放设备发送的配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
  33. 如权利要求32所述的播放设备,其特征在于,所述第一处理模块具体用于:
    向所述源设备发送配对请求消息后,在设定时长内接收所述源设备根据所述配对请求消息返回的所述配对响应消息;
    或者,
    接收所述源设备发送的所述配对通知消息后,在设定时长内根据用户操作生成所述第一验证信息;
    或者,
    根据用户操作生成所述第一验证信息后,在设定时长内接收所述源设备发送的所述配对通知消息。
  34. 如权利要求32所述的播放设备,其特征在于,所述第一处理模块还 用于:
    接收所述配对通知消息后,启动获取并播放共享的媒体资源的工作模式;
    和/或,
    根据用户操作生成第一验证信息之前,确定处于所述获取并播放共享的媒体资源的工作模式下。
  35. 如权利要求31-34任一项所述的播放设备,其特征在于,所述第一处理模块具体用于:
    根据采集到的用户输入的声音信息生成所述第一验证信息;
    或者,
    根据采集到的屏幕上的滑动轨迹生成所述第一验证信息;
    或者,
    根据采集到的用户在屏幕的第一位置的触摸操作生成所述第一验证信息;
    或者,
    根据采集到的指纹图像生成所述第一验证信息。
  36. 如权利要求31-34任一项所述的播放设备,其特征在于,所述第一处理模块具体用于:
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像的全部或约定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息;
    或者,采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息,并在所述配对请求消息中携带所述至少一个子区域的位置信息;
    或者,所述配对通知消息中携带所述源设备生成的所述第二验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的 位置信息确定的子区域提取指纹局部特征点,根据提取到的所述指纹局部特征点生成所述第一验证信息。
  37. 一种源设备,其特征在于,包括:
    处理模块,用于根据用户操作生成第二验证信息以及确定用户选择的媒体资源的地址信息;
    发送模块,用于向播放设备发送所述第二验证信息和所述媒体资源的地址信息,由所述播放设备根据所述第二验证信息和自身根据用户操作生成的第一验证信息确定所述播放设备和所述源设备匹配成功后,根据所述媒体资源的地址信息获取媒体资源并播放。
  38. 如权利要求37所述的源设备,其特征在于,还包括接收模块,用于接收所述播放设备在生成所述第一验证信息后发送的配对请求消息,所述配对请求消息中携带所述播放设备的标识;所述发送模块具体用于根据所述配对请求消息返回配对响应消息,所述配对响应消息中携带所述第二验证信息和所述媒体资源的地址信息;
    或者,
    所述发送模块具体用于发送配对通知消息,所述配对通知消息中携带所述第二验证信息和所述媒体资源的地址信息。
  39. 如权利要求38所述的源设备,其特征在于,所述处理模块具体用于:
    根据采集到的屏幕上的滑动轨迹生成所述第二验证信息;
    或者,
    根据用户在屏幕的第二位置的触摸操作生成所述第二验证信息;
    或者,
    根据采集到的指纹图像生成所述第二验证信息。
  40. 如权利要求38所述的源设备,其特征在于,所述处理模块具体用于:
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的约定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    所述配对请求消息中携带所述播放设备生成的所述第一验证信息所对应的指纹图像的子区域的位置信息,采集用户输入的指纹图像并对采集到的所述指纹图像进行方向场校正后,在校正后的指纹图像中的所述子区域的位置信息确定的子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息;
    或者,
    采集用户输入的指纹图像,对所述指纹图像进行方向场校正后,在校正后的指纹图像中的至少一个子区域提取指纹局部特征点,根据提取到的所有或部分所述指纹局部特征点生成所述第二验证信息,并在所述配对通知消息中携带所述至少一个子区域的位置信息。
PCT/CN2014/090597 2014-11-07 2014-11-07 媒体资源共享方法及设备 WO2016070414A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US15/525,022 US20180335926A1 (en) 2014-11-07 2014-11-07 Media resource sharing method, and device
PCT/CN2014/090597 WO2016070414A1 (zh) 2014-11-07 2014-11-07 媒体资源共享方法及设备
CN201480066736.7A CN105814904B (zh) 2014-11-07 2014-11-07 媒体资源共享方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/090597 WO2016070414A1 (zh) 2014-11-07 2014-11-07 媒体资源共享方法及设备

Publications (1)

Publication Number Publication Date
WO2016070414A1 true WO2016070414A1 (zh) 2016-05-12

Family

ID=55908429

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090597 WO2016070414A1 (zh) 2014-11-07 2014-11-07 媒体资源共享方法及设备

Country Status (3)

Country Link
US (1) US20180335926A1 (zh)
CN (1) CN105814904B (zh)
WO (1) WO2016070414A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109949822A (zh) * 2019-03-31 2019-06-28 联想(北京)有限公司 信号处理方法和电子设备
CN115460445B (zh) * 2021-06-09 2024-03-22 荣耀终端有限公司 电子设备的投屏方法和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2341680A1 (en) * 2009-12-30 2011-07-06 Nokia Siemens Networks Oy Method and apparatus for adaptation of a multimedia content
CN102685579A (zh) * 2012-05-02 2012-09-19 合一网络技术(北京)有限公司 一种实现本地网络中多装置间媒体分享及控制的方法
CN103458012A (zh) * 2013-08-20 2013-12-18 小米科技有限责任公司 一种对网络电视终端进行无线控制的方法以及设备
CN103856799A (zh) * 2012-11-29 2014-06-11 扬智科技股份有限公司 用户端装置及其配对建立方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414351A (zh) * 2008-11-03 2009-04-22 章毅 一种指纹识别系统及其控制方法
CN102045162A (zh) * 2009-10-16 2011-05-04 电子科技大学 一种三模态生物特征持证人身份鉴别系统及其控制方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2341680A1 (en) * 2009-12-30 2011-07-06 Nokia Siemens Networks Oy Method and apparatus for adaptation of a multimedia content
CN102685579A (zh) * 2012-05-02 2012-09-19 合一网络技术(北京)有限公司 一种实现本地网络中多装置间媒体分享及控制的方法
CN103856799A (zh) * 2012-11-29 2014-06-11 扬智科技股份有限公司 用户端装置及其配对建立方法
CN103458012A (zh) * 2013-08-20 2013-12-18 小米科技有限责任公司 一种对网络电视终端进行无线控制的方法以及设备

Also Published As

Publication number Publication date
CN105814904B (zh) 2019-07-23
US20180335926A1 (en) 2018-11-22
CN105814904A (zh) 2016-07-27

Similar Documents

Publication Publication Date Title
US10154412B2 (en) Method and apparatus for sharing content
KR20220122955A (ko) 모바일 디바이스에서 촬영된 전자 기기와 페어링하는 방법 및 장치
US10887932B2 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
CN105100188B (zh) 网络系统、服务器以及信息处理方法
CN103069747B (zh) 用于建立通信的方法和设备
US11265318B2 (en) Methods, systems, and media for authenticating a connection between a user device and a streaming media content device
CN107659850B (zh) 媒体信息处理方法和装置
TWI691843B (zh) 電子裝置以及配對電子裝置的方法
CN104010355B (zh) 在便携式终端中提供无线通信的设备和方法
US20150099590A1 (en) Cloud server and method for providing cloud game service
WO2020133495A1 (zh) 一种智能设备管理方法、移动终端及系统
JP5556207B2 (ja) 無線通信装置、無線通信方法、およびプログラム
TW201408115A (zh) 連接無線網路基地台的設定方法與電子裝置
WO2015070682A1 (zh) 一种音频文件的播控处理方法、装置及存储介质
JP2013543155A (ja) ユーザ機器制御方法及び装置
CN106664433A (zh) 多媒体信息播放方法及系统、标准化服务器、直播终端
KR101923441B1 (ko) 전자 장치 및 컨텐츠 추천 서비스 제공 방법
WO2016070414A1 (zh) 媒体资源共享方法及设备
US20150019978A1 (en) Information processing apparatus, information processing method, and program
JP7394784B2 (ja) 他のデバイスとのワイヤレス通信用のデバイス
CN105335088B (zh) 一种文件分享方法及装置
WO2015131813A1 (zh) 一种进行设备操作的方法和系统
JP4741973B2 (ja) 無線lan通信システムおよび無線lan端末間距離判定方法
JPWO2017026154A1 (ja) 情報処理装置、情報処理方法及びプログラム
CN105763930A (zh) 一种推送电视节目二维码的方法、智能电视机及机顶盒

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: 14905606

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15525022

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14905606

Country of ref document: EP

Kind code of ref document: A1