CN105893496A - Information processing method and device and electronic device - Google Patents

Information processing method and device and electronic device Download PDF

Info

Publication number
CN105893496A
CN105893496A CN201610189127.1A CN201610189127A CN105893496A CN 105893496 A CN105893496 A CN 105893496A CN 201610189127 A CN201610189127 A CN 201610189127A CN 105893496 A CN105893496 A CN 105893496A
Authority
CN
China
Prior art keywords
file
type
video
determines
title
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610189127.1A
Other languages
Chinese (zh)
Other versions
CN105893496B (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 CN201610189127.1A priority Critical patent/CN105893496B/en
Priority to CN202010779458.7A priority patent/CN112099926A/en
Publication of CN105893496A publication Critical patent/CN105893496A/en
Application granted granted Critical
Publication of CN105893496B publication Critical patent/CN105893496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses an information processing method. The method includes the steps of determining identification information of a first process, wherein the first process is a set of processes of sound channels of an applied electronic device; determining the suffix of the name of a first file according to the identification information of the first process, wherein the first file is an audio or video file played by the first process; determining the type of the first file according to the suffix of the name of the first file; optimizing the operation of the first file according to the type of the first file. The invention further discloses an information processing device and the electronic device.

Description

A kind of information processing method and device, electronic equipment
Technical field
The present invention relates to electronic technology, particularly relate to a kind of information processing method and device, electronic equipment.
Background technology
Electronic equipment such as mobile phone, panel computer, desktop computer, notebook computer etc. have been during people live Important component part.People utilize these electronic equipments to work anywhere or anytime, learn, entertain and Life.Enjoy multimedia body resource such as viewing video anywhere or anytime and enjoyment music is that people use electronics to set Standby major reason, such as people can watch local video and Online Video on bus, it is also possible to walk On the way or at home listening music anywhere or anytime, the music certainly listened can be that local music can also be Online Music.In general, Online Video and Online Music be use webpage or some be arranged on electronics and set Standby upper application program (APP) realizes, local music and local video be by downloading after, profit With installing what play-back application (commonly referred to as playout software or player) on an electronic device realized, Wherein player the most also has the function of the online audio or video play.In the prior art, although see See video and listen music very universal, but either the system program of electronic equipment should or third-party Somewhat the most awkward to the optimization of different types of multimedia resource (such as Voice & Video) by program.
Summary of the invention
In view of this, the embodiment of the present invention provides one for solving at least one problem present in prior art Plant information processing method and device, electronic equipment, it is possible to according to the type pair of the multimedia resource play Multimedia resource is optimized.
The technical scheme of the embodiment of the present invention is achieved in that
First aspect, the embodiment of the present invention provides a kind of information processing method, and described method includes:
Determine entering of the sound channel that the identification information of the first process, described first process are use electronic equipment The set of journey;
Identification information according to described first process determines the suffix name of the title of described first file, described One file is the audio or video file that described first process is being play;
The suffix name of the title according to described first file determines the type of described first file;
The operation of described first file is optimized by the type according to described first file.
Second aspect, the embodiment of the present invention provides a kind of information processor, and described device includes that first determines Unit, second determine unit, the 3rd determine unit and optimize unit, wherein:
Described first determines unit, and for determining the identification information of the first process, described first process is for using The set of the process of the sound channel of electronic equipment;
Described second determines unit, for determining described first file according to the identification information of described first process The suffix name of title, described first file is the audio or video file that described first process is being play;
Described 3rd determines unit, and the suffix name for the title according to described first file determines described first The type of file;
Described optimization unit, for carrying out the operation of described first file according to the type of described first file Optimize.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes sound channel And processor, wherein said processor is used for:
Determine entering of the sound channel that the identification information of the first process, described first process are use electronic equipment The set of journey;
Identification information according to described first process determines the suffix name of the title of described first file, described One file is the audio or video file that described first process is being play;
The suffix name of the title according to described first file determines the type of described first file;
The operation of described first file is optimized by the type according to described first file.
A kind of information processing method that the embodiment of the present invention provides and device, electronic equipment, wherein: determine the The identification information of one process, described first process is the set of the process of the sound channel using electronic equipment; Identification information according to described first process determines the suffix name of the title of described first file, described first literary composition Part is the audio or video file that described first process is being play;After title according to described first file Sew name and determine the type of described first file;The type according to the described first file behaviour to described first file It is optimized;So, it is possible the type according to the multimedia resource play multimedia resource is carried out Optimize.
Accompanying drawing explanation
Fig. 1 be the embodiment of the present invention one information processing method realize schematic flow sheet;
Fig. 2 is the composition structural representation of the embodiment of the present invention two information processor;
Fig. 3 is the composition structural representation of the embodiment of the present invention three information processor;
Fig. 4 is the composition structural representation of the embodiment of the present invention four information processor;
Fig. 5 is the composition structural representation of the embodiment of the present invention five information processor;
Fig. 6 is the composition structural representation of the embodiment of the present invention six information processor.
Detailed description of the invention
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
In order to solve technical problem of the prior art, the embodiment of the present invention provides a kind of information processing method, The method is applied to electronic equipment, and the function that this information processing method is realized can be by electronic equipment Processor caller code realizes, and certain program code can be saved in computer-readable storage medium, can Seeing, this electronic equipment at least includes processor and storage medium.
Fig. 1 be the embodiment of the present invention one information processing method realize schematic flow sheet, as it is shown in figure 1, should Information processing method includes:
Step S101, determines that the identification information of the first process, described first process are the sound using electronic equipment The set of the process of sound passage;
Here, described electronic equipment can be various types of to have at information during specific embodiment The equipment of reason ability, the most described electronic equipment can include mobile phone, panel computer, desktop computer, individual number Word assistant etc..
Here, in general, the first process may be mounted at the application program on described electronic equipment, it is possible to With any application on site program, if user is to use webpage to play audio or video, then can also claim Being the first process, any process that can play audio or video and use sound (Audio) passage can It is referred to as the first process.
Here, described first process can play multimedia resource, and described multimedia resource at least includes audio frequency Resource and video resource, in general, it is possible to the player playing audio frequency typically can also play video, with Sample ground, it is possible to the player playing video can also play audio frequency equally, and the most a player the most both may be used Audio frequency can also be play with broadcasting video.No matter it is to play audio resource or playing video resource, It is required for during broadcasting using sound channel.
It should be noted that sometimes may there be multiple first process, such as user is playing music when Video can also be play, or user opens plural video simultaneously, or user opens two simultaneously Above audio frequency, at this moment in the same time, user can hear that multiple sound, such as user may be heard simultaneously broadcasts Put the music on and play the sound of video, or user may hear the sound of plural video simultaneously, or Person user may hear the sound of plural audio frequency simultaneously.In this case, then step S101 In the first process it is possible to more than one, but have multiple.
Step S102, determines the suffix of the title of described first file according to the identification information of described first process Name, described first file is the audio or video file that described first process is being play;
Here, audio file (Audio file) is generally divided into two classes: audio files and musical instrument digital interface (Musical Instrument Digital Interface, MIDI) file, audio files is worth being to pass through sound The original sound that recording device is recorded, directly have recorded is really the binary sampled data of sound;MIDI file Being a kind of musical performance job sequence, available audio output device or the electronic musical instrument being connected with computer enter Row is played.In general, audio file generally comprise Wave file, Audio file, AIFF file, Mpeg audio file, RealAudio file, MIDI file, wherein: the entitled .WAV of suffix of Wave file, The entitled .AIF/.AIFF of suffix of suffix entitled .AU, AIFF file of Audio file, mpeg audio file Suffix entitled .MP1/.MP2/.MP3, RealAudio file the entitled .RA/.RM/.RAM of suffix and The entitled .MID/.RMI of suffix of MIDI file.
From the above, it can be seen that general audio file and its suffix name have relation or one to one To many relations, therefore, can be according to above-mentioned corresponding relation then according to audio frequency literary composition in the embodiment of the present invention The suffix name of part determines whether this document belongs to audio file.
Here, video file (Video file) is one of internet multimedia important content.It refers mainly to that Containing real-time audio frequency, the multimedia file of video information a bit, its multimedia messages is typically derived from video Input equipment.Video file generally comprise avi file, QuickTime file, advanced streaming format file, RealVideo file, mpeg file, the wherein suffix of avi file entitled .AVI, QuickTime file The entitled .MOV/.QT of suffix, advanced streaming format file suffix entitled .ASF, RealVideo file after Sew the entitled .MPEG/.MPG/.DAT of suffix of entitled .RM, mpeg file.
From the above, it can be seen that general video file and its suffix name have relation or one to one To many relations, therefore, can be according to above-mentioned corresponding relation then according to video literary composition in the embodiment of the present invention The suffix name of part determines whether this document belongs to video file.
Step S103, determines the type of described first file according to the suffix name of the title of described first file;
Here, the type of described first file at least includes audio types and the big class of video type two.
Here, the described suffix name according to the title of described first file determines the type of described first file, Including: search, according to the suffix name of the title of described first file, the incidence relation preset, obtain described first The type of file, described incidence relation is corresponding for show between the suffix name of file name and file type Relation.During implementing, described incidence relation can use mapping table to realize.
Step S104, is optimized the operation of described first file according to the type of described first file.
Here, during implementing, described step S104 may include that according to described first file Type described first process is optimized, such as play film time arrange full frame, film audio effect and Half-light enhancement techniques etc., arrange music effect when playing music.For another example, if the first file is video, Then described first process is displayed in full screen, if the first file is audio frequency, then the tonequality of audio frequency is carried out Optimizing, audio frequency tonequality optimization processes (Sound Normalizer) and user can be helped to promote the music of various form Tonequality, the chant music allowing user want to listen by various debugging, setting reaches top quality level.The most such as What is optimized process to the tonequality of audio frequency can use correlation technique to realize, and repeats no more here.
Provide below two kinds of implementations realizing step S104:
Mode one, S104, the operation of described first file is carried out by the described type according to described first file Optimize, including: if the type of described first file shows that described first file is video, by described electronics The sound of equipment switches to first mode, described first mode to be the acoustic pattern playing video;If it is described The type of the first file shows that described first file is audio frequency, and the sound of described electronic equipment is switched to second Pattern, described second pattern is to play the acoustic pattern of audio frequency.
During implementing, the acoustic pattern of described broadcasting audio frequency can include audio frequency enhancement mode or Tonequality optimizes tupe, and wherein, audio frequency enhancement mode can strengthen audio frequency, and tonequality optimizes tupe energy Enough tonequality is optimized, user so can be helped to promote the music tonequality of various form, by various debugging, The chant music allowing user want to listen is set and reaches top quality level.
During implementing, the video mode of described broadcasting audio frequency can include audio frequency enhancement mode or Screen mode toggle or tonequality optimize tupe, and wherein, audio frequency enhancement mode can strengthen the audio frequency in video, Tonequality optimizes tupe and can be optimized tonequality, and screen mode toggle can make video played in full screen.
Mode two, S104, the operation of described first file is carried out by the described type according to described first file Optimize, including: step S1041, if the type of described first file shows that described first file is video, Obtain described electronic equipment presents pattern;Step S1042, it is judged that the pattern that presents of described electronic equipment is No meet default first condition;Step S1043, if meeting described first condition, sets described video It is set to full frame.
Here, have for there being electronic equipment to be and different present pattern, as a example by certain electronic equipment, this electricity Subset has plate mode and notebook mode, and wherein, plate mode refers to that electronic equipment is at plate mode Lower user can use electronic equipment as using panel computer, and notebook mode refers to that electronic equipment exists Under notebook mode, user can equally use electronic equipment to using notebook.
Here, described first condition can be plate mode, if the pattern that presents of electronic equipment is flat board mould Formula, then the most described video is set to full frame.
In the embodiment of the present invention: determine the identification information of the first process, described first process sets for using electronics The set of the process of standby sound channel;Identification information according to described first process determines described first file The suffix name of title, described first file is the audio or video file that described first process is being play; The suffix name of the title according to described first file determines the type of described first file;According to described first literary composition The operation of described first file is optimized by the type of part;So, it is possible according to the multimedia play Multimedia resource is optimized by the type of resource.
Embodiment two
Enjoy multimedia body resource such as viewing video anywhere or anytime and enjoyment music is that people use electronic equipment Major reason, such as people can watch local video and Online Video on bus, it is also possible to walks On road or at home listen music anywhere or anytime, the music certainly listened can be local music can also be Line music.In general, Online Video and Online Music be use webpage or some be arranged on electronic equipment On application program (APP) realize, local music and local video be by downloading after, utilize Install what play-back application (commonly referred to as playout software or player) on an electronic device realized. The embodiment of the present invention will provide a kind of information processing method based on embodiment one, a kind of pin of the method To the video on webpage or the prioritization scheme of audio frequency.Specifically, the method includes:
Step S201, determines that the identification information of the first process, described first process are the sound using electronic equipment The set of the process of sound passage;
Step S202, monitors network card data;
Step S203, obtains the download link address of audio or video file from described network card data;
Step S204, determines the suffix name of the title of the first file according to described download link address.
Here, described first file is the audio or video file that described first process is being play;
Step S205, determines the type of described first file according to the suffix name of the title of described first file;
Step S206, is optimized the operation of described first file according to the type of described first file.
In embodiments of the present invention, described step S202 actually provides a kind of realization to implement to step S204 " the described identification information according to described first process determines the title of described first file for step S102 in example one Suffix name " implementation.
In other embodiments of the invention, step S205, after the described title according to described first file Sew name and determine the type of described first file, including: search according to the suffix name of the title of described first file The incidence relation preset, obtains the type of described first file, and described incidence relation is used for showing file name Suffix name and file type between corresponding relation.
In other embodiments of the invention, step S206, the described type according to described first file is to institute The operation stating the first file is optimized, including: if the type of described first file shows described first literary composition Part is video, and the sound of described electronic equipment switches to first mode, and described first mode is for playing video Acoustic pattern;If the type of described first file shows that described first file is audio frequency, by described electronics The sound of equipment switches to the second pattern, described second pattern to be to play the acoustic pattern of audio frequency;
In other embodiments of the invention, step S206, the described type according to described first file is to institute The operation stating the first file is optimized, including: if the type of described first file shows described first literary composition Part is video, and obtain described electronic equipment presents pattern;Whether judge described electronic equipment presents pattern Meet default first condition;If meeting described first condition, described video is set to full frame.
Webpage in the embodiment of the present invention is play Voice & Video (Web Music/Video) and is play (ginseng with local See embodiment three) different, because webpage is play cannot monitor the reading of file system to obtain type.Cause This, will utilize video sniff technology in embodiments of the present invention, and the download address obtaining media file obtains with this Take the type of media file.Video sniff technology (Sniffer skill in the embodiment of the present invention is described below Art): work bottom in a network environment, and it can intercept all of data just transmitted on network, and By corresponding software processes, the content of these data can be analyzed in real time;By sniff video web-pages backstage The data stream of the page finds its Video referer, and this page has corresponding video to quote network address, then Crawl out and present.
Provide below a kind of composition structural representation of information processor when realizing, as in figure 2 it is shown, should Device includes webpage sniff (Web sniffing) module and sound channel monitoring (Audio Session Info) Module, wherein: webpage sniff module: for monitoring the data of network interface card, the download link ground of sniff audio frequency and video Location, obtains audio frequency and video type with this.Sound channel monitoring module, for monitoring the sound of current electronic device The identification information (Audio PID) of the owner of the information of passage, such as each sound, the state of sound (State), the PID of each of which sound i.e. uses the process of sound channel, and the state of sound includes activating State, halted state and completion status.The operation principle of the information processor shown in Fig. 2 includes: 1) logical Cross Audio Session and obtain a sound software;2) the data stream in network interface card is obtained by sniff technology, with This obtains file type (video and audio frequency);3) to Music, Video scene does optimal design-aside etc..
Embodiment three
Enjoy multimedia body resource such as viewing video anywhere or anytime and enjoyment music is that people use electronic equipment Major reason, such as people can watch local video and Online Video on bus, it is also possible to walks On road or at home listen music anywhere or anytime, the music certainly listened can be local music can also be Line music.In general, Online Video and Online Music be use webpage or some be arranged on electronic equipment On application program (APP) realize, local music and local video be by downloading after, utilize Install what play-back application (commonly referred to as playout software or player) on an electronic device realized. The embodiment of the present invention will provide a kind of information processing method based on embodiment one, a kind of pin of the method To local video or the prioritization scheme of local audio.Specifically, the method includes:
Step S301, determines that the identification information of the first process, described first process are the sound using electronic equipment The set of the process of sound passage;
Step S302, determines the identification information of each second process in the second process collection, described second process Collection is combined into the set of the second process reading file;
Here, the described identification information determining the second process collection, including: by the Fast IO of file system Read obtains the identification information of each second process in the second process collection.
Step S303, obtains the title of the file of the reading of each described second process;
Step S304, mates the identification information of described first process in described second process collection;
Step S305, determines first according to the identification information of described first process from described second process collection The suffix name of the title of file;
Here, described first file is the audio or video file that described first process is being play;
Step S306, determines the type of described first file according to the suffix name of the title of described first file;
Step S307, is optimized the operation of described first file according to the type of described first file.
In embodiments of the present invention, described step S302 actually provides a kind of realization to implement to step S305 " the described identification information according to described first process determines the title of described first file for step S102 in example one Suffix name " implementation.
In the embodiment of the present invention, described method also includes:
Step S308, obtains the single-row table of process name of user setup;
Step S309, it is judged that whether the process in the single-row table of described process name occurs in described second process collection In;
Step S310, if the process in the single-row table of described process name occurs in described second process collection, Identification information according to described first process determines the title of the first file from described second process collection.
Step S311, if the process in the single-row table of described process name does not appears in described second process collection In, flow process terminates.
In embodiments of the present invention, as one of the feature of the embodiment of the present invention, play local audio-video document It is required for reading file, in the present embodiment, the title suffix reading file utilizing the first process is distinguished and works as Front broadcasting is audio frequency or video.Provide below a kind of when realizing the composition structure of information processor show It is intended to, as it is shown on figure 3, this device includes:
Input and output monitoring (Fast IO Read) module, for monitoring the Fast IO Read of file system Event, i.e. in monitoring system, which process is reading file, then according to the identification information (example of process Such as process title) information such as path and title of determining file;
Sound channel monitoring (Audio Session Info) module, for monitoring the sound of current electronic device The identification information (Audio PID) of the owner of the information of passage, such as each sound, the state of sound (State), the PID of each of which sound i.e. uses the process of sound channel, and the state of sound includes activating State, halted state and completion status.
Application program filtering module: the white list being used for providing playout software (can be the system of electronic equipment Default setting, it is also possible to be that user oneself is arranged), to filter non-broadcasting video software.
The operation principle of the information processor shown in Fig. 3 includes: 1) obtained by input and output monitoring module The identification information of sounding sound process.2) get generation software by the Fast IO Read of file system to read The pathname of local multimedia file (Media Files).3) obtain according to the type of Media Files The type (Music/Video) of currently playing multimedia file.4) to Music, Video scene is done optimization and is set Put.
In other embodiments of the invention, step S306, after the described title according to described first file Sew name and determine the type of described first file, including: search according to the suffix name of the title of described first file The incidence relation preset, obtains the type of described first file, and described incidence relation is used for showing file name Suffix name and file type between corresponding relation.
In other embodiments of the invention, step S307, the described type according to described first file is to institute The operation stating the first file is optimized, including: if the type of described first file shows described first literary composition Part is video, and the sound of described electronic equipment switches to first mode, and described first mode is for playing video Acoustic pattern;If the type of described first file shows that described first file is audio frequency, by described electronics The sound of equipment switches to the second pattern, described second pattern to be to play the acoustic pattern of audio frequency;
In other embodiments of the invention, step S307, the described type according to described first file is to institute The operation stating the first file is optimized, including: if the type of described first file shows described first literary composition Part is video, and obtain described electronic equipment presents pattern;Whether judge described electronic equipment presents pattern Meet default first condition;If meeting described first condition, described video is set to full frame.
Embodiment four
Based on aforesaid embodiment, the embodiment of the present invention provides a kind of information processor, included by this device Each unit and each unit included by each pattern, can be realized by the processor in electronic equipment; The most also can be realized by concrete logic circuit;During specific embodiment, during processor can be Central processor (CPU), microprocessor (MPU), digital signal processor (DSP) or field-programmable Gate array (FPGA) etc..
Fig. 4 is the composition structural representation of the embodiment of the present invention four device, as shown in Figure 4, and this device 400 Including first determine unit 401, second determine unit the 402, the 3rd determine unit 403 and optimize unit 404, Wherein:
Described first determines unit 401, and for determining the identification information of the first process, described first process is Use the set of the process of the sound channel of electronic equipment;
Described second determines unit 402, for determining described first according to the identification information of described first process The suffix name of the title of file, described first file is the audio or video literary composition that described first process is being play Part;
Described 3rd determines unit 403, and the suffix name for the title according to described first file determines described The type of the first file;
Described optimization unit 404, is used for the operation to described first file of the type according to described first file It is optimized.
In an embodiment of the present invention, the described 3rd determines unit, for the name according to described first file The suffix name claimed searches the incidence relation preset, and obtains the type of described first file, and described incidence relation is used In the corresponding relation shown between the suffix name of file name and file type.
In an embodiment of the present invention, described optimization unit includes the first handover module and the second handover module, Wherein: described first handover module, if the type being used for described first file shows that described first file is Video, it is the sound playing video that the sound of described electronic equipment switches to first mode, described first mode Sound pattern;Described second handover module, if the type for described first file shows described first file For audio frequency, it is to play audio frequency that the sound of described electronic equipment switches to the second pattern, described second pattern Acoustic pattern;
In an embodiment of the present invention, described optimization unit includes the 3rd acquisition module, judge module and sets Put module, wherein: described 3rd acquisition module, if showing described for the type of described first file One file is video, and obtain described electronic equipment presents pattern;Described judge module, is used for judging described Electronic equipment present whether pattern meets default first condition;Described module is set, if for meeting Described first condition, is set to full frame by described video.
It need to be noted that: the description of apparatus above embodiment, the description with said method embodiment is It is similar to, there is the beneficial effect that same embodiment of the method is similar, do not repeat.For apparatus of the present invention The ins and outs not disclosed in embodiment, refer to the description of the inventive method embodiment and understand, for saving Length, therefore repeats no more.
Embodiment five
Based on aforesaid embodiment, the embodiment of the present invention provides a kind of information processor, included by this device Each unit and each unit included by each pattern, can be realized by the processor in electronic equipment; The most also can be realized by concrete logic circuit;During specific embodiment, during processor can be Central processor (CPU), microprocessor (MPU), digital signal processor (DSP) or field-programmable Gate array (FPGA) etc..
Fig. 5 is the composition structural representation of the embodiment of the present invention five information processor, as it is shown in figure 5, should Device 400 include first determine unit 401, second determine unit the 402, the 3rd determine unit 403 and optimize Unit 404, wherein said second determines that unit 402 includes monitoring module the 421, first acquisition module 422 Module 423 is determined, wherein with first:
Described first determines unit 401, and for determining the identification information of the first process, described first process is Use the set of the process of the sound channel of electronic equipment;
Described monitoring module 421, is used for monitoring network card data;
Described first acquisition module 422, for obtaining under audio or video file from described network card data Carry chained address;
Described first determines module 423, for determining described first file according to described download link address The suffix name of title.
Here, described first file is the audio or video file that described first process is being play;
Described 3rd determines unit 403, and the suffix name for the title according to described first file determines described The type of the first file;
Described optimization unit 404, is used for the operation to described first file of the type according to described first file It is optimized.
In an embodiment of the present invention, the described 3rd determines unit, for the name according to described first file The suffix name claimed searches the incidence relation preset, and obtains the type of described first file, and described incidence relation is used In the corresponding relation shown between the suffix name of file name and file type.
In an embodiment of the present invention, described optimization unit includes the first handover module and the second handover module, Wherein: described first handover module, if the type being used for described first file shows that described first file is Video, it is the sound playing video that the sound of described electronic equipment switches to first mode, described first mode Sound pattern;Described second handover module, if the type for described first file shows described first file For audio frequency, it is to play audio frequency that the sound of described electronic equipment switches to the second pattern, described second pattern Acoustic pattern;
In an embodiment of the present invention, described optimization unit includes the 3rd acquisition module, judge module and sets Put module, wherein: described 3rd acquisition module, if showing described for the type of described first file One file is video, and obtain described electronic equipment presents pattern;Described judge module, is used for judging described Electronic equipment present whether pattern meets default first condition;Described module is set, if for meeting Described first condition, is set to full frame by described video.
It need to be noted that: the description of apparatus above embodiment, the description with said method embodiment is It is similar to, there is the beneficial effect that same embodiment of the method is similar, do not repeat.For apparatus of the present invention The ins and outs not disclosed in embodiment, refer to the description of the inventive method embodiment and understand, for saving Length, therefore repeats no more.
Embodiment six
Based on aforesaid embodiment, the embodiment of the present invention provides a kind of information processor, included by this device Each unit and each unit included by each pattern, can be realized by the processor in electronic equipment; The most also can be realized by concrete logic circuit;During specific embodiment, during processor can be Central processor (CPU), microprocessor (MPU), digital signal processor (DSP) or field-programmable Gate array (FPGA) etc..
Fig. 6 is the composition structural representation of the embodiment of the present invention six information processor, as shown in Figure 6, and should Device 400 include first determine unit 401, second determine unit the 402, the 3rd determine unit 403 and optimize Unit 404, wherein said second determines that unit 402 includes that second determines module the 424, second acquisition module 425, matching module 426 and the 3rd determines module 427, wherein:
Described first determines unit 401, and for determining the identification information of the first process, described first process is Use the set of the process of the sound channel of electronic equipment;
Described second determines module 424, for determining the mark letter of each second process in the second process collection Breath, described second process collection is the set of the second process reading file;
Described second acquisition module 425, for obtaining the title of the file of the reading of each described second process;
Described matching module 426, for mating the mark of described first process in described second process collection Information;
Described 3rd determines module 427, for entering from described second according to the identification information of described first process Cheng Jihe determines the suffix name of the title of the first file.
Here, described first file is the audio or video file that described first process is being play;
Described 3rd determines unit 403, and the suffix name for the title according to described first file determines described The type of the first file;
Described optimization unit 404, is used for the operation to described first file of the type according to described first file It is optimized.
Here, described second determines module, enters for obtaining second by the Fast IO Read of file system The identification information of each second process in Cheng Jihe.
In an embodiment of the present invention, the described 3rd determines unit, for the name according to described first file The suffix name claimed searches the incidence relation preset, and obtains the type of described first file, and described incidence relation is used In the corresponding relation shown between the suffix name of file name and file type.
In an embodiment of the present invention, described optimization unit includes the first handover module and the second handover module, Wherein: described first handover module, if the type being used for described first file shows that described first file is Video, it is the sound playing video that the sound of described electronic equipment switches to first mode, described first mode Sound pattern;Described second handover module, if the type for described first file shows described first file For audio frequency, it is to play audio frequency that the sound of described electronic equipment switches to the second pattern, described second pattern Acoustic pattern;
In an embodiment of the present invention, described optimization unit includes the 3rd acquisition module, judge module and sets Put module, wherein: described 3rd acquisition module, if showing described for the type of described first file One file is video, and obtain described electronic equipment presents pattern;Described judge module, is used for judging described Electronic equipment present whether pattern meets default first condition;Described module is set, if for meeting Described first condition, is set to full frame by described video.
In an embodiment of the present invention, described device also includes acquiring unit, judging unit, the 4th determines Unit and end unit, wherein: described acquiring unit, for obtaining the single-row table of process name of user setup; Described judging unit, for judging whether the process in the single-row table of described process name occurs in described second process In set;Described 4th determines unit, if the process in the single-row table of described process name occurs in described In second process collection, from described second process collection, determine according to the identification information of described first process The title of one file.Described end unit, if the process in the single-row table of described process name does not appears in In described second process collection, flow process terminates.
It need to be noted that: the description of apparatus above embodiment, the description with said method embodiment is It is similar to, there is the beneficial effect that same embodiment of the method is similar, do not repeat.For apparatus of the present invention The ins and outs not disclosed in embodiment, refer to the description of the inventive method embodiment and understand, for saving Length, therefore repeats no more.
Embodiment seven
Based on aforesaid embodiment, the embodiment of the present invention provides a kind of electronic equipment, and this electronic equipment includes sound Sound passage and processor, wherein said processor is used for:
Determine entering of the sound channel that the identification information of the first process, described first process are use electronic equipment The set of journey;
Identification information according to described first process determines the suffix name of the title of described first file, described One file is the audio or video file that described first process is being play;
The suffix name of the title according to described first file determines the type of described first file;
The operation of described first file is optimized by the type according to described first file.
In other embodiment of the present invention, the described identification information according to described first process determines described The suffix name of the title of one file, including: monitoring network card data;From described network card data obtain audio frequency or The download link address of video file;The title of described first file is determined according to described download link address Suffix name.
In other embodiment of the present invention, the described identification information according to described first process determines described The suffix name of the title of one file, comprises determining that the identification information of each second process in the second process collection, Described second process collection is the set of the second process reading file;Obtain each described second process The title of the file read;The identification information of described first process is mated in described second process collection;Root Identification information according to described first process determines the title of the first file from described second process collection.
Here, the described identification information determining the second process collection, including: by the Fast IO of file system Read obtains the identification information of each second process in the second process collection.
In other embodiment of the present invention, the described suffix name according to the title of described first file determines institute State the type of the first file, including: search, according to the suffix name of the title of described first file, the association preset Relation, obtains the type of described first file, described incidence relation for show the suffix name of file name with Corresponding relation between file type.
In other embodiment of the present invention, the described type according to described first file is to described first file Operation be optimized, including: if the type of described first file shows that described first file is video, It is the acoustic pattern playing video that the sound of described electronic equipment switches to first mode, described first mode; If the type of described first file shows that described first file is audio frequency, the sound of described electronic equipment is cut Being changed to the second pattern, described second pattern is to play the acoustic pattern of audio frequency;
In other embodiment of the present invention, the described type according to described first file is to described first file Operation be optimized, including: if the type of described first file shows that described first file is video, Obtain described electronic equipment presents pattern;Judge described electronic equipment presents whether pattern meets default First condition;If meeting described first condition, described video is set to full frame.
In other embodiment of the present invention, described processor, it is additionally operable to obtain the process list of user setup List;Judge whether the process in the single-row table of described process name occurs in described second process collection;If Process in the single-row table of described process name occurs in described second process collection, according to described first process Identification information determines the title of the first file from described second process collection.
Here, described processor, if the process being additionally operable in the single-row table of described process name does not appears in described In second process collection, flow process terminates.
It need to be noted that: the description of above electronic equipment embodiment item, describing with said method is class As, there is the beneficial effect identical with embodiment of the method, do not repeat.Electronics of the present invention is set The ins and outs not disclosed in standby embodiment, those skilled in the art refer to the inventive method embodiment Describe and understand, for saving length, repeat no more here.
Should be understood that during description is in the whole text that " embodiment " or " embodiment " mentioned means with real Execute the relevant special characteristic of example, structure or characteristic to be included at least one embodiment of the present invention.Therefore, Not necessarily refer in " in one embodiment " or " in one embodiment " that entire disclosure occurs everywhere Identical embodiment.Additionally, these specific features, structure or characteristic can combine in any suitable manner In one or more embodiments.Should be understood that in various embodiments of the present invention, the sequence of above-mentioned each process Number size be not meant to the priority of execution sequence, the execution sequence of each process should be patrolled with its function and inherence Collect and determine, and the implementation process of the embodiment of the present invention should not constituted any restriction.The invention described above embodiment Sequence number, just to describing, does not represent the quality of embodiment.
It should be noted that in this article, term " include ", " comprising " or its any other variant meaning Containing comprising of nonexcludability, so that include the process of a series of key element, method, article or dress Put and not only include those key elements, but also include other key elements being not expressly set out, or also include for The key element that this process, method, article or device are intrinsic.In the case of there is no more restriction, by The key element that statement " including ... " limits, it is not excluded that including the process of this key element, method, thing Product or device there is also other identical element.
In several embodiments provided herein, it should be understood that disclosed equipment and method, can To realize by another way.Apparatus embodiments described above is only schematically, such as, and institute Stating the division of unit, be only a kind of logic function and divide, actual can have other dividing mode when realizing, As: multiple unit or assembly can be in conjunction with, or it is desirably integrated into another system, or some features can be neglected Slightly, or do not perform.It addition, the coupling each other of shown or discussed each ingredient or directly coupling Close or communication connection can be the INDIRECT COUPLING by some interfaces, equipment or unit or communication connection, can Be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location;Both may be located at a place, it is possible to To be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs Realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing unit, Can also be that each unit is individually as a unit, it is also possible to two or more unit are integrated in one In individual unit;Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds soft The form of part functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can Completing with the hardware relevant by programmed instruction, aforesaid program can be stored in embodied on computer readable storage In medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage is situated between Matter includes: movable storage device, read only memory (Read Only Memory, ROM), magnetic disc or The various medium that can store program code such as CD.
Or, if the above-mentioned integrated unit of the present invention is using the form realization of software function module and as independent Production marketing or use time, it is also possible to be stored in a computer read/write memory medium.Based on so Understanding, the part that prior art is contributed by the technical scheme of the embodiment of the present invention the most in other words can Embodying with the form with software product, this computer software product is stored in a storage medium, bag Include some instructions with so that a computer equipment (can be personal computer, server or network Equipment etc.) perform all or part of of method described in each embodiment of the present invention.And aforesaid storage medium bag Include: the various media that can store program code such as movable storage device, ROM, magnetic disc or CD.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should It is as the criterion with described scope of the claims.

