CN103475929A - Method and system for reading multi-media file thumbnails - Google Patents

Method and system for reading multi-media file thumbnails Download PDF

Info

Publication number
CN103475929A
CN103475929A CN2013104047568A CN201310404756A CN103475929A CN 103475929 A CN103475929 A CN 103475929A CN 2013104047568 A CN2013104047568 A CN 2013104047568A CN 201310404756 A CN201310404756 A CN 201310404756A CN 103475929 A CN103475929 A CN 103475929A
Authority
CN
China
Prior art keywords
terminal
multimedia
thumbnail
multimedia file
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013104047568A
Other languages
Chinese (zh)
Other versions
CN103475929B (en
Inventor
李余荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310404756.8A priority Critical patent/CN103475929B/en
Publication of CN103475929A publication Critical patent/CN103475929A/en
Application granted granted Critical
Publication of CN103475929B publication Critical patent/CN103475929B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and system for reading multi-media file thumbnails. The method comprises the steps that all multi-media files stored in a multi-media database on a first terminal are scanned through the first terminal, the scanned multi-media file thumbnails are stored in a preset catalog, and corresponding XML files are generated through URL addresses of the stored thumbnails and scanned multi-media file identification information and the corresponding XML files are stored in the preset catalog; when the first terminal monitors that a multi-media information request is sent by a second terminal, the preset catalog is searched, and therefore an XML file of the first terminal is obtained and sent to the second terminal; the XML file returned by the first terminal is received and analyzed through the second terminal, so that the URL addresses of the stored thumbnails are obtained, and the corresponding multi-media file thumbnails are obtained according to the URL addresses of the stored thumbnails. The method for reading the multi-media file thumbnails has the advantages that the corresponding multi-media file thumbnails can be obtained rapidly according to the request of the second terminal and the problem that the second terminal obtains a large number of unnecessary data is solved.

Description

Multimedia file thumbnail read method and system
Technical field
The present invention relates to the multimedia technology of sharing, relate in particular to a kind of multimedia file thumbnail read method and system.
Background technology
At present, in local area network (LAN) between equipment multimedia to share be the main flow of multimedia era development, show that the multimedia file thumbnail is the requisite technology that multimedia is shared, such as the thumbnail of the video that shows other equipment in local area network (LAN), audio frequency, picture.
The practices well that the second terminal is obtained multimedia thumbnail between lan device mainly contains: the second terminal is directly obtained former figure, the URL(Uniform Resource Locator of former figure, URL(uniform resource locator)) be used as thumbnail (such as the former figure of picture) and directly obtain; Perhaps, first terminal obtains thumbnail data from multimedia database, and all thumbnail datas are all packed and issued together the second terminal; Remove to search needed multimedia file thumbnail by the second terminal again.But, when having the second a large amount of terminal concurrences to access and obtain the first terminal data, will there will be because multithreading obtains database information and cause competitive relation to cause low and the second terminal of first terminal performance to obtain the problem of thumbnail overlong time.
Summary of the invention
Given this, be necessary to provide a kind of multimedia file thumbnail read method and system, obtain the speed of multimedia thumbnail between lan device to improve the second terminal.
The embodiment of the invention discloses a kind of multimedia file thumbnail read method, comprise the following steps:
First terminal scans in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory;
When first terminal monitors the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal;
The second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
Preferably, described first terminal scans in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, comprising:
When first terminal scans the multimedia file of having stored in multimedia database on described first terminal, search under predetermined directory, whether have the other information of this multimedia file identification scanned;
This multimedia file identification information scanned if do not exist, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under described predetermined directory.
Preferably, the identification information of described multimedia file comprises the filename of the corresponding thumbnail of described multimedia file.
Preferably, when first terminal monitors the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal, comprising:
First terminal starts the sub-thread of Streaming Media monitoring application program, by the sub-thread of the Streaming Media monitoring application program started according to described multimedia solicited message, search described predetermined directory, obtain the XML file cocurrent that described first terminal is corresponding and give the second terminal;
Whether the main thread of the described Streaming Media monitoring application program that the first terminal utilization has started simultaneously, continuing monitoring the second terminal has the request of the multimedia messages of transmission.
Preferably, described the second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, and according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving, comprising:
The second terminal receives and resolves the XML file that described first terminal returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail;
According to the URL address obtained, the second terminal reads the described multimedia file thumbnail of first terminal storage.
The embodiment of the present invention also discloses a kind of multimedia file thumbnail reading system, comprises first terminal and the second terminal;
Described first terminal is used for:
Scan in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory; While monitoring the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal;
Described the second terminal is used for: send the multimedia messages request to first terminal, receive and resolve the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
Preferably, described first terminal also for:
When scanning the multimedia file of having stored in multimedia database on described first terminal, search under predetermined directory, whether have the other information of this multimedia file identification scanned;
This multimedia file identification information scanned if do not exist, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under described predetermined directory.
Preferably, described multimedia file identification information comprises the filename of the corresponding thumbnail of described multimedia file.
Preferably, described first terminal also for:
Start the sub-thread of Streaming Media monitoring application program, by the sub-thread of the Streaming Media monitoring application program started, according to described multimedia solicited message, search described predetermined directory, obtain the XML file cocurrent that described first terminal is corresponding and give the second terminal;
Whether utilize the main thread of the described Streaming Media monitoring application program started, continuing monitoring the second terminal has the request of the multimedia messages of transmission simultaneously.
Preferably, described the second terminal also for:
Receive and resolve the XML file that described first terminal returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail;
According to the URL address obtained, the second terminal reads the described multimedia file thumbnail of first terminal storage.
All multimedia files of having stored in multimedia database on embodiment of the present invention first terminal scanning first terminal, and the thumbnail of the multimedia file that scans is kept under predetermined directory, and by the thumbnail URL address after preserving and XML file corresponding to the multimedia file identification Information generation that scans and be saved under predetermined directory; When first terminal monitors the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains first terminal is given the second terminal; The second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving; In prior art, during a large amount of the second terminal concurrence access first terminal, first terminal is without the traversal multimedia database but directly obtain from predetermined directory and URL address corresponding to analyzing XML file acquisition, the embodiment of the present invention has the beneficial effect of the multimedia file thumbnail corresponding for the concrete request quick obtaining of the second terminal, has avoided the second terminal to obtain the problem of a large amount of unnecessary data; Further, due to the request of sub-thread process the second terminal corresponding to first terminal startup, when therefore allowing a large amount of Concurrency Access first terminal of the second terminal, still possesses the beneficial effect that improves the first terminal runnability.
The accompanying drawing explanation
Fig. 1 is multimedia file thumbnail read method one embodiment schematic flow sheet of the present invention;
Fig. 2 is multimedia file thumbnail reading system one embodiment high-level schematic functional block diagram of the present invention.
The realization of embodiment of the present invention purpose, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with Figure of description and specific 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.
Fig. 1 is multimedia file thumbnail read method one embodiment schematic flow sheet of the present invention; In the present embodiment, first terminal and the second terminal are to share the terminal of multi-medium data in local area network (LAN), first terminal is to provide the terminal of sharing multi-medium data, the second terminal is to share the terminal of the multi-medium data that first terminal provides, as shown in Figure 1, multimedia file thumbnail read method of the present invention comprises the following steps:
Step S01, first terminal scan in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under default catalogue, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory;
When first terminal scans on this terminal multimedia file, search under predetermined directory, whether have the identification information of this multimedia file scanned; If there is not the identification information of this multimedia file scanned, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under predetermined directory.In a preferred embodiment, thumbnail URL address after all multimedia file identification information and corresponding preservation will be scanned, the corresponding preservation is packaged as an XML(Xtensible Markup Language, extend markup language) file is stored under predetermined directory, thumbnail and XML file can be stored in respectively under default thumbnail catalogue and default XML file directory simultaneously, are convenient to search.
Generally, first terminal when start or have system to have while renewal at first by the multimedia mode of scanning system, to obtain all multimedia document information, and corresponding thumbnail extracts and is kept under predetermined directory by multimedia file, the multimedia messages that comprises the corresponding thumbnail file name of multimedia file is packaged under the XML file directory that the XML file is saved in appointment.This multimedia file identification information also can comprise all information of multimedia file, such as the URL address of multimedia file breviary primitive figure, this multimedia file preserve after the URL address, multimedia file name etc. of thumbnail.Wherein multimedia file can be video file, audio file etc.
When the scanning multimedia database, whether the thumbnail that first terminal is searched this multimedia file has existed the predetermined directory the inside of preserving last time; Because first terminal is the title of to predetermined directory, searching the multimedia file thumbnail of appointment, so this search procedure at all can not have influence on the performance of system.If it is under predetermined directory that there has been the preassigned thumbnail catalogue that preserved last time in the thumbnail of this multimedia file that first terminal is searched, first terminal will can not generate the thumbnail of this multimedia file again; The purpose of doing like this is to prevent from repeating to generate thumbnail, to improve system effectiveness.If thumbnail corresponding to this multimedia file that all multimedia thumbnails of preserving in predetermined directory all do not exist first terminal to scan, first terminal extracts thumbnail corresponding to this multimedia file from the multimedia database of this first terminal, and the multimedia file thumbnail of extraction is saved in the predetermined directory of depositing thumbnail.
In concrete application scenarios, first terminal travels through multimedia database, generate the multimedia file thumbnail under the catalogue such as TCL-thumbnailsDir in certain assigned catalogue of httpService, and all multimedia file thumbnails all are placed under same catalogue TCL-thumbnailsDir, and corresponding multimedia file thumbnail limit is stored on the first terminal limit, and to generate the store path that this multimedia file thumbnail is corresponding be the URL address.In the present embodiment, described httpService can be understood as an application program of increasing income, and its function class is similar to excellent cruel video server program, can receive and the broadcasting of video, music, picture and the request of download are processed.
Below with concrete application scenarios, the implementation procedure that first terminal obtains multimedia file thumbnail URL address is described.
The store path of supposing the former figure place of certain three pictures that first terminal scans is respectively:
"/sdcard/dir1/1.jpg ", "/sdcard/dir2/2.jpg ", "/sdcard/dir3/3.jpg ", and this three pictures does not all have corresponding thumbnail under corresponding predetermined directory, the path that first terminal generates the thumbnail that this three pictures is corresponding is respectively:
“/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg”
“ /sdcard/TCL-thumbnailsDir/409385thbumnails2.jpg”、
“/sdcard/TCL-thumbnailsDir/075945thumbnails3.jpg”。
It is consistent that the multimedia file identification information of first terminal storage and first terminal generate this multimedia file identification information, and therefore, if the IP address of server is 192.168.1.100, port numbers is 8080; The URL address of the thumbnail after above-mentioned three pictures preservations is respectively:
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails2.jpg
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails3.jpg
The XML file of the multimedia file that comprises multimedia file thumbnail URL that first terminal will generate stores in the httpService predetermined directory.
When step S02, first terminal monitor the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal.
After having scanned multimedia database, first terminal starts the Streaming Media monitoring application program, waits for the multimedia messages request that the second terminal sends.When monitoring the multimedia messages request of the second terminal transmission, search predetermined directory, obtain the XML file of described first terminal and the XML file obtained is sent to the second terminal.
In concrete application scenarios, first terminal can start this application program of httpService and carry out the data of multimedia file thumbnail while reading and process.Such as, first terminal starts the sub-thread of Streaming Media monitoring application program, processes the multimedia messages request that the second terminal sends; Whether utilize the main thread of the Streaming Media monitoring application program started, continuing monitoring the second terminal has the request of the multimedia messages of transmission simultaneously.
If the request of the second terminal is the multimedia messages request, the request of first terminal promoter thread process multimedia XML file, main thread returns to request next time of waiting for the second terminal; If the request of the second terminal is the request of multimedia thumbnail data, the request of first terminal promoter thread process multimedia thumbnail data, main thread returns to request next time of waiting for the second terminal.
Step S03, the second terminal receive and resolve the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
The second terminal receives and resolves this XML file that first terminal returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail; According to the URL address obtained, read the described multimedia file thumbnail of first terminal storage from first terminal.
Generally, the saving contents of multimedia document information that the second terminal can arrive the httpService appointment goes for the XML file of asking multimedia messages; After obtaining the XML file of corresponding multimedia messages, the multimedia XML file that the second terminal parses is obtained, the URL address that obtains each multimedia file thumbnail; After obtaining the URL address of thumbnail, the second terminal can the multithreading request read the multimedia file thumbnail that is stored in first terminal, and then obtains the thumbnail of shared device multimedia file.
In concrete application scenarios, the second terminal can be asked by creating http Get the XML file of multimedia file.The second terminal is resolved this document after the multimedia XML file that obtains the first terminal transmission, obtain thumbnail URL address corresponding to all multimedia file identification information of first terminal by definition multimedia XML file, this multi-media tag information comprises: the information such as the URL of multimedia original, the filename of multimedia file, the corresponding thumbnail file name of multimedia file.After the second terminal obtains the URL at multimedia file thumbnail place, read the thumbnail of first terminal multimedia file by the Asynchronous loading mode.
All multimedia files of having stored in multimedia database on the present embodiment first terminal scanning first terminal, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the multimedia file identification Information generation that scans and be saved under predetermined directory; When first terminal monitors the second terminal transmission multimedia messages request, search predetermined directory, the XML file cocurrent that obtains first terminal is given the second terminal; The second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving; Beneficial effect with multimedia file thumbnail corresponding for the concrete request quick obtaining of the second terminal, avoided the second terminal to obtain the problem of a large amount of unnecessary data; Further, request due to sub-thread process the second terminal corresponding to first terminal startup, therefore, still can the effective acquisition corresponding data when the second terminal multi-thread concurrent is obtained the first terminal data, there is the beneficial effect that improves the first terminal runnability, guaranteed that the second terminal accesses and obtain the multimedia file thumbnail of first terminal efficiently.
Fig. 2 is multimedia file thumbnail reading system one embodiment high-level schematic functional block diagram of the present invention; As shown in Figure 2, multimedia file thumbnail reading system of the present invention comprises first terminal 100 and the second terminal 200.
In the present embodiment, first terminal 100 and the second terminal 200 are to share the terminal of multi-medium data in local area network (LAN), and first terminal 100 is to provide the terminal of sharing multi-medium data, and the second terminal 200 is to share the terminal of the multi-medium data that first terminal 100 provides.
Described first terminal 100 for: scan all multimedia files that the multimedia database on described first terminal has been stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory; While monitoring the second terminal 200 transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal 100 is given the second terminal 200.
When each multimedia file, search under predetermined directory on these first terminals 100 of first terminal 100 scanning, whether have the identification information of this multimedia file scanned; If there is not the identification information of this multimedia file scanned, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under predetermined directory.In a preferred embodiment, by thumbnail URL address after all multimedia file identification information of scanning and corresponding preservation, corresponding preservation is packaged as an XML file and is stored under predetermined directory, thumbnail and XML file can be stored in respectively under default thumbnail catalogue and default XML file directory simultaneously, are convenient to search.
Generally, during first terminal 100 start or have system to have while renewal at first by the multimedia mode of scanning system, to obtain all multimedia document information, and corresponding thumbnail extracts and is kept under predetermined directory by multimedia file, the multimedia messages that comprises the corresponding thumbnail file name of multimedia file is packaged under the XML file directory that the XML file is saved in appointment.This multimedia file identification information also can comprise all information of multimedia file, such as the URL address of multimedia file breviary primitive figure, this multimedia file preserve after the URL address, multimedia file name etc. of thumbnail.Wherein multimedia file can be video file, audio file etc.
When the scanning multimedia database, whether the thumbnail that first terminal 100 is searched this multimedia file has existed the predetermined directory the inside of preserving last time; Because first terminal 100 is the titles of to predetermined directory, searching the multimedia file thumbnail of appointment, so this search procedure at all can not have influence on the performance of system.If it is under predetermined directory that there has been the preassigned thumbnail catalogue that preserved last time in the thumbnail of this multimedia file that first terminal 100 is searched, first terminal 100 will can not generate the thumbnail of this multimedia file again; The purpose of doing like this is to prevent from repeating to generate thumbnail, to improve system effectiveness.If thumbnail corresponding to this multimedia file that all multimedia thumbnails of preserving in predetermined directory all do not exist first terminal 100 to scan, first terminal 100 extracts thumbnail corresponding to this multimedia file from the multimedia database of this first terminal 100, and the multimedia file thumbnail of extraction is saved in the predetermined directory of depositing thumbnail.
In concrete application scenarios, the multimedia database of first terminal 100 traversal, generate the multimedia file thumbnail under the catalogue such as TCL-thumbnailsDir in certain assigned catalogue of httpService, and all multimedia file thumbnails all are placed under same catalogue TCL-thumbnailsDir, and corresponding multimedia file thumbnail limit is stored on first terminal 100 limits, and to generate the store path that this multimedia file thumbnail is corresponding be the URL address.In the present embodiment, described httpService can be understood as an application program of increasing income, and its function class is similar to excellent cruel video server program, can receive and the broadcasting of video, music, picture and the request of download are processed.
Below with concrete application scenarios, the implementation procedure that first terminal 100 obtains multimedia file thumbnail URL address is described.
The store path of supposing the former figure place of certain three pictures that first terminal 100 scans is respectively:
"/sdcard/dir1/1.jpg ", "/sdcard/dir2/2.jpg ", "/sdcard/dir3/3.jpg ", and this three pictures does not all have corresponding thumbnail under corresponding predetermined directory, the path that first terminal 100 generates the thumbnail that this three pictures is corresponding is respectively:
“/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg”
“ /sdcard/TCL-thumbnailsDir/409385thbumnails2.jpg”、
“/sdcard/TCL-thumbnailsDir/075945thumbnails3.jpg”。
Because the multimedia file identification information of first terminal 100 storages is consistent with first terminal 100 these multi-media tag information of generation, therefore, if the IP address of server is 192.168.1.100, port numbers is 8080; The URL address of the thumbnail after above-mentioned three pictures preservations is respectively:
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails2.jpg
http://192.168.1.100:8080/sdcard/TCL-thumbnailsDir/485945thumbnails3.jpg
The XML file of the multimedia file that comprises multimedia file thumbnail URL that first terminal 100 will generate stores in the httpService predetermined directory.
After having scanned multimedia database, first terminal 100 starts the Streaming Media monitoring application program, waits for the multimedia messages request that the second terminal 200 sends.When monitoring the multimedia messages request of the second terminal 200 transmissions, first terminal 100 is searched predetermined directory, obtains the XML file of described first terminal 100 and the XML file obtained is sent to the second terminal 200.
In concrete application scenarios, first terminal 100 can start this application program of httpService and carry out the data of multimedia file thumbnail while reading and process.Such as, first terminal 100 starts the sub-thread of Streaming Media monitoring application program, processes the multimedia messages request that the second terminal 200 sends; Whether utilize the main thread of the Streaming Media monitoring application program started, continuing monitoring the second terminal 200 has the request of the multimedia messages of transmission simultaneously.
If the request of the second terminal 200 is multimedia messages requests, the request of first terminal 100 promoter thread process multimedia XML files, main thread returns to request next time of waiting for the second terminal 200; If the request of the second terminal 200 is requests of multimedia thumbnail data, the request of first terminal 100 promoter thread process multimedia thumbnail datas, main thread returns to request next time of waiting for the second terminal 200.
Described the second terminal 200 for: send the multimedia messages requests to first terminal 100, receive and resolve the rear thumbnail URL of the XML file acquisition preservation address that first terminal 100 returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
The second terminal 200 receives and resolves the XML file that first terminal 100 returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail; According to the URL address obtained, read the described multimedia file thumbnail of first terminal 100 storages from first terminal 100.
Generally, the second terminal 200 can go for the XML file of asking multimedia messages to the saving contents of multimedia document information of httpService appointment; After obtaining the XML file of corresponding multimedia messages, the second terminal 200 is resolved the multimedia XML file obtained, the URL address that obtains each multimedia file thumbnail; After obtaining the URL address of thumbnail, the second terminal 200 can the multithreading request read the multimedia file thumbnail that is stored in first terminal 100, and then obtains the thumbnail of shared device multimedia file.
In concrete application scenarios, the second terminal 200 can be asked by creating http Get the XML file of multimedia file.The second terminal 200 is resolved this document after the multimedia XML file that obtains first terminal 100 transmissions, obtain thumbnail URL address corresponding to all multimedia file identification information of first terminal 100 by definition multimedia XML file, this multi-media tag information comprises: the information such as the URL of multimedia original, the filename of multimedia file, the corresponding thumbnail file name of multimedia file.After the second terminal 200 obtains the URL at multimedia file thumbnail place, read the thumbnail of first terminal 100 multimedia files by the Asynchronous loading mode.
All multimedia files of having stored in multimedia database on the present embodiment first terminal scanning first terminal, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the multimedia file identification Information generation that scans and be saved under predetermined directory; When first terminal monitors the second terminal transmission multimedia messages request, search predetermined directory, the XML file cocurrent that obtains first terminal is given the second terminal; The second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving; Beneficial effect with multimedia file thumbnail corresponding for the concrete request quick obtaining of the second terminal, avoided the second terminal to obtain the problem of a large amount of unnecessary data; Further, request due to sub-thread process the second terminal corresponding to first terminal startup, therefore, still can the effective acquisition corresponding data when the second terminal multi-thread concurrent is obtained the first terminal data, there is the beneficial effect that improves the first terminal runnability, guaranteed that the second terminal accesses and obtain the multimedia file thumbnail of first terminal efficiently.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make the process, method, article or the system that comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or system.In the situation that not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the system that comprises this key element and also have other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
The foregoing is only the preferred embodiments of the present invention; not thereby limit its scope of the claims; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (10)

1. a multimedia file thumbnail read method, is characterized in that, comprises the following steps:
First terminal scans in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory;
When first terminal monitors the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal;
The second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
2. the method for claim 1, is characterized in that, described first terminal scans in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, comprising:
When first terminal scans the multimedia file of having stored in multimedia database on described first terminal, search under predetermined directory, whether have the other information of this multimedia file identification scanned;
This multimedia file identification information scanned if do not exist, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under described predetermined directory.
3. method as claimed in claim 2, is characterized in that, the identification information of described multimedia file comprises the filename of the corresponding thumbnail of described multimedia file.
4. method as claimed in claim 1 or 2, is characterized in that, when first terminal monitors the second terminal transmission multimedia messages request, searches described predetermined directory, and the XML file cocurrent that obtains described first terminal is given the second terminal, comprising:
First terminal starts the sub-thread of Streaming Media monitoring application program, by the sub-thread of the Streaming Media monitoring application program started according to described multimedia solicited message, search described predetermined directory, obtain the XML file cocurrent that described first terminal is corresponding and give the second terminal;
Whether the main thread of the described Streaming Media monitoring application program that the first terminal utilization has started simultaneously, continuing monitoring the second terminal has the request of the multimedia messages of transmission.
5. method as claimed in claim 1 or 2, it is characterized in that, described the second terminal receives and resolves the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, and according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving, comprising:
The second terminal receives and resolves the XML file that described first terminal returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail;
According to the URL address obtained, the second terminal reads the described multimedia file thumbnail of first terminal storage.
6. a multimedia file thumbnail reading system, is characterized in that, comprises first terminal and the second terminal;
Described first terminal is used for:
Scan in the multimedia database on described first terminal all multimedia files of having stored, and the thumbnail of the multimedia file that scans is kept under predetermined directory, by the thumbnail URL address after preserving and XML file corresponding to the described multimedia file identification Information generation that scans and be saved under predetermined directory; While monitoring the second terminal transmission multimedia messages request, search described predetermined directory, the XML file cocurrent that obtains described first terminal is given the second terminal;
Described the second terminal is used for: send the multimedia messages request to first terminal, receive and resolve the rear thumbnail URL of the XML file acquisition preservation address that first terminal returns, according to multimedia file thumbnail corresponding to thumbnail URL address acquisition after preserving.
7. system as claimed in claim 6, is characterized in that, described first terminal also for:
When scanning the multimedia file of having stored in multimedia database on described first terminal, search under predetermined directory, whether have the other information of this multimedia file identification scanned;
This multimedia file identification information scanned if do not exist, from multimedia database, extract thumbnail corresponding to this multimedia file, and the thumbnail corresponding to this multimedia file that will extract is kept under described predetermined directory.
8. system as claimed in claim 7, is characterized in that, described multimedia file identification information comprises the filename of the corresponding thumbnail of described multimedia file.
9. system as described as claim 6 or 7, is characterized in that, described first terminal also for:
Start the sub-thread of Streaming Media monitoring application program, by the sub-thread of the Streaming Media monitoring application program started, according to described multimedia solicited message, search described predetermined directory, obtain the XML file cocurrent that described first terminal is corresponding and give the second terminal;
Whether utilize the main thread of the described Streaming Media monitoring application program started, continuing monitoring the second terminal has the request of the multimedia messages of transmission simultaneously.
10. system as described as claim 6 or 7, is characterized in that, described the second terminal also for:
Receive and resolve the XML file that described first terminal returns, according to the URL address of multimedia file identification acquisition of information multimedia file thumbnail;
According to the URL address obtained, the second terminal reads the described multimedia file thumbnail of first terminal storage.
CN201310404756.8A 2013-09-06 2013-09-06 Multimedia file thumbnail read method and system Expired - Fee Related CN103475929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310404756.8A CN103475929B (en) 2013-09-06 2013-09-06 Multimedia file thumbnail read method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310404756.8A CN103475929B (en) 2013-09-06 2013-09-06 Multimedia file thumbnail read method and system

Publications (2)

Publication Number Publication Date
CN103475929A true CN103475929A (en) 2013-12-25
CN103475929B CN103475929B (en) 2017-09-05

Family

ID=49800605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310404756.8A Expired - Fee Related CN103475929B (en) 2013-09-06 2013-09-06 Multimedia file thumbnail read method and system

Country Status (1)

Country Link
CN (1) CN103475929B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023060A (en) * 2014-06-06 2014-09-03 广州三星通信技术研究有限公司 Method and equipment of sending file
CN104462366A (en) * 2014-12-08 2015-03-25 北京安奇智联科技有限公司 Browser of computing device and thumbnail display method of browser
CN104484338A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 File list management equipment and method
CN106445319A (en) * 2016-10-31 2017-02-22 维沃移动通信有限公司 File positioning method and terminal
CN107426088A (en) * 2017-07-20 2017-12-01 北京小米移动软件有限公司 Pictorial information processing method and processing device
CN107943987A (en) * 2017-12-01 2018-04-20 苏州联讯图创软件有限责任公司 The quick method and system for having access to figure
CN109272449A (en) * 2018-08-20 2019-01-25 中国平安人寿保险股份有限公司 Image display method and device, computer installation and readable storage medium storing program for executing
CN109271543A (en) * 2018-09-26 2019-01-25 Oppo广东移动通信有限公司 Display methods, device, terminal and the computer readable storage medium of thumbnail
CN109325134A (en) * 2018-09-21 2019-02-12 Oppo广东移动通信有限公司 A kind of thumbnail management method, thumbnail managing device and mobile terminal
CN110598032A (en) * 2019-09-25 2019-12-20 京东方科技集团股份有限公司 Image tag generation method, server and terminal equipment
CN112100131A (en) * 2020-09-24 2020-12-18 深圳软牛科技有限公司 Thumbnail extraction method and device in android system and electronic equipment
CN112351319A (en) * 2020-11-04 2021-02-09 深圳Tcl新技术有限公司 Network download service method, device and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193074A (en) * 2007-05-22 2008-06-04 腾讯科技(深圳)有限公司 A method and system for display image on instant communication demonstration frame
US20090327231A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Inline enhancement of web lists
US20110055678A1 (en) * 2009-09-02 2011-03-03 James David Ramsey Multimedia system for mobile devices
CN102156953A (en) * 2011-03-17 2011-08-17 深圳市五巨科技有限公司 Method and device for realizing batch processing of images
CN103024508A (en) * 2011-09-20 2013-04-03 Lg电子株式会社 Digital system and method of processing service data thereof
CN103188330A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system of file transfer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193074A (en) * 2007-05-22 2008-06-04 腾讯科技(深圳)有限公司 A method and system for display image on instant communication demonstration frame
US20090327231A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Inline enhancement of web lists
US20110055678A1 (en) * 2009-09-02 2011-03-03 James David Ramsey Multimedia system for mobile devices
CN102156953A (en) * 2011-03-17 2011-08-17 深圳市五巨科技有限公司 Method and device for realizing batch processing of images
CN103024508A (en) * 2011-09-20 2013-04-03 Lg电子株式会社 Digital system and method of processing service data thereof
CN103188330A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system of file transfer

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023060A (en) * 2014-06-06 2014-09-03 广州三星通信技术研究有限公司 Method and equipment of sending file
CN104023060B (en) * 2014-06-06 2018-06-01 广州三星通信技术研究有限公司 The method and apparatus for sending file
CN104484338B (en) * 2014-11-20 2018-05-29 北京安奇智联科技有限公司 Listed files management equipment and method
CN104484338A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 File list management equipment and method
CN104462366A (en) * 2014-12-08 2015-03-25 北京安奇智联科技有限公司 Browser of computing device and thumbnail display method of browser
CN104462366B (en) * 2014-12-08 2018-04-13 北京安奇智联科技有限公司 The browser and its method for viewing thumbnail of a kind of computing device
CN106445319B (en) * 2016-10-31 2019-08-20 维沃移动通信有限公司 A kind of file location method and terminal
CN106445319A (en) * 2016-10-31 2017-02-22 维沃移动通信有限公司 File positioning method and terminal
CN107426088A (en) * 2017-07-20 2017-12-01 北京小米移动软件有限公司 Pictorial information processing method and processing device
US10957012B2 (en) 2017-07-20 2021-03-23 Beijing Xiaomi Mobile Software Co., Ltd. System and method for processing image information
CN107943987A (en) * 2017-12-01 2018-04-20 苏州联讯图创软件有限责任公司 The quick method and system for having access to figure
CN109272449A (en) * 2018-08-20 2019-01-25 中国平安人寿保险股份有限公司 Image display method and device, computer installation and readable storage medium storing program for executing
CN109325134A (en) * 2018-09-21 2019-02-12 Oppo广东移动通信有限公司 A kind of thumbnail management method, thumbnail managing device and mobile terminal
CN109271543A (en) * 2018-09-26 2019-01-25 Oppo广东移动通信有限公司 Display methods, device, terminal and the computer readable storage medium of thumbnail
CN110598032A (en) * 2019-09-25 2019-12-20 京东方科技集团股份有限公司 Image tag generation method, server and terminal equipment
CN110598032B (en) * 2019-09-25 2022-06-14 京东方艺云(杭州)科技有限公司 Image tag generation method, server and terminal equipment
CN112100131A (en) * 2020-09-24 2020-12-18 深圳软牛科技有限公司 Thumbnail extraction method and device in android system and electronic equipment
CN112351319A (en) * 2020-11-04 2021-02-09 深圳Tcl新技术有限公司 Network download service method, device and computer storage medium
CN112351319B (en) * 2020-11-04 2024-02-09 深圳Tcl新技术有限公司 Network download service method, device and computer storage medium

Also Published As

Publication number Publication date
CN103475929B (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN103475929A (en) Method and system for reading multi-media file thumbnails
US7797350B2 (en) System and method for processing downloaded data
CN110096660B (en) Method and device for loading page pictures and electronic equipment
US8880698B2 (en) Storage of content data in a peer-to-peer network
US20180276298A1 (en) Analyzing user searches of verbal media content
CN107566477B (en) Method and device for acquiring files in distributed file system cluster
JP2010171978A (en) Content information provision/reproduction method and device
US11232166B2 (en) Networked page access and addressing based on partial categorization indexing
US20050144285A1 (en) Finding of tv anytime web services
CN104427355A (en) Method and device for playing multimedia source
CN109977822B (en) Data supply method, model training method, device, system, equipment and medium
CN102438004A (en) Method and system for acquiring metadata information of media file and multimedia player
WO2014040471A1 (en) Subtitle processing method, device and system, and storage medium
CN104573001A (en) Mobile terminal-based webpage data acqusition and classification method
CN102624910B (en) Method, the Apparatus and system of the web page contents that process user chooses
CN110290396B (en) Video processing method, device, system, equipment and storage medium
CN105978944A (en) Object storage method and device
CN102006500B (en) Video dragging method and device applied to cache server
KR101503268B1 (en) Symantic client, symantic information management server, method for generaing symantic information, method for searching symantic information and computer program recording medium for performing the methods
JP6182578B2 (en) Method and system for comparing media assets
KR100765364B1 (en) System for managing multimedia contents between heterogeneous terminals using metadata
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN105138545B (en) The asynchronous method and system pre-read of directory entry in a kind of distributed file system
CN108874856B (en) Page generation system, method and server
CN113742420B (en) Data synchronization method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170905

CF01 Termination of patent right due to non-payment of annual fee