CN105282628A - Video playing method and device - Google Patents

Video playing method and device Download PDF

Info

Publication number
CN105282628A
CN105282628A CN201410307008.2A CN201410307008A CN105282628A CN 105282628 A CN105282628 A CN 105282628A CN 201410307008 A CN201410307008 A CN 201410307008A CN 105282628 A CN105282628 A CN 105282628A
Authority
CN
China
Prior art keywords
video
playing program
play
program
described playing
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
CN201410307008.2A
Other languages
Chinese (zh)
Other versions
CN105282628B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410307008.2A priority Critical patent/CN105282628B/en
Publication of CN105282628A publication Critical patent/CN105282628A/en
Application granted granted Critical
Publication of CN105282628B publication Critical patent/CN105282628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a video playing method and a video playing device, which belong to the technical field of computers. The video playing method comprises the steps of receiving a video playing request corresponding to first video in a target application program, detecting whether a preset playing program operates in a process occupied by the playing program alone, if so, playing the first video through the playing program, otherwise, establishing a new progress, starting the playing program in the newly established progress, and playing the first video through the playing program. By adopting the video playing method and the video playing device, the occupation of system resources can be reduced.

Description

A kind of method and apparatus of video playback
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus of video playback.
Background technology
Along with the develop rapidly of computer technology and network technology, video technique also obtains the development of advancing by leaps and bounds thereupon, and Internet video obtains to be promoted widely.The function of playing network video is both provided, as browser, instant messaging application etc. in increasing application program.
In the related, when user operation application program playing network video, this application program can be current in-process at it, call the player module that operational system player or application program carry and carry out video playback, such as, user browses certain webpage in a browser, clicks certain Internet video in webpage, browser then calls operational system player the in-process of its operation, plays this Internet video.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
User is when terminals such as routine use mobile phone, panel computers; frequent meeting plays certain video playback one half in certain application program of use; open other application program again and play other video; when user uses multiple application program to open different Internet videos respectively; based on above-mentioned method of calling; corresponding player can have been run in the process of the application program of video playback each carrying out, thus, cause system resource occupancy excessive.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and apparatus of video playback, described method is as follows:
On the one hand, provide a kind of method of video playback, described method comprises:
The video playback request of corresponding first video in receiving target application program;
Detect the playing program preset whether to run in its process taken alone;
If so, then described first video is play by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
On the other hand, provide a kind of device of video playback, described device comprises:
Receiver module, for the video playback request of the first video corresponding in receiving target application program;
Whether detection module, run for detecting default playing program in its process taken alone;
Processing module, for if then play described first video by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, the video playback request of corresponding first video in receiving target application program, detect the playing program preset whether to run in its process taken alone, if, then play the first video by this playing program, otherwise, newly set up process, this playing program is started in newly-established process, the first video is play by this playing program, like this, playing program is independently operated in a process, for different application calls, can prevent from running playing program respectively in multiple process, thus, taking system resource can be reduced.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the present invention.
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 flow chart of the method for a kind of video playback that the embodiment of the present invention provides.
Fig. 2 A is the schematic diagram of the inter-process calling that the embodiment of the present invention provides.
Fig. 2 B is the schematic diagram of the inter-process calling that the embodiment of the present invention provides.
Fig. 3 is the structural representation of the device of a kind of video playback that the embodiment of the present invention provides.
Fig. 4 is the block diagram of a kind of terminal that the 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.
Embodiment one
Embodiments provide a kind of method of video playback, as shown in Figure 1, the handling process of the method can comprise the steps:
Step 101, the video playback request of corresponding first video in receiving target application program.
Whether step 102, detect the playing program preset and run in its process taken alone.
Step 103, if so, then plays the first video by this playing program, otherwise, newly set up process, in newly-established process, start this playing program, play the first video by this playing program.
In the embodiment of the present invention, the video playback request of corresponding first video in receiving target application program, detect the playing program preset whether to run in its process taken alone, if, then play the first video by this playing program, otherwise, newly set up process, this playing program is started in newly-established process, the first video is play by this playing program, like this, playing program is independently operated in a process, for different application calls, can prevent from running playing program respectively in multiple process, thus, taking system resource can be reduced.
Embodiment two
Embodiments provide a kind of method of video playback, the executive agent of the method can be terminal, as the mobile terminal such as mobile phone, panel computer, be executive agent with mobile phone in the present embodiment, browser for destination application be example, carry out the detailed description of scheme, the situation of other executive agents is similar, and the present embodiment repeats no more.
Following in conjunction with concrete execution mode, be described in detail the handling process shown in Fig. 1, content can be as follows:
Step 101, the video playback request of corresponding first video in receiving target application program.
Wherein, destination application be in mobile terminal current operation can the application program of triggering video playing function, as certain browser or instant messaging application etc.Video playback request is the message of request broadcasting first video, wherein can carry the video labeling of the first video.
In force, playing program can be included in destination application, can be an assembly in destination application, also can comprise this playing program as assembly in other application program.Browser for destination application, when user operates in a browser, the video link shown in click browser, browser will receive video playback request, can carry the video labeling of this video (i.e. the first video) in this video playback request.
Whether step 102, detect the playing program preset and run in its process taken alone.
Wherein, the playing program preset can be the playing program comprised in destination application, and other provides in the application program of video playback capability also can comprise this playing program.
In force, playing program runs in the process taken alone, refer in the current process set up, there is a process, only run in this process and have this playing program, other application program of off-duty, is also, this playing program is in running status, and is not run in the process of other application program.
The processing mode of the testing process of step 102 can be varied, following present wherein a kind of feasible processing mode:
Step one, in the process title of current built vertical process, the process title that inquiry playing program is corresponding.
Wherein, process title can be the title that process is arranged when setting up process in system, and as explorer.exe, svhost.exe etc., each process can arrange unique process title, for application program, corresponding process title can be the title of the execute file of application program.
In force, can prestoring the process title that this playing program is corresponding in destination application, when inquiring about, can travel through the process title of the current all processes set up, whether inquiry comprises the process title prestored.
Step 2, if inquire process title corresponding to playing program, then judges that playing program runs in its process taken alone; If do not inquire the process title that playing program is corresponding, then judge that playing program does not run in its process taken alone.
Such as, the current process set up comprises explorer.exe, svhost.exe, taskhost.exe tri-processes, the process name that playing program is corresponding is called miniplayer.exe, in the process title of current three processes set up, query procedure title miniplayer.exe, do not inquire this process title, then can judge that this playing program does not run in the process taken alone.
Step 103, if the playing program preset runs in its process taken alone, then plays the first video by this playing program, otherwise, newly set up process, in newly-established process, start this playing program, play the first video by this playing program.
Optionally, by the mode of inter-process calling, above-mentioned playing program can be called and plays the first video.
In force, if this playing program runs in the process taken alone, then this playing program can monitor the request of the inter-process calling that other application program sends.When broadcasting the first video, destination application can play the first video by this playing program of mode request call of inter-process calling.Process schematic diagram in this situation can be as shown in Figure 2 A, in fig. 2, run respectively in process 1,2,3 and have different application programs, the process that process 4 takies alone for playing program, the destination application run in process 2 sends the request of inter-process calling to playing program, like this, destination application can play the first video by this playing program.
If this playing program does not run in the process taken alone, then newly can set up a process, and start this playing program in newly-established process, then according to the processing mode of above-mentioned inter-process calling, call playing program and play the first video.Process schematic diagram in this situation can be as shown in Figure 2 B, in fig. 2b, run respectively in process 1,2,3 and have different application programs, process 4 shown in dotted line frame is newly-established process, playing program is started in process 4, destination application sends the request of inter-process calling, to play the first video by playing program to playing program.
Optionally, if do not comprise the decoder needed for broadcasting first video in playing program, this decoder can be obtained from network side, to carry out the broadcasting of the first video, accordingly, playing the process of the first video by playing program can be as follows: detect in playing program whether there is the decoder corresponding with the coded format of the first video; If there is no decoder, then obtain decoder from network side, and add in playing program; The first video is play by playing program.
In force, when playing program prepares broadcasting the first video, first can obtain the coded format of the first video, then the decoder whether being provided with the coded format for the first video in playing program is detected, if there is not the decoder for this coded format in playing program, then can according to the address information of the server prestored, the request of downloading decoder is sent to this server, download should the decoder of coded format from this server, again the decoder of download is added in playing program, then, in playing program, the first video is play.
Optionally, if ask broadcasting first video when playing program is playing other video, the video pause that can first will playing, accordingly, the process of being play the first video by playing program can be as follows: if playing program is current at broadcasting second video, then suspend the second video, and record time-out progress position, in playing program, play the first video; When receiving the video playback request of corresponding second video, in playing program, from time-out progress position, play the second video.
Wherein, the second video is the current video play of playing program, the video namely play before the first video, can be the video that destination application calls playing program broadcasting, also can be the video that other application call playing program is play.
In force, playing program is current is playing the second video, now receive the video playback request of broadcasting first video, the broadcasting of the second video can be suspended, record time-out progress position, as 1:06:22, namely suspends at 1 hour 6 points of 22 seconds place, after time-out second video, playing program can play the first video.Follow-up, when user clicks broadcasting the second video again, when playing program receives the video playback request of corresponding second video, the time-out progress position of the second video of record before can obtaining, from this time-out progress position 1:06:22, play the second video.After by the second video pause, mobile terminal can continue the video data obtaining the second video from network side, and its video data of buffer memory, or, also the video data of acquisition second video can be stopped, only after the video playback request receiving corresponding second video, recover the acquisition of the video data to the second video.
Optionally, different play mode can also be selected to play it according to the video type of the first video, accordingly, the process of being play the first video by playing program can be as follows: according to the corresponding relation of the video type prestored and play mode, determine the first play mode that the video type of the first video is corresponding; In playing program, the first play mode is used to play the first video.
Wherein, the combination of the play parameter that play mode can be demand for adapting to different video type and arrange, the play parameter in play mode can comprise image quality parameter (as resolution), full frame switch parameter, surround sound switch parameter etc.
In force, in playing program, can pre-set and the corresponding relation of store video type and play mode, such as, video type is film, then corresponding play mode is high definition, full frame, stereosonic play mode, and video type is news, then corresponding play mode is SD, non-full frame, monaural play mode.In above-mentioned video playback request, the video type (can be film or news etc.) of the first video can also be carried, then according to this video type, in conjunction with the corresponding relation pre-set, the play mode corresponding with this video type can be determined.Such as, for the first video, it is film that video playback request carries its video type, determines that the play mode corresponding with film can be high definition, full frame, stereo further, then adopts high definition, full frame, stereosonic play mode plays the first video.
In the embodiment of the present invention, optionally, additionally provide the method for closing playing program, processing mode can be as follows: when all application programs of being carried out video playback by this playing program are all closed, close this playing program, and terminate the process at this playing program place.
In force, playing program can successively by one or more application call, for video playback, when these application programs do not have Close All, this playing program can remain in the process at its place and run, when detecting that these application programs are all closed, then playing program can be closed, and terminate the process at its place.
In addition, other method can also be adopted to close playing program, such as, when all videos play by this playing program are all finished, close this playing program, and terminate the process at this playing program place.
In the embodiment of the present invention, the video playback request of corresponding first video in receiving target application program, detect the playing program preset whether to run in its process taken alone, if, then play the first video by this playing program, otherwise, newly set up process, this playing program is started in newly-established process, the first video is play by this playing program, like this, playing program is independently operated in a process, for different application calls, can prevent from running playing program respectively in multiple process, thus, taking system resource can be reduced.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device of video playback, and as shown in Figure 3, this device comprises:
Receiver module 310, for the video playback request of the first video corresponding in receiving target application program.
Whether detection module 320, run for detecting default playing program in its process taken alone.
Processing module 330, for if then play described first video by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
Optionally, described detection module 320, for:
In the process title of current built vertical process, inquire about the process title that described playing program is corresponding;
If inquire the process title that described playing program is corresponding, then judge that described playing program runs in its process taken alone; If do not inquire the process title that described playing program is corresponding, then judge that described playing program does not run in its process taken alone.
Optionally, described processing module 330, for:
By the mode of inter-process calling, call described playing program and play described first video.
Optionally, described processing module 330, for:
Detect in described playing program and whether there is the decoder corresponding with the coded format of described first video;
If there is no described decoder, then obtain described decoder from network side, and add in described playing program;
Described first video is play by described playing program.
Optionally, described processing module 330, for:
If described playing program is current at broadcasting second video, then suspend described second video, and record time-out progress position;
Described first video is play in described playing program;
Described processing module 330 also for:
When receiving the video playback request of corresponding described second video, in described playing program, from described time-out progress position, play described second video.
Optionally, described processing module 330, for:
According to the corresponding relation of the video type prestored and play mode, determine the first play mode that the video type of described first video is corresponding;
In described playing program, described first play mode is used to play described first video.
Optionally, described processing module 330, also for:
When all application programs of being carried out video playback by described playing program are all closed, close described playing program, and terminate the process at described playing program place.
In the embodiment of the present invention, the video playback request of corresponding first video in receiving target application program, detect the playing program preset whether to run in its process taken alone, if, then play the first video by this playing program, otherwise, newly set up process, this playing program is started in newly-established process, the first video is play by this playing program, like this, playing program is independently operated in a process, for different application calls, can prevent from running playing program respectively in multiple process, thus, taking system resource can be reduced.
Embodiment four
Fig. 4 represents the block diagram of the terminal that one embodiment of the invention provides, this terminal 900 can comprise communication unit 910, includes the memory 920 of one or more computer-readable recording mediums, input unit 930, display unit 940, transducer 950, voicefrequency circuit 960, WIFI (WirelessFidelity, Wireless Fidelity) module 970, include the parts such as processor 980 and power supply 990 that more than or processes core.It will be understood by those skilled in the art that the terminal structure shown in Fig. 4 does not form the restriction to this terminal, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 910 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication unit 910 can be RF (RadioFrequency, radio frequency) circuit, router, modulator-demodulator, etc. network communication equipment.Especially, when communication unit 910 is RF circuit, after being received by the downlink information of base station, more than one or one processor 980 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low noise amplifier), duplexer etc.In addition, communication unit 910 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, code division multiple access), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.Memory 920 can be used for storing software program and module, and processor 980 is stored in software program and the module of memory 920 by running, thus performs the application of various function and data processing.Memory 920 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 900.In addition, memory 920 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 920 can also comprise Memory Controller, to provide the access of processor 980 and input unit 930 pairs of memories 920.
Input unit 930 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Preferably, input unit 930 can comprise Touch sensitive surface 931 and other input equipments 932.Touch sensitive surface 931, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 931 or near Touch sensitive surface 931 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 931 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 980, and the order that energy receiving processor 980 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 931.Except Touch sensitive surface 931, input unit 930 can also comprise other input equipments 932.Preferably, other input equipments 932 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 940 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 900 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 940 can comprise display floater 941, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 941.Further, Touch sensitive surface 931 can cover display floater 941, when Touch sensitive surface 931 detects thereon or after neighbouring touch operation, send processor 980 to determine the type of touch event, on display floater 941, provide corresponding vision to export with preprocessor 980 according to the type of touch event.Although in the diagram, Touch sensitive surface 931 and display floater 941 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 931 and display floater 941 integrated and realize input and output function.
Terminal 900 also can comprise at least one transducer 950, such as optical sensor, motion sensor and other transducers.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 941, and proximity transducer when terminal 900 moves in one's ear, can cut out display floater 941 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 900 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 960, loud speaker 961, microphone 962 can provide the audio interface between user and terminal 900.Voicefrequency circuit 960 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 961, by loud speaker 961 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 962, voice data is converted to after being received by voicefrequency circuit 960, after again voice data output processor 980 being processed, through communication unit 910 to send to such as another terminal, or export voice data to memory 920 to process further.Voicefrequency circuit 960 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 900.
In order to realize radio communication, this terminal can be configured with wireless communication unit 970, this wireless communication unit 970 can be WIFI module.WIFI belongs to short range wireless transmission technology, and by wireless communication unit 970, terminal 900 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although there is shown wireless communication unit 970, be understandable that, it does not belong to must forming of terminal 900, can omit in the scope of essence not changing invention as required completely.
Processor 980 is control centres of terminal 900, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 920 and/or module is stored in by running or performing, and call the data be stored in memory 920, perform various function and the deal with data of terminal 900, thus integral monitoring is carried out to mobile phone.Optionally, processor 980 can comprise one or more process core; Preferably, processor 980 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 980.
Terminal 900 also comprises the power supply 990 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 980 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 960 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 900 can also comprise camera, bluetooth module etc., does not repeat them here.
In the present embodiment, terminal also includes one or more than one program, this or more than one program are stored in memory, and be configured to be performed by more than one or one processor, described more than one or one program package is containing the instruction of the method for carrying out the calling clawback that the embodiment of the present invention provides.Wherein, the first terminal that provides of the embodiment of the present invention is consistent with above-mentioned terminal with the structure of the second terminal.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of video playback, described method comprises:
The video playback request of corresponding first video in receiving target application program;
Detect the playing program preset whether to run in its process taken alone;
If so, then described first video is play by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
Optionally, whether the playing program that described detection is preset runs in its process taken alone, comprising:
In the process title of current built vertical process, inquire about the process title that described playing program is corresponding;
If inquire the process title that described playing program is corresponding, then judge that described playing program runs in its process taken alone; If do not inquire the process title that described playing program is corresponding, then judge that described playing program does not run in its process taken alone.
Optionally, described by described first video of described playing program broadcasting, comprising:
By the mode of inter-process calling, call described playing program and play described first video.
Optionally, described by described first video of described playing program broadcasting, comprising:
Detect in described playing program and whether there is the decoder corresponding with the coded format of described first video;
If there is no described decoder, then obtain described decoder from network side, and add in described playing program;
Described first video is play by described playing program.
Optionally, described by described first video of described playing program broadcasting, comprising:
If described playing program is current at broadcasting second video, then suspend described second video, and record time-out progress position;
Described first video is play in described playing program;
Described method also comprises:
When receiving the video playback request of corresponding described second video, in described playing program, from described time-out progress position, play described second video.
Optionally, described by described first video of described playing program broadcasting, comprising:
According to the corresponding relation of the video type prestored and play mode, determine the first play mode that the video type of described first video is corresponding;
In described playing program, described first play mode is used to play described first video.
Optionally, described method also comprises:
When all application programs of being carried out video playback by described playing program are all closed, close described playing program, and terminate the process at described playing program place.
In the embodiment of the present invention, the video playback request of corresponding first video in receiving target application program, detect the playing program preset whether to run in its process taken alone, if, then play the first video by this playing program, otherwise, newly set up process, this playing program is started in newly-established process, the first video is play by this playing program, like this, playing program is independently operated in a process, for different application calls, can prevent from running playing program respectively in multiple process, thus, taking system resource can be reduced.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. a method for video playback, is characterized in that, described method comprises:
The video playback request of corresponding first video in receiving target application program;
Detect the playing program preset whether to run in its process taken alone;
If so, then described first video is play by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
2. method according to claim 1, is characterized in that, whether the playing program that described detection is preset runs in its process taken alone, comprising:
In the process title of current built vertical process, inquire about the process title that described playing program is corresponding;
If inquire the process title that described playing program is corresponding, then judge that described playing program runs in its process taken alone; If do not inquire the process title that described playing program is corresponding, then judge that described playing program does not run in its process taken alone.
3. method according to claim 1, is characterized in that, described by described first video of described playing program broadcasting, comprising:
By the mode of inter-process calling, call described playing program and play described first video.
4. method according to claim 1, is characterized in that, described by described first video of described playing program broadcasting, comprising:
Detect in described playing program and whether there is the decoder corresponding with the coded format of described first video;
If there is no described decoder, then obtain described decoder from network side, and add in described playing program;
Described first video is play by described playing program.
5. method according to claim 1, is characterized in that, described by described first video of described playing program broadcasting, comprising:
If described playing program is current at broadcasting second video, then suspend described second video, and record time-out progress position;
Described first video is play in described playing program;
Described method also comprises:
When receiving the video playback request of corresponding described second video, in described playing program, from described time-out progress position, play described second video.
6. method according to claim 1, is characterized in that, described by described first video of described playing program broadcasting, comprising:
According to the corresponding relation of the video type prestored and play mode, determine the first play mode that the video type of described first video is corresponding;
In described playing program, described first play mode is used to play described first video.
7. method according to claim 1, is characterized in that, described method also comprises:
When all application programs of being carried out video playback by described playing program are all closed, close described playing program, and terminate the process at described playing program place.
8. a device for video playback, is characterized in that, described device comprises:
Receiver module, for the video playback request of the first video corresponding in receiving target application program;
Whether detection module, run for detecting default playing program in its process taken alone;
Processing module, for if then play described first video by described playing program, otherwise, newly set up process, in described newly-established process, start described playing program, play described first video by described playing program.
9. device according to claim 8, is characterized in that, described detection module, for:
In the process title of current built vertical process, inquire about the process title that described playing program is corresponding;
If inquire the process title that described playing program is corresponding, then judge that described playing program runs in its process taken alone; If do not inquire the process title that described playing program is corresponding, then judge that described playing program does not run in its process taken alone.
10. device according to claim 8, is characterized in that, described processing module, for:
By the mode of inter-process calling, call described playing program and play described first video.
11. devices according to claim 8, is characterized in that, described processing module, for:
Detect in described playing program and whether there is the decoder corresponding with the coded format of described first video;
If there is no described decoder, then obtain described decoder from network side, and add in described playing program;
Described first video is play by described playing program.
12. devices according to claim 8, is characterized in that, described processing module, for:
If described playing program is current at broadcasting second video, then suspend described second video, and record time-out progress position;
Described first video is play in described playing program;
Described processing module also for:
When receiving the video playback request of corresponding described second video, in described playing program, from described time-out progress position, play described second video.
13. devices according to claim 8, is characterized in that, described processing module, for:
According to the corresponding relation of the video type prestored and play mode, determine the first play mode that the video type of described first video is corresponding;
In described playing program, described first play mode is used to play described first video.
14. devices according to claim 8, is characterized in that, described processing module, also for:
When all application programs of being carried out video playback by described playing program are all closed, close described playing program, and terminate the process at described playing program place.
CN201410307008.2A 2014-06-30 2014-06-30 A kind of method and apparatus of video playing Active CN105282628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410307008.2A CN105282628B (en) 2014-06-30 2014-06-30 A kind of method and apparatus of video playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410307008.2A CN105282628B (en) 2014-06-30 2014-06-30 A kind of method and apparatus of video playing

