CN103354551A - Media file playing method and system - Google Patents

Media file playing method and system Download PDF

Info

Publication number
CN103354551A
CN103354551A CN 201310310050 CN201310310050A CN103354551A CN 103354551 A CN103354551 A CN 103354551A CN 201310310050 CN201310310050 CN 201310310050 CN 201310310050 A CN201310310050 A CN 201310310050A CN 103354551 A CN103354551 A CN 103354551A
Authority
CN
China
Prior art keywords
media file
display unit
display
playing
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201310310050
Other languages
Chinese (zh)
Inventor
戴颖华
潘春峰
陈浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI BESTWIN ELECTRONICS TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI BESTWIN ELECTRONICS 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 SHANGHAI BESTWIN ELECTRONICS TECHNOLOGY Co Ltd filed Critical SHANGHAI BESTWIN ELECTRONICS TECHNOLOGY Co Ltd
Priority to CN 201310310050 priority Critical patent/CN103354551A/en
Publication of CN103354551A publication Critical patent/CN103354551A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a media file playing method and system. The method is applied to a control device having a plurality of display units. The method comprises: obtaining the display unit identification of a media file; determining, according to the display unit identification, a first display unit for displaying the media file; and adopting the first display unit to display the media file. By using the method and system provided by the invention, the plurality of display units can be controlled, and a plurality of displays can be simultaneously controlled for playing media files with different contents.

Description

