CN105163202A - Method and device for switching files - Google Patents

Method and device for switching files Download PDF

Info

Publication number
CN105163202A
CN105163202A CN201510428216.2A CN201510428216A CN105163202A CN 105163202 A CN105163202 A CN 105163202A CN 201510428216 A CN201510428216 A CN 201510428216A CN 105163202 A CN105163202 A CN 105163202A
Authority
CN
China
Prior art keywords
file
current file
described current
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
CN201510428216.2A
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.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing 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 TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201510428216.2A priority Critical patent/CN105163202A/en
Publication of CN105163202A publication Critical patent/CN105163202A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched

Abstract

The invention discloses a method and device for switching files and belongs to the communication field. The method comprises steps of: receiving a command for switching from a current file to a next file to be played; determining whether the current file has been played completely; if yes, playing the next file; and if not, playing the next file after the current file is played completely. The device comprises a receiving module, a determining module, and a switching module. The method and the device smoothly switch files and improve file switching security.

Description

A kind of method and apparatus switching file
Technical field
The present invention relates to the communications field, particularly a kind of method and apparatus switching file.
Background technology
Ventuz (Wei Tusi) is real-time picture material creation, an editor and broadcasts control software design.It is absorbed in the making of high-end audio-visual content, comprises professional displaying, video wall is installed, live scene shows and interaction, multiple point touching application and the field such as studio and broadcast.Ventuz design is strong, easy to use, can be applicable to video wall, projection mapping, radio and television at wire wrapping, and can realize interactivity with nearly all interactive device and use.
In Ventuz system, when the multiple file of Continuous Play, how making file switch more smooth is a problem demanding prompt solution.
Summary of the invention
In view of this, the invention provides a kind of method and apparatus switching file, more smooth to make file switch.Described technical scheme is as follows:
First aspect, the invention provides a kind of method switching file, comprising:
Receive and switch to from current file the order that next file carries out playing;
Judge whether described current file finishes playing;
If described current file finishes playing, then start to play described next file;
If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing.
Wherein, judge whether described current file finishes playing, and comprising:
If the non-video file of described current file, then judge whether described current file plays to last frame, if so, then determine that described current file finishes playing, otherwise, determine that described current file does not finish playing.
Wherein, receive and switch to from current file the order that next file carries out playing, comprising:
Detect that the button of the next file of broadcasting on screen is clicked.
Wherein, described method also comprises:
Before starting to play described next file, according to the mode preset, last picture of described current file is disappeared.
Wherein, any one in described current file and described next file is picture or video file.
Second aspect, the invention provides a kind of device switching file, comprising:
Receiver module, switches to from current file the order that next file carries out playing for receiving;
Judge module, for judging whether described current file finishes playing;
Handover module, if finished playing for described current file, then starts to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing.
Wherein, described judge module comprises:
Judging unit, if be video file for described current file, then judges whether described current file plays to last frame, if so, then determines that described current file finishes playing, otherwise, determine that described current file does not finish playing.
Wherein, described receiver module comprises:
First detecting unit, clicked for the button of the next file of broadcasting on screen being detected.
Wherein, described device also comprises:
Disappearance module, for before starting to play described next file, makes last picture of described current file disappear according to the mode preset.
Wherein, any one in described current file and described next file is picture or video file.
The beneficial effect that technical scheme provided by the invention is brought is: switch to from current file the order that next file carries out playing by receiving; Judge whether described current file finishes playing; If described current file finishes playing, then start to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing, file is switched more smooth, improve the fail safe that file switches.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the switching file that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the switching file that another embodiment of the present invention provides;
Fig. 3 is the schematic diagram that last picture of the current file that another embodiment of the present invention provides disappears;
Fig. 4 is the structure drawing of device of the switching file that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The present invention relates to a kind of method and apparatus switching file, in Ventuz system, to improve the fail safe that Ventuz system file switches, file is switched more smooth.
See Fig. 1, one embodiment of the invention provides a kind of method switching file, comprising:
101: receive and switch to from current file the order that next file carries out playing;
Wherein, the type of described current file can be identical with the type of described next file, also can be different, and the present embodiment is not specifically limited this.
102: judge whether this current file finishes playing, if this current file finishes playing, then perform 103; If this current file does not finish playing, then perform 104;
In the present embodiment, current file and next file are all the files that can carry out playing, and have set the order of broadcasting in advance, do not do too much explanation herein.
103: start to play this next file, flow process terminates;
104: wait for and start to play this next file after this current file finishes playing again, flow process terminates.
In the present embodiment, optionally, judge whether this current file finishes playing, and comprising:
If this current file is video file, then judge whether this current file plays to last frame, if so, then determine that this current file finishes playing, otherwise, determine that this current file does not finish playing.
In the present embodiment, optionally, receive and switch to from current file the order that next file carries out playing, comprising:
Detect that the button of the next file of broadcasting on screen is clicked.
In the present embodiment, optionally, said method also comprises:
Before starting to play described next file, according to the mode preset, last picture of described current file is disappeared.
In the present embodiment, optionally, this current file is picture or video file with any one in this next file.
The said method that the present embodiment provides, switches to from current file the order that next file carries out playing by receiving; Judge whether described current file finishes playing; If described current file finishes playing, then start to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing, file is switched more smooth, improve the fail safe that file switches.
See Fig. 2, another embodiment of the present invention provides a kind of method switching file, comprising:
201: receive and switch to from current file the order that next file carries out playing;
In the present embodiment, this step can comprise:
Detect that the button of the next file of broadcasting on screen is clicked.
Wherein, Ventuz system can use play control to carry out played file, screen can be arranged usually for controlling the button play, as broadcast button, pause button etc.Whether this play control, in the process of played file, can be monitored and have button clicked, if the button playing next file is clicked, then acknowledges receipt of and switches to from current file the order that next file carries out playing.
Usually, all can comprise multiple frame during playing video file, in the process play, current file can be monitored and whether play to last frame, if so, then can determine to receive and switch to from current file the order that next file carries out playing.
202: if current file is video file, then judges whether this current file plays to last frame, if so, then perform 203; Otherwise, perform 204;
203: determine that this current file finishes playing, according to the mode preset, last picture of described current file is disappeared, then start to play this next file, flow process terminates;
204: determine that this current file does not finish playing, wait for that this current file finishes playing, according to the mode preset, last picture of described current file is disappeared, and then start to play this next file, flow process terminates.
Wherein, last picture of described current file, just refers to picture itself, for video file, just refers to last frame for picture.Described default mode can be arranged as required, include but not limited to: move to gradually to certain direction and frame out completely, fuzzy display be cannot see to disappearing completely gradually, whole picture is divided into several solid shapes and progressively diminishes and disappears etc., and the present embodiment is not specifically limited this.
Such as, see Fig. 3, the schematic diagram that last picture of the current file provided for another embodiment of the present invention disappears.Wherein, the figure of top is that last picture of current file starts dimmed gradually, and the figure of below is that this current file becomes darker, finally disappears completely when screen just represents this picture during complete blackening.
In the present embodiment, optionally, any one in described current file and described next file is picture or video file.Such as, ffmpeg form, this form includes but not limited to: MP4, mpg, wmv, mov, flv, ogg, mxf etc.
The said method that the present embodiment provides, switches to from current file the order that next file carries out playing by receiving; Judge whether described current file finishes playing; If described current file finishes playing, then start to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing, file is switched more smooth, improve the fail safe that file switches.
See Fig. 4, another embodiment of the present invention provides a kind of device switching file, comprising:
Receiver module 301, switches to from current file the order that next file carries out playing for receiving;
Judge module 302, for judging whether this current file finishes playing;
Handover module 303, if finished playing for this current file, then starts to play this next file; If this current file does not finish playing, then wait for and start again to play this next file after this current file finishes playing.
In the present embodiment, optionally, judge module comprises:
Judging unit, if be video file for this current file, then judges whether this current file plays to last frame, if so, then determines that this current file finishes playing, otherwise, determine that this current file does not finish playing.
In the present embodiment, optionally, receiver module comprises:
First detecting unit, clicked for the button of the next file of broadcasting on screen being detected.
In the present embodiment, optionally, said apparatus also comprises:
Disappearance module, for before starting to play described next file, makes last picture of described current file disappear according to the mode preset.
In the present embodiment, optionally, any one in described current file and described next file is picture or video file.
The said apparatus that the present embodiment provides can perform the method provided in above-mentioned either method embodiment, and detailed process is shown in the description in embodiment of the method, does not repeat herein.
The said apparatus that the present embodiment provides, switches to from current file the order that next file carries out playing by receiving; Judge whether described current file finishes playing; If described current file finishes playing, then start to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing, file is switched more smooth, improve the fail safe that file switches.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. switch a method for file, it is characterized in that, described method comprises:
Receive and switch to from current file the order that next file carries out playing;
Judge whether described current file finishes playing;
If described current file finishes playing, then start to play described next file;
If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing.
2. method according to claim 1, is characterized in that, judges whether described current file finishes playing, and comprising:
If described current file is video file, then judge whether described current file plays to last frame, if so, then determine that described current file finishes playing, otherwise, determine that described current file does not finish playing.
3. method according to claim 1, is characterized in that, receives and switches to from current file the order that next file carries out playing, comprising:
Detect that the button of the next file of broadcasting on screen is clicked.
4. method according to claim 1, is characterized in that, described method also comprises:
Before starting to play described next file, according to the mode preset, last picture of described current file is disappeared.
5. method according to claim 1, is characterized in that, any one in described current file and described next file is picture or video file.
6. switch a device for file, it is characterized in that, described device comprises:
Receiver module, switches to from current file the order that next file carries out playing for receiving;
Judge module, for judging whether described current file finishes playing;
Handover module, if finished playing for described current file, then starts to play described next file; If described current file does not finish playing, then wait for and start again to play described next file after described current file finishes playing.
7. device according to claim 6, is characterized in that, described judge module comprises:
Judging unit, if be video file for described current file, then judges whether described current file plays to last frame, if so, then determines that described current file finishes playing, otherwise, determine that described current file does not finish playing.
8. device according to claim 6, is characterized in that, described receiver module comprises:
First detecting unit, clicked for the button of the next file of broadcasting on screen being detected.
9. device according to claim 6, is characterized in that, described device also comprises:
Disappearance module, for before starting to play described next file, makes last picture of described current file disappear according to the mode preset.
10. device according to claim 6, is characterized in that, any one in described current file and described next file is picture or video file.
CN201510428216.2A 2015-07-20 2015-07-20 Method and device for switching files Pending CN105163202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510428216.2A CN105163202A (en) 2015-07-20 2015-07-20 Method and device for switching files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510428216.2A CN105163202A (en) 2015-07-20 2015-07-20 Method and device for switching files

