CN106959863A - A kind of passive flow media processing method and device - Google Patents

A kind of passive flow media processing method and device Download PDF

Info

Publication number
CN106959863A
CN106959863A CN201710205978.5A CN201710205978A CN106959863A CN 106959863 A CN106959863 A CN 106959863A CN 201710205978 A CN201710205978 A CN 201710205978A CN 106959863 A CN106959863 A CN 106959863A
Authority
CN
China
Prior art keywords
variables
environment
parameter
decision
play mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710205978.5A
Other languages
Chinese (zh)
Other versions
CN106959863B (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.)
CHENGDU WANGAN TECHNOLOGY DEVELOPMENT Co.,Ltd.
Original Assignee
CHENGDU CHANGTIAN INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU CHANGTIAN INFORMATION TECHNOLOGY Co Ltd filed Critical CHENGDU CHANGTIAN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201710205978.5A priority Critical patent/CN106959863B/en
Publication of CN106959863A publication Critical patent/CN106959863A/en
Application granted granted Critical
Publication of CN106959863B publication Critical patent/CN106959863B/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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of passive flow media processing method and device provided in an embodiment of the present invention, belong to the streaming Media Technology field of desktop virtualization.The passive flow media processing method includes obtaining the first environment set of variables of Streaming Media;First environment set of variables is filtered based on preset rules, the second environment set of variables after filtering is obtained;Obtain multiple play mode corresponding to second environment set of variables;Obtain the target play mode that user selects from multiple play mode;Configuration order is generated based on target play mode and service end and client is sent to.The application obtains multiple play mode corresponding to environmental variance group after filtering by being filtered to first environment set of variables;Again by obtaining the target play mode that user selects, target play mode is generated into configuration order and service end and client is sent to, so that the ambient parameter of service end and client according to corresponding to configuration order sets target play mode, so as to realize the intelligent flexible configuration to play mode.

Description

A kind of passive flow media processing method and device
Technical field
The present invention relates to the streaming Media Technology field of desktop virtualization, in particular to a kind of static Streaming Media Processing method and processing device.
Background technology
Many desktop virtualization agreements all only support single Streaming Media processing mode, part desktop virtualization agreement at present Though there is provided a variety of Streaming Media processing modes, can only be configured in system background, configure dumb so that the body of user Test sense largely reduce, return user bring greatly it is constant;Meanwhile, if giving user by configuration power, how to draw Lead user and carry out reasonable, correct configuration selection, also need to carry out corresponding design with considering.Therefore, how to solve the above problems The problem of being current urgent need to resolve.
The content of the invention
The present invention provides a kind of passive flow media processing method and device, it is intended to improve above mentioned problem.
In a first aspect, a kind of passive flow media processing method that the present invention is provided, described applied to desktop virtual system System includes service end and client, and the service end is coupled with the client, and methods described includes:Obtain the of Streaming Media One environmental variance group;The first environment set of variables is filtered based on preset rules, the second environment after filtering is obtained and becomes Amount group;Obtain multiple play mode corresponding to the second environment set of variables;User is obtained to select from the multiple play mode The target play mode selected;Configuration order is generated based on the target play mode and the service end and the client is sent to End, so that the environment of the service end and the client according to corresponding to the configuration order sets the target play mode Parameter.
A kind of second aspect, passive flow media processor that the present invention is provided is described applied to desktop virtual system System includes service end and client, and the service end is coupled with the client, and described device includes:First data acquisition list Member, the first environment set of variables for obtaining Streaming Media;Data processing unit, for based on preset rules to the first environment Set of variables is filtered, and obtains the second environment set of variables after filtering;Second data capture unit, for obtaining second ring Multiple play mode corresponding to the set of variables of border;Data selection unit, is selected for obtaining user from the multiple play mode Target play mode;Data generating unit, for generating configuration order based on the target play mode and being sent to described Service end and the client, so that the service end and the client set the target to play according to the configuration order Ambient parameter corresponding to pattern.
A kind of passive flow media processing method and device that the invention described above is provided, the application pass through to first environment variable Group is filtered, and obtains multiple play mode corresponding to environmental variance group after filtering;Again by obtaining the target that user selects Play mode, generates configuration order by target play mode and is sent to service end and client, so that service end and client Ambient parameter according to corresponding to configuration order sets target play mode, flexibly matches somebody with somebody so as to realize to the intelligence of play mode Put.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the structured flowchart of a kind of electronic equipment provided in an embodiment of the present invention;
A kind of flow chart for passive flow media processing method that Fig. 2 provides for first embodiment of the invention;
A kind of flow chart for passive flow media processing method that Fig. 3 provides for second embodiment of the invention;
A kind of high-level schematic functional block diagram for passive flow media processor that Fig. 4 provides for third embodiment of the invention;
A kind of high-level schematic functional block diagram for passive flow media processor that Fig. 5 provides for fourth embodiment of the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Therefore, The detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit the model of claimed invention below Enclose, but be merely representative of the selected embodiment of the present invention.Based on the embodiment in the present invention, those of ordinary skill in the art are not having There is the every other embodiment made and obtained under the premise of creative work, belong to the scope of protection of the invention.
As shown in figure 1, being the structured flowchart of a kind of electronic equipment provided in an embodiment of the present invention.Wherein, the electronics is set Standby 200 include passive flow media processor, it is memory 202, storage control 203, processor 204, Peripheral Interface 205, defeated Enter output unit 206, audio unit 207, display unit 208.
The memory 202, storage control 203, processor 204, Peripheral Interface 205, input-output unit 206, sound Frequency unit 207, each element of display unit 208 are directly or indirectly electrically connected with each other, to realize the transmission or friendship of data Mutually.It is electrically connected with for example, these elements can be realized by one or more communication bus or signal wire each other.The static state Streaming Media processing unit can be stored in the memory 202 including at least one in the form of software or firmware (firmware) Or it is solidificated in the software function mould in the operating system of the Streaming Media processing terminal equipment (operating system, OS) Block.The processor 204 is used to perform the executable module stored in memory 202, such as described passive flow media handling dress Put including software function module or computer program.
Wherein, memory 202 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read- Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 202 is used for storage program, and the processor 204 is performed described after execute instruction is received Program.
Processor 204 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor 204 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), It is ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hard Part component.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor Can be microprocessor or the processor can also be any conventional processor 204 etc..
Various input/output devices are coupled to processor 204 and memory 202 by the Peripheral Interface 205.At some In embodiment, Peripheral Interface 205, processor 204 and storage control 203 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Input-output unit 206 is used to be supplied to user input data to realize user and the friendship of server or local terminal Mutually.The input-output unit 206 may be, but not limited to, mouse and keyboard etc..
Audio unit 207 is used to provide a user COBBAIF, its may include one or more microphones, one or many Individual loudspeaker and voicefrequency circuit.
Display unit 208 provides an interactive interface in server (or local terminal) between user, and (for example user grasps Make interface) or for display image data give user reference.In the present embodiment, the display unit 208 can be liquid crystal Show device or touch control display.If touch control display, its can for support single-point and multi-point touch operation capacitance type touch control screen or Resistance type touch control screen etc..Support that single-point and multi-point touch operation refer to that touch control display can be sensed on the touch control display The touch control operation that one or more positions are produced simultaneously, and transfer to processor 204 to be counted the touch control operation that this is sensed Calculate and handle.
Referring to Fig. 2, being a kind of flow chart for passive flow media processing method that first embodiment of the invention is provided.Below Idiographic flow shown in Fig. 2 will be described in detail.
Step S301, obtains the first environment set of variables of Streaming Media.
In the present embodiment, the first environment set of variables refers to the multiple parameters set of playing environment, specifically, described First environment set of variables includes the hardware supported situation, the hardware supported situation of client and redirection player of service end Playing environment.
In the present embodiment, each parameter in the first environment set of variables is expressed using Boolean expression.
As a kind of embodiment, in initialization, client and service end and Streaming Media static configuration strategy phase are collected The key parameter of pass, that is, obtain the first environment set of variables.The related key parameter refers to the hardware supported of service end Situation, the hardware supported situation of client and the playing environment for redirecting player.Wherein it is possible to the ginseng for passing through user input Number obtains the hardware supported situation, the hardware supported situation of client and the playing environment for redirecting player of service end, also Obtained automatically when can be by initializing.
Step S302, is filtered based on preset rules to the first environment set of variables, obtains the second ring after filtering Border set of variables.
Wherein, the preset rules include the first preset rules and the second preset rules.First preset rules refer to Default tight restrictive condition is met, wherein tight restrictive condition includes indispensability condition or recommendatory condition.Described second default rule Then refer to meet default wide restrictive condition, wherein wide restrictive condition includes indispensability condition.
In the present embodiment, the indispensability condition or recommendatory condition refer to playing environment to service end, client with And the requirement of player.For example, the necessary restrictive condition under seamless experience pattern is has player restriction, it is visitor to recommend condition Family end carries hard decoder.Table 1 shows the restrictive condition corresponding to each pattern.
Table 1
Wherein, it is necessary to which property restrictive condition refers to:To this pattern of use, then the option that current environment must is fulfilled for, if Current environment can not meet these conditions, then can cause function can not normally using or cause hardware to use storm.Similarly, recommend Property restrictive condition refers to:To use this pattern, the then option that current environment is preferably met, if current environment can not meet this A little conditions, although then function is possible to use, can be impacted to the resource abundance of whole system.
As a kind of embodiment, the multiple first decision-makings coding generated based on the first preset rules, specifically, base are obtained The first parameter of the service end hardware supported is obtained in the first preset rules;The client is obtained based on the first preset rules Second parameter of hardware supported;The 3rd parameter for redirecting player support is obtained based on the first preset rules;According to institute State the first parameter, second parameter and the 3rd parameter and generate the first decision-making coding.When the first environment variable When group is matched with any one in the multiple first decision-making coding, first determined what the first environment set of variables was matched Plan coding is used as second environment set of variables.Specifically, by each parameter value in the first environment set of variables respectively with it is each Corresponding parameter value is compared in first decision-making coding, multiple outcome variable groups is obtained, from multiple outcome variable groups It is middle to search the purpose outcome variable group for meeting preset standard, the first decision-making corresponding to the purpose outcome variable group is encoded and made For the second environment set of variables.Wherein, first parameter refers to whether the service end under current play mode needs hardware The Boolean supported, similarly, second parameter refers to whether the client under current play mode needs hardware supported A Boolean, the 3rd parameter refer under current play mode whether supporting redirect player a boolean Value.
Wherein, the first decision-making coding refers to generate a kind of volume corresponding to each play mode based on tight restrictive condition Code.Table 2 shows each pattern the first decision-making coding corresponding under tight restrictive condition.
Table 2
Wherein, 0 represent that to this environment no requirement (NR) 1 expression is required to this environment.For example corresponding to seamless experience pattern Decision-making coding [0,1,1] represent current play mode under, either recommendatory condition or indispensability condition is all to service end Hardware supported is not required.Either support represent it is that recommendatory condition is required for 1 for client hardware, or it is indispensability Condition is required, as long as wherein any one condition is required, then is 1.Or support to be that 1 expression is for redirecting player Recommendatory condition is required, and is then 1 as long as wherein any one condition is required or being that indispensability condition is required.
In the present embodiment, first parameter, second parameter and the 3rd parameter refer respectively to y1, y2 and y3.I.e. described first parameter is corresponding with the y1, and second parameter is corresponding with the y2, the 3rd parameter with described y3 pairs Should.
In the present embodiment, first environment set of variables is filtered specially when based on the first preset rules:Order is described First environment set of variables is X=[x1,x2,x3], first decision-making is encoded to Y=[y1,y2,y3], work as ymValue be 0 when, then No matter xmValue be 0 or 1 when, obtained result kmValue be 0, the m is more than or equal to 1 and less than or equal to 3;I.e. as m=1, y1 Value be 0 when, then the result k obtained1Value be 0.Work as ymValue when being 1, and work as xmValue be 1 when, obtained kmValue be 0; Work as ymValue when being 1, and work as xmValue be 0 when, obtained kmValue be 1;As K=[k1,k2,k3]=[0,0,0] when, judge institute State first environment set of variables X=[x1,x2,x3] encode Y=[y with first decision-making1,y2,y3] matching, by the first environment The first decision-making that set of variables is matched is encoded as second environment set of variables.I.e. by first environment set of variables and each first decision-making Coding is compared, so as to realize the operation of filtering.I.e. successively by first corresponding to first environment set of variables and each pattern Decision-making coding compares, so that the supported streaming media playing set of modes in the case of the first environment set of variables is obtained, After this set is shown and it is recorded on backstage, used in case updating.
As another embodiment, the multiple second decision-makings coding generated based on the second preset rules is obtained;When described When first environment set of variables is matched with any one in the multiple second decision-making coding, by the first environment set of variables institute The second decision-making coding of matching is used as second environment set of variables.Described acquisition generated based on the second preset rules multiple second Decision-making coding refers to the first condition parameter that the service end hardware supported is obtained based on the second preset rules;It is default based on second The second condition parameter that client hardware described in Rule is supported;The redirection player is obtained based on the second preset rules The third condition parameter of support;Given birth to according to the first condition parameter, the second condition parameter and the third condition parameter Into second decision-making coding.
In the present embodiment, the first environment set of variables is filtered by the second preset rules, that is, passes through the tolerance Condition processed is filtered to the first environment set of variables, specifically:By obtaining each play mode for playing environment It is required that, the second decision-making coding can be obtained.Table 3 shows that the second decision-making corresponding under the conditions of tolerance system of each pattern is compiled Code.
Table 3
Wherein, 0 represent that to this environment no requirement (NR) 1 expression is required to this environment.For example corresponding to seamless experience pattern Decision-making coding [0,0,1] represent current play mode under, it is necessary to property condition is not required service end hardware supported.Similarly, Support to be also the same for client hardware, i.e., indispensability condition is not required.Support to represent for 1 for redirecting player Indispensability condition is required.
In the present embodiment, the first condition parameter, the second condition parameter and third condition parameter difference Refer to z1, z2 and z3.I.e. described first condition parameter is corresponding with the z1, and the second condition parameter is corresponding with the z2, institute State third condition parameter corresponding with the z3.
In the present embodiment, it is described when based on the second preset rules first environment set of variables is carried out filtering with based on the One default filtering is same comparison process, be will not be repeated here.
In the present embodiment, the first condition parameter, the second condition parameter and third condition parameter generation The second decision-making coding refers to the shape by described first condition parameter, second condition parameter and third condition parameter to gather Formula constitutes the second decision-making coding.
Step S303, obtains the play mode corresponding to the second environment set of variables.
Wherein, the second environment set of variables refer to first environment set of variables by step S302 filter after obtain first Decision-making is encoded or the second decision-making coding.
In the present embodiment, the first decision-making coding or the corresponding play mode of second decision-making coding are obtained.For example, When being filtered by the first decision-making coding to the first environment set of variables, then obtain the first decision-making obtained after filtering and compile Code, i.e., the first decision-making coding corresponding to described first environment variable, and corresponding broadcast is encoded by the first decision-making of acquisition Mode playback is played out.When being filtered by the second decision-making coding to the first environment set of variables, then obtain after filtering Obtained the second decision-making coding, i.e., the second decision-making corresponding to described first environment variable is encoded, and second by acquisition is determined The corresponding play mode of plan coding is played out.
Step S304, obtains the target play mode that user selects from the multiple play mode.
Wherein, the target play mode refers to play mode of the user selected in multiple play mode.
In the present embodiment, it can be obtained by obtaining the flag information of each play mode corresponding to the flag information Play mode, obtain target play mode of the user selected in multiple play mode so as to realize, that is, pass through to obtain and use The flag information of the selected play mode in family, so as to obtain the broadcasting corresponding to the flag information by the flag information Pattern, as target play mode.
Step S305, generates configuration order based on the play mode and is sent to the service end and the client, So that the ambient parameter of the service end and the client according to corresponding to the configuration order sets the play mode.
Wherein it is possible to configuration order is distributed into the service end and the client by command channel, with complete The setting of paired current streaming media playing pattern relevant parameter simultaneously realizes the play mode.Specifically, for service end and client It is to add when enabling the usable hardware such as seamless experience pattern, high definition compatibility mode and smoothness compatibility mode that the configuration at end is hardware-accelerated During the pattern of speed, if finding, client is hardware-accelerated available with service end, enables corresponding hardware-accelerated.If user have selected Seamless experience mode switch is opened, the player assembly of player types can be supported by monitoring, what can be supported broadcasts as found Device assembly startup is put, judges whether currently playing video format supports that video is redirected, seamless experience mould is enabled if supporting Formula is redirection pattern, and streaming media files are transmitted;Other three in addition to seamless experience pattern are used if not supporting Default play mode in the mode of kind, streaming media files are transmitted.
In the present embodiment, when detecting streaming media playing environment and changing, according to specific changed factor, i.e. root According to the ambient parameter amendment environment set of variables of acquisition.So as to perform filtering using new environmental variance group, that is, generate new first Decision-making is encoded or the second decision-making coding, so as to obtain the supported modal sets collection of Streaming Media strategy under new environmental variance group Close.By supporting after renewal, modal sets set can support that set of modes compares with original, as found having differences property, then remind User has new Streaming Media pattern available or certain original pattern is unavailable.
Referring to Fig. 3, being a kind of flow chart for passive flow media processing method that second embodiment of the invention is provided.Below Idiographic flow shown in Fig. 3 will be described in detail.
Step S401, obtains the first environment parameter of the hardware supported situation for representing the service end.
Wherein, the hardware supported of described service end refers to video card hardware coding/decoding ability.The first environment Parameter refers to whether the service end under current play mode needs hardware supported.First parameter uses Boolean expression table Reach.I.e. when the first parameter is 1, represent to require the hardware supported of service end, when the first parameter is 0, represent to service The hardware supported at end is not required.
In the present embodiment, the acquisition to the first environment parameter of the hardware supported situation of service end is specially: Under Windows systems, the coder/decoder ability of oneself is identified by reference to GUID, obtains current by D3D device The GUID of service end under environment, so as to detect supported hardware encoding/decoding capability.Wherein, under linux system, The a set of profile defined by VAAPI, i.e., it is a set of to represent the codec capabilities supported, it can be obtained by inquiring about profile The ability supported to current chip, in addition under linux system, also a kind of Hardware Render mode (xvideo), this is X11 systems A kind of extension of system, before using xv functions, can inquire about video card by XvQueryAdaptors, XvListImageFormats The rendered formats of support.
Step S402, obtains the second environment parameter of the hardware supported situation for representing the client.
Wherein, the hardware supported of described client refers to video card hardware coding/decoding ability.The first environment Parameter refers to whether the client under current play mode needs hardware supported.Second parameter uses Boolean expression table Reach.I.e. when the second parameter is 1, represent to require the hardware supported of client, when the second parameter is 0, represent to client The hardware supported at end is not required.
In the present embodiment, the acquisition to the first environment parameter of the hardware supported situation of client is specially: Under Windows systems, the coder/decoder ability of oneself is identified by reference to GUID, obtains current by D3D device The GUID of service end under environment, so as to detect supported hardware encoding/decoding capability.Wherein, under linux system, The a set of profile defined by VAAPI, i.e., it is a set of to represent the codec capabilities supported, it can be obtained by inquiring about profile The ability supported to current chip, in addition under linux system, also a kind of Hardware Render mode (xvideo), this is X11 systems A kind of extension of system, before using xv functions, can inquire about video card by XvQueryAdaptors, XvListImageFormats The rendered formats of support.
Step S403, obtains the 3rd ambient parameter for representing the playing environment that can support to redirect player.
Wherein, under static environment, under windows operating systems, player install it is latter as can registration table bet The corresponding mount message of volume, the purpose of collection player list can be just reached by enumerating registration table relevant information.In dynamic Under environment, flow can be redirected by video, can intercept the player executable program path that is currently played and Title, so as to dynamically be collected into the accurate information of video playback environment.
Step S404, is generated according to the first environment parameter, the second environment parameter and the 3rd ambient parameter The first environment set of variables.
After all kinds of parameters have been obtained, all kinds of parameters are collected to service end, correspondence parameter is added to first environment variable In group.I.e. after the first environment parameter, the second environment parameter and the 3rd ambient parameter are all obtained, by described One ambient parameter, the second environment parameter and the 3rd ambient parameter add to first environment set of variables, so as to form One environmental variance group.
Step S405, is filtered based on preset rules to the first environment set of variables, obtains the second ring after filtering Border set of variables.
Step S406, obtains the play mode corresponding to the second environment set of variables.
Step S407, obtains the target play mode that user selects from the multiple play mode.
Step S408, generates configuration order based on the play mode and is sent to the service end and the client, So that the ambient parameter of the service end and the client according to corresponding to the configuration order sets the play mode.
Step S404, step S405, step S406, step S407 and step S408 embodiment refer to first Corresponding step, will not be repeated here in embodiment.
Referring to Fig. 4, a kind of functional module of the passive flow media processor provided for third embodiment of the invention is shown It is intended to.The passive flow media processor 500 includes the first data capture unit 510, data processing unit 520, second and counted According to acquiring unit 530, data selection unit 540 and data generating unit 550.
First data capture unit 510, the first environment set of variables for obtaining Streaming Media.
Data processing unit 520, for being filtered based on preset rules to the first environment set of variables, obtains filtering Second environment set of variables afterwards.
Wherein, the data processing unit 520 is additionally operable to obtain multiple first decision-makings generated based on the first preset rules Coding;When any one during the first environment set of variables is encoded with the multiple first decision-making is matched, by described first The first decision-making that environmental variance group is matched is encoded as second environment set of variables.Specifically, obtained based on the first preset rules First parameter of the service end hardware supported;The second ginseng that the client hardware is supported is obtained based on the first preset rules Number;The 3rd parameter for redirecting player support is obtained based on the first preset rules;According to first parameter, described Two parameters and the 3rd parameter generate the first decision-making coding.Wherein, it is described to work as the first environment set of variables and institute When stating any one matching in multiple first decision-making codings, the first decision-making that the first environment set of variables is matched is encoded Refer to respectively compile each parameter value in the first environment set of variables with each first decision-making as second environment set of variables Corresponding parameter value is compared in code, obtains multiple outcome variable groups, is searched and is met from multiple outcome variable groups The purpose outcome variable group of preset standard, regard the first decision-making coding corresponding to the purpose outcome variable group as described second Environmental variance group.Specifically, the first decision-making coding meets Y=[y1,y2,y3], the first environment set of variables meets X= [x1,x2,x3], work as ymValue be 0 when, then no matter xmValue be 0 or 1 when, obtained result kmValue be 0, the m is more than or equal to 1 and less than or equal to 3;Work as ymValue when being 1, and work as xmValue be 1 when, obtained kmValue be 0;Work as ymValue when being 1, and work as xm Value be 0 when, obtained kmValue be 1;As K=[k1,k2,k3]=[0,0,0] when, judge the first environment set of variables X= [x1,x2,x3] encode Y=[y with first decision-making1,y2,y3] matching, first that the first environment set of variables is matched Decision-making coding is used as second environment set of variables.
In the present embodiment, the data processing unit 520 is additionally operable to obtain based on the multiple of the second preset rules generation Second decision-making is encoded;, will when any one during the first environment set of variables is encoded with the multiple second decision-making is matched The second decision-making that the first environment set of variables is matched is encoded as second environment set of variables.Specifically, it is default based on second The first condition parameter of service end hardware supported described in Rule;The client hardware branch is obtained based on the second preset rules The second condition parameter held;The third condition parameter for redirecting player support is obtained based on the second preset rules;According to The first condition parameter, the second condition parameter and the third condition parameter generate the second decision-making coding.
Second data capture unit 530, for obtaining the play mode corresponding to the second environment set of variables.
Data selection unit 540, for obtaining the target play mode that user selects from the multiple play mode.
Data generating unit 550, for based on the play mode generate configuration order and be sent to the service end and The client, so that the service end and the client are according to corresponding to the configuration order sets the play mode Ambient parameter.
Referring to Fig. 5, a kind of functional module of the passive flow media processor provided for fourth embodiment of the invention is shown It is intended to.The passive flow media processor 600 includes the first data capture unit 610, data processing unit 620, second and counted According to acquiring unit 620, data selection unit 640 and data generating unit 650.
First data capture unit 610, the first environment set of variables for obtaining Streaming Media.
Wherein, first data capture unit 610 also includes the first parameter acquiring subelement 611, the second parameter acquiring Subelement 612, the 3rd parameter acquiring subelement 613 and data markers subelement 614.
First parameter acquiring subelement 611, first for obtaining the hardware supported situation for being used to represent the service end Ambient parameter.
Second parameter acquiring subelement 612, second for obtaining the hardware supported situation for being used to represent the client Ambient parameter.
3rd parameter acquiring subelement 613, obtains the 3rd of the playing environment that redirection player can be supported for expression Ambient parameter.
Data markers subelement 614, for according to the first environment parameter, the second environment parameter and the described 3rd Ambient parameter generates the first environment set of variables.
Data processing unit 620, for being filtered based on preset rules to the first environment set of variables, obtains filtering Second environment set of variables afterwards.
Second data capture unit 630, for obtaining the play mode corresponding to the second environment set of variables.
Data selection unit 640, for obtaining the target play mode that user selects from the multiple play mode.
Data generating unit 650, for based on the play mode generate configuration order and be sent to the service end and The client, so that the service end and the client are according to corresponding to the configuration order sets the play mode Ambient parameter.
In summary, the present invention provides a kind of passive flow media processing method and device, and the application passes through to first environment Set of variables is filtered, and obtains multiple play mode corresponding to environmental variance group after filtering;Again by obtaining what user selected Target play mode, generates configuration order by target play mode and is sent to service end and client, so that service end and visitor Ambient parameter of the family end according to corresponding to configuration order sets target play mode, so as to realize flexible to the intelligence of play mode Configuration.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part a, part for the module, program segment or code is used to realize holding for defined logic function comprising one or more Row instruction.It should also be noted that in some implementations as replacement, the function of being marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, can use the special base for performing defined function or action Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized using in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need It is noted that herein, such as first and second or the like relational terms are used merely to an entity or operation Made a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating any this Actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, article or equipment including a series of key elements are not only including those key elements, but also wrap Include other key elements being not expressly set out, or also include for this process, method, article or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, article or the equipment of element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.

