CN104837020A - Video playing method and device - Google Patents
Video playing method and device Download PDFInfo
- Publication number
- CN104837020A CN104837020A CN201410360066.1A CN201410360066A CN104837020A CN 104837020 A CN104837020 A CN 104837020A CN 201410360066 A CN201410360066 A CN 201410360066A CN 104837020 A CN104837020 A CN 104837020A
- Authority
- CN
- China
- Prior art keywords
- video
- decode
- locality
- broadcasting
- mode
- 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
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a video playing method and a device, and belongs to the technical field of a computer. The method comprises receiving a playing instruction for a target video, detecting whether a video player which performs decoding using hardware right now exists at the local, and performing video decoding playing on the target video using a software decoding mode if the video player which performs the decoding using the hardware right now exists at the local. Through adoption of the method and the device, using flexibility of the video player can be improved.
Description
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus of displaying video.
Background technology
Along with the development of terminal technology, the application program in mobile terminal (as mobile phone, panel computer etc.) is more and more abundanter.Video player is one of application program of often using of user, and user can watch Internet video or the local video etc. stored by video player.
In mobile terminal, multiple video player can be installed, system plays device and nonsystematic player can be comprised, system plays device and nonsystematic player generally can by the mode of hardware decode (as passed through GPU (Graphic Processing Unit, graphic process unit)) video is decoded, there is certain defect in the mode due to hardware decode, such as do not support to decode etc. to the video file of some form, in order to make up above-mentioned defect, a lot of nonsystematic players are also provided with the mode of software decode.In the process using video player viewing video, system plays device or nonsystematic player plays video can be used according to the actual requirements.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Usually, the mode of software decode can take more CPU (Central Processing Unit, central processing unit) resource, therefore, nonsystematic player also preferentially can use hardware decode, only when the mode of hardware decode cannot decode (as GPU does not support to decode to the video file of some form) to video, the mode that just can automatically switch to software decode is decoded to video, because the hardware decoder in mobile terminal cannot be multiplexing, therefore, be merely able to use system plays device or a nonsystematic player to carry out decoding to video play, if user uses multiple video player to open different videos respectively simultaneously, then multiple video cannot be play simultaneously, thus, cause the use flexibility of video player poor.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and apparatus of displaying video.Described technical scheme is as follows:
First aspect, provides a kind of method of displaying video, and described method comprises:
Receive the play instruction to target video;
Whether detection this locality exists video player uses hardware decode;
If this locality exists video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to described target video.
Second aspect, provides a kind of device of displaying video, and described device comprises:
Receiver module, for receiving the play instruction to target video;
Whether detection module, exist video player use hardware decode for detecting this locality;
Playing module, if there is video player for this locality use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to described target video.
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, receive the play instruction to target video, whether detection this locality exists video player uses hardware decode, if there is video player in this locality uses hardware decode, the mode of software decode is then used to carry out video decode broadcasting to target video, like this, can by detecting just at the decoding process of the video player of displaying video, to determine adopt which kind of decoding process to carry out video decode broadcasting to target video, multiple video player displaying video respectively can be used like this, thus, the use flexibility of video player can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of displaying video that the embodiment of the present invention provides;
Fig. 2 be the embodiment of the present invention provide a kind of displaying video time interface display schematic diagram;
Fig. 3 is the apparatus structure schematic diagram of a kind of displaying video that the embodiment of the present invention provides;
Fig. 4 is the apparatus structure schematic 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 displaying video, as shown in Figure 1, the handling process of the method can comprise following step:
Step 101, receives the play instruction to target video.
Step 102, whether detection this locality exists video player uses hardware decode.
Step 103, if this locality exists video player use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to target video.
In the embodiment of the present invention, receive the play instruction to target video, whether detection this locality exists video player uses hardware decode, if there is video player in this locality uses hardware decode, the mode of software decode is then used to carry out video decode broadcasting to target video, like this, can by detecting just at the decoding process of the video player of displaying video, to determine adopt which kind of decoding process to carry out video decode broadcasting to target video, multiple video player displaying video respectively can be used like this, thus, the use flexibility of video player can be improved.
Embodiment two
Embodiments provide a kind of method of displaying video, the executive agent of the method can be terminal.Wherein, terminal can be mobile terminal, as mobile phone, panel computer etc.
Below in conjunction with embodiment, be described in detail the handling process shown in Fig. 1, content can be as follows:
Step 101, receives the play instruction to target video.
Wherein, target video can be any video that user selects to play.
In force, terminal can be provided with multiple video player, system plays device and nonsystematic player can be comprised, one can be installed in the terminal for integrating and call the application program of each video player, this application program can provide display interface and some function buttons of video image, such as " file " button, " set " button etc., this application program can by the system plays device installed in corresponding interface interchange terminal or nonsystematic player.Before displaying video, user can be arranged the type of the video player of this application call (i.e. system plays device, nonsystematic player), the video player also needs can being selected to call by certain selection mechanism by above-mentioned application program.When user needs to watch certain video (i.e. target video), above-mentioned application program can be started, if target video is the video stored in terminal, then user can click the open button that above-mentioned application program provides, terminal demonstration searches prompting frame, find the icon of target video in terminal by searching prompting frame user and click this icon with selected target video, when user clicks confirming button, above-mentioned application program receives play instruction, if target video is Internet video, list of videos can be provided with in above-mentioned application program, for user provides Internet video, such user can select an Internet video (i.e. target video) of wanting to watch in list of videos, the icon of target video can be clicked, now above-mentioned application program receives play instruction.
Step 102, whether detection this locality exists video player uses hardware decode.
Wherein, the decoding process of video player can comprise software decode and hardware decode, software decode is a kind of decoding process of being decoded to video by CPU software program for execution, and hardware decode is a kind of decoding process of being decoded to video by the hardware decoder in GPU.
In force, when receiving play instruction, above-mentioned application program can travel through current just at each video player of displaying video, detects the decoding process that each video player displaying video uses, and judges the video player that wherein whether there is the mode decoded video using hardware decode.
Alternatively, because system plays device can only use the mode of hardware decode to decode to video, in order to simplify processes process, preferentially can judge that whether system plays device is just at displaying video, accordingly, the processing mode of above-mentioned steps 102 can be as follows:
Step one, whether detection system player carries out video decode broadcasting.
In force, playlist can be set in above-mentioned application program, for recording just at the video player of displaying video, when video player plays certain video, above-mentioned application program can play mark for it distributes one in the play list, wherein, an exclusive broadcasting mark can be distributed for system plays device.After receiving play instruction, above-mentioned application program can be searched in the play list, judge in playlist, whether to there is the first broadcasting mark corresponding to system plays device, if have first in playlist to play mark, then certainty annuity player carries out video decode broadcasting, otherwise, can not carry out video decode broadcasting by certainty annuity player.
Step 2, if system plays device carries out video decode broadcasting, then determines that this locality exists video player and uses hardware decode; If system plays device does not carry out video decode broadcasting, and there is hardware decode interface just at invoked video player in this locality, then determine that this locality exists video player and uses hardware decode; If system plays device does not carry out video decode broadcasting, and there is not hardware decode interface just at invoked video player in this locality, then determine that this locality does not exist video player and uses hardware decode.
In force, there is different testing results in above-mentioned steps one, namely system plays device is carrying out video decode broadcasting or system plays device does not carry out video decode broadcasting, different processing modes can be had for different testing results, wherein: if system plays device carries out video decode broadcasting, then can determine to there is the video player using the mode of hardware decode to decode to video.
If system plays device does not carry out video decode broadcasting, can also further by judging that whether hardware decode interface is just in invoked mode, judge whether to there is the video player using the mode of hardware decode to decode to video, this process is specifically as follows: for nonsystematic player, technical staff can arrange hardware decode interface and software decode interface for it, and the hardware decode interface that above-mentioned application program can call nonsystematic player carries out hardware decode to video.If system plays device is current do not have displaying video, then whether above-mentioned application program detects successively and is just called at the hardware decode interface of each video player of displaying video, if there is hardware decode interface just at invoked video player, then determine that there is video player is using the mode of hardware decode to carry out decoding broadcasting to video, otherwise can determine that there is not video player is using the mode of hardware decode to carry out decoding broadcasting to video.
Step 103, if this locality exists video player use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to target video.
In force, because the hardware decoder of GPU in terminal can not be multiplexing, if determine to exist the video player using the mode of hardware decode to decode to video by the testing process of above-mentioned steps 102, then the video player that above-mentioned application program can be called uses the mode of software decode to carry out decoding to video and plays.The while of multiple video player, the interface display effect of displaying video can see Fig. 2.
Alternatively, above-mentioned application program can be suitable for the video player playing target video by Automatically invoked, carry out decoding to target video to play, accordingly, the processing procedure of above-mentioned steps 103 can comprise: if this locality exists video player use hardware decode, then call the video player of support software decoding, use the mode of software decode to carry out video decode broadcasting to target video.
In force, when determining to exist the video player just using the mode of hardware decode to decode to video, above-mentioned application program can select a video player arbitrarily in the video player of support software decoding, call this video player, use the mode of software decode to carry out decoding to target video and play.
Alternatively, the Image Rendering mode used when user can arrange displaying video by above-mentioned application program, processing mode can be: above-mentioned application program receive corresponding target image draw mode instruction is set, to target image draw mode carry out record.Accordingly, the processing procedure of above-mentioned steps 103 can comprise following content: if this locality exists video player use hardware decode, then draw mode according to target image, uses the mode of software decode to carry out video decode broadcasting to target video.
Wherein, Image Rendering mode is in the process of displaying video, carries out Image Rendering to obtain the mode of image to be displayed to each picture frame obtained after decoding.
In force, multiple Image Rendering mode can be provided with in above-mentioned application program, the primary Image Rendering of such as system, common BitMap Image Rendering, to draw based on the OpenGL (Open GraphicsLibrary, open graphic package interface) of hardware decode, based on the Native tomographic image drafting etc. of hardware decode.User comprising the list of above-mentioned multiple Image Rendering mode of providing can select a kind of Image Rendering mode (namely target image draws mode) from above-mentioned application program, as the Image Rendering mode used during displaying video, now, above-mentioned application program receives and arranges instruction, the Image Rendering mode of the video player of correspondence can be set to target image and draw mode.When playing target video, after decoding to each picture frame of target video, the target image of setting mode of drawing can be used to draw decoded picture frame and show.
Alternatively, target video is being carried out in the process of video decode broadcasting, if detect that this locality does not exist video player and uses hardware decode, then using the mode of hardware decode to continue to carry out video decode broadcasting to target video.
In force, target video is being carried out in the process of video decode broadcasting, periodically can detect the video player whether existing and use the mode of hardware decode to decode to video, if the video player not using the mode of hardware decode to decode to video detected in terminal in certain cycle, then the decoding process of the video player playing target video can be switched to hardware decode by software decode by above-mentioned application program, like this, this video player is play using the mode of hardware decode to continue to carry out decoding to target video.
Alternatively, for the testing result of step 102, if there is no video player is using the mode of hardware decode to carry out video decode broadcasting, then can carry out decoding to target video in the following manner and play, specifically can comprise following two kinds of modes:
Mode one, if this locality does not exist video player use hardware decode, then uses the mode of hardware decode to carry out video decode broadcasting to target video.
In force, the video player of decoding to video owing to not using the mode of hardware decode in terminal, in order to alleviate the burden of CPU in terminal, can use the mode of hardware decode to carry out decoding to target video and playing.
Mode two, if this locality does not exist video player use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to target video.
In force, if the file format of target video is not GPU, video is decoded supported file format, then the mode of software decode can be used to carry out decoding to target video and play.
In the embodiment of the present invention, receive the play instruction to target video, whether detection this locality exists video player uses hardware decode, if there is video player in this locality uses hardware decode, the mode of software decode is then used to carry out video decode broadcasting to target video, like this, can by detecting just at the decoding process of the video player of displaying video, to determine adopt which kind of decoding process to carry out video decode broadcasting to target video, multiple video player displaying video respectively can be used like this, thus, the use flexibility of video player can be improved.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device of displaying video, and as shown in Figure 3, this device comprises:
Receiver module 310, for receiving the play instruction to target video;
Whether detection module 320, exist video player use hardware decode for detecting this locality;
Playing module 330, if there is video player for this locality use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to target video.
Alternatively, detection module 320, for:
Whether detection system player carries out video decode broadcasting;
If system plays device carries out video decode broadcasting, then determine that this locality exists video player and uses hardware decode;
If system plays device does not carry out video decode broadcasting, and there is hardware decode interface just at invoked video player in this locality, then determine that this locality exists video player and uses hardware decode;
If system plays device does not carry out video decode broadcasting, and there is not hardware decode interface just at invoked video player in this locality, then determine that this locality does not exist video player and uses hardware decode.
Alternatively, this device also comprises: logging modle, for receive corresponding target image draw mode instruction is set, to target image draw mode carry out record;
Playing module 330, for:
If this locality exists video player use hardware decode, then draw mode according to target image, use the mode of software decode to carry out video decode broadcasting to target video.
Alternatively, playing module 330, for:
If this locality exists video player use hardware decode, then call the video player of support software decoding, use the mode of software decode to carry out video decode broadcasting to target video.
Alternatively, playing module 330 also for:
Target video is being carried out in the process of video decode broadcasting, if detect that this locality does not exist video player and uses hardware decode, is then using the mode of hardware decode to continue to carry out video decode broadcasting to target video.
Alternatively, playing module 330 also for:
If this locality does not exist video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to target video; Or,
If this locality does not exist video player use hardware decode, then the mode of hardware decode is used to carry out video decode broadcasting to target video.
In the embodiment of the present invention, receive the play instruction to target video, whether detection this locality exists video player uses hardware decode, if there is video player in this locality uses hardware decode, the mode of software decode is then used to carry out video decode broadcasting to target video, like this, can by detecting just at the decoding process of the video player of displaying video, to determine adopt which kind of decoding process to carry out video decode broadcasting to target video, multiple video player displaying video respectively can be used like this, thus, the use flexibility of video player can be improved.
It should be noted that: the device of the displaying video that above-described embodiment provides is when displaying video, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the device of the displaying video that above-described embodiment provides and the embodiment of the method for displaying video belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment four
Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides.With reference to Fig. 4, this terminal may be used for the method implementing the displaying video provided in above-described embodiment.Specifically:
Terminal 1200 can comprise following one or more assembly: processing components 1202, memory 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor cluster 1214, and communications component 1216.
The integrated operation of the usual control terminal 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing unit 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Memory 1204 is configured to store various types of data to be supported in the operation of terminal 1200.The example of these data comprises for any application program of operation in terminal 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1206 is terminal 1200 provide electric power.Electric power assembly 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between described terminal 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when terminal 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loud speaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1214 comprises one or more transducer, for providing the state estimation of various aspects for terminal 1200.Such as, sensor cluster 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as described assembly is display and the keypad of terminal 1200, the position of all right sense terminals 1200 of sensor cluster 1214 or terminal 1200 assemblies changes, the presence or absence that user contacts with terminal 1200, the variations in temperature of terminal 1200 orientation or acceleration/deceleration and terminal 1200.Sensor cluster 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between terminal 1200 and other equipment.Terminal 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1204 of instruction, above-mentioned instruction can perform said method by the processor 1220 of terminal 1200.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make mobile terminal can perform a kind of method of displaying video, described method comprises:
Receive the play instruction to target video;
Whether detection this locality exists video player uses hardware decode;
If this locality exists video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to target video.
Alternatively, whether detection this locality exists video player uses hardware decode, comprising:
Whether detection system player carries out video decode broadcasting;
If system plays device carries out video decode broadcasting, then determine that this locality exists video player and uses hardware decode;
If system plays device does not carry out video decode broadcasting, and there is hardware decode interface just at invoked video player in this locality, then determine that this locality exists video player and uses hardware decode;
If system plays device does not carry out video decode broadcasting, and there is not hardware decode interface just at invoked video player in this locality, then determine that this locality does not exist video player and uses hardware decode.
Alternatively, the method also comprises: what receive corresponding target image drafting mode arranges instruction, carries out record to target image mode of drawing;
If this locality exists video player use hardware decode, then use the mode of software decode to carry out video decode broadcasting to target video, comprising:
If this locality exists video player use hardware decode, then draw mode according to target image, use the mode of software decode to carry out video decode broadcasting to target video.
Alternatively, if this locality exists video player use hardware decode, then use the mode of software decode to carry out video decode broadcasting to target video, comprising:
If this locality exists video player use hardware decode, then call the video player of support software decoding, use the mode of software decode to carry out video decode broadcasting to target video.
Alternatively, the method also comprises:
Target video is being carried out in the process of video decode broadcasting, if detect that this locality does not exist video player and uses hardware decode, is then using the mode of hardware decode to continue to carry out video decode broadcasting to target video.
Alternatively, the method also comprises:
If this locality does not exist video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to target video; Or,
If this locality does not exist video player use hardware decode, then the mode of hardware decode is used to carry out video decode broadcasting to target video.
In the embodiment of the present invention, receive the play instruction to target video, whether detection this locality exists video player uses hardware decode, if there is video player in this locality uses hardware decode, the mode of software decode is then used to carry out video decode broadcasting to target video, like this, can by detecting just at the decoding process of the video player of displaying video, to determine adopt which kind of decoding process to carry out video decode broadcasting to target video, multiple video player displaying video respectively can be used like this, thus, the use flexibility of video player can be improved.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. a method for displaying video, is characterized in that, described method comprises:
Receive the play instruction to target video;
Whether detection this locality exists video player uses hardware decode;
If this locality exists video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to described target video.
2. method according to claim 1, is characterized in that, whether described detection this locality exists video player uses hardware decode, comprising:
Whether detection system player carries out video decode broadcasting;
If described system plays device carries out video decode broadcasting, then determine that this locality exists video player and uses hardware decode;
If described system plays device does not carry out video decode broadcasting, and there is hardware decode interface just at invoked video player in this locality, then determine that this locality exists video player and uses hardware decode;
If described system plays device does not carry out video decode broadcasting, and there is not hardware decode interface just at invoked video player in this locality, then determine that this locality does not exist video player and uses hardware decode.
3. method according to claim 1, is characterized in that, described method also comprises: what receive corresponding target image drafting mode arranges instruction, carries out record to described target image mode of drawing;
If described this locality exists video player use hardware decode, then use the mode of software decode to carry out video decode broadcasting to described target video, comprising:
If this locality exists video player use hardware decode, then draw mode according to described target image, use the mode of software decode to carry out video decode broadcasting to described target video.
4. method according to claim 1, is characterized in that, if described this locality exists video player use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to described target video, comprising:
If this locality exists video player use hardware decode, then call the video player of support software decoding, use the mode of software decode to carry out video decode broadcasting to described target video.
5. method according to claim 1, is characterized in that, described method also comprises:
Described target video is being carried out in the process of video decode broadcasting, if detect that this locality does not exist video player and uses hardware decode, is then using the mode of hardware decode to continue to carry out video decode broadcasting to described target video.
6. method according to claim 1, is characterized in that, described method also comprises:
If this locality does not exist video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to described target video; Or,
If this locality does not exist video player use hardware decode, then the mode of hardware decode is used to carry out video decode broadcasting to described target video.
7. a device for displaying video, is characterized in that, described device comprises:
Receiver module, for receiving the play instruction to target video;
Whether detection module, exist video player use hardware decode for detecting this locality;
Playing module, if there is video player for this locality use hardware decode, then uses the mode of software decode to carry out video decode broadcasting to described target video.
8. device according to claim 7, is characterized in that, described detection module, for:
Whether detection system player carries out video decode broadcasting;
If described system plays device carries out video decode broadcasting, then determine that this locality exists video player and uses hardware decode;
If described system plays device does not carry out video decode broadcasting, and there is hardware decode interface just at invoked video player in this locality, then determine that this locality exists video player and uses hardware decode;
If described system plays device does not carry out video decode broadcasting, and there is not hardware decode interface just at invoked video player in this locality, then determine that this locality does not exist video player and uses hardware decode.
9. device according to claim 7, is characterized in that, described device also comprises: logging modle, for receive corresponding target image draw mode instruction is set, record is carried out to described target image method for drafting;
Described playing module, for:
If this locality exists video player use hardware decode, then draw mode according to described target image, use the mode of software decode to carry out video decode broadcasting to described target video.
10. device according to claim 7, is characterized in that, described playing module, for:
If this locality exists video player use hardware decode, then call the video player of support software decoding, use the mode of software decode to carry out video decode broadcasting to described target video.
11. devices according to claim 7, is characterized in that, described playing module also for:
Described target video is being carried out in the process of video decode broadcasting, if detect that this locality does not exist video player and uses hardware decode, is then using the mode of hardware decode to continue to carry out video decode broadcasting to described target video.
12. devices according to claim 7, is characterized in that, described playing module also for:
If this locality does not exist video player use hardware decode, then the mode of software decode is used to carry out video decode broadcasting to described target video; Or,
If this locality does not exist video player use hardware decode, then the mode of hardware decode is used to carry out video decode broadcasting to described target video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410360066.1A CN104837020B (en) | 2014-07-25 | 2014-07-25 | The method and apparatus for playing video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410360066.1A CN104837020B (en) | 2014-07-25 | 2014-07-25 | The method and apparatus for playing video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104837020A true CN104837020A (en) | 2015-08-12 |
CN104837020B CN104837020B (en) | 2018-09-18 |
Family
ID=53814622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410360066.1A Active CN104837020B (en) | 2014-07-25 | 2014-07-25 | The method and apparatus for playing video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104837020B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109309879A (en) * | 2017-07-27 | 2019-02-05 | 飞狐信息技术(天津)有限公司 | A kind of coding/decoding method, device and equipment |
CN110636370A (en) * | 2018-06-25 | 2019-12-31 | 阿里巴巴集团控股有限公司 | Video processing method and device, electronic equipment and readable medium |
CN113490031A (en) * | 2021-06-28 | 2021-10-08 | 海信电子科技(深圳)有限公司 | Display device and multi-window video playing method |
CN116055715A (en) * | 2022-05-30 | 2023-05-02 | 荣耀终端有限公司 | Scheduling method of coder and decoder and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN102883218A (en) * | 2012-09-21 | 2013-01-16 | 北京君正集成电路股份有限公司 | Method and equipment for decoding multiple video files |
CN103177744A (en) * | 2011-12-21 | 2013-06-26 | 深圳市快播科技有限公司 | Low-power-consumption playing method and device for mobile equipment |
CN103339959A (en) * | 2011-01-19 | 2013-10-02 | 高通股份有限公司 | Dynamic video switching |
-
2014
- 2014-07-25 CN CN201410360066.1A patent/CN104837020B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103339959A (en) * | 2011-01-19 | 2013-10-02 | 高通股份有限公司 | Dynamic video switching |
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN103177744A (en) * | 2011-12-21 | 2013-06-26 | 深圳市快播科技有限公司 | Low-power-consumption playing method and device for mobile equipment |
CN102883218A (en) * | 2012-09-21 | 2013-01-16 | 北京君正集成电路股份有限公司 | Method and equipment for decoding multiple video files |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109309879A (en) * | 2017-07-27 | 2019-02-05 | 飞狐信息技术(天津)有限公司 | A kind of coding/decoding method, device and equipment |
CN110636370A (en) * | 2018-06-25 | 2019-12-31 | 阿里巴巴集团控股有限公司 | Video processing method and device, electronic equipment and readable medium |
CN110636370B (en) * | 2018-06-25 | 2022-02-01 | 斑马智行网络(香港)有限公司 | Video processing method and device, electronic equipment and readable medium |
CN113490031A (en) * | 2021-06-28 | 2021-10-08 | 海信电子科技(深圳)有限公司 | Display device and multi-window video playing method |
CN116055715A (en) * | 2022-05-30 | 2023-05-02 | 荣耀终端有限公司 | Scheduling method of coder and decoder and electronic equipment |
CN116055715B (en) * | 2022-05-30 | 2023-10-20 | 荣耀终端有限公司 | Scheduling method of coder and decoder and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104837020B (en) | 2018-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104469437A (en) | Advertisement pushing method and device | |
CN104540184A (en) | Equipment networking method and device | |
CN105244048A (en) | Audio play control method and apparatus | |
CN105095345A (en) | Method and device for prompting push message | |
CN105338399A (en) | Image acquisition method and device | |
CN104679599A (en) | Application program duplicating method and device | |
CN104318934A (en) | Method, terminal, wearable device and play device for closing multimedia file | |
CN105117033A (en) | Connection method and device of external equipment | |
CN104035979A (en) | Object recommendation method and related device | |
CN104616241A (en) | Video screen-shot method and device | |
CN104506443A (en) | Router setting interface display method and device | |
CN104020924A (en) | Label establishing method and device and terminal | |
CN104391711A (en) | Method and device for setting screen protection | |
CN105141986A (en) | Method and device for video processing and method and device for image recognition | |
CN103970576A (en) | Installation information displaying method, obtaining method and device | |
CN105242942A (en) | Application control method and apparatus | |
CN105487680A (en) | Terminal screen capture method and apparatus and terminal | |
CN105354017A (en) | Information processing method and apparatus | |
CN104378267A (en) | Hinting method and device of equipment connecting | |
CN104536787A (en) | Resource preloading method and device | |
CN104881304A (en) | Resource downloading method and device | |
CN104156151A (en) | Image display method and image display device | |
CN104837020A (en) | Video playing method and device | |
CN105468281A (en) | Setup interface display method and device | |
CN105163188A (en) | Video content processing method, device and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |