CN104281249B - A kind of state switching method and electronic equipment of multimedia file - Google Patents

A kind of state switching method and electronic equipment of multimedia file Download PDF

Info

Publication number
CN104281249B
CN104281249B CN201310292472.4A CN201310292472A CN104281249B CN 104281249 B CN104281249 B CN 104281249B CN 201310292472 A CN201310292472 A CN 201310292472A CN 104281249 B CN104281249 B CN 104281249B
Authority
CN
China
Prior art keywords
broadcast state
multimedia file
electronic equipment
state
control
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
CN201310292472.4A
Other languages
Chinese (zh)
Other versions
CN104281249A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310292472.4A priority Critical patent/CN104281249B/en
Publication of CN104281249A publication Critical patent/CN104281249A/en
Application granted granted Critical
Publication of CN104281249B publication Critical patent/CN104281249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Abstract

The invention discloses a kind of state switching method of multimedia file and electronic equipments, this method is applied to an electronic equipment, this method comprises: when the sound output valve for detecting electronic equipment is lower than a threshold value, whether the M multimedia file including at least audio-frequency information in detection electronic equipment is in broadcast state, obtain a testing result, wherein, M is the integer more than or equal to 1;When testing result, which shows, has N number of multimedia file to be in broadcast state in M multimedia file, N number of multimedia file is controlled from broadcast state and is switched to stopping broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M.In this way, can be improved memory source utilization rate, the electricity of electronic equipment is saved, extends the cruise duration of electronic equipment.

Description

