Nothing Special   »   [go: up one dir, main page]

CN103475929B - Multimedia file thumbnail read method and system - Google Patents

Multimedia file thumbnail read method and system Download PDF

Info

Publication number
CN103475929B
CN103475929B CN201310404756.8A CN201310404756A CN103475929B CN 103475929 B CN103475929 B CN 103475929B CN 201310404756 A CN201310404756 A CN 201310404756A CN 103475929 B CN103475929 B CN 103475929B
Authority
CN
China
Prior art keywords
terminal
multimedia
thumbnail
file
multimedia 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.)
Expired - Fee Related
Application number
CN201310404756.8A
Other languages
Chinese (zh)
Other versions
CN103475929A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a kind of multimedia file thumbnail read method and system, first terminal scans all multimedia files stored in the multimedia database on the first terminal, and the thumbnail of the multimedia file scanned is stored under predetermined directory, the thumbnail URL addresses after preservation and the multimedia file identification information scanned are generated into corresponding XML file and are saved under predetermined directory;When first terminal monitors second terminal transmission multimedia messages request, predetermined directory is searched, the XML file for obtaining first terminal is simultaneously sent to second terminal;Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, according to the corresponding multimedia file thumbnail of thumbnail URL address acquisitions after preservation;Beneficial effect with the corresponding multimedia file thumbnail of request quick obtaining for second terminal, it is to avoid the problem of second terminal obtains a large amount of unnecessary data.

Description