Claims (10)

1. an information processing method, it is characterised in that described method includes:
Determine entering of the sound channel that the identification information of the first process, described first process are use electronic equipment The set of journey;
Identification information according to described first process determines the suffix name of the title of described first file, described One file is the audio or video file that described first process is being play;
The suffix name of the title according to described first file determines the type of described first file;
The operation of described first file is optimized by the type according to described first file.
Method the most according to claim 1, it is characterised in that the described mark according to described first process Knowledge information determines the suffix name of the title of described first file, including:
Monitoring network card data;
The download link address of audio or video file is obtained from described network card data;
The suffix name of the title of described first file is determined according to described download link address.
Method the most according to claim 1, it is characterised in that the described mark according to described first process Knowledge information determines the suffix name of the title of described first file, including:
Determining the identification information of each second process in the second process collection, described second process collection is Read the set of the second process of file;
Obtain the title of the file of the reading of each described second process;
The identification information of described first process is mated in described second process collection;
Identification information according to described first process determines the name of the first file from described second process collection Claim.
Method the most according to claim 3, it is characterised in that the described mark determining the second process collection Knowledge information, including:
The mark being obtained each second process in the second process collection by the Fast IO Read of file system is believed Breath.
5. according to the method described in any one of Claims 1-4, it is characterised in that described according to described The suffix name of the title of one file determines the type of described first file, including:
The suffix name of the title according to described first file searches the incidence relation preset, and obtains described first literary composition The type of part, described incidence relation is for showing the corresponding pass between the suffix name of file name and file type System.
Method the most according to claim 1, it is characterised in that the described class according to described first file The operation of described first file is optimized by type, including:
If the type of described first file shows that described first file is video, by the sound of described electronic equipment Sound switches to first mode, described first mode to be the acoustic pattern playing video;
If the type of described first file shows that described first file is audio frequency, by the sound of described electronic equipment Sound switches to the second pattern, described second pattern to be to play the acoustic pattern of audio frequency.
Method the most according to claim 1, it is characterised in that the described class according to described first file The operation of described first file is optimized by type, including:
If the type of described first file shows that described first file is video, obtain described electronic equipment Present pattern;
Judge described electronic equipment presents whether pattern meets default first condition;
If meeting described first condition, described video is set to full frame.
Method the most according to claim 3, it is characterised in that described method also includes:
Obtain the single-row table of process name of user setup;
Judge whether the process in the single-row table of described process name occurs in described second process collection;
If the process in the single-row table of described process name occurs in described second process collection, according to described The identification information of one process determines the title of the first file from described second process collection.
9. an information processor, it is characterised in that described device includes that first determines unit, second true Cell, the 3rd determine unit and optimize unit, wherein:
Described first determines unit, and for determining the identification information of the first process, described first process is for using The set of the process of the sound channel of electronic equipment;
Described second determines unit, for determining described first file according to the identification information of described first process The suffix name of title, described first file is the audio or video file that described first process is being play;
Described 3rd determines unit, and the suffix name for the title according to described first file determines described first The type of file;
Described optimization unit, for carrying out the operation of described first file according to the type of described first file Optimize.
10. an electronic equipment, it is characterised in that described electronic equipment includes sound channel and processor, Wherein said processor is used for:
Determine entering of the sound channel that the identification information of the first process, described first process are use electronic equipment The set of journey;
Identification information according to described first process determines the suffix name of the title of described first file, described One file is the audio or video file that described first process is being play;
The suffix name of the title according to described first file determines the type of described first file;
The operation of described first file is optimized by the type according to described first file.
CN201610189127.1A 2016-03-29 2016-03-29 Information processing method and device and electronic equipment Active CN105893496B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610189127.1A CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment
CN202010779458.7A CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610189127.1A CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010779458.7A Division CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105893496A true CN105893496A (en) 2016-08-24
CN105893496B CN105893496B (en) 2020-07-24

