CN105578266B - Audio and video playing method and multimedia player - Google Patents

Audio and video playing method and multimedia player Download PDF

Info

Publication number
CN105578266B
CN105578266B CN201511017785.4A CN201511017785A CN105578266B CN 105578266 B CN105578266 B CN 105578266B CN 201511017785 A CN201511017785 A CN 201511017785A CN 105578266 B CN105578266 B CN 105578266B
Authority
CN
China
Prior art keywords
screen
demultiplexer
current state
audio
sent
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
CN201511017785.4A
Other languages
Chinese (zh)
Other versions
CN105578266A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201511017785.4A priority Critical patent/CN105578266B/en
Publication of CN105578266A publication Critical patent/CN105578266A/en
Application granted granted Critical
Publication of CN105578266B publication Critical patent/CN105578266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a kind of audio and video playing method and multimedia players, wherein the method includes:Screen detection module determines the current state of device screen according to setting rule;The screen current state acquisition request that demultiplexer is sent is received, the request is responded by the current state of the screen and is sent to the demultiplexer;When the current state of the screen is in off state, the demultiplexer is to operating system application background work permission, to carry out audio code stream decoding on backstage;The audio code stream of decomposition is only sent to audio decoder and is decoded by the demultiplexer, only to carry out audio broadcasting.The audio and video playing scheme provided through the invention, meets the individual demand of user, in the case where device screen is closed, only plays sound without playing video.

Description