Multimedia file thumbnail read method and system
Technical field
The present invention relates to multimedia technology of sharing, more particularly to a kind of multimedia file thumbnail read method and system.
Background technology
At present, in LAN between equipment multimedia it is shared be multimedia era development main flow, show multimedia File thumbnail is a shared essential technology of multimedia, such as shows the video of other equipment, sound in LAN Frequently, the thumbnail of picture.
Mainly there be the practices well of multimedia thumbnail between second terminal acquisition lan device:Second terminal is directly obtained Artwork is taken, the URL of artwork(Uniform Resource Locator, URL)As thumbnail(Such as scheme Piece artwork)Directly obtain;Or, first terminal obtains thumbnail data from multimedia database, and all thumbnails The packing of data whole simultaneously issues second terminal together;The multimedia file thumbnail gone again as second terminal required for searching.But When thering is substantial amounts of second terminal concurrently to access and obtaining first terminal data, it will occur because multithreading obtains database information Cause competitive relation and cause the problem of first terminal degraded performance and second terminal obtain thumbnail overlong time.
The content of the invention
In consideration of it, being necessary to provide a kind of multimedia file thumbnail read method and system, obtained with improving second terminal Take the speed of multimedia thumbnail between lan device.
The embodiment of the invention discloses a kind of multimedia file thumbnail read method, comprise the following steps:
First terminal scans all multimedia files stored in the multimedia database on the first terminal, and will The thumbnail of the multimedia file scanned is stored under predetermined directory, and the thumbnail URL addresses after preservation and scanning are arrived The multimedia file identification information generate corresponding XML file and be saved under predetermined directory;
When first terminal monitors second terminal transmission multimedia messages request, the predetermined directory is searched, obtains described The XML file of first terminal is simultaneously sent to second terminal;
Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, according to guarantor Deposit the corresponding multimedia file thumbnail of rear thumbnail URL address acquisitions.
Preferably, the first terminal scans all many matchmakers stored in the multimedia database on the first terminal Body file, and the thumbnail of the multimedia file scanned is stored under predetermined directory, including:
While first terminal scans the multimedia file stored on the first terminal in multimedia database, search Under predetermined directory, if there is the other information of the multimedia file identification scanned;
If in the absence of the multimedia file identification information scanned, multimedia text is extracted from multimedia database The corresponding thumbnail of part, and the corresponding thumbnail of the multimedia file of extraction is stored under the predetermined directory.
Preferably, the identification information of the multimedia file includes the filename of multimedia file correspondence thumbnail.
Preferably, when first terminal monitors second terminal transmission multimedia messages request, the predetermined directory is searched, is obtained Obtain the XML file of the first terminal and be sent to second terminal, including:
First terminal starts the sub-line journey that Streaming Media monitors application program, and the son of application program is monitored by the Streaming Media started Thread searches the predetermined directory according to the multimedia request information, obtains the corresponding XML file of the first terminal concurrent Give second terminal;
First terminal monitors the main thread of application program using the Streaming Media having been turned on simultaneously, continues to monitor second eventually Whether end has transmission multimedia messages request.
Preferably, the second terminal receive and parse through first terminal return XML file preserved after thumbnail URL Address, according to the corresponding multimedia file thumbnail of thumbnail URL address acquisitions after preservation, including:
Second terminal receives and parses through the XML file that the first terminal is returned, and is obtained according to multimedia file identification information Take the URL addresses of multimedia file thumbnail;
According to the URL addresses of acquisition, second terminal reads the multimedia file thumbnail of first terminal storage.
The embodiment of the present invention is also disclosed a kind of multimedia file thumbnail and reads system, including first terminal and second is eventually End;
The first terminal is used for:
Scan all multimedia files stored in the multimedia database on the first terminal, and will scan The thumbnail of multimedia file is stored under predetermined directory, by the thumbnail URL addresses after preservation and scan it is described many Media file identification information generates corresponding XML file and is saved under predetermined directory;Monitor second terminal and send multimedia During information request, the predetermined directory is searched, the XML file of the first terminal is obtained and is sent to second terminal;
The second terminal is used for:Multimedia messages request is sent to first terminal, first terminal return is received and parsed through XML file preserved after thumbnail URL addresses, according to the corresponding multimedia file of thumbnail URL address acquisitions after preservation Thumbnail.
Preferably, the first terminal is additionally operable to:
While scanning the multimedia file stored on the first terminal in multimedia database, predetermined directory is searched Under, if there is the other information of the multimedia file identification scanned;
If in the absence of the multimedia file identification information scanned, multimedia text is extracted from multimedia database The corresponding thumbnail of part, and the corresponding thumbnail of the multimedia file of extraction is stored under the predetermined directory.
Preferably, the multimedia file identification information includes the filename of multimedia file correspondence thumbnail.
Preferably, the first terminal is additionally operable to:
Start the sub-line journey that Streaming Media monitors application program, by the Streaming Media that starts monitor the sub-line journey of application program according to The multimedia request information, searches the predetermined directory, obtains the corresponding XML file of the first terminal and is sent to second Terminal;
The main thread of application program is monitored using the Streaming Media having been turned on simultaneously, continues to monitor whether second terminal has Send multimedia messages request.
Preferably, the second terminal is additionally operable to:
The XML file that the first terminal is returned is received and parsed through, according to multimedia file identification acquisition of information multimedia The URL addresses of file thumbnail;
According to the URL addresses of acquisition, second terminal reads the multimedia file thumbnail of first terminal storage.
All multimedias text stored on first terminal of embodiment of the present invention scanning first terminal in multimedia database Part, and the thumbnail of the multimedia file scanned is stored under predetermined directory, and by the thumbnail URL addresses after preservation with And the multimedia file identification information scanned generates corresponding XML file and is saved under predetermined directory;First terminal is monitored When sending multimedia messages request to second terminal, the predetermined directory is searched, the XML file of first terminal is obtained and is sent to Second terminal;Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, according to The corresponding multimedia file thumbnail of thumbnail URL address acquisitions after preservation;Compared in the prior art, a large amount of second terminals are simultaneously When hair accesses first terminal, first terminal need not travel through multimedia database but directly obtain and parse under predetermined directory XML file obtains corresponding URL addresses, and the embodiment of the present invention has the specific request quick obtaining for second terminal corresponding The beneficial effect of multimedia file thumbnail, it is to avoid the problem of second terminal obtains a large amount of unnecessary data;Further, by Start the request that corresponding sub-line journey handles second terminal in first terminal, therefore allow second terminal largely concurrently to access first While terminal, still possesses the beneficial effect for improving first terminal runnability.
Brief description of the drawings
Fig. 1 is the embodiment schematic flow sheet of multimedia file thumbnail read method one of the present invention;
Fig. 2 is that multimedia file thumbnail of the present invention reads the embodiment high-level schematic functional block diagram of system one.
Realization, functional characteristics and the advantage of purpose of the embodiment of the present invention will be done furtherly referring to the drawings in conjunction with the embodiments It is bright.
Embodiment
Technical scheme is further illustrated below in conjunction with Figure of description and specific embodiment.It should be appreciated that this The specific embodiment of place description is not intended to limit the present invention only to explain the present invention.
Fig. 1 is the embodiment schematic flow sheet of multimedia file thumbnail read method one of the present invention;In the present embodiment, first Terminal is that the terminal of multi-medium data is shared in LAN with second terminal, and first terminal is to provide the end of shared multi-medium data End, second terminal is the terminal for the multi-medium data that shared first terminal is provided, as shown in figure 1, multimedia file of the present invention contracts Sketch map read method comprises the following steps:
Step S01, first terminal scan all multimedias stored in the multimedia database on the first terminal File, and the thumbnail of the multimedia file scanned is stored under default catalogue, by the thumbnail URL addresses after preservation And the multimedia file identification information scanned generates corresponding XML file and is saved under predetermined directory;
While first terminal scans multimedia file in the terminal, search under predetermined directory, if having what is scanned The identification information of the multimedia file;If in the absence of the identification information of the multimedia file scanned, from multi-medium data The corresponding thumbnail of the multimedia file is extracted in storehouse, and the corresponding thumbnail of the multimedia file of extraction is stored in default Under catalogue.In a preferred embodiment, all multimedia file identification information and corresponding preservation retraction are arrived into scanning Sketch map URL addresses, correspondence preservation is packaged as an XML(Xtensible Markup Language, extensible markup language)File It is stored under predetermined directory, while thumbnail and XML file can be respectively stored in default breviary drawings list and default XML texts Under part catalogue, it is easy to search.
Under normal circumstances, first by the multimedia mode of scanning system when first terminal is started shooting or when thering is system to have a renewal All multimedia document informations are obtained, and the corresponding thumbnail of multimedia file is extracted and is stored under predetermined directory, Multimedia messages including multimedia file correspondence thumbnail file name are packaged into XML file and are saved in the XML file mesh specified Under record.The multimedia file identification information can also include all information of multimedia file, such as multimedia file thumbnail The URL addresses of thumbnail, multimedia file name etc. after the URL addresses of artwork, the multimedia file are preserved.Wherein multimedia file Can be video file, audio file etc..
When scanning multimedia database, whether the thumbnail that first terminal searches the multimedia file has had last time Inside the predetermined directory of preservation;Because first terminal is the title for the multimedia file thumbnail specified to predetermined directory lookup, Therefore this search procedure does not interfere with the performance of system at all.If the breviary for the multimedia file that first terminal is searched Figure has been present under the preassigned breviary drawings list i.e. predetermined directory of last time preservation, then first terminal will not be generated again The thumbnail of the multimedia file;The purpose for the arrangement is that preventing from repeatedly generating thumbnail, to improve system effectiveness.If default The corresponding breviary of the multimedia file that first terminal is scanned is not present in all multimedia thumbnails preserved in catalogue Figure, then first terminal extracts the corresponding thumbnail of the multimedia file from the multimedia database of the first terminal, and will carry The multimedia file thumbnail taken is saved in the predetermined directory of storage thumbnail.
In specific application scenarios, first terminal travels through multimedia database, and generation multimedia file thumbnail is arrived In httpService some assigned catalogue under such as TCL-thumbnailsDir catalogue, and by all multimedia files Thumbnail is all placed under same catalogue TCL-thumbnailsDir, and first terminal side stores corresponding multimedia file contracting Sketch map side generates the corresponding store path of the multimedia file thumbnail i.e. URL addresses.It is described in the present embodiment HttpService can be understood as an application program increased income, and it is functionally similar to the video server program of youku.com, can connect Receive and video, music, the broadcasting of picture and the request of download are handled.
The realization that first terminal obtains multimedia file thumbnail URL addresses is described with concrete application scene below Journey.
Assuming that the store path where the artwork for certain three pictures that first terminal is scanned is respectively:
"/sdcard/dir1/1.jpg ", "/sdcard/dir2/2.jpg ", "/sdcard/dir3/3.jpg ", and this Three pictures do not have corresponding thumbnail under corresponding predetermined directory, then first terminal generates the corresponding contracting of this three pictures The path of sketch map is respectively:
“/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg”
“ /sdcard/TCL-thumbnailsDir/409385thbumnails2.jpg”、
“/sdcard/TCL-thumbnailsDir/075945thumbnails3.jpg”。
The multimedia file identification information of first terminal storage generates the multimedia file identification information one with first terminal Cause, therefore, if the IP address of server is 192.168.1.100, port numbers are 8080;After then above-mentioned three pictures are preserved The URL addresses difference of thumbnail:
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
First terminal arrives the XML file storage of the multimedia file comprising multimedia file thumbnail URL of generation In httpService predetermined directories.
When step S02, first terminal monitor second terminal transmission multimedia messages request, the predetermined directory is searched, Obtain the XML file of the first terminal and be sent to second terminal.
After multimedia database is scanned through, first terminal starts Streaming Media monitoring application program, waits second terminal hair The multimedia messages request sent.When monitoring the multimedia messages request of second terminal transmission, predetermined directory is searched, institute is obtained State the XML file of first terminal and the XML file of acquisition is sent to second terminal.
In specific application scenarios, first terminal can start httpService this application program progress multimedias Data processing when file thumbnail is read.Such as, first terminal starts the sub-line journey that Streaming Media monitors application program, processing the The multimedia messages request that two terminals are sent;The main thread of application program is monitored using the Streaming Media having been turned on simultaneously, continues to supervise Whether control second terminal has transmission multimedia messages request.
If the request of second terminal is multimedia messages request, first terminal promoter thread process multimedia XML The request of file, main thread returns to waiting for request next time of second terminal;If the request of second terminal is multimedia thumbnail The request of the request of data, then first terminal promoter thread process multimedia thumbnail data, main thread returns to waiting for second Request next time of terminal.
Step S03, second terminal receive and parse through first terminal return XML file preserved after thumbnail URL Location, according to the corresponding multimedia file thumbnail of thumbnail URL address acquisitions after preservation.
Second terminal receives and parses through the XML file of first terminal return, according to multimedia file identification acquisition of information The URL addresses of multimedia file thumbnail;According to the URL addresses of acquisition, read from first terminal described in first terminal storage Multimedia file thumbnail.
Under normal circumstances, second terminal can arrive saving contents for the multimedia document information that httpService is specified and go for Seek the XML file of multimedia messages;After the XML file of corresponding multimedia messages is obtained, it is many that second terminal parsing is obtained Media XML file, obtains the URL addresses of each multimedia file thumbnail;After the URL addresses of thumbnail are obtained, second eventually End can ask to read the multimedia file thumbnail for being stored in first terminal with multithreading, and then obtain shared equipment multimedia text The thumbnail of part.
In concrete application scene, second terminal can ask the XML texts of multimedia file by creating http Get Part.Second terminal parses this document after the multimedia XML file that first terminal is sent is obtained, and passes through definition multimedia XML texts Part obtains the corresponding thumbnail URL addresses of all multimedia file identification information of first terminal, the multi-media tag packet Include:The information such as the URL of multimedia original, the filename of multimedia file, multimedia file correspondence thumbnail file name.Second After URL where terminal acquisition multimedia file thumbnail, first terminal multimedia file is read by Asynchronous loading mode Thumbnail.
All multimedia files stored on the present embodiment first terminal scanning first terminal in multimedia database, and The thumbnail of the multimedia file scanned is stored under predetermined directory, by the thumbnail URL addresses after preservation and scanning To multimedia file identification information generate corresponding XML file and be saved under predetermined directory;First terminal monitors second When terminal sends multimedia messages request, predetermined directory is searched, the XML file of first terminal is obtained and is sent to second terminal; Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, according to breviary after preservation Scheme the corresponding multimedia file thumbnail of URL address acquisitions;It is corresponding with the specific request quick obtaining for second terminal The beneficial effect of multimedia file thumbnail, it is to avoid the problem of second terminal obtains a large amount of unnecessary data;Further, by Start the request that corresponding sub-line journey handles second terminal in first terminal, therefore, the is obtained in second terminal multi-thread concurrent Effective acquisition corresponding data is remained to during one terminal data, with the beneficial effect for improving first terminal runnability, it is ensured that the Two terminals efficiently access and obtain the multimedia file thumbnail of first terminal.
Fig. 2 is that multimedia file thumbnail of the present invention reads the embodiment high-level schematic functional block diagram of system one;As shown in Fig. 2 Multimedia file thumbnail of the present invention, which reads system, includes first terminal 100 and second terminal 200.
In the present embodiment, first terminal 100 is that the terminal of multi-medium data is shared in LAN with second terminal 200, the One terminal 100 is to provide the terminal of shared multi-medium data, and second terminal 200 is the multimedia that shared first terminal 100 is provided The terminal of data.
The first terminal 100 is used for:Scan stored in the multimedia database on the first terminal all many Media file, and the thumbnail of the multimedia file scanned is stored under predetermined directory, by the thumbnail URL after preservation Location and the multimedia file identification information scanned generate corresponding XML file and are saved under predetermined directory;Monitoring When sending multimedia messages request to second terminal 200, the predetermined directory is searched, the XML texts of the first terminal 100 are obtained Part is simultaneously sent to second terminal 200.
While first terminal 100 scans each multimedia file on the first terminal 100, search under predetermined directory, if In the presence of the identification information of the multimedia file scanned;If in the absence of the identification information of the multimedia file scanned, Extract the corresponding thumbnail of the multimedia file from multimedia database, and by the corresponding breviary of the multimedia file of extraction Figure is stored under predetermined directory.In a preferred embodiment, by all multimedia file identification information scanned and Thumbnail URL addresses after corresponding preservation, correspondence preservation is packaged as an XML file and is stored under predetermined directory, while thumbnail And XML file can be respectively stored under default breviary drawings list and default XML file catalogue, it is easy to search.
Under normal circumstances, it is multimedia by scanning system first when first terminal 100 is started shooting or when thering is system to have a renewal Mode obtains all multimedia document informations, and the corresponding thumbnail of multimedia file is extracted and predetermined directory is stored in Under, the multimedia messages including multimedia file correspondence thumbnail file name are packaged into XML file and are saved in the XML specified texts Under part catalogue.The multimedia file identification information can also include all information of multimedia file, such as multimedia file contracts The URL addresses of thumbnail, multimedia file name etc. after the URL addresses of sketch map artwork, the multimedia file are preserved.Wherein multimedia File can be video file, audio file etc..
When scanning multimedia database, whether the thumbnail that first terminal 100 searches the multimedia file has been present Inside the predetermined directory that last time preserves;Because first terminal 100 is to search the multimedia file thumbnail specified to predetermined directory Title, therefore this search procedure does not interfere with the performance of system at all.If the multimedia that first terminal 100 is searched The thumbnail of file has been present under the preassigned breviary drawings list i.e. predetermined directory of last time preservation, then first terminal 100 The thumbnail of the multimedia file will not be generated again;The purpose for the arrangement is that preventing from repeatedly generating thumbnail, it is to improve System efficiency.If all multimedia thumbnails preserved in predetermined directory be not present that first terminal 100 scans this is more The corresponding thumbnail of media file, then first terminal 100 multimedia is extracted from the multimedia database of the first terminal 100 The corresponding thumbnail of file, and the multimedia file thumbnail of extraction is saved in the predetermined directory of storage thumbnail.
In specific application scenarios, first terminal 100 travels through multimedia database, generates multimedia file thumbnail In to httpService some assigned catalogue under such as TCL-thumbnailsDir catalogue, and all multimedias is literary Part thumbnail is all placed under same catalogue TCL-thumbnailsDir, and the side of first terminal 100 stores corresponding multimedia text Part thumbnail side generates the corresponding store path of the multimedia file thumbnail i.e. URL addresses.It is described in the present embodiment HttpService can be understood as an application program increased income, and it is functionally similar to the video server program of youku.com, can connect Receive and video, music, the broadcasting of picture and the request of download are handled.
The realization that first terminal 100 obtains multimedia file thumbnail URL addresses is described with concrete application scene below Process.
Assuming that the store path where the artwork for certain three pictures that first terminal 100 is scanned is respectively:
"/sdcard/dir1/1.jpg ", "/sdcard/dir2/2.jpg ", "/sdcard/dir3/3.jpg ", and this Three pictures are without corresponding thumbnail under corresponding predetermined directory, then this three pictures of the generation of first terminal 100 are corresponding The path of thumbnail be respectively:
“/sdcard/TCL-thumbnailsDir/485945thumbnails1.jpg”
“ /sdcard/TCL-thumbnailsDir/409385thbumnails2.jpg”、
“/sdcard/TCL-thumbnailsDir/075945thumbnails3.jpg”。
The multimedia file identification information and the generation of first terminal 100 multi-media tag stored due to first terminal 100 Information is consistent, therefore, if the IP address of server is 192.168.1.100, port numbers are 8080;Then above-mentioned three pictures are protected The URL addresses difference of thumbnail after depositing:
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
First terminal 100 arrives the XML file storage of the multimedia file comprising multimedia file thumbnail URL of generation In httpService predetermined directories.
After multimedia database is scanned through, first terminal 100 starts Streaming Media monitoring application program, waits second terminal The 200 multimedia messages requests sent.When monitoring the multimedia messages request of the transmission of second terminal 200, first terminal 100 Predetermined directory is searched, the XML file of the first terminal 100 is obtained and the XML file of acquisition is sent to second terminal 200.
In specific application scenarios, first terminal 100 can start many matchmakers of httpService this application program progress Data processing when body file thumbnail is read.Such as, first terminal 100 starts the sub-line journey that Streaming Media monitors application program, Handle the multimedia messages request that second terminal 200 is sent;The main line of application program is monitored using the Streaming Media having been turned on simultaneously Journey, continues to monitor whether second terminal 200 has transmission multimedia messages request.
If the request of second terminal 200 is multimedia messages request, many matchmakers of promoter thread process of first terminal 100 The request of body XML file, main thread returns to waiting for request next time of second terminal 200;If the request of second terminal 200 is many The request of the request of media thumbnail data, then the promoter thread process multimedia thumbnail data of first terminal 100, main thread Return to waiting for request next time of second terminal 200.
The second terminal 200 is used for:Multimedia messages request is sent to first terminal 100, first is received and parsed through eventually Thumbnail URL addresses after the XML file that end 100 is returned is preserved, it is corresponding many according to thumbnail URL address acquisitions after preservation Media file thumbnail.
Second terminal 200 receives and parses through the XML file of the return of first terminal 100, according to multimedia file identification information Obtain the URL addresses of multimedia file thumbnail;According to the URL addresses of acquisition, first terminal 100 is read from first terminal 100 The multimedia file thumbnail of storage.
Under normal circumstances, second terminal 200 can be specified to httpService multimedia document information saves contents Ask the XML file of multimedia messages;After the XML file of corresponding multimedia messages is obtained, the parsing of second terminal 200 is obtained Multimedia XML file, obtain the URL addresses of each multimedia file thumbnail;After the URL addresses of thumbnail are obtained, the Two terminals 200 can ask to read the multimedia file thumbnail for being stored in first terminal 100 with multithreading, and then obtain shared set The thumbnail of standby multimedia file.
In concrete application scene, second terminal 200 can ask the XML of multimedia file by creating http Get File.Second terminal 200 parses this document after the multimedia XML file that first terminal 100 is sent is obtained, by parsing many matchmakers Body XML file obtains the corresponding thumbnail URL addresses of all multimedia file identification information of first terminal 100, the multimedia Identification information includes:The URL of multimedia original, the filename of multimedia file, multimedia file correspondence thumbnail file name Etc. information.After URL where the acquisition multimedia file thumbnail of second terminal 200, first is read by Asynchronous loading mode The thumbnail of the multimedia file of terminal 100.
All multimedia files stored on the present embodiment first terminal scanning first terminal in multimedia database, and The thumbnail of the multimedia file scanned is stored under predetermined directory, by the thumbnail URL addresses after preservation and scanning To multimedia file identification information generate corresponding XML file and be saved under predetermined directory;First terminal monitors second When terminal sends multimedia messages request, predetermined directory is searched, the XML file of first terminal is obtained and is sent to second terminal; Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, according to breviary after preservation Scheme the corresponding multimedia file thumbnail of URL address acquisitions;It is corresponding with the specific request quick obtaining for second terminal The beneficial effect of multimedia file thumbnail, it is to avoid the problem of second terminal obtains a large amount of unnecessary data;Further, by Start the request that corresponding sub-line journey handles second terminal in first terminal, therefore, the is obtained in second terminal multi-thread concurrent Effective acquisition corresponding data is remained to during one terminal data, with the beneficial effect for improving first terminal runnability, it is ensured that the Two terminals efficiently access and obtain the multimedia file thumbnail of first terminal.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
The preferred embodiments of the present invention are the foregoing is only, its scope of the claims is not thereby limited, it is every to utilize the present invention Equivalent structure or equivalent flow conversion that specification and accompanying drawing content are made, are directly or indirectly used in other related technology necks Domain, is included within the scope of the present invention.