Family

ID=57014542

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610189127.1A Active CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment
CN202010779458.7A Pending CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010779458.7A Pending CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN105893496B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162869A (en) * 2020-09-09 2021-01-01 北京如影智能科技有限公司 Message prompting method and device
CN113190404A (en) * 2021-04-23 2021-07-30 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771869A (en) * 2008-12-30 2010-07-07 深圳市万兴软件有限公司 AV (audio/video) encoding and decoding device and method
CN104199897A (en) * 2014-08-27 2014-12-10 陈包容 Method and device for identifying and saving file to be downloaded and quickly searching for downloaded file through mobile terminal
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN105245938B (en) * 2015-09-30 2019-08-16 努比亚技术有限公司 The device and method for playing multimedia file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771869A (en) * 2008-12-30 2010-07-07 深圳市万兴软件有限公司 AV (audio/video) encoding and decoding device and method
CN104199897A (en) * 2014-08-27 2014-12-10 陈包容 Method and device for identifying and saving file to be downloaded and quickly searching for downloaded file through mobile terminal
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
武伟: "《操作系统教程》", 29 February 2004, 机械工业出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162869A (en) * 2020-09-09 2021-01-01 北京如影智能科技有限公司 Message prompting method and device
CN113190404A (en) * 2021-04-23 2021-07-30 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium
CN113190404B (en) * 2021-04-23 2023-01-03 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN105893496B (en) 2020-07-24
CN112099926A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US9825893B2 (en) System and method for broadcasting audio tweets
Godwin-Jones Skype and podcasting: Disruptive technologies for language learning
US10019999B2 (en) Data processing method and system
KR102058131B1 (en) Modulation of Packetized Audio Signals
CN103827912A (en) Web-based music partner systems and methods
CN103456332A (en) Audio playing device and volume adjusting method
WO2018157743A1 (en) Media data processing method, device, system and storage medium
CN107609034A (en) A kind of audio frequency playing method of intelligent sound box, audio playing apparatus and storage medium
CN101968805A (en) Information providing system and method
CN104780400A (en) Mobile advertisement push system and method for operating mobile electronic device thereof
US20170109128A1 (en) Continuous Audio-Clip Streaming with Dynamic Content
CN107071711A (en) Multimedia sharing method, device and Bluetooth equipment
CN104581396A (en) Processing method and device for promotion information
CN102568530A (en) Audio playback device and method
CN105893496A (en) Information processing method and device and electronic device
KR20140054555A (en) Method for operating alarm and electronic device supporting the same
WO2023010019A1 (en) Live audio advertising bidding and moderation system
US20080253237A1 (en) Methods and Apparatus for Automatic Information Retrieval through Internet and Providing the Feedback to Service Providers
US20090013345A1 (en) Method and equipment for monitoring tone quality of audio player and broadcast system
Harper Autoplaying, Unmuting, Attending:(Re) formatting the Twenty-First-Century Digital Sensorium
CN106878828A (en) The method and device of automatic switchover multimedia code check
JP2015065545A (en) Broadcast program point giving system, user device, and computer program
CN103873935A (en) Data processing method and device
JP6606579B1 (en) Reproduction situation investigation system, reproduction situation investigation method, and program
CN103078910B (en) A kind of method of Web-page segmentation and 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