Audio and video playing method and multimedia player
Technical field
The present invention relates to audio-video processing technology fields, more particularly to a kind of audio and video playing method and multimedia Device.
Background technique
Currently, user mainly by multimedia player come playing audio-video data to obtain the sense of hearing and visually dual sight Shadow experience.But when carrying out viewing, user has some special broadcasting demands often.
The first speical play demand is:User only wants to see video, is but not intended to hear sound, such as:There is electricity suddenly Words need to receive other sound, and there will be above-mentioned speical play demands by user at this time.Existing multimedia player one As be capable of providing mute function, user can pass through the mute function for opening multimedia player when there is above-mentioned specific demand Carry out shielded sound, when user needs to hear sound, multimedia player can be restored to normal by closing mute function In the case of, not only ornamental to video but also can hear sound to user.
Second of speical play demand be:User only wants to hear sound, is but not intended to see video, such as:User's reading, Song is listened when running or listens talk show.Especially if audio-video source is similar song, talk show or study course etc, that , user obtains information therein by sound enough.Therefore, user then only wants to hear sound, is but not intended to see view This speical play demand of frequency.
For second of speical play demand, existing multimedia player and this speical play that user can not be perceived Demand still will continue to play video and audio, but in this case, since user need to only hear that sound, the video of broadcasting are then Idle work, and will obviously to consume equipment largely electric for these idle works.In addition, when equipment is in battery saving mode, the screen of equipment Curtain is typically in closed state, and multimedia player can be suspended in the case where closing screen, this, which will lead to, to save Continue playing audio-video under power mode.
As it can be seen that existing multimedia player is unable to satisfy the individual demand of user, the case where device screen is closed Under, sound is only played without playing video.
Summary of the invention
The individual demand of user is unable to satisfy in view of above-mentioned existing audio-video scheme, the case where device screen is closed Under, the problem of sound is without playing video is only played, the present invention is proposed in order to provide one kind and overcomes the above problem or at least The audio and video playing method and multimedia player partly to solve the above problems.
According to one aspect of the present invention, a kind of audio and video playing method is provided, including:Screen detection module is according to setting Set pattern then determines the current state of device screen;The screen current state acquisition request that demultiplexer is sent is received, institute is responded It states request and the current state of the screen is sent to the demultiplexer;When the current state of the screen is in off state When, the demultiplexer is to operating system application background work permission, to carry out audio code stream decoding on backstage;The multichannel The audio code stream of decomposition is only sent to audio decoder and is decoded by decomposer, only to carry out audio broadcasting.
Preferably, the screen detection module includes according to the step of rule determines the current state of device screen is set: The callback information that the screen detection module is returned according to setting time interval snoop-operations system, wherein the callback information In carry the information for being used to indicate the current state of the screen;The screen detection module is determined according to the callback information The current state of the screen.
Preferably, the demultiplexer includes to the step of operating system application background work permission:The multichannel point Solve device to the power management module application of operating system wake up clock, with to operating system application in Background scheduling audio decoder Carry out audio code stream decoding.
Preferably, the method also includes:When the current state of the screen switchs to open, the demultiplexer is then The clock controlled by sound card is waken up, to operating system application foreground permission, to carry out video code flow and audio on foreground The decoding of code stream.
Preferably, after the application foreground permission to operating system the step of, the method also includes:It is described The video code flow is sent to the Video Decoder respectively and is decoded by demultiplexer, and the audio code stream is sent to The audio decoder is decoded.
According to another aspect of the invention, a kind of multimedia player is additionally provided, including:Screen detection module and more Road decomposer;Wherein, the screen detection module includes:Screen monitors submodule, for determining equipment screen according to setting rule The current state of curtain;Submodule is communicated, the screen current state acquisition request sent for receiving the demultiplexer, response The current state of the screen is simultaneously sent to the demultiplexer by the request;When the current state of the screen is to close When state, the demultiplexer is used for operating system application background work permission, to carry out audio code stream decoding on backstage; And the audio code stream of decomposition is only sent to audio decoder and is decoded, only to carry out audio broadcasting.
Preferably, when the screen monitors current state of the submodule according to the setting rule determining screen:It presses The callback information returned according to setting time interval snoop-operations system, wherein carried in the callback information and be used to indicate institute State the information of the current state of screen;And the current state of the screen is determined according to the callback information.
Preferably, the demultiplexer includes:Submodule is requested, is used for the demultiplexer to operating system application When background work permission, clock is waken up to the power management module application of operating system, to adjust to operating system application on backstage Audio code stream decoding is carried out with audio decoder.
Preferably, the demultiplexer further includes:Switching submodule switchs to out for the current state when the screen Qi Shi wakes up the clock that control by sound card, to operating system application foreground permission, in foreground progress video code flow and The decoding of audio code stream.
Preferably, the demultiplexer further includes:Judging submodule, in the switching submodule to operating system After applying for foreground permission, the video code flow is sent to the Video Decoder respectively and is decoded, by the sound Frequency code stream is sent to the audio decoder and is decoded.
Compared with prior art, the present invention has the following advantages that:
Audio and video playing scheme provided in an embodiment of the present invention passes through the current shape of screen detection module detection device screen State, and the current state of screen is sent to demultiplexer, judge the current state of screen for blank screen by demultiplexer Or bright screen.When the current state of screen is that blank screen, that is, screen is closed, demultiplexer is to operating system application background work Permission can be decoded audio code stream by audio decoder on backstage at this time, to realize under screen closed state only Play the purpose of sound.As it can be seen that audio and video playing scheme provided in an embodiment of the present invention, can satisfy the personalized of user is needed It asks, in the case where device screen is closed, only plays sound without playing video.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of the according to embodiments of the present invention one audio and video playing method provided;
Fig. 2 is a kind of step flow chart of the according to embodiments of the present invention two audio and video playing methods provided;
Fig. 3 is the architecture diagram for executing the multimedia player that audio-video method shown in embodiment two provides;
Fig. 4 is a kind of structural block diagram of according to embodiments of the present invention three multimedia players provided;
Fig. 5 is a kind of structural block diagram of according to embodiments of the present invention four multimedia players provided.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, a kind of step flow chart of audio and video playing method of the offer of the embodiment of the present invention one is provided.
The audio and video playing method of the embodiment of the present invention includes the following steps:
Step S102:Screen detection module determines the current state of device screen according to setting rule.
Screen detection module and demultiplexer are provided in the multimedia player of the embodiment of the present invention.Carrying out sound When video playing, screen detection module can determine the current state of device screen according to setting rule.
It should be noted that during specific implementation set rule can by those skilled in the art according to actual needs into Row setting, as long as guaranteeing that screen detection module can determine the current state of device screen.Such as:Screen detection module master Trend operating system sends a request for the callback information of operating system return, and device screen is then determined from callback information Current state;Again for example:Operating system actively sends callback information, screen to screen detection module according to setting time frequency Detection module, which passes through the callback information received, can determine the current state of device screen and saves the current state of screen.
Step S104:The screen current state acquisition request that demultiplexer is sent is received, responds the request for screen Current state is sent to demultiplexer.
Demultiplexer sends screen current state acquisition request to screen detection module according to setpoint frequency, to obtain screen The current state of curtain.Screen detection module is back to demultiplexer upon receiving a request, by the current state of screen.
Step S106:When the current state of screen is to close, demultiplexer is weighed to operating system application background work Limit, to carry out audio code stream decoding on backstage.
Demultiplexer judges that screen is currently closing after the screen current state for receiving the return of screen detection module It (including blank screen) or opens and (is in bright screen state when screen opening).When the current state for determining screen is to close, in order to Guarantee can also continue to be decoded broadcasting sound to the audio code stream in audio-video, and therefore, it is necessary to operating system application backstage Work permission, carries out the decoding of audio code stream on backstage.When the current state for determining screen is to open, then pass through operating system The process flow of default is decoded audio-video, plays video while playing sound.
Step S108:The audio code stream of decomposition is only sent to audio decoder and is decoded by demultiplexer, with only into Row audio plays.
In the embodiment of the present invention, since demultiplexer can be determined that out that currently only need to play sound regards without playing Frequently, therefore, audio code stream is only sent to by demultiplexer after resolving into audio code stream and video code flow to audio, video data Audio decoder is decoded.
The audio and video playing method provided through the embodiment of the present invention, passes through working as screen detection module detection device screen Preceding state, and the current state of screen the current state of screen is sent to demultiplexer by demultiplexer judged to be black Screen or bright screen.When the current state of screen is that blank screen, that is, screen is closed, demultiplexer is to operating system application backstage work Make permission, audio code stream can be decoded by audio decoder on backstage at this time, to realize under screen closed state Only play the purpose of sound.As it can be seen that audio and video playing method provided in an embodiment of the present invention, can satisfy the personalized of user is needed It asks, in the case where device screen is closed, only plays sound without playing video.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of audio and video playing method provided by Embodiment 2 of the present invention is shown.
Multimedia player in the embodiment of the present invention includes screen detection module and demultiplexer, using the present invention The multimedia player of embodiment carries out specifically including following steps when audio and video playing:
Step S202:The callback information that screen detection module is returned according to setting time interval snoop-operations system.
Wherein, the information for being used to indicate the current state of device screen is carried in callback information.
The setting of time interval can be set according to actual needs by those skilled in the art, in the embodiment of the present invention This is not specifically limited.Such as:Time interval is arranged to 1 second, 2 seconds or 0.5 second etc..
Step S204:Screen detection module determines the current state of device screen according to callback information.
Since the information of the current state of indicating equipment screen can be carried in callback information, pass through callback information It can determine the current state of device screen.
For specifically using the current state of what information indicating equipment screen for bright screen, using what information indicating equipment The current state of screen is that blank screen can be then configured according to actual needs by those skilled in the art.Such as:With " 1 " indicator panel The current state of curtain is bright screen, and the current state with " 0 " instruction screen is blank screen.Screen detection module is determining device screen After current state information, which is stored.
Step S206:Screen detection module receives the screen current state acquisition request that demultiplexer is sent, and response should The current state of screen is sent to demultiplexer by request.
Demultiplexer is issued to screen detection module according to setting time interval and is requested, to obtain the current shape of screen State.The current state of the screen of storage can be then sent to demultiplexer after receiving acquisition request by screen detection module.
Step S208:When the current state of screen is in off state, power management of the demultiplexer to operating system Module application wakes up clock, to carry out audio code stream decoding in Background scheduling audio decoder to operating system application.
Demultiplexer can determine screen according to the information received after receiving the current state of screen to close also It is to open.When the current state of screen is that blank screen is closed, S208 is thened follow the steps, and when the current state of screen is bright screen When opening, then the playing flow of multimedia player default is executed, while playing audio and video.
If not applying waking up clock, operating system, which is defaulted, closes audio decoder and Video Decoder, in this way, by nothing Method continues audio decoder by audio decoder.Therefore, it needs application to wake up clock in this step, can operated after wake-up System background calls audio decoder to carry out audio code stream decoding.
Step S210:The audio code stream of decomposition is only sent to audio decoder and is decoded by demultiplexer, with only into Row audio plays.
Demultiplexer obtains audio-video code stream from network, and is broken down into audio code stream and video code flow, due to The current state of screen is blank screen so there is no need to play video in the embodiment of the present invention, therefore, is only sent the audio code stream of decomposition It is decoded to audio decoder.Audio decoder obtains audio data after decoding audio code stream, then, by what is obtained Audio data carries out sound broadcasting after being rendered.
Step S212:When the current state of screen switchs to open, demultiplexer then wakes up the clock controlled by sound card, To operating system application foreground permission, to carry out the decoding of video code flow and audio code stream on foreground.
Demultiplexer, still can be at set time intervals to screen detection module during playing audio-video Request is issued to obtain the last state of screen, when demultiplexer judges that the current state of screen changes, then needed Want the switching on applying operation system foreground, background work permission.When screen switchs to bright screen by blank screen, then need to apply operation system System switches to foreground permission by background work permission;When screen switchs to blank screen by bright screen, then applying operation system is needed Background work permission is switched to by foreground permission.
The explanation carried out so that screen switchs to bright screen by blank screen as an example in the embodiment of the present invention.When the current state of screen is bright Screen is that screen state is then to need to carry out the decoding operate of audio code stream and video code flow on operating system foreground when opening, At this point, then needing operating system background work permission switching to foreground permission.When carrying out permission switching, demultiplexer The clock controlled by sound card is then waken up, to operating system application foreground permission.
Step S214:Video code flow is sent to Video Decoder respectively and is decoded by demultiplexer, by audio code stream Audio decoder is sent to be decoded.
After the success of operating system application foreground permission, demultiplexer can will obtain audio-video code stream from network Audio code stream and video code flow are resolved into, audio code stream is sent to audio decoder and is decoded, then by decoded number According to being rendered, sound broadcasting is carried out.Meanwhile video code flow is sent to Video Decoder and is decoded, after then decoding Data rendered, carry out video playing, to realize the homologous broadcasting of sound, video.
It should be noted that if the current state of screen does not change, i.e., always under black state, that is, closed state Audio and video playing is carried out, then without executing step S212 and step S214.
The audio and video playing method provided through the embodiment of the present invention, except with audio and video playing shown in embodiment one Outside beneficial effect possessed by method, can also when the current state for detecting device screen changes, adaptively into The switching on row operating system foreground, background work permission is played with realizing according to the current state of screen come the adjustment of adaptability The purpose of strategy, is able to ascend the usage experience of user.
Referring to Fig. 3, audio and video playing method provided in an embodiment of the present invention is illustrated with a specific example.
Fig. 3 shows the architecture diagram of multimedia player, as shown in figure 3, the multimedia player in this specific example exists Screen detection module is introduced on the basis of existing player framework.Shield when screen detection module discovery screen has been switched off When curtain blank screen, the wake-up clock of demultiplexer then application system guarantees that the decoding of audio can also be in the backstage work of operating system Make.Conversely, multimedia player is then according to original path work when screen detection module discovery screen opening, that is, screen bright screen Make, carry out audio/video decoding work on the foreground of operating system, to guarantee while play sound and video.
As shown in figure 3, the multimedia player of this specific example mainly includes:Screen detection module and demultiplexer.
Screen detection module mainly exists in the form of background service, and screen detection module mainly includes two function moulds Block:Screen monitors module and communication module, and wherein screen monitors module for monitoring the screen state thing from operating system Part, such as:The callback information that operating system is sent, current state and the preservation of device screen are determined by callback information;Communicate mould Block is mainly responsible for the status request that parsing is sent from demultiplexer, and respond more for being communicated with demultiplexer The current state of screen is sent to demultiplexer by the status request of road decomposer.
Demultiplexer is also to exist in the form of background service.It is mainly triggered by the clock of the sound card of equipment, then Audio-video code stream, that is, data source is obtained from network, and decomposes audio code stream and video code flow, is exported respectively to audio decoder And Video Decoder.
Increase a judgment module in demultiplexer in this specific example, is mainly used for working as according to the screen received Preceding state judges that screen is on or off, if it is judged that screen is turned off, then video code flow is stopped to export to video Decoder, and be only to export audio code stream to audio decoder, audio code stream is decoded by audio decoder, then will Decoded data carry out audio rendering, and the audio data after rendering is finally sent to sound card and carries out sound broadcasting.If screen Curtain is not turned off the bright screen of i.e. screen, then video code flow is exported to Video Decoder, is carried out by Video Decoder to video code flow Decoding, then by decoded data carry out Video Rendering, then by the video data after rendering send to video display into Row video playing.Audio code stream is exported to audio decoder simultaneously, audio code stream is decoded by audio decoder, then It carries out audio rendering by decoded data and the audio data after rendering is sent to sound card to carry out sound broadcasting.DeMux Device also adds a request module, for when judging that screen closes i.e. blank screen to operating system power management module application Clock is waken up, guarantees that the background service of operating system will not be stopped when screen is closed by system default, is being grasped with realizing Make the decoding that system background carries out audio code stream.
Multimedia player in this specific example can be under screen black state (i.e. special circumstances) and the bright screen shape of screen It is switched under state (i.e. normal condition), and the characteristic that can adapt to equipment automatically carries out audio-video according to the state of screen automatically Broadcasting scheme.I.e.:In the case where closing screen (i.e. screen blank screen), multimedia player can continue to play, and only play Sound.In the case where opening screen (i.e. the bright screen of screen), multimedia player can play sound and video.
Embodiment three
Referring to Fig. 4, the structural block diagram of the multimedia player of the offer of the embodiment of the present invention three is shown.
Multimedia player provided in an embodiment of the present invention includes:Screen detection module 402 and demultiplexer 404;Its In, the screen detection module 402 includes:Screen monitors submodule 4022, for determining device screen according to setting rule Current state;Submodule 4024 is communicated, for receiving the screen current state acquisition request of demultiplexer transmission, described in response It requests and the current state of the screen is sent to the demultiplexer;When the current state of screen is in off state, The demultiplexer 404 is used for operating system application background work permission, to carry out audio code stream decoding on backstage;And only The audio code stream of decomposition is sent to audio decoder to be decoded, only to carry out audio broadcasting.
The multimedia player provided through the embodiment of the present invention passes through the current of screen detection module detection device screen State, and the current state of screen is sent to demultiplexer and judges the current state of screen for closing by demultiplexer Or it opens.When the current state of screen is that blank screen, that is, screen is closed, demultiplexer is to operating system application background work Permission can be decoded audio code stream by audio decoder on backstage at this time, to realize under screen closed state only Play the purpose of sound.As it can be seen that multimedia player provided in an embodiment of the present invention, can satisfy the individual demand of user, In the case where device screen is closed, sound is only played without playing video.
Example IV
Referring to Fig. 5, a kind of structural block diagram of multimedia player of the offer of the embodiment of the present invention four is shown.
The multimedia player of the embodiment of the present invention is advanced optimizing to the multimedia player in embodiment three, excellent Multimedia player after change includes:Screen detection module 502 and demultiplexer 504;Wherein, the screen detection module 502 include:Screen monitors submodule 5022, for determining the current state of device screen according to setting rule;Communicate submodule 5024, for receiving the screen current state acquisition request of demultiplexer transmission, respond the request and by the screen Current state is sent to the demultiplexer;When the current state of screen is in off state, the demultiplexer 504 is used In to operating system application background work permission, to carry out audio code stream decoding on backstage;And only the audio code stream of decomposition is sent out It send to audio decoder and is decoded, only to carry out audio broadcasting.
Preferably, when the screen monitors current state of the submodule 5022 according to the setting rule determining screen:It presses The callback information returned according to setting time interval snoop-operations system, wherein carried in the callback information and be used to indicate institute State the information of the current state of screen;And the current state of the screen is determined according to the callback information.
Preferably, the demultiplexer 504 includes:Submodule 5042 is requested, is used for the demultiplexer to operation When system application background work permission, clock is waken up to the power management module application of operating system, with to operating system application Audio code stream decoding is carried out in Background scheduling audio decoder.
Preferably, the demultiplexer 504 further includes:Switching submodule 5044 turns for the current state when screen When to open, the clock controlled by sound card is waken up, to operating system application foreground permission, to carry out video code flow on foreground And the decoding of audio code stream.
Preferably, the demultiplexer 504 further includes:Judging submodule 5046, for the switching submodule to After operating system application foreground permission, video code flow is sent to Video Decoder respectively and is decoded, by audio code Stream is sent to audio decoder and is decoded.
The multimedia player of the embodiment of the present invention is for realizing audio and video playing side corresponding in previous embodiment one, two Method, and there is beneficial effect corresponding with embodiment of the method, details are not described herein.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Provided herein audio and video playing scheme not with any certain computer, virtual system or the intrinsic phase of other equipment It closes.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has present invention side Structure required by the system of case is obvious.In addition, the present invention is also not directed to any particular programming language.It should be bright It is white, it can use various programming languages and realize summary of the invention described herein, and retouched above to what language-specific was done State is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention:It is i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) are some in audio and video playing scheme according to an embodiment of the present invention to realize Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (8)