Claims (10)

1. a kind of passive flow media processing method, applied to desktop virtual system, the system includes service end and client, The service end is coupled with the client, it is characterised in that methods described includes:
Obtain the first environment set of variables of Streaming Media;
The first environment set of variables is filtered based on preset rules, the second environment set of variables after filtering is obtained;
Obtain multiple play mode corresponding to the second environment set of variables;
Obtain the target play mode that user selects from the multiple play mode;
Configuration order is generated based on the target play mode and the service end and the client is sent to, so that the clothes The ambient parameter of business end and the client according to corresponding to the configuration order sets the target play mode.
2. according to the method described in claim 1, it is characterised in that the step of the first environment set of variables of described acquisition Streaming Media Suddenly include:
Obtain the first environment parameter of the hardware supported situation for representing the service end;
Obtain the second environment parameter of the hardware supported situation for representing the client;
Obtain the 3rd ambient parameter for representing the playing environment that can support to redirect player;
The first environment is generated according to the first environment parameter, the second environment parameter and the 3rd ambient parameter to become Amount group.
3. according to the method described in claim 1, it is characterised in that it is described based on preset rules to the first environment variable Group is filtered, and the step of obtaining the second environment set of variables after filtering includes:
Obtain the multiple first decision-makings coding generated based on the first preset rules;
When any one during the first environment set of variables is encoded with the multiple first decision-making is matched, by first ring The first decision-making that border set of variables is matched is encoded as second environment set of variables.
4. method according to claim 3, it is characterised in that described acquisition based on the first preset rules generate it is multiple The step of first decision-making is encoded includes:
The first parameter of the service end hardware supported is obtained based on the first preset rules;
The second parameter that the client hardware is supported is obtained based on the first preset rules;
Being obtained based on the first preset rules can support to redirect the 3rd parameter that player is supported;
The first decision-making coding is generated according to first parameter, second parameter and the 3rd parameter.
5. method according to claim 4, it is characterised in that it is described when the first environment set of variables with it is the multiple During any one matching in the first decision-making coding, the first decision-making coding that the first environment set of variables is matched is used as the The step of two environmental variance groups, includes:
Corresponding parameter value during each parameter value in the first environment set of variables is encoded with each first decision-making respectively It is compared, obtains multiple outcome variable groups, the purpose result for meeting preset standard is searched from multiple outcome variable groups Set of variables, regard the first decision-making coding corresponding to the purpose outcome variable group as the second environment set of variables.
6. method according to claim 5, it is characterised in that the first decision-making coding meets Y=[y1,y2,y3], institute State first environment set of variables and meet X=[x1,x2,x3], each parameter value by the first environment set of variables is distinguished Corresponding parameter value is compared in being encoded with each first decision-making, multiple outcome variable groups is obtained, from multiple results The purpose outcome variable group for meeting preset standard is searched in set of variables, by the first decision-making corresponding to the purpose outcome variable group The step of coding is as the second environment set of variables includes:
Work as ymValue be 0 when, then no matter xmValue be 0 or 1 when, obtained result kmValue be 0, the m is more than or equal to 1 and small In equal to 3;
Work as ymValue when being 1, and work as xmValue be 1 when, obtained kmValue be 0;
Work as ymValue when being 1, and work as xmValue be 0 when, obtained kmValue be 1;
As K=[k1,k2,k3]=[0,0,0] when, judge the first environment set of variables X=[x1,x2,x3] determined with described first Plan coding Y=[y1,y2,y3] matching, the first decision-making that the first environment set of variables is matched is encoded to be become as second environment Amount group.
7. according to the method described in claim 1, it is characterised in that it is described based on preset rules to the first environment variable Group is filtered, and the step of obtaining the second environment set of variables after filtering includes:
Obtain the multiple second decision-makings coding generated based on the second preset rules;
When any one during the first environment set of variables is encoded with the multiple second decision-making is matched, by first ring The second decision-making that border set of variables is matched is encoded as second environment set of variables.
8. method according to claim 7, it is characterised in that described acquisition based on the second preset rules generate it is multiple Second decision-making coding step includes:
The first condition parameter of the service end hardware supported is obtained based on the second preset rules;
The second condition parameter that the client hardware is supported is obtained based on the second preset rules;
Being obtained based on the second preset rules can support to redirect the third condition parameter that player is supported;
Second decision-making is generated according to the first condition parameter, the second condition parameter and the third condition parameter to compile Code.
9. a kind of passive flow media processor, applied to desktop virtual system, the system includes service end and client, The service end is coupled with the client, it is characterised in that described device includes:
First data capture unit, the first environment set of variables for obtaining Streaming Media;
Data processing unit, for being filtered based on preset rules to the first environment set of variables, obtains the after filtering Two environmental variance groups;
Second data capture unit, for obtaining the play mode corresponding to the second environment set of variables;
Data selection unit, for obtaining the target play mode that user selects from the multiple play mode;
Data generating unit, for generating configuration order based on the play mode and being sent to the service end and the client End, so that the environment ginseng of the service end and the client according to corresponding to the configuration order sets the play mode Number.
10. device according to claim 9, it is characterised in that first data capture unit specifically for:
Obtain the first environment parameter of the hardware supported situation for representing the service end;
Obtain the second environment parameter of the hardware supported situation for representing the client;
Obtain the 3rd ambient parameter for representing the playing environment that can support to redirect player;
The first environment is generated according to the first environment parameter, the second environment parameter and the 3rd ambient parameter to become Amount group.
CN201710205978.5A 2017-03-30 2017-03-30 Static streaming media processing method and device Active CN106959863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710205978.5A CN106959863B (en) 2017-03-30 2017-03-30 Static streaming media processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710205978.5A CN106959863B (en) 2017-03-30 2017-03-30 Static streaming media processing method and device