Claims (8)

1. a kind of multimedia file thumbnail read method, it is characterised in that comprise the following steps:
First terminal scans the institute stored in the multimedia database on the first terminal when starting shooting or having system update There is multimedia file, and the thumbnail of the multimedia file scanned is stored under predetermined directory, by the thumbnail after preservation URL addresses and the multimedia file identification information scanned generate corresponding XML file and are saved under predetermined directory;
When first terminal monitors second terminal transmission multimedia messages request, the predetermined directory is searched, described first is obtained The XML file of terminal is simultaneously sent to second terminal, specifically includes:First terminal starts the sub-line that Streaming Media monitors application program Journey, the sub-line journey for monitoring application program by the Streaming Media started is asked according to the multimedia messages, searches the predetermined directory, Obtain the corresponding XML file of the first terminal and be sent to second terminal;First terminal utilizes the stream having been turned on simultaneously Media monitor the main thread of application program, continue to monitor whether second terminal has transmission multimedia messages request;
Second terminal receive and parse through first terminal return XML file preserved after thumbnail URL addresses, after preservation The corresponding multimedia file thumbnail of thumbnail URL address acquisitions.
2. the method as described in claim 1, it is characterised in that the first terminal scans the multimedia on the first terminal All multimedia files stored in database, and the thumbnail of the multimedia file scanned is stored in predetermined directory Under, including:
While first terminal scans the multimedia file stored on the first terminal in multimedia database, search default Under catalogue, if there is the multimedia file identification information scanned;
If in the absence of the multimedia file identification information scanned, the multimedia file pair is extracted from multimedia database The thumbnail answered, and the corresponding thumbnail of the multimedia file of extraction is stored under the predetermined directory.
3. method as claimed in claim 2, it is characterised in that the multimedia file identification information includes multimedia text The filename of part correspondence thumbnail.
4. method as claimed in claim 1 or 2, it is characterised in that the second terminal receives and parses through first terminal return XML file preserved after thumbnail URL addresses, according to the corresponding multimedia file of thumbnail URL address acquisitions after preservation Thumbnail, including:
Second terminal receives and parses through the XML file that the first terminal is returned, many according to multimedia file identification acquisition of information The URL addresses of media file thumbnail;
According to the URL addresses of acquisition, second terminal reads the multimedia file thumbnail of first terminal storage.
5. a kind of multimedia file thumbnail reads system, it is characterised in that including first terminal and second terminal;
The first terminal is used for:
All multimedias stored in the multimedia database on the first terminal are scanned when starting shooting or having system update File, and the thumbnail of the multimedia file scanned is stored under predetermined directory, by the thumbnail URL addresses after preservation with And the multimedia file identification information scanned generates corresponding XML file and is saved under predetermined directory;Monitor second eventually When end sends multimedia messages request, the predetermined directory is searched, the XML file of the first terminal is obtained and is sent to second Terminal;Start the sub-line journey that Streaming Media monitors application program, the sub-line journey of application program is monitored according to institute by the Streaming Media started Multimedia messages request is stated, the predetermined directory is searched, the corresponding XML file of the first terminal is obtained and is sent to second eventually End;The main thread of application program is monitored using the Streaming Media having been turned on simultaneously, continues to monitor whether second terminal has transmission Multimedia messages are asked;
The second terminal is used for:Multimedia messages request is sent to first terminal, the XML of first terminal return is received and parsed through Thumbnail URL addresses after file is preserved, according to the corresponding multimedia file breviary of thumbnail URL address acquisitions after preservation Figure.
6. system as claimed in claim 5, it is characterised in that the first terminal is additionally operable to:
While scanning the multimedia file stored on the first terminal in multimedia database, search under predetermined directory, With the presence or absence of the multimedia file identification information scanned;
If in the absence of the multimedia file identification information scanned, the multimedia file pair is extracted from multimedia database The thumbnail answered, and the corresponding thumbnail of the multimedia file of extraction is stored under the predetermined directory.
7. system as claimed in claim 6, it is characterised in that the multimedia file identification information includes multimedia text The filename of part correspondence thumbnail.
8. the system as described in claim 5 or 6, it is characterised in that the second terminal is additionally operable to:
The XML file that the first terminal is returned is received and parsed through, according to multimedia file identification acquisition of information multimedia file The URL addresses of thumbnail;
According to the URL addresses of acquisition, second terminal reads the 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 CN103475929A (en) 2013-12-25
CN103475929B true 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)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN107426088A (en) 2017-07-20 2017-12-01 北京小米移动软件有限公司 Pictorial information processing method and processing device
CN107943987B (en) * 2017-12-01 2022-03-22 苏州联讯图创软件有限责任公司 Method and system for quickly reading graph
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
CN109271543B (en) * 2018-09-26 2021-03-26 Oppo广东移动通信有限公司 Thumbnail display method and device, terminal and computer-readable storage medium
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
CN112351319B (en) * 2020-11-04 2024-02-09 深圳Tcl新技术有限公司 Network download service method, device and computer storage medium