1. a kind of audio and video playing method, which is characterized in that including:
Screen detection module determines the current state of device screen according to setting rule;
The screen current state acquisition request that demultiplexer is sent is received, responds the request for the current state of the screen It is sent to the demultiplexer;
When the current state of the screen is in off state, the demultiplexer is weighed to operating system application background work Limit, to carry out audio code stream decoding on backstage;The audio code stream of decomposition is only sent to audio decoder by the demultiplexer It is decoded, only to carry out audio broadcasting;
The demultiplexer includes to the step of operating system application background work permission:
The demultiplexer to the power management module application of operating system wake up clock, with to operating system application backstage Audio decoder is called to carry out audio code stream decoding.
2. the method according to claim 1, wherein the screen detection module determines equipment according to setting rule The step of current state of screen includes:
The callback information that the screen detection module is returned according to setting time interval snoop-operations system, wherein the readjustment The information for being used to indicate the current state of the screen is carried in information;
The screen detection module determines the current state of the screen according to the callback information.
3. the method according to claim 1, wherein the method also includes:
When the current state of the screen switchs to open, the demultiplexer then wakes up the clock controlled by sound card, to behaviour Make system application foreground permission, to carry out the decoding of video code flow and audio code stream on foreground.
4. according to the method described in claim 3, it is characterized in that, in the step to operating system application foreground permission After rapid, the method also includes:
The video code flow is sent to Video Decoder respectively and is decoded by the demultiplexer, and the audio code stream is sent out It send to the audio decoder and is decoded.
5. a kind of multimedia player, which is characterized in that including:Screen detection module and demultiplexer;
Wherein, the screen detection module includes:
Screen monitors submodule, for determining the current state of device screen according to setting rule;
Submodule is communicated, the screen current state acquisition request sent for receiving the demultiplexer responds the request And the current state of the screen is sent to the demultiplexer;
When the current state of the screen is in off state, the demultiplexer is used for operating system application background work Permission, to carry out audio code stream decoding on backstage;And the audio code stream of decomposition is only sent to audio decoder and is decoded, with Only carry out audio broadcasting;
The demultiplexer includes:
Submodule is requested, when for the demultiplexer to operating system application background work permission, to the electricity of operating system Source control module application wakes up clock, to carry out audio code stream decoding in Background scheduling audio decoder to operating system application.
6. multimedia player according to claim 5, which is characterized in that the screen is monitored submodule and set according to described When set pattern then determines the current state of the screen:According to setting time interval snoop-operations system return callback information, In, the information for being used to indicate the current state of the screen is carried in the callback information;And it is true according to the callback information The current state of the fixed screen.
7. multimedia player according to claim 5, which is characterized in that the demultiplexer further includes:
Switching submodule, for the clock controlled by sound card being waken up, to operation when the current state of the screen switchs to open System application foreground permission, to carry out the decoding of video code flow and audio code stream on foreground.
8. multimedia player according to claim 7, which is characterized in that the demultiplexer further includes:
Judging submodule, in the switching submodule to after operating system application foreground permission, respectively will be described Video code flow is sent to Video Decoder and is decoded, and the audio code stream is sent to the audio decoder and is decoded.
CN201511017785.4A 2015-12-29 2015-12-29 Audio and video playing method and multimedia player Active CN105578266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017785.4A CN105578266B (en) 2015-12-29 2015-12-29 Audio and video playing method and multimedia player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017785.4A CN105578266B (en) 2015-12-29 2015-12-29 Audio and video playing method and multimedia player

