CN104052823A - File sharing method and device based on DLNA - Google Patents

File sharing method and device based on DLNA Download PDF

Info

Publication number
CN104052823A
CN104052823A CN201410306864.6A CN201410306864A CN104052823A CN 104052823 A CN104052823 A CN 104052823A CN 201410306864 A CN201410306864 A CN 201410306864A CN 104052823 A CN104052823 A CN 104052823A
Authority
CN
China
Prior art keywords
media file
user
dlna
appointment
characteristic information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410306864.6A
Other languages
Chinese (zh)
Inventor
卢立男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZTE Mobile Telecom Co Ltd
Original Assignee
Shenzhen ZTE Mobile Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Mobile Telecom Co Ltd filed Critical Shenzhen ZTE Mobile Telecom Co Ltd
Priority to CN201410306864.6A priority Critical patent/CN104052823A/en
Publication of CN104052823A publication Critical patent/CN104052823A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a file sharing method and device based on DLNA. The method includes the steps of inquiring media files in a system database and displaying the media files through the DLNA application, selecting the media files designated by a user from the displayed media files, and obtaining the feature information of the media files designated by the user, and sharing the media files designated by the user according to the feature information. According to the file sharing method based on the DLNA, when the DLNA application is started, full scan is not conducted on local files, so that a large amount of file scanning processes are omitted, and thus the starting speed is high. When the user requires sharing the media files, only the media files designated by the user and to be shared are scanned, so that the scanning speed is high. Finally the file sharing efficiency is improved, and user experience is improved.

Description

Sharing files method and apparatus based on DLNA
Technical field
The present invention relates to communication technical field, especially relate to a kind of sharing files method and apparatus based on DLNA.
Background technology
DLNA (Digital Living Network Alliance, DLNA) be a kind of digital living media network solution, be intended to solve individual PC, consumer appliances, mobile device and interconnect interior wireless network and cable network, unconfined share and growth becomes possibility that makes Digital Media and content service.
DLNA standard is divided into media server (as the equipment of the store media files such as mobile phone, computer), media player (as TV, audio amplifier etc. are play the equipment of media file), media controller (as remote controller etc., being responsible for the equipment of Play Control) etc. equipment.Wherein, media server refers to and the media file in local device can be scanned and shows the equipment of other DLNA device accesses.
In prior art, when media server starts DLNA application, first local file is carried out to scan full hard disk, obtain the characteristic information of media file, characteristic information is stored in database, then show user to carry out sharing of next step.But along with the local file in the media servers such as mobile phone, computer is more and more, the time of scanning can be more and more longer, cause the toggle speed of DLNA application more and more slower, reduced the efficiency of sharing files, affected user's experience.
Summary of the invention
Main purpose of the present invention is to provide a kind of sharing files method and apparatus based on DLNA, is intended to improve the efficiency of sharing files, promotes user and experiences.
To achieve these objectives, the present invention proposes a kind of sharing files method based on DLNA, comprises step:
Media file in inquiry system database is also applied and is shown by DLNA;
From the media file of showing, select the media file of user's appointment, obtain the characteristic information of the media file of user's appointment;
The media file of sharing user's appointment according to described characteristic information.
Preferably, the characteristic information that obtains the media file of user's appointment described in comprises:
Scan the media file of user's appointment, extract the characteristic information of this media file.
Preferably, the characteristic information that obtains the media file of user's appointment described in comprises:
Judge the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application;
If so, from described application data base, inquire the characteristic information of the media file of user's appointment;
If not, scan the media file of user's appointment, extract the characteristic information of this media file and be stored in described application data base.
Preferably, the described media file of sharing user's appointment according to described characteristic information comprises:
To media player, push described characteristic information;
Media player is play the media file of user's appointment according to described characteristic information.
Preferably, the media file in described inquiry system database apply and shown and comprise by DLNA:
Media file in inquiry system database;
By different medium types, the media file inquiring is classified;
By DLNA application class, show the media file inquiring.
The present invention proposes a kind of sharing files device based on DLNA simultaneously, comprises display module and sharing module, wherein:
Display module, for the media file of inquiry system database and applied and shown by DLNA;
Sharing module, for select the media file of user's appointment from the media file of showing, obtains the characteristic information of the media file of user's appointment, shares the media file of user's appointment according to described characteristic information.
Preferably, described sharing module is used for: scan the media file of user's appointment, extract the characteristic information of this media file.
Preferably, described sharing module is used for:
Judge the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application;
If so, from described application data base, inquire the characteristic information of the media file of user's appointment;
If not, scan the media file of user's appointment, extract the characteristic information of this media file and be stored in described application data base.
Preferably, described sharing module is used for: to media player, push described characteristic information, so that described media player is play the media file of user's appointment according to described characteristic information.
Preferably, described display module is used for:
Media file in inquiry system database;
By different medium types, the media file inquiring is classified;
By DLNA application class, show the media file inquiring.
A kind of sharing files method based on DLNA provided by the present invention, when DLNA application start, does not carry out scan full hard disk to local file, omitted the process of heap file scanning, so toggle speed is fast.When user need to share, only to user, specify the media file of sharing to scan, so sweep speed is fast.Finally improve the efficiency of sharing files, promoted user's experience.
Further, the characteristic information of the media file of once sharing is stored in application data base, as user, to specify the media file share once to share out-of-date, just without this media file is scanned, only need inquiry application data base just can obtain the characteristic information of this media file, therefore processing speed is fast, has further improved the efficiency of sharing files.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention is based on sharing files method the first embodiment of DLNA;
Fig. 2 is the flow chart that the present invention is based on sharing files method the second embodiment of DLNA;
Fig. 3 is the structured flowchart that the present invention is based on sharing files device one embodiment of DLNA.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, propose the present invention is based on sharing files method the first embodiment of DLNA, said method comprising the steps of:
Step S101: start DLNA application
In media server in DLNA equipment (as the equipment of the store media files such as mobile phone, computer), DLNA application has been installed in advance, by DLNA, has applied with other DLNA equipment and carry out sharing files.
Step S102: the media file in inquiry system database is also applied and shown by DLNA
The media file of the system in media server (as Android system) meeting automatic scan this locality is also stored in data in system database.The present embodiment is directly inquired about media file when DLNA application start from system database (particularly media library), and by different medium types, the media file inquiring is classified, then by DLNA application class, show the media file inquiring.
Owing to directly inquiring about from system database, do not need media server to carry out scan full hard disk, so compole is short during DLNA application start.
Step S103: the media file of selecting user's appointment from the media file of showing
User browses the media file of displaying, by touch, click or alternate manner, selects one or more media files, to specify, shares these media files.
Step S104: scan the media file of user's appointment, extract the characteristic information of this media file
Described characteristic information comprises file address information and out of Memory, and out of Memory is as information such as file type, album cover, file size, creation-times.
Media server scans the media file of user's appointment, obtain file address information, the Mime type of Study document, further filters features such as the resolution of file, media codings, finally extracts and meets media file and the characteristic information thereof that DLNA agreement is supported.
Step S105: the media file of sharing user's appointment according to this characteristic information
Concrete, media server passive (share as received invite after) or initiatively to the media player in DLNA equipment (as TV, audio amplifier etc. are play the equipment of media file), push the characteristic information of media file, the characteristic informations such as media player file reading address information and out of Memory, the web services of access medium server, play the Media Stream of the media file of user's appointment, thereby complete once, share.Wherein, media player is for supporting the equipment of DLNA agreement, and with media server in same WLAN (WirelessLAN, WLAN (wireless local area network)).
In the present embodiment, when DLNA application start, local file is not carried out to scan full hard disk, omitted the process of heap file scanning, so toggle speed is fast.When user need to share, only to user, specify the media file of sharing to scan, so sweep speed is fast.Finally improve the efficiency of sharing files, promoted user's experience.
Referring to Fig. 2, propose the present invention is based on sharing files method the second embodiment of DLNA, said method comprising the steps of:
Step S201: start DLNA application
Step S202: the media file in inquiry system database is also applied and shown by DLNA
Step S203: the media file of selecting user's appointment from the media file of showing
Step S204: judge the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application
If the media file of user's appointment is applied and was shared by DLNA, the characteristic information that can store this media file in application data base with share record, enter step S205; Otherwise, enter step S206.
Step S205: the characteristic information that inquires the media file of user's appointment from application data base
If media file is applied and was shared by DLNA, directly inquire about application data base, obtain the characteristic informations such as the address information of this media file and out of Memory.
Step S206: the media file of scanning user appointment, extracts the characteristic information of this media file and be stored in application data base
If media file is not yet applied and was shared by DLNA, this media file is scanned, obtain file address information, the Mime type of Study document, the features such as the resolution of file, media coding are further filtered, finally extract and meet media file and the characteristic information thereof that DLNA agreement is supported, and in storage and application data base.
Step S207: the media file of sharing user's appointment according to this characteristic information
In the present embodiment, media server is stored in the characteristic information of the media file of once sharing in application data base, as user, to specify the media file share once to share out-of-date, just without this media file is scanned, only need inquiry application data base just can obtain the characteristic information of this media file, therefore processing speed is fast, has further improved the efficiency of sharing files.
Referring to Fig. 3, propose the present invention is based on the sharing files device of DLNA, described device comprises display module and sharing module.
Display module: for the media file of inquiry system database and apply and shown by DLNA.
Concrete, in view of the system in media server (as Android system) is understood the media file of automatic scan this locality and data is stored in system database, therefore display module is directly inquired about media file when DLNA application start from system database (particularly media library), and by different medium types, the media file inquiring is classified, then by DLNA application class, show the media file inquiring.
Sharing module: for select the media file of user's appointment from the media file of showing, obtain the characteristic information of the media file of user's appointment, share the media file of user's appointment according to characteristic information.
Described characteristic information comprises file address information and out of Memory, and out of Memory is as information such as file type, album cover, file size, creation-times.
In certain embodiments, when user specifies after the media file that will share, sharing module scans the media file of user's appointment, obtain file address information, the Mime type of Study document, the features such as the resolution of file, media coding are further filtered, finally extract and meet media file and the characteristic information thereof that DLNA agreement is supported.
In further embodiments, when user specifies after the media file that will share, first sharing module judges the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application; If so, directly from application data base, inquire the characteristic information of the media file of user's appointment; If not, scan the media file of user's appointment, extract the characteristic information of this media file and be stored in application data base.
Obtain after characteristic information, sharing module passive (share as received invite after) or initiatively to the media player in DLNA equipment (as TV, audio amplifier etc. are play the equipment of media file), push the characteristic information of media file, the characteristic informations such as media player file reading address information and out of Memory, the web services of access medium server, play the Media Stream of the media file of user's appointment, thereby complete once, share.
Thereby, the present invention is based on the sharing files device of DLNA, when DLNA application start, local file is not carried out to scan full hard disk, omitted the process of heap file scanning, so toggle speed is fast.When user need to share, only to user, specify the media file of sharing to scan, so sweep speed is fast.Finally improve the efficiency of sharing files, promoted user's experience.
Further, the characteristic information of the media file of once sharing is stored in application data base, as user, to specify the media file share once to share out-of-date, just without this media file is scanned, only need inquiry application data base just can obtain the characteristic information of this media file, therefore processing speed is fast, has further improved the efficiency of sharing files.
Technical characterictic in said method embodiment is all corresponding applicable at this device, no longer repeats here.
It should be noted that: the sharing files device based on DLNA that above-described embodiment provides is when carrying out sharing files, only the division with above-mentioned each functional module is illustrated, in practical application, can as required above-mentioned functions be distributed and be completed by different functional modules.In addition, the sharing files device based on DLNA that above-described embodiment provides belongs to same design with the sharing files embodiment of the method based on DLNA, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that, realizing all or part of step in above-described embodiment method can control relevant hardware by program and complete, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM/RAM, disk, CD etc.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. the sharing files method based on DLNA, is characterized in that, comprises step:
Media file in inquiry system database is also applied and is shown by DLNA;
From the media file of showing, select the media file of user's appointment, obtain the characteristic information of the media file of user's appointment;
The media file of sharing user's appointment according to described characteristic information.
2. the sharing files method based on DLNA according to claim 1, is characterized in that, described in obtain the media file of user's appointment characteristic information comprise:
Scan the media file of user's appointment, extract the characteristic information of this media file.
3. the sharing files method based on DLNA according to claim 1, is characterized in that, described in obtain the media file of user's appointment characteristic information comprise:
Judge the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application;
If so, from described application data base, inquire the characteristic information of the media file of user's appointment;
If not, scan the media file of user's appointment, extract the characteristic information of this media file and be stored in described application data base.
4. according to the sharing files method based on DLNA described in claim 1-3 any one, it is characterized in that, the described media file of sharing user's appointment according to described characteristic information comprises:
To media player, push described characteristic information;
Media player is play the media file of user's appointment according to described characteristic information.
5. according to the sharing files method based on DLNA described in claim 1-3 any one, it is characterized in that, the media file in described inquiry system database is also applied and is shown and comprise by DLNA:
Media file in inquiry system database;
By different medium types, the media file inquiring is classified;
By DLNA application class, show the media file inquiring.
6. the sharing files device based on DLNA, is characterized in that, comprises display module and sharing module, wherein:
Display module, for the media file of inquiry system database and applied and shown by DLNA;
Sharing module, for select the media file of user's appointment from the media file of showing, obtains the characteristic information of the media file of user's appointment, shares the media file of user's appointment according to described characteristic information.
7. the sharing files device based on DLNA according to claim 6, is characterized in that, described sharing module is used for: scan the media file of user's appointment, extract the characteristic information of this media file.
8. the sharing files device based on DLNA according to claim 6, is characterized in that, described sharing module is used for:
Judge the record of sharing that whether has the media file of user's appointment in the application data base of DLNA application;
If so, from described application data base, inquire the characteristic information of the media file of user's appointment;
If not, scan the media file of user's appointment, extract the characteristic information of this media file and be stored in described application data base.
9. according to the sharing files device based on DLNA described in claim 6-8 any one, it is characterized in that, described sharing module is used for: to media player, push described characteristic information, so that described media player is play the media file of user's appointment according to described characteristic information.
10. according to the sharing files device based on DLNA described in claim 6-8 any one, it is characterized in that, described display module is used for:
Media file in inquiry system database;
By different medium types, the media file inquiring is classified;
By DLNA application class, show the media file inquiring.
CN201410306864.6A 2014-06-30 2014-06-30 File sharing method and device based on DLNA Pending CN104052823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410306864.6A CN104052823A (en) 2014-06-30 2014-06-30 File sharing method and device based on DLNA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410306864.6A CN104052823A (en) 2014-06-30 2014-06-30 File sharing method and device based on DLNA