Publications (2)

Publication Number Publication Date
CN106959863A true CN106959863A (en) 2017-07-18
CN106959863B CN106959863B (en) 2021-03-12

Family

ID=59471084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710205978.5A Active CN106959863B (en) 2017-03-30 2017-03-30 Static streaming media processing method and device

Country Status (1)

Country Link
CN (1) CN106959863B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212831A1 (en) * 2002-04-08 2003-11-13 Matsushita Electric Industrial Co., Ltd. Image processing device and image processing method
CN102075976A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Mobile stream media player and mobile stream media playing method
CN102591655A (en) * 2011-12-28 2012-07-18 北京新媒传信科技有限公司 Method for implementing icon buttons and device
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device
CN103400591A (en) * 2013-08-12 2013-11-20 深圳市金立通信设备有限公司 Method and device for playing multimedia
CN103716562A (en) * 2013-12-31 2014-04-09 乐视致新电子科技(天津)有限公司 Image quality parameter storage method and system
CN104144351A (en) * 2014-04-04 2014-11-12 北京泰然神州科技有限公司 Video playing method and device applying virtualization platform
CN106101766A (en) * 2016-07-11 2016-11-09 乐视控股(北京)有限公司 The control method for playing back of a kind of video ads, device and electronic equipment
CN106385632A (en) * 2016-09-21 2017-02-08 微鲸科技有限公司 Video playing method and video playing device
CN106507178A (en) * 2016-12-09 2017-03-15 北京小米移动软件有限公司 Video broadcasting method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212831A1 (en) * 2002-04-08 2003-11-13 Matsushita Electric Industrial Co., Ltd. Image processing device and image processing method
CN102075976A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Mobile stream media player and mobile stream media playing method
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device
CN102591655A (en) * 2011-12-28 2012-07-18 北京新媒传信科技有限公司 Method for implementing icon buttons and device
CN103400591A (en) * 2013-08-12 2013-11-20 深圳市金立通信设备有限公司 Method and device for playing multimedia
CN103716562A (en) * 2013-12-31 2014-04-09 乐视致新电子科技(天津)有限公司 Image quality parameter storage method and system
CN104144351A (en) * 2014-04-04 2014-11-12 北京泰然神州科技有限公司 Video playing method and device applying virtualization platform
CN106101766A (en) * 2016-07-11 2016-11-09 乐视控股(北京)有限公司 The control method for playing back of a kind of video ads, device and electronic equipment
CN106385632A (en) * 2016-09-21 2017-02-08 微鲸科技有限公司 Video playing method and video playing device
CN106507178A (en) * 2016-12-09 2017-03-15 北京小米移动软件有限公司 Video broadcasting method and device