Publications (2)

Publication Number Publication Date
CN105578266A CN105578266A (en) 2016-05-11
CN105578266B true CN105578266B (en) 2018-11-27

Family

ID=55887855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017785.4A Active CN105578266B (en) 2015-12-29 2015-12-29 Audio and video playing method and multimedia player

Country Status (1)

Country Link
CN (1) CN105578266B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872708A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of method and device of screen locking playing video file sound intermediate frequency
CN106792163B (en) * 2016-11-25 2021-10-29 上海乐欢软件有限公司 Method and device for detecting video playing state
CN106937167A (en) * 2017-02-25 2017-07-07 杭州领娱科技有限公司 A kind of background audio processing method and its mobile terminal
CN107147928A (en) * 2017-05-23 2017-09-08 努比亚技术有限公司 Play method, terminal and the computer-readable recording medium of video
CN107241648B (en) * 2017-06-26 2019-05-24 中广热点云科技有限公司 The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state
CN109845280A (en) * 2017-09-29 2019-06-04 腾讯科技(深圳)有限公司 Audio and video playing method and device based on Streaming Media
CN108566561B (en) * 2018-04-18 2022-01-28 腾讯科技(深圳)有限公司 Video playing method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860787A (en) * 2003-09-29 2006-11-08 手持娱乐公司 Method and apparatus for coding information
CN103024490A (en) * 2012-12-26 2013-04-03 北京奇艺世纪科技有限公司 Method and device supporting independent playing of audio and video
CN104020837A (en) * 2014-06-19 2014-09-03 珠海全志科技股份有限公司 Audio playing power management method and power management device
CN104735534A (en) * 2015-03-30 2015-06-24 广东长虹电子有限公司 System and method for playing multimedia music TV in energy-saving mode

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1026886A3 (en) * 1999-02-03 2002-01-09 Pace Micro Technology PLC Screen display
CN101072294B (en) * 2006-05-12 2010-06-09 深圳Tcl新技术有限公司 Standby mode low-power-consumption flow media automatic play device
CN201118780Y (en) * 2007-11-13 2008-09-17 青岛海信电器股份有限公司 Playing control circuit for video signal
US20120026079A1 (en) * 2010-07-27 2012-02-02 Apple Inc. Using a display abstraction to control a display
CN101984648A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Audio video file playing method and terminal thereof
CN102800341A (en) * 2012-07-02 2012-11-28 宇龙计算机通信科技(深圳)有限公司 Terminal and multimedia playing method thereof
CN104581320A (en) * 2013-10-16 2015-04-29 中兴通讯股份有限公司 Method, device and terminal for switching play modes
CN104598308B (en) * 2014-12-29 2017-10-03 广东欧珀移动通信有限公司 A kind of mode switch control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1860787A (en) * 2003-09-29 2006-11-08 手持娱乐公司 Method and apparatus for coding information
CN103024490A (en) * 2012-12-26 2013-04-03 北京奇艺世纪科技有限公司 Method and device supporting independent playing of audio and video
CN104020837A (en) * 2014-06-19 2014-09-03 珠海全志科技股份有限公司 Audio playing power management method and power management device
CN104735534A (en) * 2015-03-30 2015-06-24 广东长虹电子有限公司 System and method for playing multimedia music TV in energy-saving mode