Publications (2)

Publication Number Publication Date
CN105282628A true CN105282628A (en) 2016-01-27
CN105282628B CN105282628B (en) 2019-10-11

Family

ID=55150817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410307008.2A Active CN105282628B (en) 2014-06-30 2014-06-30 A kind of method and apparatus of video playing

Country Status (1)

Country Link
CN (1) CN105282628B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488282A (en) * 2016-11-23 2017-03-08 腾讯科技(北京)有限公司 A kind of output control method of multimedia messages and mobile terminal
CN107450874A (en) * 2017-07-24 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of multi-medium data double screen player method and system
WO2021103746A1 (en) * 2019-11-28 2021-06-03 晶晨半导体(深圳)有限公司 Playback resource management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080069A (en) * 2006-05-25 2007-11-28 三星电子株式会社 Apparatus and method for receiving digital multimedia broadcast in electronic device
CN101192203A (en) * 2006-11-30 2008-06-04 中兴通讯股份有限公司 Mobile phones audio frequency playing method
CN101364188A (en) * 2008-09-12 2009-02-11 青岛海信移动通信技术股份有限公司 Mobile terminal and multimedia playing control method thereof
CN102301336A (en) * 2009-01-29 2011-12-28 高通股份有限公司 Dynamically provisioning a device with audio processing capability
CN103841441A (en) * 2012-11-26 2014-06-04 安凯(广州)微电子技术有限公司 Video playing method and device for mobile network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080069A (en) * 2006-05-25 2007-11-28 三星电子株式会社 Apparatus and method for receiving digital multimedia broadcast in electronic device
CN101192203A (en) * 2006-11-30 2008-06-04 中兴通讯股份有限公司 Mobile phones audio frequency playing method
CN101364188A (en) * 2008-09-12 2009-02-11 青岛海信移动通信技术股份有限公司 Mobile terminal and multimedia playing control method thereof
CN102301336A (en) * 2009-01-29 2011-12-28 高通股份有限公司 Dynamically provisioning a device with audio processing capability
CN103841441A (en) * 2012-11-26 2014-06-04 安凯(广州)微电子技术有限公司 Video playing method and device for mobile network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488282A (en) * 2016-11-23 2017-03-08 腾讯科技(北京)有限公司 A kind of output control method of multimedia messages and mobile terminal
CN107450874A (en) * 2017-07-24 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of multi-medium data double screen player method and system
CN107450874B (en) * 2017-07-24 2021-04-20 宇龙计算机通信科技(深圳)有限公司 Multimedia data double-screen playing method and system
WO2021103746A1 (en) * 2019-11-28 2021-06-03 晶晨半导体(深圳)有限公司 Playback resource management system