Publications (1)

Publication Number Publication Date
CN104052823A true CN104052823A (en) 2014-09-17

Family

ID=51505174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410306864.6A Pending CN104052823A (en) 2014-06-30 2014-06-30 File sharing method and device based on DLNA

Country Status (1)

Country Link
CN (1) CN104052823A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289481A (en) * 2011-08-02 2011-12-21 Tcl集团股份有限公司 Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN103457966A (en) * 2012-05-29 2013-12-18 华为技术有限公司 Method, equipment and system for accessing cloud storage equipment on basis of DLNA (digital living network alliance) technology
CN103888515A (en) * 2014-02-26 2014-06-25 四川长虹电器股份有限公司 Media resource sharing method based on browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289481A (en) * 2011-08-02 2011-12-21 Tcl集团股份有限公司 Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment
CN103457966A (en) * 2012-05-29 2013-12-18 华为技术有限公司 Method, equipment and system for accessing cloud storage equipment on basis of DLNA (digital living network alliance) technology
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN103888515A (en) * 2014-02-26 2014-06-25 四川长虹电器股份有限公司 Media resource sharing method based on browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
西西软件资讯: ""dlna怎么用 手机和电脑dlna使用方法"", 《百度》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN104660678B (en) * 2015-01-16 2018-05-18 深信服科技股份有限公司 Using data sharing method and device
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system