A kind of state switching method and electronic equipment of multimedia file
Technical field
The present invention relates to the state switching methods and electronics of multimedia technology field more particularly to a kind of multimedia file to set It is standby.
Background technique
With the continuous development of science and technology, the function of electronic equipment is more and more perfect, and the type of electronic equipment is also more next More, people have also enjoyed the various conveniences of development in science and technology bring.Present people can by various types of electronic equipments, It enjoys as development in science and technology bring is comfortably lived.For example, the electronic equipments such as smart phone, laptop can be used in user It appreciates music, viewing film, and is used widely because of its intrinsic advantage easy to use, portable.
In the prior art, usually there is the multimedia file including at least audio-frequency information, such as music in electronic equipment File, video file, e-magazine file.The state of multimedia file can change according to practice.
Such as: user can open the music player for playing music in tablet computer, when user selects When the first music title of the music playlist in music player, music player is corresponding by load first music title First music file, after the parsing processing such as first music file so that first music file is switched by cancellation broadcast state Start to load next music file, as the second music text after the broadcasting of first music file terminates for broadcast state Part so that first music file is switched to cancellation broadcast state by broadcast state, and broadcasts the second music file by cancelling The state of putting is switched to broadcast state.During the second music file is in broadcast state, user passes through triggering music " pause " button in device is operated so that music player receives control operation based on the control, and a control operation is generated Corresponding control instruction, by executing control instruction, so that the second music file is switched to stopping broadcast state by broadcast state; The second music file be in stop broadcast state during, when user close music player when, the second music file by Stop broadcast state and is switched to cancellation broadcast state.
Present inventor during realizing the embodiment of the present application technical solution, at least hair exist in the prior art as Lower technical problem:
In the prior art, due to including at least the state of the multimedia file of audio-frequency information and the sound output of electronic equipment Whether equipment exports that sound is unrelated, so during the audio output device of electronic equipment does not have sound output, multimedia File is at broadcast state.During multimedia file is in broadcast state, if electronic equipment is in mute state Or the volume of electronic equipment is smaller, at this point, user can not uppick multimedia file the corresponding sound of audio-frequency information, more matchmakers It is nonsensical that body file, which is in broadcast state,.
Further, just because of when electronic equipment does not have sound output, at the multimedia file of audio-frequency information In broadcast state, at this point, processing, the multimedia file such as electronic equipment needs to load multimedia file, parsing will occupy interior Resource is deposited, prevent memory source causes the waste of memory source, electronic equipment is caused memory source benefit occur from discharging in time With the low technical problem of rate.
Further, due to the processing such as being loaded, being parsed to the media file in broadcast state in electronic equipment In the process, the energy for needing to consume electronic equipment causes the waste of electricity, shortens the cruise duration of electronic equipment.
To sum up, it exists in the prior art when the audio output device of electronic equipment does not have sound output, includes at least sound The multimedia file of frequency information is in broadcast state, so that the memory source utilization rate of electronic equipment is low, it is continuous to shorten electronic equipment The technical issues of ETS estimated time of sailing.
Summary of the invention
The embodiment of the present application provides the state switching method and electronic equipment of a kind of multimedia file, solves the prior art Present in when the audio output device of electronic equipment does not have sound output, at the multimedia file of audio-frequency information In broadcast state, so that the memory source utilization rate of electronic equipment is low, shortens the technical issues of electronic equipment cruise duration.
On the one hand the embodiment of the present application provides a kind of state switching method of multimedia file, set applied to an electronics It is standby, which comprises when the sound output valve for detecting the electronic equipment is lower than a threshold value, to detect the electronic equipment In the M multimedia file including at least audio-frequency information whether be in broadcast state, obtain a testing result, wherein M is big In the integer for being equal to 1;When the testing result shows that having N number of multimedia file to be in described in the M multimedia file broadcasts When putting state, control N number of multimedia file from the broadcast state and be switched to stopping broadcast state, wherein N be greater than etc. In 1 and be less than or equal to M integer.
Optionally, be switched in the control N number of multimedia file from the broadcast state stop broadcast state it Afterwards, the method also includes: obtain the first adjustment operation;It is operated based on the first adjustment, generates the first adjustment instruction;It executes The first adjustment instruction, controls the electronic equipment and carries out sound output, and control N number of multimedia file and stop from described Only broadcast state is switched to the broadcast state.
Optionally, control N number of multimedia file is switched to the broadcast state from the stopping broadcast state, It specifically includes: generating the first prompt information, first prompt information is stopped for characterizing N number of multimedia file in described Only broadcast state;Obtain the first control operation;Based on the first control operation, the first control instruction is generated;Execute described One control instruction is switched to the broadcast state to control N number of multimedia file from the stopping broadcast state.
Optionally, switched in the control N number of multimedia file from the broadcast state stop broadcast state it Afterwards, the method also includes: obtain second control operation;Based on the second control operation, the second control instruction is generated;It executes N number of multimedia file is switched to cancellation broadcast state from the stopping broadcast state by second control instruction.
Optionally, it is switched in the N number of multimedia file of control from the broadcast state after stopping broadcast state, institute State method further include: detecting sound output valve of the electronic equipment in a preset time range lower than the threshold value When, N number of multimedia file, which is controlled, from the stopping broadcast state switching to cancellation broadcast state.
The embodiment of the present application also provides a kind of electronic equipment, and the electronic equipment includes: first detection unit, for examining When measuring the sound output valve of the electronic equipment lower than a threshold value, detects in the electronic equipment and include at least audio-frequency information M multimedia file whether be in broadcast state, obtain a testing result, wherein M is the integer more than or equal to 1;First control Unit processed, for showing there is N number of multimedia file to be in the broadcasting shape in the M multimedia file when the testing result When state, N number of multimedia file is controlled from the broadcast state and is switched to stopping broadcast state, wherein N is more than or equal to 1 And it is less than or equal to the integer of M.
Optionally, the electronic equipment further include: first obtains unit, for obtaining the first adjustment operation;First generates Unit generates the first adjustment instruction for operating based on the first adjustment;First processing units, for executing described first Adjustment instruction controls the electronic equipment and carries out sound output, and controls N number of multimedia file and play shape from the stopping State is switched to the broadcast state.
The first processing units specifically include: first generate subelement, for generate the first prompt information, described first Prompt information is in the stopping broadcast state for characterizing N number of multimedia file;First obtains subelement, for obtaining First control operation;Second generates subelement, for generating the first control instruction based on the first control operation;At first Subelement is managed, for executing the first control instruction, is switched to controlling N number of multimedia file from the stopping broadcast state The broadcast state.
Optionally, the electronic equipment further include: the second obtaining unit, for obtaining the second control operation;Second generates Unit, for generating the second control instruction based on the second control operation;The second processing unit, for executing described second N number of multimedia file is switched to cancellation broadcast state from the stopping broadcast state by control instruction.
Optionally, the electronic equipment further include: the second control unit, for detecting that the electronic equipment is pre- one If the sound output valve in time range is lower than the threshold value, N number of multimedia file is controlled from the stopping and plays shape State switches to cancellation broadcast state.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
When the sound output valve for detecting electronic equipment is lower than a threshold value, detects in electronic equipment and include at least audio Whether M multimedia file of information is in broadcast state, obtains a testing result, wherein M is the integer more than or equal to 1;When When testing result shows to have N number of multimedia file to be in broadcast state in M multimedia file, control N number of multimedia file from Broadcast state is switched to stopping broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M, due in electronic equipment Sound output valve when being lower than the threshold value, the state of multimedia file can be controlled stopping is switched to by broadcast state and play shape State, at this point, electronic equipment to multimedia file without the processing such as being loaded, being parsed, can releasing memory resource, improve memory Resource utilization.
Further, just because of electronic equipment is not necessarily to load the multimedia file for being in stopping broadcast state, parse Deng processing, the electricity of electronic equipment can be saved, the cruise duration of electronic equipment is extended.
It further, both can be directly by multimedia file when the sound output valve of electronic equipment is lower than the threshold value State broadcast state is switched to by stopping broadcast state, can also according to user demand by the state of multimedia file by stopping Broadcast state is switched to broadcast state, so that the state of multimedia file is switched to the mode diversification of broadcast state, Neng Goukuo Big use scope.
Wherein, when the sound output valve of electronic equipment is higher than the threshold value, directly control the state of multimedia file from Stop broadcast state and be switched to broadcast state, the state switching flow of multimedia file can be simplified, improve multimedia file State switching efficiency.
Wherein, it when the sound output valve of electronic equipment lower than the threshold value by being switched to higher than threshold value, generates first and mentions Show information, first prompt information is in the stopping broadcast state for characterizing N number of multimedia file, so that user Whether the state that multimedia file can be controlled according to actual needs by stopping broadcast state being switched to broadcast state, can be avoided Under specific occasion under such as meeting occasion, when the sound output valve of electronic equipment is higher than the threshold value, multimedia file State is directly switched to the maloperation of broadcast state by stopping broadcast state, improves the state switching accuracy of multimedia file.
It further, can be according to user when detecting the sound output valve of the electronic equipment lower than the threshold value It needs the state of N number of multimedia file being switched to cancellation broadcast state from broadcast state is stopped, it can also automatically will be N number of The state of multimedia file is switched to cancellation broadcast state from broadcast state is stopped, so that the state of multimedia file is switched to and takes Disappear broadcast state mode diversification, use scope can be expanded.
Wherein, when the sound output valve of electronic equipment is lower than the threshold value, according to user demand directly by multimedia text The state of part is switched to cancellation broadcast state from the stopping broadcast state, can simplify the state switching stream of multimedia file Journey improves the state switching efficiency of multimedia file.
Wherein, when the sound output valve when electronic equipment in a preset time range is lower than the threshold value, the N is controlled A multimedia file switches to cancellation broadcast state from the stopping broadcast state, can automatically stop multimedia file from described Only broadcast state is switched to cancellation broadcast state, so that electronic equipment is more intelligent.
Detailed description of the invention
Fig. 1 is the flow chart of the state switching method of multimedia file in one embodiment of the application;
Fig. 2 is the architecture diagram of electronic equipment in one embodiment of the application.
Specific embodiment
The embodiment of the present application provides the state switching method and electronic equipment of a kind of multimedia file, solves the prior art Present in when the audio output device of electronic equipment does not have sound output, at the multimedia file of audio-frequency information In broadcast state, so that the memory source utilization rate of electronic equipment is low, shortens the technical issues of electronic equipment cruise duration.
The technical solution of one embodiment of the invention is to solve the problem above-mentioned, and general thought is as follows:
When the sound output valve for detecting electronic equipment is lower than a threshold value, detects in electronic equipment and include at least audio Whether M multimedia file of information is in broadcast state, obtains a testing result, wherein M is the integer more than or equal to 1;When When testing result shows to have N number of multimedia file to be in broadcast state in M multimedia file, control N number of multimedia file from Broadcast state is switched to stopping broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M, due in electronic equipment Sound output valve be in silent mode lower than threshold value such as electronic equipment during, the state of multimedia file can be controlled Stopping broadcast state being switched to by broadcast state, at this point, electronic equipment is not necessarily to be loaded, parsed etc. to multimedia file Reason, can releasing memory resource, improve memory source utilization rate.
Further, just because of electronic equipment is not necessarily to load the multimedia file for being in stopping broadcast state, parse Deng processing, the electricity of electronic equipment can be saved, the cruise duration of electronic equipment is extended.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
The present embodiment provides a kind of state switching methods of multimedia file, are applied to an electronic equipment.
In a particular application, electronic equipment can be electromechanical for smart phone, tablet computer, laptop, mp3 or one Brain etc., the application is with no restriction.
Fig. 1 is turned next to, the status method of multimedia file in the embodiment of the present application is described in detail.
Step 101: when the sound output valve for detecting electronic equipment is lower than a threshold value, detecting in electronic equipment at least Whether the M multimedia file comprising audio-frequency information is in broadcast state, obtains a testing result, wherein M is more than or equal to 1 Integer;
Step 102: when testing result, which shows, has N number of multimedia file to be in broadcast state in M multimedia file, control It makes N number of multimedia file and is switched to stopping broadcast state from broadcast state, wherein N is more than or equal to 1 and whole less than or equal to M Number.
The state of the multimedia file in the embodiment of the present application will be cut so that electronic equipment is laptop as an example below The method of changing is described.
It is stored with M multimedia file such as 5 music files including at least audio-frequency information in laptop, 5 It only include audio-frequency information in music file, this 5 music files are respectively first music file, the second music file, third sound Music file, the 4th music file and the 5th music file.
Certainly, in another embodiment of the application, multimedia file can for example be regarded with other kinds of multimedia file Frequency file, e-magazine, e-greeting card etc., the multimedia file of this type also include image information, text information etc., this Shen Please with no restriction.
Laptop has a music player for being used for playing music, which there is a music to broadcast Table is emplaced, as shown in the table, music playlist records the music title, musical designation and broadcasting of 5 music files respectively Duration.
Music title Musical designation Playing duration
1 First music 03:47
2 Second music 04:22
3 Third music 03:59
4 4th music 04:40
5 5th music 03:55
This 5 music files all have there are three types of state, these three states are respectively broadcast state, stop broadcast state and take Disappear broadcast state, and wherein broadcast state corresponds to the state of music player playing music, stops broadcast state and corresponds to Music player suspends the state of playing music, and cancellation broadcast state, which corresponds to music player, does not have playing music State.Since in the current situation, user does not open music player, music player does not have playing music, institute Default conditions, which are in, with 5 music files cancels broadcast state.
After user opens music player, music player shows that music arranges on the screen of laptop Table, user double-clicks the first music in playlist, so that music player loads and parses corresponding first sound of first music Music file.After carrying out relevant treatment to first music file, music player starts to play first music file, at this moment, First music file is switched to broadcast state by cancellation broadcast state.
When first music file is played to 00:40 progress, user needs to answer incoming call call, at this point, user does not wish Laptop is hoped to export sound, then user presses the shortcut key such as F1 for laptop to be adjusted to silent mode Key, laptop obtain a button operation, are based on button operation, generate the corresponding key command of button operation, notebook By executing key command, the audio output device such as loudspeaker for controlling laptop exports computer without sound.
Certainly, in another embodiment of the application, there can also be other modes that the sound of laptop is exported and set It is standby to be exported without sound, such as the volume value of laptop is adjusted to 0, the application is with no restriction.
At this moment, start to execute step 101: when the sound output valve for detecting electronic equipment is lower than a threshold value, detection electricity Whether the M multimedia file including at least audio-frequency information in sub- equipment is in broadcast state, obtains a testing result, In, M is the integer more than or equal to 1.Wherein, if electronic equipment never sound is output to highest sound output valve with numerical value 0- When 100 measurement, 0 can be set a threshold to, i.e. the voice output unit of electronic equipment does not have sound output.
Certainly, in practice, threshold value can also be configured according to actual use situation and for example set a threshold to 5, the application is with no restriction.
The application will cut the state of multimedia file so that the voice output unit of electronic equipment does not have sound output as an example The method of changing is illustrated, in the specific implementation process, such as: when the loudspeaker for detecting computer does not have sound output, detection Whether 5 music files in laptop are in broadcast state, obtain a testing result, wherein when in 5 music files When having N number of music file to be in broadcast state, which shows that N number of music file is in broadcast state, and N be greater than etc. In 1 and be less than or equal to 5 integer, when not having music file to be in broadcast state, which shows no music file In broadcast state.Since first music file is in broadcast state in laptop, so the testing result generated shows 1 A music file is in broadcast state.
Testing result can be obtained by step 101, next, starting to execute step 102: when testing result shows M When thering is N number of multimedia file to be in broadcast state in multimedia file, controls N number of multimedia file and be switched to from broadcast state and stopped Only broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M.
In the specific implementation process, such as: by step 101 generate testing result show there is 1 in 5 music files Music file is at broadcast state, controls first music file from broadcast state and is switched to stopping broadcast state.
It is different according to broadcast state is stopped, two kinds of situations can be divided into.The first situation, stopping broadcast state is not record The stopping broadcast state of playback progress, in the first scenario, laptop not recording played progress, when first music file State when reverting to broadcast state, first music file is played since the progress of 00:00.Second situation is recording played The stopping broadcast state of progress, in the latter case, laptop recording played progress, when the state of music file is restored When for broadcast state, first music file is played since the progress of 00:40, and embodiment below will be by taking second situation as an example It is illustrated.
In order to enable the state of multimedia file is switched to the mode diversification of broadcast state, use scope can be expanded, The embodiment of the present application can be divided into following two but be not limited to two kinds of scenes.
The first scene: in order to which multimedia can be simplified when the audio output device of electronic equipment carries out sound output The state switching flow of file improves multimedia state switching efficiency, the method in the embodiment of the present application step 102 it Afterwards, it further comprises the steps of: and obtains the first adjustment operation;It is operated based on the first adjustment, generates the first adjustment instruction;Execute the first adjustment Instruction, control audio output device carry out sound output, and control N number of multimedia file and be switched to broadcasting from broadcast state is stopped State.
In the specific implementation process, such as: when user terminate call after, need by first music file from stop broadcast The state of putting is switched to broadcast state, user press the shortcut key such as F2 for silent mode to be adjusted to non-mute mode by Key, then, laptop obtain the first adjustment operation, are operated based on the first adjustment, and laptop generates the first adjustment behaviour Make the instruction of corresponding the first adjustment, laptop by executing the first adjustment instruction, control the loudspeaker of laptop into Row sound output, while control first music file from stop broadcast state being switched to broadcast state so that music player from 00:40 progress plays first music file.
Second of scene: defeated in the sound of electronic equipment in order to avoid under specific occasion under such as meeting occasion When equipment has sound output out, the state of multimedia file is directly switched to the maloperation of broadcast state by stopping broadcast state, The state for improving multimedia file switches accuracy, and the N number of multimedia file of control in the first scene is from stopping broadcast state It is switched to broadcast state, specifically includes step: generating the first prompt information, prompt information is for characterizing at N number of multimedia file In stopping broadcast state;Obtain the first control operation;Based on the first control operation, the first control instruction is generated;Execute the first control System instruction is switched to broadcast state to control N number of multimedia file from broadcast state is stopped.
In the specific implementation process, such as: laptop loudspeaker carry out sound output after, laptop Generating the first prompt information, " dear user, first music, which is in, stops broadcast state, and it is to need to place it in broadcasting that you, which determine, State it is (Y), no (N) ".
If user determines that user presses Y when needing first music file being switched to broadcast state from stopping broadcast state Key, laptop are obtained for grasping first music file from the first control that stopping broadcast state being switched to broadcast state Make, based on the first control operation, generates the first control and operate corresponding first control instruction, laptop is by executing first Control instruction, control first music file from stop broadcast state being switched to broadcast state so that music player from 00:40 into Degree plays first music file.
If user determines that user presses when not needing first music file being switched to broadcast state from stopping broadcast state N key, laptop obtain the control operation for keeping first music file to be in stopping broadcast state, are based on the control Operation generates control and operates corresponding control instruction, and laptop is by executing control instruction, so that at first music file In stopping broadcast state.
Certainly, it in another embodiment of the application, after user presses N key, obtains for keeping first music file In the control operation for stopping broadcast state, laptop can ignore control operation, keep at first music played file In stopping broadcast state, the application is with no restriction.
In order to enable the state of multimedia file is switched to the mode diversification for cancelling broadcast state, can expand using model It encloses, after step 102, the embodiment of the present application can be divided into following two but be not limited to two kinds of situations.
The first situation: when not having sound output for the audio output device when electronic equipment, multimedia can be simplified The state switching flow of file, improves the state switching efficiency of multimedia file, and the embodiment of the present application further comprises the steps of: acquisition Two control operations;Based on the second control operation, the second control instruction is generated;The second control instruction is executed, by N number of multimedia file Cancellation broadcast state is switched to from broadcast state is stopped.
In the specific implementation process, such as: when user press close music player button after, laptop obtains The second control operation is obtained, is operated based on the second control, the second control is generated and operates corresponding second control instruction, laptop By executing the second control instruction, first music file is switched to cancellation broadcast state from broadcast state is stopped.
Second case: in order to which multimedia file is switched to cancellation broadcast state from broadcast state is stopped automatically, So that electronic equipment is more intelligent, after step 102, the embodiment of the present application, which further comprises the steps of:, is detecting sound output When equipment exports in a preset time range without sound, controls N number of multimedia file and switch to and take from broadcast state is stopped Disappear broadcast state.
In the specific implementation process, such as: when laptop audio output device in a preset time range example When exporting such as in 20 minutes without sound, laptop is directly generated for the state of music file to be switched to cancellation state Instruction, by executing instruction, laptop control first music file from stop broadcast state being switched to cancellation play shape State.
A kind of electronic equipment is provided, in an alternative embodiment of the invention for realizing more in Fig. 1 and its specific embodiment The state switching method of media file, referring to FIG. 2, Fig. 2 is the architecture diagram of the present embodiment electronic equipment.
As shown in Fig. 2, electronic equipment includes: first detection unit 201 the present embodiment provides a kind of electronic equipment, it is used for When the audio output device for detecting electronic equipment does not have sound output, detects in electronic equipment and include at least audio-frequency information M multimedia file whether be in broadcast state, obtain a testing result, wherein M is the integer more than or equal to 1;First control Unit 202 processed, for controlling when testing result, which shows, has N number of multimedia file to be in broadcast state in M multimedia file N number of multimedia file is switched to stopping broadcast state from broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M.
Wherein, electronic equipment further include: first obtains unit, for obtaining the first adjustment operation;First generation unit is used It is operated in based on the first adjustment, generates the first adjustment instruction;First processing units, for executing the first adjustment instruction, control sound Sound output equipment carries out sound output, and controls N number of multimedia file and be switched to broadcast state from broadcast state is stopped.
Wherein, first processing units specifically include: first generates subelement, for generating the first prompt information, prompts letter Breath stops broadcast state for characterizing N number of multimedia file and being in;First obtains subelement, for obtaining the first control operation; Second generates subelement, for generating the first control instruction based on the first control operation;First processing subelement, for executing First control instruction is switched to broadcast state to control N number of multimedia file from broadcast state is stopped.
Wherein, electronic equipment further include: the second obtaining unit, for obtaining the second control operation;Second generation unit is used In based on the second control operation, the second control instruction is generated;The second processing unit will be N number of more for executing the second control instruction Media file is switched to cancellation broadcast state from broadcast state is stopped.
Wherein, electronic equipment further include: the second control unit, for detecting audio output device in a preset time When being exported in range without sound, N number of multimedia file is controlled from broadcast state is stopped and switches to cancellation broadcast state.
Wherein, when first detection unit 201, first control unit 202, first obtains unit, the first generation unit, first When processing unit, the second obtaining unit, the second generation unit, the second processing unit and/or the second control unit are chip, electronics Equipment further include: circuit board, for chip to be arranged on circuit boards.
Various change mode and specific example in method in previous embodiment are equally applicable to the electronics of the present embodiment Equipment, by the detailed description of the aforementioned state switching method to multimedia file, those skilled in the art can clearly know The implementation method of electronic equipment in road the present embodiment, so this will not be detailed here in order to illustrate the succinct of book.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
When the sound output valve for detecting electronic equipment is lower than a threshold value, detects in electronic equipment and include at least audio Whether M multimedia file of information is in broadcast state, obtains a testing result, wherein M is the integer more than or equal to 1;When When testing result shows to have N number of multimedia file to be in broadcast state in M multimedia file, control N number of multimedia file from Broadcast state is switched to stopping broadcast state, wherein N is the integer more than or equal to 1 and less than or equal to M, due in electronic equipment Sound output valve when being lower than the threshold value, the state of multimedia file can be controlled stopping is switched to by broadcast state and play shape State, at this point, electronic equipment to multimedia file without the processing such as being loaded, being parsed, can releasing memory resource, improve memory Resource utilization.
Further, just because of electronic equipment is not necessarily to load the multimedia file for being in stopping broadcast state, parse Deng processing, the electricity of electronic equipment can be saved, the cruise duration of electronic equipment is extended.
It further, both can be directly by multimedia file when the sound output valve of electronic equipment is lower than the threshold value State broadcast state is switched to by stopping broadcast state, can also according to user demand by the state of multimedia file by stopping Broadcast state is switched to broadcast state, so that the state of multimedia file is switched to the mode diversification of broadcast state, Neng Goukuo Big use scope.
Wherein, when the sound output valve of electronic equipment is higher than the threshold value, directly control the state of multimedia file from Stop broadcast state and be switched to broadcast state, the state switching flow of multimedia file can be simplified, improve multimedia file State switching efficiency.
Wherein, it when the sound output valve of electronic equipment lower than the threshold value by being switched to higher than threshold value, generates first and mentions Show information, first prompt information is in the stopping broadcast state for characterizing N number of multimedia file, so that user Whether the state that multimedia file can be controlled according to actual needs by stopping broadcast state being switched to broadcast state, can be avoided Under specific occasion under such as meeting occasion, when the sound output valve of electronic equipment is higher than the threshold value, multimedia file State is directly switched to the maloperation of broadcast state by stopping broadcast state, improves the state switching accuracy of multimedia file.
It further, can be according to user when detecting the sound output valve of the electronic equipment lower than the threshold value It needs the state of N number of multimedia file being switched to cancellation broadcast state from broadcast state is stopped, it can also automatically will be N number of The state of multimedia file is switched to cancellation broadcast state from broadcast state is stopped, so that the state of multimedia file is switched to and takes Disappear broadcast state mode diversification, use scope can be expanded.
Wherein, when the sound output valve of electronic equipment is lower than the threshold value, according to user demand directly by multimedia text The state of part is switched to cancellation broadcast state from the stopping broadcast state, can simplify the state switching stream of multimedia file Journey improves the state switching efficiency of multimedia file.
Wherein, when the sound output valve when electronic equipment in a preset time range is lower than the threshold value, the N is controlled A multimedia file switches to cancellation broadcast state from the stopping broadcast state, can automatically stop multimedia file from described Only broadcast state is switched to cancellation broadcast state, so that electronic equipment is more intelligent.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of state switching method of multimedia file is applied to an electronic equipment, which is characterized in that the described method includes:
When the sound output valve for detecting the electronic equipment is lower than a threshold value, including at least in the electronic equipment is detected Whether M multimedia file of audio-frequency information is in broadcast state, obtains a testing result, wherein M is whole more than or equal to 1 Number;
When the testing result, which shows, has N number of multimedia file to be in the broadcast state in the M multimedia file, control Make N number of multimedia file and be switched to stopping broadcast state from the broadcast state, wherein N be more than or equal to 1 and be less than etc. In the integer of M;
The first adjustment operation is obtained, the first adjustment operation is that silent mode is adjusted to the operation of non-mute mode;
It is operated based on the first adjustment, generates the first adjustment instruction;
The first adjustment instruction is executed, the electronic equipment is controlled and carries out sound output, and control N number of multimedia file The broadcast state is switched to from the stopping broadcast state.
2. the method as described in claim 1, which is characterized in that control N number of multimedia file is broadcast from the stopping The state of putting is switched to the broadcast state, specifically includes:
The first prompt information is generated, first prompt information is broadcast for characterizing N number of multimedia file in the stopping Put state;
Obtain the first control operation;
Based on the first control operation, the first control instruction is generated;
First control instruction is executed, is switched to control N number of multimedia file from the stopping broadcast state described Broadcast state.
3. the method as described in claim 1, which is characterized in that control N number of multimedia file from the broadcasting described State switches to after stopping broadcast state, the method also includes:
Obtain the second control operation;
Based on the second control operation, the second control instruction is generated;
Second control instruction is executed, N number of multimedia file is switched to cancellation from the stopping broadcast state and is played State.
4. the method as described in claim 1, which is characterized in that control N number of multimedia file from the broadcast state described It is switched to after stopping broadcast state, the method also includes:
When detecting sound output valve of the electronic equipment in a preset time range lower than the threshold value, described in control N number of multimedia file switches to cancellation broadcast state from the stopping broadcast state.
5. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
First detection unit, for detecting the electricity when the sound output valve for detecting the electronic equipment is lower than a threshold value Whether the M multimedia file including at least audio-frequency information in sub- equipment is in broadcast state, obtains a testing result, In, M is the integer more than or equal to 1;
First control unit, for showing there is N number of multimedia file to be in the M multimedia file when the testing result When the broadcast state, N number of multimedia file is controlled from the broadcast state and is switched to stopping broadcast state, wherein N is Integer more than or equal to 1 and less than or equal to M;
First obtains unit, for obtaining the first adjustment operation, the first adjustment operation is that silent mode is adjusted to non-quiet The operation of sound mode;
First generation unit generates the first adjustment instruction for operating based on the first adjustment;
First processing units control the electronic equipment and carry out sound output, and control for executing the first adjustment instruction N number of multimedia file is switched to the broadcast state from the stopping broadcast state.
6. electronic equipment as claimed in claim 5, which is characterized in that the first processing units specifically include:
First generates subelement, and for generating the first prompt information, first prompt information is for characterizing N number of multimedia File is in the stopping broadcast state;
First obtains subelement, for obtaining the first control operation;
Second generates subelement, for generating the first control instruction based on the first control operation;
First processing subelement is played for executing the first control instruction with controlling N number of multimedia file from the stopping State is switched to the broadcast state.
7. electronic equipment as claimed in claim 5, which is characterized in that the electronic equipment further include:
Second obtaining unit, for obtaining the second control operation;
Second generation unit, for generating the second control instruction based on the second control operation;
N number of multimedia file is played shape from the stopping for executing second control instruction by the second processing unit State is switched to cancellation broadcast state.
8. electronic equipment as claimed in claim 5, which is characterized in that the electronic equipment further include:
Second control unit, for detecting sound output valve of the electronic equipment in a preset time range lower than institute When stating threshold value, N number of multimedia file is controlled from the stopping broadcast state and switches to cancellation broadcast state.
CN201310292472.4A 2013-07-12 2013-07-12 A kind of state switching method and electronic equipment of multimedia file Active CN104281249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310292472.4A CN104281249B (en) 2013-07-12 2013-07-12 A kind of state switching method and electronic equipment of multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310292472.4A CN104281249B (en) 2013-07-12 2013-07-12 A kind of state switching method and electronic equipment of multimedia file