Publications (1)

Publication Number Publication Date
CN105163202A true CN105163202A (en) 2015-12-16

Family

ID=54803941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510428216.2A Pending CN105163202A (en) 2015-07-20 2015-07-20 Method and device for switching files

Country Status (1)

Country Link
CN (1) CN105163202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106943754A (en) * 2017-04-28 2017-07-14 董宇 Intelligent terminal information exchange mobile device and control method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004098183A1 (en) * 2003-04-25 2004-11-11 Sony Corporation Reproduction device, reproduction method, reproduction program, and recording medium
CN1878249A (en) * 2005-07-25 2006-12-13 白峰 Fade-in fade-out type TV frequency channel switching method
CN101483054A (en) * 2008-12-25 2009-07-15 深圳市迅雷网络技术有限公司 Method and apparatus for playing multimedia file
CN102316370A (en) * 2010-06-29 2012-01-11 腾讯科技(深圳)有限公司 Method and device for displaying playback information
CN102685417A (en) * 2011-03-17 2012-09-19 青岛海信电器股份有限公司 Method for switching channels of television, device and television
CN102819396A (en) * 2012-07-31 2012-12-12 北京奇虎科技有限公司 Method and system for playing multimedia file
CN103024559A (en) * 2012-11-09 2013-04-03 北京小米科技有限责任公司 Method and device for video switchover and equipment
CN103197886A (en) * 2013-03-13 2013-07-10 北京小米科技有限责任公司 Video switch method and terminal
CN103517135A (en) * 2012-06-28 2014-01-15 Tcl集团股份有限公司 Method, system and television capable of playing MP4-format video files continuously

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004098183A1 (en) * 2003-04-25 2004-11-11 Sony Corporation Reproduction device, reproduction method, reproduction program, and recording medium
CN1878249A (en) * 2005-07-25 2006-12-13 白峰 Fade-in fade-out type TV frequency channel switching method
CN101483054A (en) * 2008-12-25 2009-07-15 深圳市迅雷网络技术有限公司 Method and apparatus for playing multimedia file
CN102316370A (en) * 2010-06-29 2012-01-11 腾讯科技(深圳)有限公司 Method and device for displaying playback information
CN102685417A (en) * 2011-03-17 2012-09-19 青岛海信电器股份有限公司 Method for switching channels of television, device and television
CN103517135A (en) * 2012-06-28 2014-01-15 Tcl集团股份有限公司 Method, system and television capable of playing MP4-format video files continuously
CN102819396A (en) * 2012-07-31 2012-12-12 北京奇虎科技有限公司 Method and system for playing multimedia file
CN103024559A (en) * 2012-11-09 2013-04-03 北京小米科技有限责任公司 Method and device for video switchover and equipment
CN103197886A (en) * 2013-03-13 2013-07-10 北京小米科技有限责任公司 Video switch method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106943754A (en) * 2017-04-28 2017-07-14 董宇 Intelligent terminal information exchange mobile device and control method

