CN105282628B - A kind of method and apparatus of video playing - Google Patents

A kind of method and apparatus of video playing Download PDF

Info

Publication number
CN105282628B
CN105282628B CN201410307008.2A CN201410307008A CN105282628B CN 105282628 B CN105282628 B CN 105282628B CN 201410307008 A CN201410307008 A CN 201410307008A CN 105282628 B CN105282628 B CN 105282628B
Authority
CN
China
Prior art keywords
video
playing program
playing
program
played
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.)
Active
Application number
CN201410307008.2A
Other languages
Chinese (zh)
Other versions
CN105282628A (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 kind of method and apparatus of video playing, belong to field of computer technology.The described method includes: receiving the video playing request of corresponding first video in destination application, detect whether preset playing program runs in the process that it is occupied alone, if it is, the first video is then played by playing program, otherwise, process newly is established, starts playing program in newly-established process, the first video is played by playing program.Using the present invention, it is possible to reduce to the occupancy of system resource.

Description

A kind of method and apparatus of video playing
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and apparatus of video playing.
Background technique
With the rapid development of computer technology and network technology, hair that video technique is also advanced by leaps and bounds therewith Exhibition, network video have obtained extensive popularization.The function of playing network video is both provided in more and more application programs, such as Browser, instant messaging application etc..
In the related art, when user's operation application program plays network video, which can be current at it Process in, the player module for calling operating system player or application program included carries out video playing, for example, user is clear It lookes in device and browses some webpage, certain network video is clicked in webpage, browser then calls operation system in the process of its operation System player, plays out the network video.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
User is often playing certain view using some application program in terminals such as routine use mobile phone, tablet computers It when frequency plays half, then opens other application program and plays other videos, when user is opened not respectively using multiple application programs With network video when, based on above-mentioned method of calling, can be transported in the process of each application program for carrying out video playing Row has corresponding player, thus, cause system resource occupancy excessive.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and apparatus of video playing, institutes It is as follows to state method:
On the one hand, a kind of method of video playing is provided, which comprises
Receive the video playing request of corresponding first video in destination application;
Detect whether preset playing program runs in the process that it is occupied alone;
If it is, otherwise playing first video by the playing program newly establishes process, described newly-built Start the playing program in vertical process, first video is played by the playing program.
On the other hand, a kind of device of video playing is provided, described device includes:
Receiving module, for receiving the video playing request of corresponding first video in destination application;
Detection module, for detecting whether preset playing program runs in the process that it is occupied alone;
Processing module is used for if it is, play first video by the playing program, otherwise, newly establish into Journey starts the playing program in the newly-established process, plays first video by the playing program.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, the video playing request of corresponding first video in destination application is received, detection is default Playing program whether run in the process that it is occupied alone, if it is, by the playing program play the first video, it is no Then, process is newly established, starts the playing program in newly-established process, the first video is played by the playing program, in this way, It operates in playing program is independent in a process, for different application calls, can prevent in multiple processes point Not Yun Hang playing program, it is thus possible to reduce the occupancy to system resource.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of the method for video playing provided in an embodiment of the present invention.
Fig. 2A is the schematic diagram of inter-process calling provided in an embodiment of the present invention.
Fig. 2 B is the schematic diagram of inter-process calling provided in an embodiment of the present invention.
Fig. 3 is a kind of structural schematic diagram of the device of video playing provided in an embodiment of the present invention.
Fig. 4 is a kind of block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiment of the invention provides a kind of methods of video playing, as shown in Figure 1, the process flow of this method can wrap Include following steps:
Step 101, the video playing request of corresponding first video in destination application is received.
Step 102, detect whether preset playing program runs in the process that it is occupied alone.
Step 103, it if it is, otherwise playing the first video by the playing program newly establishes process, is established newly Process in start the playing program, pass through the playing program play the first video.
In the embodiment of the present invention, the video playing request of corresponding first video in destination application is received, detection is default Playing program whether run in the process that it is occupied alone, if it is, by the playing program play the first video, it is no Then, process is newly established, starts the playing program in newly-established process, the first video is played by the playing program, in this way, It operates in playing program is independent in a process, for different application calls, can prevent in multiple processes point Not Yun Hang playing program, it is thus possible to reduce the occupancy to system resource.
Embodiment two
The embodiment of the invention provides a kind of method of video playing, the executing subject of this method can be terminal, such as hand The mobile terminals such as machine, tablet computer, in the present embodiment by taking mobile phone is executing subject, browser is destination application as an example, into The case where detailed description of row scheme, other executing subjects, is similar, and this embodiment is not repeated.
Specific embodiment is combined below, process flow shown in Fig. 1 is described in detail, and content can be as Under:
Step 101, the video playing request of corresponding first video in destination application is received.
Wherein, destination application is the currently running application journey that can trigger video playback capability in mobile terminal Sequence, such as certain browser or instant messaging application.Video playing request is the message that request plays the first video, wherein can take Video identifier with the first video.
In an implementation, playing program may be embodied in destination application, can be one in destination application Component also may include the playing program as component in other application program.By taking destination application is browser as an example, when User operates in a browser, clicks the video link shown in browser, and browser will receive video playing request, The video identifier of the video (i.e. the first video) can be carried in video playing request.
Step 102, detect whether preset playing program runs in the process that it is occupied alone.
Wherein, preset playing program can be the playing program for including in destination application, and other offer videos are broadcast Also it may include the playing program in the application program of playing function.
In an implementation, playing program is run in the process occupied alone, refers in currently-established process, exists One process, only operation has the playing program, not running other application program in the process, that is, the playing program is in fortune Row state, and run in the process of other application program.
The processing mode of the detection process of step 102 can be varied, and following present one of feasible processing Mode:
Step 1, in the process title of currently-established process, the corresponding process title of inquiry playing program.
Wherein, process title can be in system be when establishing process process setting title, as explorer.exe, Svhost.exe etc., unique process title can be set in each process, and for application program, corresponding process title can be The title of the execution file of application program.
In an implementation, the corresponding process title of the playing program can be stored in advance in destination application, carrying out When inquiry, the process title of currently-established all processes can be traversed, whether inquiry includes pre-stored process title.
Step 2 determines what playing program occupied alone at it if inquiring the corresponding process title of playing program It is run in process;If not inquiring the corresponding process title of playing program, determine that playing program does not occupy alone at it Process in run.
For example, the process currently having built up include explorer.exe, svhost.exe, taskhost.exe tri- into Journey, the entitled miniplayer.exe of the corresponding process of playing program, in the process title for three processes currently having built up In, query procedure title miniplayer.exe does not inquire the process title, then can be determined that the playing program does not exist It is run in the process occupied alone.
Step 103, if preset playing program is run in the process that it is occupied alone, pass through the playing program The first video is played, otherwise, newly establishes process, starts the playing program in newly-established process, is broadcast by the playing program Put the first video.
Optionally, above-mentioned playing program can be called to play the first video by way of inter-process calling.
In an implementation, if the playing program is run in the process occupied alone, which can be supervised Survey the request for the inter-process calling that other application program is sent.When playing the first video, destination application can by into The mode request call playing program called between journey plays the first video.Process schematic diagram in this case can be such as Fig. 2A institute Show, in fig. 2, be separately operable different application programs in process 1,2,3, process 4 be playing program occupy alone into Journey, the destination application run in process 2 sends the request of inter-process calling to playing program, in this way, target application journey Sequence can play the first video by the playing program.
If the playing program is not run in the process occupied alone, a process can be newly established, and new Start the playing program in the process of foundation, according still further to the processing mode of above-mentioned inter-process calling, playing program is called to play First video.Process schematic diagram in this case can be as shown in Figure 2 B, in fig. 2b, has been separately operable not in process 1,2,3 With application program, process 4 shown in dotted line frame is newly-established process, starts playing program, target application journey in process 4 Sequence sends the request of inter-process calling to playing program, to play the first video by playing program.
Optionally, if can not obtained from network side comprising decoder needed for playing the first video in playing program The decoder, to carry out the broadcasting of the first video, correspondingly, can be such that by the processing that playing program plays the first video It detects and whether there is decoder corresponding with the coded format of the first video in playing program;If there is no decoder, then from Network side obtains decoder, and is added in playing program;The first video is played by playing program.
In an implementation, when playing program prepares to play the first video, the coded format of the first video can be first obtained, then Whether the decoder of coded format for the first video is installed, if be not present in playing program in detection playing program It, then can be with the address information of server according to the pre-stored data, under being sent to the server for the decoder of the coded format The request for carrying decoder, the decoder of the corresponding coded format is downloaded from the server, then the decoder of downloading is added to and is broadcast It puts in program, then, the first video is played in playing program.
It optionally, can first will if request plays the first video when playing program is playing other videos The video pause of broadcasting, correspondingly, can be such that by the processing that playing program plays the first video if playing program is current The second video is being played, then is suspending the second video, and record pause progress position, the first video is played in playing program;When When receiving the video playing request of corresponding second video, in playing program, since suspending progress position, the second view is played Frequently.
Wherein, the second video is the video that playing program is currently played, i.e., the video played before the first video, It can be the video that destination application calls playing program to play, be also possible to other application program and playing program is called to play Video.
In an implementation, the second video is currently played in playing program, and the video for receiving the first video of broadcasting at this time is broadcast Request is put, can suspend the broadcasting of the second video, records pause progress position, such as 1:06:22 is that is, temporary at 1 hour 6 points of 22 seconds place Stop, after suspending the second video, playing program can play the first video.It is subsequent, the second video is played when user again taps on When, when playing program receives the video playing request of corresponding second video, the second video for being recorded before available it is temporary Stop progress position, since pause progress position 1:06:22, plays the second video.It is mobile whole after by the second video pause End can continue the video data that the second video is obtained from network side, and cache its video data, alternatively, can also stop obtaining The video data of second video restores the view to the second video only after receiving the video playing request of corresponding second video The acquisition of frequency evidence.
Optionally, different play mode can also be selected to play out it according to the video type of the first video, phase It answers, video type and play mode according to the pre-stored data can be such that by the processing that playing program plays the first video Corresponding relationship, determine corresponding first play mode of the video type of the first video;In playing program, played using first The first video of mode playback.
Wherein, play mode can be the combination for the play parameter being arranged to adapt to the demand of different video type, broadcast Play parameter in mode playback may include image quality parameter (such as resolution ratio), full frame switch parameter, surround sound switch parameter Deng.
In an implementation, in playing program, the corresponding relationship of video type and play mode can be preset and store, For example, video type is film, then corresponding play mode is high definition, full frame, stereosonic play mode, and video type is new It hears, then corresponding play mode is SD, non-full frame, monophonic play mode.It, can be in the request of above-mentioned video playing The video type (can be film or news etc.) for carrying the first video, then can be according to the video type, in conjunction with preparatory The corresponding relationship of setting determines play mode corresponding with the video type.For example, for the first video, video playing request Carrying its video type is film, further determines that play mode corresponding with film can be high definition, full frame, stereo, Then using high definition, full frame, the first video of stereosonic play mode broadcasting.
In the embodiment of the present invention, optionally, the method for closing playing program is additionally provided, processing mode, which can be such that, to be worked as When all closing by all application programs that the playing program carries out video playing, the playing program is closed, and terminate the broadcasting Process where program.
In an implementation, playing program can be used for video playing, at these successively by one or more application routine call In the case that application program is without all closing, which may remain in the process where it and runs, when detecting When these application programs are all closed, then playing program can be closed, and terminate the process where it.
Furthermore it is also possible to playing program be closed using other methods, for example, all when playing by the playing program When video all finishes, the playing program is closed, and terminates the process where the playing program.
In the embodiment of the present invention, the video playing request of corresponding first video in destination application is received, detection is default Playing program whether run in the process that it is occupied alone, if it is, by the playing program play the first video, it is no Then, process is newly established, starts the playing program in newly-established process, the first video is played by the playing program, in this way, It operates in playing program is independent in a process, for different application calls, can prevent in multiple processes point Not Yun Hang playing program, it is thus possible to reduce the occupancy to system resource.
Embodiment three
Based on the same technical idea, the embodiment of the invention also provides a kind of devices of video playing, as shown in figure 3, The device includes:
Receiving module 310, for receiving the video playing request of corresponding first video in destination application.
Detection module 320, for detecting whether preset playing program runs in the process that it is occupied alone.
Processing module 330 is used for if it is, otherwise newly being established by playing program broadcasting first video Process starts the playing program in the newly-established process, plays first video by the playing program.
Optionally, the detection module 320, is used for:
In the process title of currently-established process, the corresponding process title of the playing program is inquired;
If inquiring the corresponding process title of the playing program, determine what the playing program occupied alone at it It is run in process;If not inquiring the corresponding process title of the playing program, determine the playing program not at it It is run in the process occupied alone.
Optionally, the processing module 330, is used for:
By way of inter-process calling, the playing program is called to play first video.
Optionally, the processing module 330, is used for:
It detects in the playing program with the presence or absence of decoder corresponding with the coded format of first video;
If there is no the decoder, then the decoder is obtained from network side, and be added in the playing program;
First video is played by the playing program.
Optionally, the processing module 330, is used for:
If the playing program is currently playing the second video, suspend second video, and record pause progress Position;
First video is played in the playing program;
The processing module 330 is also used to:
When receiving the video playing request of corresponding second video, in the playing program, from the pause Progress position starts, and plays second video.
Optionally, the processing module 330, is used for:
The corresponding relationship of video type and play mode according to the pre-stored data determines the video type of first video Corresponding first play mode;
In the playing program, first video is played using first play mode.
Optionally, the processing module 330, is also used to:
When all application programs for carrying out video playing by the playing program are all closed, the broadcasting journey is closed Sequence, and terminate the process where the playing program.
In the embodiment of the present invention, the video playing request of corresponding first video in destination application is received, detection is default Playing program whether run in the process that it is occupied alone, if it is, by the playing program play the first video, it is no Then, process is newly established, starts the playing program in newly-established process, the first video is played by the playing program, in this way, It operates in playing program is independent in a process, for different application calls, can prevent in multiple processes point Not Yun Hang playing program, it is thus possible to reduce the occupancy to system resource.
Example IV
Fig. 4 indicates the structural block diagram of terminal provided by one embodiment of the present invention, which may include communication unit Member 910, memory 920, the input unit 930, display unit for including one or more computer readable storage medium 940, sensor 950, voicefrequency circuit 960, WIFI (Wireless Fidelity, Wireless Fidelity) module 970, include one Or the processor 980 and the components such as power supply 990 of more than one processing core.It will be understood by those skilled in the art that Fig. 4 Shown in terminal structure do not constitute the restriction to the terminal, may include than illustrating more or fewer components or group Close certain components or different component layouts.Wherein:
Communication unit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, the communication unit 910 Can for RF (Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipments.Particularly, when When communication unit 910 is RF circuit, after the downlink information of base station is received, transfer at one or more than one processor 980 Reason;In addition, the data for being related to uplink are sent to base station.RF circuit usually as communication unit include but is not limited to antenna, At least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 910 can also be by wireless Communication is communicated with network and other equipment.Any communication standard or agreement can be used in the wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc.. Memory 920 can be used for storing software program and module, and processor 980 is stored in the software journey of memory 920 by operation Sequence and module, thereby executing various function application and data processing.Memory 920 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as sound according to terminal 900 Frequency evidence, phone directory etc.) etc..In addition, memory 920 may include high-speed random access memory, it can also include non-volatile Property memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, it deposits Reservoir 920 can also include Memory Controller, to provide the access of processor 980 and input unit 930 to memory 920.
Input unit 930 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Preferably, input unit 930 may include touching Sensitive surfaces 931 and other input equipments 932.Touch sensitive surface 931, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 931 or near touch sensitive surface 931), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 931 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 980, and can receive processor 980 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 931.In addition to touch sensitive surface 931, input unit 930 can also include other input equipments 932.Preferably, Other input equipments 932 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 940 can be used for showing information input by user or the information and terminal 900 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 940 may include display panel 941, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 941.Further, touch sensitive surface 931 can cover display panel 941, when touch sensitive surface 931 detects touching on it or nearby After touching operation, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 according to the type of touch event Corresponding visual output is provided on display panel 941.Although touch sensitive surface 931 and display panel 941 are conducts in Fig. 4 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 931 and display Panel 941 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to the bright of ambient light The brightness of display panel 941 secretly is adjusted, proximity sensor can close display panel 941 when terminal 900 is moved in one's ear And/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for terminal 900 The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor that can also configure, details are not described herein.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by circuit 960 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, after being received by voicefrequency circuit 960 Audio data is converted to, then by after the processing of audio data output processor 980, is sent to through communication unit 910 such as another Terminal, or audio data is exported to memory 920 to be further processed.Voicefrequency circuit 960 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone Yu terminal 900.
In order to realize wireless communication, wireless communication unit 970, the wireless communication unit 970 can be configured in the terminal It can be WIFI module.WIFI belongs to short range wireless transmission technology, and unit 970 can help terminal 900 by wireless communication User sends and receive e-mail, browses webpage and access streaming video etc., it provides wireless broadband internet access for user. Although showing wireless communication unit 970 in figure, but it is understood that, and it is not belonging to must be configured into for terminal 900, it is complete It can according to need within the scope of not changing the essence of the invention and omit entirely.
Processor 980 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 920, and calls and be stored in memory 920 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 980 may include one or more processing cores;Preferably, processor 980 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Terminal 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 980 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 960 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.
In the present embodiment, terminal further includes having perhaps this or more than one journey of more than one program Sequence is stored in memory, and is configured to be executed by one or more than one processor, the one or more Program includes the instruction for carrying out the method for calling clawback provided in an embodiment of the present invention.Wherein, the embodiment of the present invention provides First terminal and second terminal structure it is consistent with above-mentioned terminal.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that a kind of method that mobile terminal is able to carry out video playing, which comprises
Receive the video playing request of corresponding first video in destination application;
Detect whether preset playing program runs in the process that it is occupied alone;
If it is, otherwise playing first video by the playing program newly establishes process, described newly-built Start the playing program in vertical process, first video is played by the playing program.
Optionally, whether the preset playing program of detection runs in the process that it is occupied alone, comprising:
In the process title of currently-established process, the corresponding process title of the playing program is inquired;
If inquiring the corresponding process title of the playing program, determine what the playing program occupied alone at it It is run in process;If not inquiring the corresponding process title of the playing program, determine the playing program not at it It is run in the process occupied alone.
It is optionally, described that first video is played by the playing program, comprising:
By way of inter-process calling, the playing program is called to play first video.
It is optionally, described that first video is played by the playing program, comprising:
It detects in the playing program with the presence or absence of decoder corresponding with the coded format of first video;
If there is no the decoder, then the decoder is obtained from network side, and be added in the playing program;
First video is played by the playing program.
It is optionally, described that first video is played by the playing program, comprising:
If the playing program is currently playing the second video, suspend second video, and record pause progress Position;
First video is played in the playing program;
The method also includes:
When receiving the video playing request of corresponding second video, in the playing program, from the pause Progress position starts, and plays second video.
It is optionally, described that first video is played by the playing program, comprising:
The corresponding relationship of video type and play mode according to the pre-stored data determines the video type of first video Corresponding first play mode;
In the playing program, first video is played using first play mode.
Optionally, the method also includes:
When all application programs for carrying out video playing by the playing program are all closed, the broadcasting journey is closed Sequence, and terminate the process where the playing program.
In the embodiment of the present invention, the video playing request of corresponding first video in destination application is received, detection is default Playing program whether run in the process that it is occupied alone, if it is, by the playing program play the first video, it is no Then, process is newly established, starts the playing program in newly-established process, the first video is played by the playing program, in this way, It operates in playing program is independent in a process, for different application calls, can prevent in multiple processes point Not Yun Hang playing program, it is thus possible to reduce the occupancy to system resource.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (13)