A kind of media file playing method and system
Technical field
The present invention relates to data processing field, particularly relate to a kind of media file playing method and system.
Background technology
At present, increasing occasion uses a plurality of displays to carry out the broadcast of the media files such as video.For example, around the building, play the advertisement of different content by a plurality of large-screens.
But when playing the media file of different content by a plurality of displays, each display need to be controlled by the Play Control software of a correspondence.The display number of playing media file is more, and the Play Control software of employing is also more, and is corresponding, and it is also more to move the hardware resource that these softwares take.
Summary of the invention
The purpose of this invention is to provide a kind of media file playing method and system, can control simultaneously the media file that a plurality of displays are play different content.
For achieving the above object, the invention provides following scheme:
A kind of media file playing method, described method is applied to have the control device of a plurality of display units, and described method comprises:
Obtain the display unit sign of media file;
Be identified for playing the first display unit of described media file according to described display unit sign;
Adopt described the first display unit to play described media file.
Optionally, described the first display unit of described employing is play described media file, comprising:
Obtain the resolution of described the first display unit;
Obtain the display size of described media file;
Judge that described resolution whether more than or equal to described display size, obtains the first judged result;
When described the first judged result when being, play according to the display size of described media file;
When described first when the determination result is NO, carry out played in full screen according to the maximum display size of described the first display unit.
Optionally, described display size according to described media file is play, and comprising:
Obtain demonstration height and the display width of described media file;
Obtain the demonstration origin coordinates of described media file, described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
According to described demonstration height, display width and demonstration origin coordinates, determine on described the first display unit for the viewing area of playing described media file;
Play described media file in described viewing area.
Optionally, also comprise:
When described media file is video file, obtain the default information volume of described video file;
According to described default information volume, regulate the broadcast sound volume of described video file.
Optionally, also comprise:
When described media file is several pictures, obtain the reproduction time interval that sets in advance;
According to described reproduction time interval, play in turn each width of cloth picture.
A kind of media file-playing system, described system applies are in the control device with a plurality of display units, and described system comprises:
The display unit identifier acquisition module is for the display unit sign of obtaining media file;
The first display unit determination module is used for identifying the first display unit that is identified for playing described media file according to described display unit;
Playing module is used for adopting described the first display unit to play described media file.
Optionally, described playing module comprises:
The resolution acquiring unit is for the resolution of obtaining described the first display unit;
The display size acquiring unit is for the display size that obtains described media file;
The first judging unit is used for judging that described resolution whether more than or equal to described display size, obtains the first judged result;
The first broadcast unit, be used for when described the first judged result when being, play according to the display size of described media file;
The second broadcast unit is used for when described first when the determination result is NO, carries out played in full screen according to the maximum display size of described the first display unit.
Optionally, described the first broadcast unit comprises:
Height-width is obtained subelement, is used for obtaining demonstration height and the display width of described media file;
Origin coordinates obtains subelement, is used for obtaining the demonstration origin coordinates of described media file, and described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
Subelement is determined in the viewing area, is used for determining on described the first display unit for the viewing area of playing described media file according to described demonstration height, display width and demonstration origin coordinates;
Play subelement, be used for playing described media file in described viewing area.
Optionally, also comprise:
Default information volume acquisition module is used for obtaining the default information volume of described video file when described media file is video file;
Volume adjusting module is used for according to described default information volume, regulates the broadcast sound volume of described video file.
Optionally, also comprise:
Reproduction time interval acquiring module is used for obtaining the reproduction time interval that sets in advance when described media file is several pictures;
The wheel broadcasting module is used for according to described reproduction time interval, plays in turn each width of cloth picture.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Media file playing method of the present invention and system, by add the display unit sign for media file, described display unit sign has the corresponding relation that sets in advance with the entity display unit, be identified for playing the first display unit of described media file according to described display unit sign, adopt described the first display unit to play described media file, the control for a plurality of display units can be realized, the media file that a plurality of displays are play different content can be controlled simultaneously.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of media file playing method embodiment of the present invention;
Fig. 2 is the structure chart of media file-playing system embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Player method of the present invention is applied to have the control device of a plurality of display units.Described display unit can be various types of displays, liquid crystal display for example, CRT monitor or light-emitting diode display etc.The video data line of described a plurality of display units can be integrated on the same control device.Described control device can be circuit board or computer server.
Fig. 1 is the flow chart of media file playing method embodiment of the present invention.As shown in Figure 1, the method can comprise:
Step 101: the display unit sign of obtaining media file; Described display unit sign is used for representing which display unit described media file is arranged on and plays.
Suppose that one has two display units.Then a display unit can be identified with " 1 ", another display unit identifies with " 2 ".Described media file can comprise Flash, PPT(Powerpoint), the picture of various forms or video, and the executable file of suffix exe by name.
Step 102: the first display unit that is identified for playing described media file according to described display unit sign;
According to the example in the step 101, definite mode for the first display unit can be: the corresponding relation of searching the display unit sign that sets in advance and entity display unit, determine entity display unit corresponding to described display unit sign, described entity display unit is defined as described the first display unit.
Step 103: adopt described the first display unit to play described media file.
In sum, the media file playing method of present embodiment, by add the display unit sign for media file, described display unit sign has the corresponding relation that sets in advance with the entity display unit, be identified for playing the first display unit of described media file according to described display unit sign, adopt described the first display unit to play described media file, can realize the control for a plurality of display units, can control simultaneously the media file that a plurality of displays are play different content.
In the practical application, step 103 can comprise the step of the display size of following adaptation display unit:
Steps A: the resolution of obtaining described the first display unit;
Step B: the display size that obtains described media file;
Step C: judge that described resolution whether more than or equal to described display size, obtains the first judged result;
Step D: when described the first judged result when being, play according to the display size of described media file;
Step e: when described first when the determination result is NO, carry out played in full screen according to the maximum display size of described the first display unit.
The step that more than adapts to the display size of display unit can according to the magnitude relationship between the display size of the resolution of described the first display unit and described media file, select suitable mode to play described media file.
Concrete, step D can may further comprise the steps again:
Step D1: the demonstration height and the display width that obtain described media file;
Step D2: obtain the demonstration origin coordinates of described media file, described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
Usually the display shape of media file all is rectangle, video for example, picture.The right angle flex point of described media file just can be the point in the upper left corner of the video of rectangle or picture.Certainly, also can be the point in the lower left corner, the upper right corner or the lower right corner.
Step D3: according to described demonstration height, display width and demonstration origin coordinates, determine on described the first display unit for the viewing area of playing described media file;
The demonstration of described media file highly is equivalent to the width of above-mentioned rectangle, and display width is equivalent to the length of above-mentioned rectangle.Can determine shape and the area of above-mentioned rectangle according to described height and the display width of showing.Then according to described demonstration origin coordinates, can know the particular location of above-mentioned rectangle, and then can determine described viewing area.
Step D4: play described media file in described viewing area.
In the practical application, for when described media file has acoustic information, can control broadcast sound volume, media file playing method of the present invention can also may further comprise the steps:
When described media file is video file, obtain the default information volume of described video file;
According to described default information volume, regulate the broadcast sound volume of described video file.
For when described media file is several pictures, can control the reproduction time interval between each picture, media file playing method of the present invention can also may further comprise the steps:
When described media file is several pictures, obtain the reproduction time interval that sets in advance;
According to described reproduction time interval, play in turn each width of cloth picture.
The invention also discloses a kind of media file-playing system.Described system applies is in the control device with a plurality of display units.Fig. 2 is the structure chart of media file-playing system embodiment of the present invention.As shown in Figure 2, this system can comprise:
Display unit identifier acquisition module 201 is for the display unit sign of obtaining media file;
The first display unit determination module 202 is used for identifying the first display unit that is identified for playing described media file according to described display unit;
Playing module 203 is used for adopting described the first display unit to play described media file.
The media file-playing system of present embodiment, by add the display unit sign for media file, described display unit sign has the corresponding relation that sets in advance with the entity display unit, be identified for playing the first display unit of described media file according to described display unit sign, adopt described the first display unit to play described media file, the control for a plurality of display units can be realized, the media file that a plurality of displays are play different content can be controlled simultaneously.
In the practical application, for the display size that makes described media file and the screen size of display are complementary, described playing module 203 can comprise:
The resolution acquiring unit is for the resolution of obtaining described the first display unit;
The display size acquiring unit is for the display size that obtains described media file;
The first judging unit is used for judging that described resolution whether more than or equal to described display size, obtains the first judged result;
The first broadcast unit, be used for when described the first judged result when being, play according to the display size of described media file;
The second broadcast unit is used for when described first when the determination result is NO, carries out played in full screen according to the maximum display size of described the first display unit.
Concrete, described the first broadcast unit can comprise:
Height-width is obtained subelement, is used for obtaining demonstration height and the display width of described media file;
Origin coordinates obtains subelement, is used for obtaining the demonstration origin coordinates of described media file, and described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
Subelement is determined in the viewing area, is used for determining on described the first display unit for the viewing area of playing described media file according to described demonstration height, display width and demonstration origin coordinates;
Play subelement, be used for playing described media file in described viewing area.
In order to regulate the volume of video file, this system can also comprise:
Default information volume acquisition module is used for obtaining the default information volume of described video file when described media file is video file;
Volume adjusting module is used for according to described default information volume, regulates the broadcast sound volume of described video file.
In order to regulate the reproduction time interval of several pictures, this system can also comprise:
Reproduction time interval acquiring module is used for obtaining the reproduction time interval that sets in advance when described media file is several pictures;
The wheel broadcasting module is used for according to described reproduction time interval, plays in turn each width of cloth picture.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed system of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
Used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a media file playing method is characterized in that, described method is applied to have the control device of a plurality of display units, and described method comprises:
Obtain the display unit sign of media file;
Be identified for playing the first display unit of described media file according to described display unit sign;
Adopt described the first display unit to play described media file.
2. method according to claim 1 is characterized in that, described the first display unit of described employing is play described media file, comprising:
Obtain the resolution of described the first display unit;
Obtain the display size of described media file;
Judge that described resolution whether more than or equal to described display size, obtains the first judged result;
When described the first judged result when being, play according to the display size of described media file;
When described first when the determination result is NO, carry out played in full screen according to the maximum display size of described the first display unit.
3. method according to claim 2 is characterized in that, described display size according to described media file is play, and comprising:
Obtain demonstration height and the display width of described media file;
Obtain the demonstration origin coordinates of described media file, described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
According to described demonstration height, display width and demonstration origin coordinates, determine on described the first display unit for the viewing area of playing described media file;
Play described media file in described viewing area.
4. each described method is characterized in that according to claim 1-3, also comprises:
When described media file is video file, obtain the default information volume of described video file;
According to described default information volume, regulate the broadcast sound volume of described video file.
5. each described method is characterized in that according to claim 1-3, also comprises:
When described media file is several pictures, obtain the reproduction time interval that sets in advance;
According to described reproduction time interval, play in turn each width of cloth picture.
6. a media file-playing system is characterized in that, described system applies is in the control device with a plurality of display units, and described system comprises:
The display unit identifier acquisition module is for the display unit sign of obtaining media file;
The first display unit determination module is used for identifying the first display unit that is identified for playing described media file according to described display unit;
Playing module is used for adopting described the first display unit to play described media file.
7. system according to claim 6 is characterized in that, described playing module comprises:
The resolution acquiring unit is for the resolution of obtaining described the first display unit;
The display size acquiring unit is for the display size that obtains described media file;
The first judging unit is used for judging that described resolution whether more than or equal to described display size, obtains the first judged result;
The first broadcast unit, be used for when described the first judged result when being, play according to the display size of described media file;
The second broadcast unit is used for when described first when the determination result is NO, carries out played in full screen according to the maximum display size of described the first display unit.
8. system according to claim 7 is characterized in that, described the first broadcast unit comprises:
Height-width is obtained subelement, is used for obtaining demonstration height and the display width of described media file;
Origin coordinates obtains subelement, is used for obtaining the demonstration origin coordinates of described media file, and described demonstration origin coordinates is corresponding to the right angle flex point of described media file;
Subelement is determined in the viewing area, is used for determining on described the first display unit for the viewing area of playing described media file according to described demonstration height, display width and demonstration origin coordinates;
Play subelement, be used for playing described media file in described viewing area.
9. each described system is characterized in that according to claim 6-8, also comprises:
Default information volume acquisition module is used for obtaining the default information volume of described video file when described media file is video file;
Volume adjusting module is used for according to described default information volume, regulates the broadcast sound volume of described video file.
10. each described system is characterized in that according to claim 6-8, also comprises:
Reproduction time interval acquiring module is used for obtaining the reproduction time interval that sets in advance when described media file is several pictures;
The wheel broadcasting module is used for according to described reproduction time interval, plays in turn each width of cloth picture.
CN 201310310050 2013-07-22 2013-07-22 Media file playing method and system Pending CN103354551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310310050 CN103354551A (en) 2013-07-22 2013-07-22 Media file playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310310050 CN103354551A (en) 2013-07-22 2013-07-22 Media file playing method and system