Similar Documents

Publication Publication Date Title
US10225613B2 (en) Method and apparatus for video playing processing and television
CN105872768A (en) Display terminal information source switching method and device
CN106534879B (en) Live broadcast switching method and system based on attention
JP2011509554A (en) Program segment display bar
WO2008038881A1 (en) Broadcast receiver and method of providing preferred channel thereof
CN105530547A (en) Bookmark display method and device for internet television on-demand content, and set top box
CN106162332A (en) One is televised control method and device
CN105791942A (en) Channel information display method and device of smart TV
US20190208233A1 (en) Methods and apparatus for responding to inoperative commands
CN108965643A (en) A method of it is shown using multiple 4K realizing televisions not less than 12K ultra high-definition
WO2007133268A3 (en) Method and apparatus for controlled viewing of recorded television programs
JP2011211338A (en) Playback apparatus and playback method
CN105163202A (en) Method and device for switching files
CN105138214A (en) Method and device for dynamically switching images
CN105072509B (en) Switch the method and apparatus of file
CN104244065A (en) Method and device for processing subtitles
JP4968797B2 (en) System and method for changing television channels in a video signal processor
CN105187953A (en) Method and device for playing files
JP5035174B2 (en) Video playback device
TW201338528A (en) Digital TV data processing method and digital TV system utilizing the digital TV data processing method
JP4987631B2 (en) Broadcast receiving apparatus and power-off method in broadcast receiving apparatus
CN105163203B (en) The method and apparatus of playing video file
JP3773799B2 (en) Recording / playback device
CN104837074A (en) Method and device for setting display time
JP2008503181A6 (en) System and method for changing television channels in a video signal processor

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

Application publication date: 20151216

RJ01 Rejection of invention patent application after publication