1. a kind of method of video playing, which is characterized in that the described method includes:
Receive the video playing request of corresponding first video in destination application;
Detect whether preset playing program runs in the process that it is occupied alone, the process operation occupied alone is State playing program, and not running other applications;
If it is, otherwise playing first video by the playing program newly establishes process, described newly-established Start the playing program in process, first video is played by the playing program;
It is wherein, described that first video is played by the playing program, comprising:
By way of inter-process calling, the playing program is called to play first video, the playing program is run on The process occupied alone, or, running on the newly-established process.
2. the method according to claim 1, wherein whether the preset playing program of the detection accounts for alone at it It is run in process, comprising:
In the process title of currently-established process, the corresponding process title of the playing program is inquired;
If inquiring the corresponding process title of the playing program, the process that the playing program occupies alone at it is determined Middle operation;If not inquiring the corresponding process title of the playing program, determine the playing program not its alone It is run in the process of occupancy.
3. the method according to claim 1, wherein described play first view by the playing program Frequently, comprising:
It detects in the playing program with the presence or absence of decoder corresponding with the coded format of first video;
If there is no the decoder, then the decoder is obtained from network side, and be added in the playing program;
First video is played by the playing program.
4. the method according to claim 1, wherein described play first view by the playing program Frequently, comprising:
If the playing program is currently playing the second video, suspend second video, and record pause progress position;
First video is played in the playing program;
The method also includes:
When receiving the video playing request of corresponding second video, in the playing program, from the pause progress Position starts, and plays second video.
5. the method according to claim 1, wherein described play first view by the playing program Frequently, comprising:
The corresponding relationship of video type and play mode according to the pre-stored data determines that the video type of first video is corresponding The first play mode;
In the playing program, first video is played using first play mode.
6. the method according to claim 1, wherein the method also includes:
When all application programs for carrying out video playing by the playing program are all closed, the playing program is closed, and Terminate the process where the playing program.
7. a kind of device of video playing, which is characterized in that described device includes:
Receiving module, for receiving the video playing request of corresponding first video in destination application;
Detection module, it is described to occupy alone for detecting whether preset playing program runs in the process that it is occupied alone Process operation have the playing program, and not running other applications;
Processing module is used to otherwise newly establish process if it is, passing through the playing program and playing first video, Start the playing program in the newly-established process, first video is played by the playing program;
Wherein, the processing module, for by way of inter-process calling, calling the playing program to play first view Frequently, the playing program runs on the process occupied alone, or, running on the newly-established process.
8. device according to claim 7, which is characterized in that the detection module is used for:
In the process title of currently-established process, the corresponding process title of the playing program is inquired;
If inquiring the corresponding process title of the playing program, the process that the playing program occupies alone at it is determined Middle operation;If not inquiring the corresponding process title of the playing program, determine the playing program not its alone It is run in the process of occupancy.
9. device according to claim 7, which is characterized in that the processing module is used for:
It detects in the playing program with the presence or absence of decoder corresponding with the coded format of first video;
If there is no the decoder, then the decoder is obtained from network side, and be added in the playing program;
First video is played by the playing program.
10. device according to claim 7, which is characterized in that the processing module is used for:
If the playing program is currently playing the second video, suspend second video, and record pause progress position;
First video is played in the playing program;
The processing module is also used to:
When receiving the video playing request of corresponding second video, in the playing program, from the pause progress Position starts, and plays second video.
11. device according to claim 7, which is characterized in that the processing module is used for:
The corresponding relationship of video type and play mode according to the pre-stored data determines that the video type of first video is corresponding The first play mode;
In the playing program, first video is played using first play mode.
12. device according to claim 7, which is characterized in that the processing module is also used to:
When all application programs for carrying out video playing by the playing program are all closed, the playing program is closed, and Terminate the process where the playing program.
13. a kind of non-transitorycomputer readable storage medium, which is characterized in that the non-transitory computer-readable storage medium Instruction in matter is executed by the processor of mobile terminal, the method to realize any video playing of claim 1 to 6.
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 CN105282628A (en) 2016-01-27
CN105282628B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488282B (en) * 2016-11-23 2020-06-16 腾讯科技(北京)有限公司 Multimedia information output control method and mobile terminal
CN107450874B (en) * 2017-07-24 2021-04-20 宇龙计算机通信科技(深圳)有限公司 Multimedia data double-screen playing method and system
CN111031357A (en) * 2019-11-28 2020-04-17 晶晨半导体(深圳)有限公司 Play 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

