CN102638723A - Method and device for playing multimedia files - Google Patents

Method and device for playing multimedia files Download PDF

Info

Publication number
CN102638723A
CN102638723A CN2012100791850A CN201210079185A CN102638723A CN 102638723 A CN102638723 A CN 102638723A CN 2012100791850 A CN2012100791850 A CN 2012100791850A CN 201210079185 A CN201210079185 A CN 201210079185A CN 102638723 A CN102638723 A CN 102638723A
Authority
CN
China
Prior art keywords
file
multimedia
information
rule
multimedia messages
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
CN2012100791850A
Other languages
Chinese (zh)
Other versions
CN102638723B (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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201210079185.0A priority Critical patent/CN102638723B/en
Publication of CN102638723A publication Critical patent/CN102638723A/en
Application granted granted Critical
Publication of CN102638723B publication Critical patent/CN102638723B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the invention discloses a method for playing multimedia files, which includes acquiring files including multimedia information or rule information; judging whether the information included in the files is multimedia information or not; if so, acquiring the multimedia information, otherwise acquiring the rule information, acquiring rule files which include the multimedia information or the rule information according to the rule information, and judging whether the information included in the rule files is multimedia information or not, and repeating the steps until the multimedia information is acquired; and downloading the multimedia files according to the multimedia information, and waiting for the multimedia files to be played. The embodiment of the invention further discloses a set top box. By the method for playing multimedia files and the set top box, the multimedia file information can be acquired by configuring the files in a simple and low-cost manner while addresses and copyright information of the multimedia files can be protected.

Description

A kind of method of play multimedia files and device
Technical field
The present invention relates to multimedia information technique field, relate in particular to a kind of method and device of play multimedia files.
Background technology
The mode of STB play multimedia files of the prior art mainly contains two kinds; First kind of mode is storing multimedia in the memory device externally; And the name that multimedia file is fixed; With this memory device insertion machine top box, STB starts relevant routine access this document, obtains this document and plays again.The method operation is cumbersome, needs to download multimedia file earlier and copy External memory equipment to, names into fixed name then, and the insertion machine top box is waited for and being play by routine call.If thousands of such STBs are arranged, the action that then will do repetition reaches thousands of times.In addition, be limited to the capacity of External memory equipment, stored not too many multimedia file usually.
The second way is the multimedia file and corresponding web page program that needs broadcast through on server, configuring., the user removes to visit certain web page program of this server after opening STB.Server is made corresponding analysis and judgement and is searched according to the request of STB, returns to webpage that is generated by program of STB then, and STB is downloaded this webpage and extracted the multimedia file address, downloads multimedia file and broadcast then.In the method, server end need carry out corresponding programming and database programming.To the particular access request that STB sends, server receives query-relevant data storehouse, request back, and which multimedia file what check this request correspondence is, combinational multimedia file and server address become an absolute address` and return to STB then.So the more complicated that seems, the input of server end and maintenance cost are also than higher.
Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method and device of play multimedia files is provided.Can simply and at low cost obtain address and the copyright information that multimedia document information is also protected multimedia file simultaneously through configuration file.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method of play multimedia files, comprising:
Obtain the file that comprises multimedia messages or Rule Information;
Judge whether the information that said file comprises is multimedia messages;
If; Then obtain multimedia messages; Otherwise obtain Rule Information, and obtain rule file according to said Rule Information, said rule file comprises multimedia messages or Rule Information; Judge whether the information that said rule file comprises is multimedia messages, repeats this step until obtaining multimedia messages;
Download multimedia file according to said multimedia messages and wait for broadcast.
Preferably, said multimedia messages comprises address information, play mode information and the playing duration information of multimedia file.
Preferably, the play mode of said multimedia file comprise live, intercut and program request.
Preferably, said Rule Information comprises the address information of rule file.
Preferably, the said file that comprises multimedia messages or Rule Information comprises the preset file of encryption and the rule file of encryption.
Preferably, the said step of obtaining the file that comprises multimedia messages or Rule Information comprises:
Read said file;
Whether the said file of verification damages;
Remind the user if said file corruption then reports an error, otherwise decipher said file, obtain the information that said file comprises.
Preferably, the said step that wait is play according to said multimedia messages download multimedia file comprises:
Multimedia file is downloaded in visit multimedia file address;
Said multimedia file is carried out burst, again the group bag;
Again the multimedia file after group is wrapped is mounted in the broadcast formation, waits for and playing.
Further, the embodiment of the invention also provides a kind of STB, comprising:
Processor module is used to obtain the file that comprises multimedia messages or Rule Information, and obtains multimedia messages and control each module and carry out corresponding work according to the information that said file comprises.
Network Interface Module is used to connect network and downloads multimedia file wait broadcast according to said multimedia messages;
Memory module is used to store the said multimedia file of download;
Playing module is used to play the said multimedia file of download;
The transfer bus module is used for transfer of data and communication between inner each module of said STB.
Preferably, the said file that comprises multimedia messages or Rule Information comprises the preset file of encryption and the rule file of encryption, and said processor module also is used to decipher the preset file of said encryption and the rule file of encryption.
Preferably; Said multimedia messages comprises address information, play mode information and the playing duration information of multimedia file, and said each module of processor module control is carried out corresponding work and specifically comprised: said processor module is downloaded multimedia file and is stored to said memory module through said Network Interface Module according to said multimedia address information; Said processor module is play said multimedia file according to said multimedia pattern information and the said playing module of playing duration information Control.
Embodiment of the present invention embodiment has following beneficial effect:
Server end on network is stored a large amount of rule files and multimedia file at random; In fixing preset file access network server end of STB set inside, judge whether the file that is obtained comprises multimedia messages, circulation is play until obtaining multimedia file; This process operates mainly in the STB end and carries out automatically; Server end need not to carry out complicated programming and database programming, therefore drop into and the cost safeguarded lower, STB end simple to operate.And said rule file and multimedia file are encrypt file, have protected the address information and the copyright information thereof of multimedia file, and be safe and reliable.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the method for embodiment of the invention play multimedia files;
Fig. 2 is that the embodiment of the invention is downloaded the flow chart that multimedia file is waited for broadcast;
Fig. 3 is the composition sketch map of embodiment of the invention STB.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Please refer to Fig. 1, be the flow chart of the method for embodiment of the invention play multimedia files,
The method of the said play multimedia files of present embodiment comprises:
Step S101 reads preset file, and here, said preset file is for be stored in the equipment and changeless encrypt file in advance.The information that said preset file comprises is multimedia messages or Rule Information; Said multimedia messages comprises that multimedia messages comprises multimedia file address information, play mode information and playing duration information, and said Rule Information comprises the address information of rule file.
Step S102, deciphering is also resolved this document, and file described herein comprises the preset file of encryption and the rule file of encryption.Through encrypting address information and the copyright information thereof that to protect multimedia file, safe and reliable.Before deciphering, need the said file of verification whether to damage; Remind the user if said file corruption then reports an error, otherwise decipher said file, obtain the information that said file comprises.
Step S103 judges whether the information that file comprises is multimedia messages.
Step S104 if the information that said file comprises is multimedia messages, then downloads multimedia file according to said multimedia messages and waits for broadcast.
Particularly, the pattern of play multimedia files comprises live, program request and intercuts.
For example, theing contents are as follows behind the said file decryption:
<?xml?version='1.0'?encoding='UTF-8'?>
<node>
<item>
<playUrl>xxxp://8.8.8.8/allVideo/ad1.avi</playUrl>
</item>
</node>
Explain that then the information that said file comprises is multimedia messages, particularly, comprised the address information of multimedia file in this file.Download multimedia file according to the multimedia file address information in the said multimedia messages; If said multimedia messages also contains play mode information and playing duration information, the pattern and the time of then playing according to the play mode information in the said multimedia messages and playing duration information Control.
S105; If the information that said file comprises is not multimedia messages; The Rule Information that then comprises according to file obtains rule file, and the information that said rule file comprises is multimedia messages or Rule Information, and execution in step S102 and step S103 also constantly circulate until obtaining multimedia messages.
For example, theing contents are as follows behind the said file decryption:
<?xml?version=’1.0’?encoding=’UTF-8’?>
<node>
<item>
<ruleUrl>xxxp://8.8.8.8/allres/rule1</ruleUrl>
</item>
</node>
Explain that then information that said file comprises is not multimedia messages but Rule Information, according to Rule Information visit < ruleUrl >, obtain after the rule file again execution in step S102 and step S103 and constantly circulation until obtaining multimedia messages.
Particularly, when the fileinfo that obtains thes contents are as follows:
<?xml?version='1.0'?encoding='UTF-8'?>
<node>
<item>
<playType>Live</playType>
<playUrl>xxxp://8.8.8.8:8080/allVideo/living?</playUrl>
<playBeginTime>19:00</playBeginTime>
<playEndTime>19:30</playEndTime>
</item>
</node>
Then explain this document requirement the address of < playUrl>is carried out live, and the live time be limited in 19:00 to 19:30 according to < playBeginTime>and < playEndTime >.
When determining documentation requirements certain address is carried out need judging also whether file has other requirement live the time, like the requirement of time, or requirement such as program level.If live is clock news, then when the equipment time reached this integral point, the switching foreground is shown as needed live multimedia messages content.
When the fileinfo that obtains thes contents are as follows:
<?xml?version='1.0'?encoding='UTF-8'?>
<node>
<item>
<playType>Intercut</playType>
<playUrl>xxxp://8.8.8.8/allVideo/ad1.avi</playUrl>
</item>
</node>
After then downloading the multimedia file and storage well of this < playUrl>address, judge the residing running status of current device.If equipment is in the network blockage state, then switch the foreground and show, play the good multimedia file of storage.
When the fileinfo that obtains thes contents are as follows:
<?xml?version='1.0'?encoding='UTF-8'?>
<node>
<playType>Program request</playType>
<item>
<playName>Video 1</playName>
<playUrl>xxxp://8.8.8.8/allVideo/ad1.avi</playUrl>
</item>
<item>
<playName>Video 2</playName>
<playUrl>xxxp://8.8.4.4/allVideo/ad2.avi</playUrl>
</item>
<item>
<playName>Video 3</playName>
<playUrl>xxxp://4.4.4.4/allVideo/ad3.avi</playUrl>
</item>
<item>
<playName>Video 4</playName>
<playUrl>xxxp://8.8.8.8/allVideo/ad4.avi</playUrl>
</item>
</node>
Then point out the user, let the user select the some multimedia files in displaying video 1, video 2, video 3, the video 4.
Please refer to Fig. 2, download multimedia file for the embodiment of the invention and wait for the flow chart of playing.
The said download multimedia file of present embodiment waits for that the flow process of playing comprises:
Step S201, multimedia file is downloaded in visit multimedia file address.
Step S202 carries out burst to said multimedia file, again the group bag.
Step S203 is mounted to the multimedia file after group is wrapped again in the broadcast formation, waits for and playing.
Please refer to Fig. 3, be the composition sketch map of embodiment of the invention STB.
The said STB of present embodiment comprises:
Processor module 100 is used to obtain the file that comprises multimedia messages or Rule Information, and obtains multimedia messages and control each module and carry out corresponding work according to the information that said file comprises.
Particularly, the process that the information that comprises according to said file is obtained multimedia messages comprises: judge whether the information that said file comprises is multimedia messages; If; Then obtain multimedia messages; Otherwise obtain Rule Information, and obtain rule file according to said Rule Information, said rule file comprises multimedia messages or Rule Information; Judge whether the information that said rule file comprises is multimedia messages, repeats this step until obtaining multimedia messages.
Network Interface Module 200 is used to connect network and downloads multimedia file wait broadcast according to said multimedia messages;
Particularly; Said STB connects the server of network terminal through said Network Interface Module 200; And under the control of said processor module 100, obtain multimedia file or rule file, and finally obtain multimedia file through said rule file and wait for broadcast from server end.
Memory module 300 is used to store the said multimedia file of download;
Playing module 400 is used to play the said multimedia file of download;
Transfer bus module 500 is used for transfer of data and communication between inner each module of said STB.
Particularly; Said multimedia messages comprises address information, play mode information and the playing duration information of multimedia file, and said processor module 100 each modules of control are carried out corresponding work and specifically comprised: said processor module 100 is downloaded multimedia file and is stored to said memory module 300 through said Network Interface Module 200 according to said multimedia address information; Said processor module 100 is play said multimedia file according to said multimedia pattern information and the said playing module 400 of playing duration information Control.
Wherein, the said file that comprises multimedia messages or Rule Information comprises the preset file of encryption and the rule file of encryption, and said processor module 100 also is used to decipher the preset file of said encryption and the rule file of encryption.
Since deciphering, the preset file of parsing and rule file, and judge whether the file that is obtained comprises multimedia messages, and circulation is all carried out until the process of obtaining multimedia file automatically in STB, therefore operate very simple.And the multimedia file of server end and rule file are stored at random on the network, need not to carry out complicated programming and database programming, and be therefore lower at the cost of server end input and maintenance.
Through the description of the foregoing description, the present invention has the following advantages:
Server end on network is stored a large amount of rule files and multimedia file at random; In fixing preset file access network server end of STB set inside, judge whether the file that is obtained comprises multimedia messages, circulation is play until obtaining multimedia file; This process operates mainly in the STB end and carries out automatically; Server end need not to carry out complicated programming and database programming, therefore drop into and the cost safeguarded lower, STB end simple to operate.And said rule file and multimedia file are encrypt file, have protected the address information and the copyright information thereof of multimedia file, and be safe and reliable.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. the method for a play multimedia files is characterized in that, comprises step:
Obtain the file that comprises multimedia messages or Rule Information;
Judge whether the information that said file comprises is multimedia messages;
If; Then obtain multimedia messages; Otherwise obtain Rule Information, and obtain rule file according to said Rule Information, said rule file comprises multimedia messages or Rule Information; Judge whether the information that said rule file comprises is multimedia messages, repeats this step until obtaining multimedia messages;
Download multimedia file according to said multimedia messages and wait for broadcast.
2. the method for claim 1 is characterized in that, said multimedia messages comprises address information, play mode information and the playing duration information of multimedia file.
3. method as claimed in claim 2 is characterized in that, that the play mode of said multimedia file comprises is live, intercut and program request.
4. the method for claim 1 is characterized in that, said Rule Information comprises the address information of rule file.
5. the method for claim 1 is characterized in that, the said file that comprises multimedia messages or Rule Information comprises the preset file of encryption and the rule file of encryption.
6. the method for claim 1 is characterized in that, the said step of obtaining the file that comprises multimedia messages or Rule Information comprises:
Read said file;
Whether the said file of verification damages;
Remind the user if said file corruption then reports an error, otherwise decipher said file, obtain the information that said file comprises.
7. the method for claim 1 is characterized in that, the said step that wait is play according to said multimedia messages download multimedia file comprises:
Multimedia file is downloaded in visit multimedia file address;
Said multimedia file is carried out burst, again the group bag;
Again the multimedia file after group is wrapped is mounted in the broadcast formation, waits for and playing.
8. a STB is characterized in that, comprising:
Processor module is used to obtain the file that comprises multimedia messages or Rule Information, and obtains multimedia messages and control each module and carry out corresponding work according to the information that said file comprises;
Network Interface Module is used to connect network and downloads multimedia file wait broadcast according to said multimedia messages;
Memory module is used to store the said multimedia file of download;
Playing module is used to play the said multimedia file of download;
The transfer bus module is used for transfer of data and communication between inner each module of said STB.
9. STB as claimed in claim 8; It is characterized in that; The said file that comprises multimedia messages or Rule Information comprises the preset file of encryption and the rule file of encryption, and said processor module also is used to decipher the preset file of said encryption and the rule file of encryption.
10. like claim 8 or 9 described STBs; It is characterized in that; Said multimedia messages comprises address information, play mode information and the playing duration information of multimedia file, and said each module of processor module control is carried out corresponding work and specifically comprised: said processor module is downloaded multimedia file and is stored to said memory module through said Network Interface Module according to said multimedia address information; Said processor module is play said multimedia file according to said multimedia pattern information and the said playing module of playing duration information Control.
CN201210079185.0A 2012-03-22 2012-03-22 A kind of method of play multimedia file and device Expired - Fee Related CN102638723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210079185.0A CN102638723B (en) 2012-03-22 2012-03-22 A kind of method of play multimedia file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210079185.0A CN102638723B (en) 2012-03-22 2012-03-22 A kind of method of play multimedia file and device

Publications (2)

Publication Number Publication Date
CN102638723A true CN102638723A (en) 2012-08-15
CN102638723B CN102638723B (en) 2015-11-18

Family

ID=46622926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210079185.0A Expired - Fee Related CN102638723B (en) 2012-03-22 2012-03-22 A kind of method of play multimedia file and device

Country Status (1)

Country Link
CN (1) CN102638723B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092960A (en) * 2017-12-08 2018-05-29 广州视源电子科技股份有限公司 Audio playing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558665A (en) * 2004-01-20 2004-12-29 大唐微电子技术有限公司 A method of quick network multimedia information playing and corresponding set-top box equipment
CN1988547A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Method, server and system for online playing medium file
CN101355574A (en) * 2008-07-30 2009-01-28 优视动景(北京)技术服务有限公司 Method for on-line playing stream media files by a mobile terminal
CN101751442A (en) * 2008-12-16 2010-06-23 康佳集团股份有限公司 Method, equipment and system for searching multimedia files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558665A (en) * 2004-01-20 2004-12-29 大唐微电子技术有限公司 A method of quick network multimedia information playing and corresponding set-top box equipment
CN1988547A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Method, server and system for online playing medium file
CN101355574A (en) * 2008-07-30 2009-01-28 优视动景(北京)技术服务有限公司 Method for on-line playing stream media files by a mobile terminal
CN101751442A (en) * 2008-12-16 2010-06-23 康佳集团股份有限公司 Method, equipment and system for searching multimedia files

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092960A (en) * 2017-12-08 2018-05-29 广州视源电子科技股份有限公司 Audio playing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102638723B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN104244079B (en) A kind of method for downloading video and device
TWI492156B (en) Method and system for efficient download of data package
CN104104971A (en) Video file processing method and system
CN103702171B (en) Method for downloading video stream and electronic equipment
CN103281591B (en) Method and device for playing flash video through browser and mobile terminal
CN103338384A (en) Video play method and video play device
CN105407130A (en) Mobile client plug-in system and mobile client plug-in processing method
CN102664967A (en) Method and system for interacting cross-platform personal information and background server
CN110909371B (en) Data encryption method, electronic device and medium
CN112165482B (en) Data processing method, data processing device, computer equipment and medium
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN102510519A (en) Streaming media data processing method, playing method and device
CN103702235A (en) Data processing method and system for content delivery network
US20140379925A1 (en) Apparatus and method for interworking between app store servers to share application information
CN105898442A (en) Advertisement pre-downloading method and system, terminal equipment and push server
CN103731692A (en) Method and system for playing SDM data
US8244663B2 (en) Method and host device for enforcing a rule associated with a media file
CN109151570B (en) Streaming media processing method and system based on HTML5 and related components
CN105323654A (en) Method and device for displaying content data from network
CN103646054A (en) Method for playing multimedia data and browser device
CN102638723A (en) Method and device for playing multimedia files
CN113704647A (en) Method and device for jumping multiple types of pages and electronic equipment
CN102904935B (en) Downloading method, downloading device and downloading system based on home gateway
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN104378393A (en) Resource sharing method and corresponding 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
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SKY-WORTH DIGITAL TECHNOLOGY CO., LTD.;SHENZHEN CITY TO: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118

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