Similar Documents

Publication Publication Date Title
CN102752457B (en) Method and system for installing applications
CN102520987B (en) Online experience and installation method, device, server and management system of application program
US8840014B2 (en) Identification code processing system, identification code processing method thereof, and apparatus for supporting same
CN103125107A (en) Method, user equipment, server, and device for sharing information
JP2010205111A (en) System, and method for reproducing context, first terminal device, second terminal device, context obtaining device or storage device, program thereof
CN104427404A (en) Video segment extraction and play methods and devices
CN104581171A (en) Method and device for playing videos on browser as well as mobile terminal
CN103597860A (en) Selective linking of message accounts
CN103338384A (en) Video play method and video play device
CN102413233B (en) Contact information expansion processing method and device of mobile terminal
CN102571940A (en) Remote application installation system, method, intelligent terminal and application server
EP3651421A1 (en) Multimedia display method, apparatus, and device
CN104363484A (en) Advertisement pushing method and device based on video picture
CN103780933A (en) Remote control method and control apparatus for multimedia terminal
CN102841750B (en) File opening method and device
CN103956175A (en) Playing method and equipment of multi-media files
CN105828094A (en) Private cloud system based on smart TV and implementation method thereof
CN105187562A (en) System and method for operating remote file
CN105472419A (en) Message notification method and apparatus
CN104052823A (en) File sharing method and device based on DLNA
CN103338263A (en) Method and system for sharing audio and video files based on players
CN102307228A (en) Adapting method and system for mobile terminal resource as well as mobile terminal and server
CN105120392A (en) Method of creating sound box grouping and mobile terminal
CN105262793A (en) Method and system for playing audio file in storage device by intelligent speaker
CN104639973A (en) Information pushing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant after: Nubian Technologies Ltd.

Address before: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant before: Shenzhen ZTE Mobile Tech Co., Ltd.

COR Change of bibliographic data
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140917

RJ01 Rejection of invention patent application after publication