Also Published As

Publication number Publication date
CN105282628A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN106101736B (en) A kind of methods of exhibiting and system of virtual present
CN106331826B (en) A kind of methods, devices and systems of setting live streaming template and video mode
CN104978176B (en) Application programming interfaces call method, device and computer readable storage medium
CN104618217B (en) Share method, terminal, server and the system of resource
WO2016150270A1 (en) Method and apparatus for processing group session message
CN104683456B (en) Method for processing business, server and terminal
CN104142868B (en) Establish the method and device of connection
TWI520043B (en) Method, device and moving terminal for examining messages
CN106791955B (en) A kind of method and system of determining live streaming duration
CN105471704B (en) A kind of method, apparatus and system for realizing more people's calls
CN106254910B (en) Method and device for recording image
CN107333162B (en) Method and device for playing live video
CN106371964B (en) Method and device for prompting message
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN104965722B (en) A kind of method and device of display information
CN105491135B (en) Establish the method and device of data connection
WO2018120905A1 (en) Message reminding method for terminal, and terminal
WO2018040813A1 (en) Audio/video communication method, terminal, server, and storage medium
CN106303605B (en) A kind of methods, devices and systems to send a notification message
CN106775262A (en) A kind of method and system of mark display management of not interpreting blueprints
CN104093053A (en) Video file playing method, devices and system
CN106791916B (en) Method, device and system for recommending audio data
CN104917905B (en) Processing method, terminal and the server of Stranger Calls
CN107396193B (en) The method and apparatus of video playing

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