Publications (1)

Publication Number Publication Date
CN103354551A true CN103354551A (en) 2013-10-16

Family

ID=49310858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310310050 Pending CN103354551A (en) 2013-07-22 2013-07-22 Media file playing method and system

Country Status (1)

Country Link
CN (1) CN103354551A (en)

Similar Documents

Publication Publication Date Title
US20180192044A1 (en) Method and System for Providing A Viewport Division Scheme for Virtual Reality (VR) Video Streaming
CN108984137B (en) Double-screen display method and system and computer readable storage medium
KR102463304B1 (en) Video processing method and device, electronic device, computer-readable storage medium and computer program
CN109600656B (en) Video list display method and device, terminal equipment and storage medium
US20210076103A1 (en) Wager information based prioritized live event display system
CN102208171A (en) Local detail playing method on portable high-definition video player
WO2019222811A1 (en) Method of processing push information, method of pushing advertisement information, device and platform
US20160275810A1 (en) Integrated interactively teaching platform system
US9794635B2 (en) Distribution device, distribution method, and non-transitory computer readable storage medium
US10425769B2 (en) Media navigation recommendations
CN105872854A (en) Watermark showing method and device
CN108566553A (en) Video wall media play system, method and control server
CN111464858A (en) Video playing method and device
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN104731855A (en) Method and device for displaying image resources of WeChat friend circle
CN104469178A (en) Image display method and electronic device
CN109117053B (en) Dynamic display method, device and equipment for interface content
CN104135686A (en) Sharing method of signals of spliced wall and user terminal
CN114007098A (en) Method and device for generating 3D holographic video in intelligent classroom
CN104766256A (en) Method and device for determining activeness
US20160366361A1 (en) Acquiring and displaying information to improve selection and switching to an input interface of an electronic device
CN103354551A (en) Media file playing method and system
CN103810966A (en) Backdrop cinema system
US20190066166A1 (en) Method for generating virtual reality image including advertisement
CN111240618B (en) Multi-user multi-screen display method and device based on android

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131016