Citations (3)

* 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
CN102156953A (en) * 2011-03-17 2011-08-17 深圳市五巨科技有限公司 Method and device for realizing batch processing of images
CN103188330A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system of file transfer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
EP2584800B1 (en) * 2011-09-20 2014-11-05 LG Electronics Inc. Digital system and method of processing service data thereof

Patent Citations (3)

* 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
CN102156953A (en) * 2011-03-17 2011-08-17 深圳市五巨科技有限公司 Method and device for realizing batch processing of images
CN103188330A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system of file transfer

Also Published As

Publication number Publication date
CN103475929A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103475929B (en) Multimedia file thumbnail read method and system
CN102111685B (en) Acceleration method, equipment and system for network video loading
CN104333531B (en) The sharing of Internet resources and acquisition methods, device, terminal
US10367871B2 (en) System and method for all-in-one content stream in content-centric networks
CN107801051B (en) Virtual sliced sheet information transferring method and device, video server
KR20030094399A (en) Multimedia presentation
CN102143121B (en) The method that video is downloaded and device
US20100010965A1 (en) Query Management Systems
CN104348859B (en) File synchronisation method, device, server, terminal and system
US20210400317A1 (en) Method for processing video-dragging data, and proxy server
US20050144285A1 (en) Finding of tv anytime web services
WO2012102850A1 (en) Efficient real-time stitching of multimedia files
CN103279474A (en) Video file index method and system
CN104202655A (en) Method and device of downloading audio and video files
CN107809684B (en) Video segment generation method and device, cache server
WO2014040471A1 (en) Subtitle processing method, device and system, and storage medium
US11232166B2 (en) Networked page access and addressing based on partial categorization indexing
WO2024124663A1 (en) Method and apparatus for supporting batch cdn cache refresh
EP3103264B1 (en) Methods and apparatus for naming video content chunks
CN107888941B (en) Video segment transmission method, device and system
CN102006500B (en) Video dragging method and device applied to cache server
JP6182578B2 (en) Method and system for comparing media assets
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
WO2015154682A1 (en) Network request processing method, network server, and network system
JP2007527067A (en) Hierarchical distribution of UI assets

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