Publications (2)

Publication Number Publication Date
CN104281249A CN104281249A (en) 2015-01-14
CN104281249B true CN104281249B (en) 2019-10-29

Family

ID=52256217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310292472.4A Active CN104281249B (en) 2013-07-12 2013-07-12 A kind of state switching method and electronic equipment of multimedia file

Country Status (1)

Country Link
CN (1) CN104281249B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2537855B (en) * 2015-04-28 2018-10-24 Advanced Risc Mach Ltd Controlling transitions of devices between normal state and quiescent state
CN106937162A (en) * 2017-03-03 2017-07-07 北京小米移动软件有限公司 Audio and video playing control method and device
CN114461050A (en) * 2020-11-09 2022-05-10 Oppo广东移动通信有限公司 Device operation method and device, electronic device and computer readable storage medium
CN112822552B (en) * 2021-01-11 2023-06-09 湖南新云网科技有限公司 Method, device, equipment and computer storage medium for loading multimedia resources

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937636A (en) * 2005-10-10 2007-03-28 康佳集团股份有限公司 Automatic-start music playing method for hand-held terminal
CN101930789A (en) * 2009-06-26 2010-12-29 英特尔公司 The environment for use audio analysis comes the control audio player

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120311A1 (en) * 2005-04-07 2008-05-22 Iofy Corporation Device and Method for Protecting Unauthorized Data from being used in a Presentation on a Device
CN1900860A (en) * 2005-07-22 2007-01-24 鸿富锦精密工业(深圳)有限公司 Electronic device and method for realizing intelligent sleeping mode function
US8977255B2 (en) * 2007-04-03 2015-03-10 Apple Inc. Method and system for operating a multi-function portable electronic device using voice-activation
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
CN102339619A (en) * 2011-09-26 2012-02-01 华为终端有限公司 Audio/video output control method and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937636A (en) * 2005-10-10 2007-03-28 康佳集团股份有限公司 Automatic-start music playing method for hand-held terminal
CN101930789A (en) * 2009-06-26 2010-12-29 英特尔公司 The environment for use audio analysis comes the control audio player