Also Published As

Publication number Publication date
CN106959863B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN104615655B (en) Information recommendation method and device
CN107547262A (en) Generation method, device and the Network Management Equipment of alarm level
CN108211352A (en) A kind of method and terminal for adjusting image quality
CN109062699A (en) A kind of resource monitoring method, device, server and storage medium
CN103918277B (en) The system and method for the confidence level being just presented for determining media item
CN106850692A (en) A kind of streaming media playing mode determining method and device
CN105138551A (en) Method and apparatus for obtaining user interest tag
CN102171644A (en) Audio-visual search and browse interface (AVSBI)
CN108243349A (en) A kind of information processing method and device
CN112417427A (en) Automatic management of digital content access
CN112102853B (en) Audio and video player control method and device, storage medium and electronic equipment
CN114548276A (en) Method and device for clustering data, electronic equipment and storage medium
CN108829595B (en) Test method, test device, storage medium and electronic equipment
KR20150050192A (en) Method for processing data and an electronic device thereof
CN111142989B (en) Object management method, device and storage medium
CN106959863A (en) A kind of passive flow media processing method and device
CN111475801A (en) Authority management method and system
CN105373720B (en) A kind of module control method and device applied to mobile terminal
CN101540828A (en) Object-oriented set-top box background channel development system and method thereof
CN115373564A (en) Function shortcut key self-defining method and device, software function control method and terminal
CN111859221B (en) Project recommendation method and device
CN108040064A (en) Data transmission method, device, electronic equipment and storage medium
CN106850691A (en) A kind of Streaming Media processing method and processing device
CN106294703A (en) A kind of file classifying method, device and terminal
CN106802856A (en) The performance test methods of game application, server and game application client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210326

Address after: 610000 business center a224, high tech West Zone, Chengdu, Sichuan Province

Patentee after: CHENGDU WANGAN TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 610000 Block C, building 6, G District, 218 Guangfu Road, Qingyang District, Chengdu City, Sichuan Province

Patentee before: Chengdu Changtian Information Technology Co.,Ltd.

TR01 Transfer of patent right