Also Published As

Publication number Publication date
CN105578266A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN105578266B (en) Audio and video playing method and multimedia player
US9402124B2 (en) Method for controlling terminal device and the smart terminal device thereof
US10362433B2 (en) Electronic device and control method thereof
CN106375789B (en) Medium living broadcast method and apparatus
CN105100915B (en) A kind of method and television set switching audiovisual applications
US9529412B2 (en) System for reducing energy consumption of a device and a method therefor
CN104284236A (en) Method and device for controlling and playing multi-video resources on terminal
US20130166042A1 (en) Media content-based control of ambient environment
CN105430492A (en) Audio output control method and audio output control device
CN104793916A (en) Method and system for carrying out sound control over split screen terminal
CN104079542B (en) A kind of information processing method and device management server
CN107566609A (en) A kind of downloading task processing method, device, terminal and storage medium
CN108366299A (en) A kind of media playing method and device
CN105915993A (en) Method and device for setting video playing mode by using parasitic toolkit
CN105577947A (en) Control method and electronic equipment
CN104780421A (en) Multi-channel data caching method and device
CN102625187A (en) Standby method for digital television all-in-one machine
CN104661144A (en) Function-extensible modular loudspeaker
CN103503430B (en) Play control system and method
CN104219243A (en) Method and device for managing client function
CN109547858A (en) TV set control method and device
CN106658138A (en) Intelligent television, and signal source switching method and device thereof
CN103686416A (en) Processing method and device for 3D (Dimensional) setting information in intelligent television
CN103546842A (en) Sound play control system
WO2017002995A1 (en) Scenario-based power consumption control method in electronic device

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