Also Published As

Publication number Publication date
CN104281249A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
KR101798269B1 (en) Adaptive audio feedback system and method
CN104281249B (en) A kind of state switching method and electronic equipment of multimedia file
CN1316352C (en) Apparatus and method for controlling operation of low frequency sound output means
CN103324518B (en) A kind of operation mapping method and device
CN105100915B (en) A kind of method and television set switching audiovisual applications
CN104898821B (en) The method and electronic equipment of a kind of information processing
CN104285452A (en) Spatial audio signal filtering
CN106713653A (en) Audio/video playing control method and device, and terminal
CN109686372B (en) Resource playing control method and device
CN101465146A (en) Method and equipment for playing media file
CN101458942B (en) Audio video device and controlling method
CN114023287A (en) Audio mixing processing method and device for audio file, terminal and storage medium
CN104049724A (en) Sound generating method and device for touch control event
CN105702240B (en) The method and apparatus of intelligent terminal adjustment accompanying song music
CN104080026A (en) Method of information processing and line control earphone
CN106792141B (en) The control method for playing back and device of tv audio
CN201532766U (en) Sound control recording electronic device
CN103345403B (en) A kind of method played by earphone deep layer secondary control sound and terminal device
EP3144934B1 (en) Audio play method and device
CN102664033A (en) Method of realizing multipoint break-point memory continue-play of portable speaker
CN102469386B (en) Vehicle-mounted audio playback and vehicle-mounted audio reproduction method
CN105630579A (en) Computer capable of selective playing
CN104423871B (en) A kind of information processing method and electronic equipment
TW200803577A (en) Hearing protection method and audio playing system using the hearing protection method
CN106851480A (en) Baffle Box of Bluetooth

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