Also Published As

Publication number Publication date
CN105282628B (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN104065982B (en) The method and apparatus of live streaming media
CN105005909A (en) Method and device for predicting lost users
CN104869468A (en) Method and apparatus for displaying screen information
CN104780164A (en) Method and device for operating game client
CN104243671A (en) Volume adjustment method and device and electronic device
CN104135728B (en) Method for connecting network and device
CN104618794A (en) Method and device for playing video
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104717341A (en) Message prompting method and terminal
CN103716331A (en) Method, terminal, server and system for numerical value transfer
CN104935955A (en) Live video stream transmission method, device and system
CN105208056A (en) Information exchange method and terminal
CN104243538A (en) Resource sharing method and system
CN104298666A (en) Web page sharing method and web page sharing device
CN104954159A (en) Network information statistics method and device
CN104159140A (en) Video processing method, apparatus and system
CN104602135A (en) Method and device for controlling full screen play
CN105389259A (en) Method, apparatus and system for performing application testing
CN103945241A (en) Streaming data statistical method, system and related device
CN104239332A (en) Webpage content processing method, webpage content processing device and browser client side
CN105530239A (en) Multimedia data obtaining method and device
CN103177217A (en) File scan method, file scan system, client-side and server
CN104699501A (en) Method and device for running application program
CN103200077B (en) The method of data interaction during a kind of voice call, Apparatus and system
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof

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