CN106959863B - Static streaming media processing method and device - Google Patents

Static streaming media processing method and device Download PDF

Info

Publication number
CN106959863B
CN106959863B CN201710205978.5A CN201710205978A CN106959863B CN 106959863 B CN106959863 B CN 106959863B CN 201710205978 A CN201710205978 A CN 201710205978A CN 106959863 B CN106959863 B CN 106959863B
Authority
CN
China
Prior art keywords
environment
parameter
variable group
acquiring
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710205978.5A
Other languages
Chinese (zh)
Other versions
CN106959863A (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

Images

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

The embodiment of the invention provides a static streaming media processing method and device, and belongs to the technical field of desktop virtualization streaming media processing. The static streaming media processing method comprises the steps of obtaining a first environment variable group of streaming media; filtering the first environment variable group based on a preset rule to obtain a filtered second environment variable group; acquiring a plurality of play modes corresponding to the second environment variable group; acquiring a target play mode selected by a user from a plurality of play modes; and generating a configuration command based on the target play mode and sending the configuration command to the server and the client. The method comprises the steps of filtering a first environment variable group to obtain a plurality of playing modes corresponding to the filtered environment variable group; and generating a configuration command for the target playing mode by acquiring the target playing mode selected by the user and sending the configuration command to the server and the client, so that the server and the client set the environmental parameters corresponding to the target playing mode according to the configuration command, thereby realizing intelligent and flexible configuration of the playing mode.

Description

Static streaming media processing method and device
Technical Field
The invention relates to the technical field of desktop virtualization streaming media processing, in particular to a static streaming media processing method and device.
Background
At present, a plurality of desktop virtualization protocols only support a single streaming media processing mode, and although a part of desktop virtualization protocols provide a plurality of streaming media processing modes, the desktop virtualization protocols can only be configured in a system background and are inflexible in configuration, so that the experience of a user is greatly reduced, and the desktop virtualization protocols also bring great invariance to the user; meanwhile, if the configuration right is handed over to the user, how to guide the user to make reasonable and correct configuration selection also needs to make corresponding design and consideration. Therefore, how to solve the above problems is a problem that needs to be solved at present.
Disclosure of Invention
The present invention provides a method and an apparatus for processing static streaming media, which aims to solve the above problems.
In a first aspect, the present invention provides a static streaming media processing method, applied to a desktop virtualization system, where the system includes a server and a client, where the server is coupled to the client, and the method includes: acquiring a first environment variable group of streaming media; filtering the first environment variable group based on a preset rule to obtain a filtered second environment variable group; acquiring a plurality of play modes corresponding to the second environment variable group; acquiring a target play mode selected by a user from the plurality of play modes; and generating a configuration command based on the target playing mode and sending the configuration command to the server and the client so that the server and the client set the environmental parameters corresponding to the target playing mode according to the configuration command.
In a second aspect, the present invention provides a static streaming media processing apparatus, applied to a desktop virtualization system, where the system includes a server and a client, where the server is coupled to the client, and the apparatus includes: the system comprises a first data acquisition unit, a second data acquisition unit and a processing unit, wherein the first data acquisition unit is used for acquiring a first environment variable group of streaming media; the data processing unit is used for filtering the first environment variable group based on a preset rule to obtain a filtered second environment variable group; a second data obtaining unit, configured to obtain multiple play modes corresponding to the second environment variable group; a data selection unit for acquiring a target play mode selected by a user from the plurality of play modes; and the data generation unit is used for generating a configuration command based on the target play mode and sending the configuration command to the server and the client so that the server and the client set the environment parameters corresponding to the target play mode according to the configuration command.
According to the static streaming media processing method and device provided by the invention, the first environment variable group is filtered to obtain a plurality of play modes corresponding to the filtered environment variable group; and generating a configuration command for the target playing mode by acquiring the target playing mode selected by the user and sending the configuration command to the server and the client, so that the server and the client set the environmental parameters corresponding to the target playing mode according to the configuration command, thereby realizing intelligent and flexible configuration of the playing mode.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 2 is a flowchart of a static streaming media processing method according to a first embodiment of the present invention;
fig. 3 is a flowchart of a static streaming media processing method according to a second embodiment of the present invention;
fig. 4 is a functional block diagram of a static streaming media processing apparatus according to a third embodiment of the present invention;
fig. 5 is a functional block diagram of a static streaming media processing apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device 200 includes a static streaming media processing apparatus, a memory 202, a storage controller 203, a processor 204, a peripheral interface 205, an input/output unit 206, an audio unit 207, and a display unit 208.
The memory 202, the memory controller 203, the processor 204, the peripheral interface 205, the input/output unit 206, the audio unit 207, and the display unit 208 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The static streaming media processing device includes at least one software functional module which can be stored in the memory 202 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the streaming media processing terminal device. The processor 204 is used for executing executable modules stored in the memory 202, such as software functional modules or computer programs included in the static streaming media processing device.
The Memory 202 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 202 is used for storing a program, and the processor 204 executes the program after receiving an execution instruction.
The processor 204 may be an integrated circuit chip having signal processing capabilities. The Processor 204 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor 204 or the like.
The peripherals interface 205 couples various input/output devices to the processor 204 and to the memory 202. In some embodiments, the peripheral interface 205, the processor 204, and the memory controller 203 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 206 is used for providing input data for the user to realize the interaction of the user with the server or the local terminal. The input/output unit 206 may be, but is not limited to, a mouse, a keyboard, and the like.
The audio unit 207 is used to provide an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit 208 provides an interactive interface (e.g., a user operation interface) between the server (or the local terminal) and the user or for displaying image data to the user reference. In this embodiment, the display unit 208 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations from one or more locations on the touch display at the same time, and the sensed touch operations are sent to the processor 204 for calculation and processing.
Fig. 2 is a flowchart illustrating a static streaming media processing method according to a first embodiment of the present invention. The specific process shown in fig. 2 will be described in detail below.
In step S301, a first environment variable set of the streaming media is obtained.
In this embodiment, the first environment variable group refers to a plurality of parameter sets of the playing environment, and specifically, the first environment variable group includes a hardware support condition of the server, a hardware support condition of the client, and a playing environment of the redirect player.
In the present embodiment, each parameter in the first environment variable group is expressed using a boolean expression.
As an implementation manner, during initialization, collecting key parameters related to the streaming media static configuration policy of the client and the server, that is, obtaining the first environment variable group. The related key parameters refer to the hardware support condition of the server, the hardware support condition of the client and the playing environment of the redirection player. The hardware support condition of the server, the hardware support condition of the client and the playing environment of the redirection player can be obtained through parameters input by a user, and the hardware support condition can also be automatically obtained through initialization.
Step S302, filtering the first environment variable group based on a preset rule, and acquiring a filtered second environment variable group.
The preset rules comprise a first preset rule and a second preset rule. The first preset rule means that a preset strict condition is met, wherein the strict condition comprises an obligatory condition or a recommended condition. The second preset rule means that a preset width limit condition is met, wherein the width limit condition comprises an obligatory condition.
In this embodiment, the mandatory condition or the recommended condition refers to a requirement of the playing environment for the server, the client, and the player. For example, the necessary constraint in seamless experience mode is the presence of player limitations, and the recommended condition is that the client has hard decoding. Table 1 shows restrictive conditions corresponding to the respective modes.
TABLE 1
Figure BDA0001258887270000061
Wherein the obligatory limitation condition is: if the current environment cannot meet the conditions, the function cannot be normally used or hardware use storm is caused. Similarly, the recommended restrictions refer to: if this mode is to be used, the current environment is the best option to satisfy, and if the current environment cannot satisfy these conditions, although the function may be available, it will affect the resource sufficiency of the whole system.
As an implementation manner, a plurality of first decision codes generated based on a first preset rule are obtained, and specifically, a first parameter supported by the server hardware is obtained based on the first preset rule; acquiring a second parameter supported by the client hardware based on a first preset rule; acquiring a third parameter supported by the redirection player based on a first preset rule; generating the first decision encoding according to the first parameter, the second parameter, and the third parameter. And when the first environment variable group is matched with any one of the plurality of first decision codes, using the first decision code matched with the first environment variable group as a second environment variable group. Specifically, each parameter value in the first environment variable group is compared with a corresponding parameter value in each first decision code to obtain a plurality of result variable groups, a target result variable group meeting a preset standard is searched from the plurality of result variable groups, and the first decision code corresponding to the target result variable group is used as the second environment variable group. Similarly, the second parameter refers to whether the client in the current play mode needs a boolean value supported by hardware, and the third parameter refers to whether the client in the current play mode supports a boolean value of the redirect player.
The first decision code is a code corresponding to each play mode generated based on strict conditions. Table 2 shows the corresponding first decision codes of the respective modes under strict conditions.
TABLE 2
Figure BDA0001258887270000071
Wherein 0 indicates that there is no requirement for the environment, and 1 indicates that there is a requirement for the environment. For example, the decision code [0, 1, 1] corresponding to the seamless experience mode indicates that no matter the recommendation condition or the necessity condition has no requirement on the hardware support of the server under the current play mode. A client hardware support of 1 means that either a recommended condition or an obligatory condition is required, and that 1 is required if any one of the conditions is required. A support of 1 for the redirect player means that either a recommendation condition or a necessity condition is required, and that 1 is required if any one of the conditions is required.
In the present embodiment, the first parameter, the second parameter and the third parameter refer to y1, y2 and y3, respectively. That is, the first parameter corresponds to the y1, the second parameter corresponds to the y2, and the third parameter corresponds to the y 3.
In this embodiment, when filtering the first environment variable group based on the first preset rule, specifically: let the first set of environmental variables be X ═ X1,x2,x3]The first decision code is Y ═ Y1,y2,y3]When y ismWhen the value of (A) is 0, then x is not countedmWhen the value of (A) is 0 or 1, the result k is obtainedmIs 0, said m is greater than or equal to 1 and less than or equal to 3; i.e. when m is 1, y1When the value of (A) is 0, the result k is obtained1The value of (d) is 0. When y ismIs 1, and when xmWhen the value of (1) is obtained, kmIs 0; when y ismIs 1, and when xmWhen the value of (A) is 0, k is obtainedmHas a value of 1; when K is ═ K1,k2,k3]=[0,0,0]When the first environment variable group X ═ X is determined1,x2,x3]And said first decision coding Y ═ Y1,y2,y3]And matching, namely using the first decision code matched with the first environment variable group as a second environment variable group. I.e. comparing the first set of environment variables with each of the first decision encodings, thereby implementing the filtering operation. The first environment variable group is compared with the first decision codes corresponding to the modes in sequence, so that a stream media playing mode set which can be supported under the condition of the first environment variable group is obtained, and the set is displayed and recorded in a background for updating and using.
As another implementation, a plurality of second decision codes generated based on a second preset rule are obtained; and when the first environment variable group is matched with any one of the plurality of second decision codes, using the second decision code matched with the first environment variable group as a second environment variable group. The obtaining of the plurality of second decision codes generated based on the second preset rule refers to obtaining a first condition parameter supported by the server hardware based on the second preset rule; acquiring a second condition parameter supported by the client hardware based on a second preset rule; acquiring a third condition parameter supported by the redirection player based on a second preset rule; generating the second decision code according to the first conditional parameter, the second conditional parameter, and the third conditional parameter.
In this embodiment, the first environment variable group is filtered through a second preset rule, that is, the first environment variable group is filtered through a grace limit condition, specifically: the second decision code can be obtained by obtaining the requirements of each play mode for the play environment. Table 3 shows the second decision coding for each mode under the wide-limited condition.
TABLE 3
Figure BDA0001258887270000081
Figure BDA0001258887270000091
Wherein 0 indicates that there is no requirement for the environment, and 1 indicates that there is a requirement for the environment. For example, the decision code [0, 0, 1] corresponding to the seamless experience mode indicates that the mandatory condition has no requirement for the hardware support of the server in the current play mode. The same is true for client hardware support, i.e., there is no requirement for an obligation condition. A support of 1 for the redirect player indicates that there is a requirement for the necessity condition.
In the present embodiment, the first condition parameter, the second condition parameter and the third condition parameter refer to z1, z2 and z3, respectively. Namely, the first condition parameter corresponds to z1, the second condition parameter corresponds to z2, and the third condition parameter corresponds to z 3.
In this embodiment, the filtering of the first environment variable group based on the second preset rule and the filtering based on the first preset rule are the same comparison process, and are not described herein again.
In this embodiment, the generating the second decision code by the first conditional parameter, the second conditional parameter and the third conditional parameter refers to forming the second decision code by the first conditional parameter, the second conditional parameter and the third conditional parameter in a form of a set.
Step S303, acquiring a play mode corresponding to the second environment variable group.
The second environment variable group is the first decision code or the second decision code obtained by filtering the first environment variable group in step S302.
In this embodiment, a play mode corresponding to the first decision code or the second decision code is obtained. For example, when the first environment variable group is filtered through a first decision code, the first decision code obtained after filtering, that is, the first decision code corresponding to the first environment variable, is obtained, and the playing is performed through the playing mode corresponding to the obtained first decision code. And when the first environment variable group is filtered through a second decision code, acquiring the second decision code obtained after filtering, namely the second decision code corresponding to the first environment variable, and playing through a playing mode corresponding to the acquired second decision code.
Step S304, acquiring a target play mode selected by the user from the plurality of play modes.
The target play mode refers to a play mode selected by a user from a plurality of play modes.
In this embodiment, the playing mode corresponding to the mark information may be obtained by obtaining the mark information of each playing mode, so as to obtain a target playing mode selected by a user from a plurality of playing modes, that is, by obtaining the mark information of the playing mode selected by the user, so as to obtain the playing mode corresponding to the mark information by the mark information, that is, the target playing mode.
Step S305, generating a configuration command based on the play mode and sending the configuration command to the server and the client, so that the server and the client set an environment parameter corresponding to the play mode according to the configuration command.
And the configuration command can be distributed to the server and the client through a command channel so as to complete the setting of the corresponding parameters of the current streaming media playing mode and realize the playing mode. Specifically, when the configured hardware acceleration of the server and the client is a mode that can use hardware acceleration such as a seamless experience mode, a high-definition compatible mode, and a smooth compatible mode, if the hardware acceleration of the client and the server is found to be available, the corresponding hardware acceleration is enabled. If the user selects to start the seamless experience mode switch, whether the current playing video format supports video redirection is judged by monitoring the player component capable of supporting the player type, if the player component capable of being supported is started, the seamless experience mode, namely the redirection mode, is started if the current playing video format supports video redirection, and the streaming media file is transmitted; and if not, transmitting the streaming media file by using a default play mode of other three modes except the seamless experience mode.
In this embodiment, when a change in the streaming media playing environment is detected, the environment variable set is modified according to a specific change factor, i.e. according to the obtained environment parameter. And then filtering is performed by using the new environment variable group, namely, a new first decision code or a second decision code is generated, so that a mode group set which can be supported by the streaming media strategy under the new environment variable group is obtained. And comparing the updated set of supportable modes with the original set of supportable modes, and if differences are found, reminding a user that a new streaming media mode is available or an original mode is unavailable.
Please refer to fig. 3, which is a flowchart illustrating a static streaming media processing method according to a second embodiment of the present invention. The specific flow shown in fig. 3 will be described in detail below.
Step S401, acquiring a first environment parameter for representing a hardware support condition of the server.
The hardware support of the server side refers to the hardware encoding/decoding capability of the display card. The first environment parameter refers to whether the server side in the current playing mode needs hardware support. The first parameter is expressed using a boolean expression. That is, when the first parameter is 1, it indicates that there is a request for hardware support of the server, and when the first parameter is 0, it indicates that there is no request for hardware support of the server.
In this embodiment, the obtaining of the first environment parameter of the hardware support condition of the server specifically includes: under the Windows system, the coding/decoding capability of the client is identified by referring to the GUID, and the GUID of the server under the current environment is acquired through the D3D device, so that the supported hardware coding/decoding capability is detected. In addition, under the Linux system, a hardware rendering mode (xvideo) is also provided, which is an extension of the X11 system, and before using the xv function, a rendering format supported by a display card can be queried through XvQueryAdaptors and XvListImageFormats.
Step S402, obtaining a second environment parameter for representing the hardware support condition of the client.
Wherein, the hardware support of the client refers to the hardware coding/decoding capability of the display card. The first environment parameter refers to whether the client in the current playing mode needs hardware support. The second parameter is expressed using a boolean expression. That is, when the second parameter is 1, it indicates that there is a request for hardware support of the client, and when the second parameter is 0, it indicates that there is no request for hardware support of the client.
In this embodiment, the obtaining of the first environment parameter of the hardware support condition of the client specifically includes: under the Windows system, the coding/decoding capability of the client is identified by referring to the GUID, and the GUID of the server under the current environment is acquired through the D3D device, so that the supported hardware coding/decoding capability is detected. In addition, under the Linux system, a hardware rendering mode (xvideo) is also provided, which is an extension of the X11 system, and before using the xv function, a rendering format supported by a display card can be queried through XvQueryAdaptors and XvListImageFormats.
In step S403, a third environment parameter indicating a playback environment that can support the redirect player is obtained.
In a static environment, under a windows operating system, after a player is installed, corresponding installation information is generally registered in a registry, and the purpose of collecting a player list can be achieved by enumerating the relevant information of the registry. In a dynamic environment, the path and name of the currently playing player executable program can be intercepted through the video redirection process, so that accurate information of the video playing environment can be dynamically collected.
Step S404, generating the first environment variable group according to the first environment parameter, the second environment parameter, and the third environment parameter.
And after various parameters are acquired, summarizing the various parameters to the server side, and adding the corresponding parameters to the first environment variable group. Namely, after the first environment parameter, the second environment parameter and the third environment parameter are all obtained, the first environment parameter, the second environment parameter and the third environment parameter are added into a first environment variable group, so that a first environment variable group is formed.
Step S405, filtering the first environment variable group based on a preset rule, and acquiring a filtered second environment variable group.
Step S406, acquiring a playback mode corresponding to the second environment variable set.
Step S407, acquiring a target play mode selected by the user from the plurality of play modes.
Step S408, generating a configuration command based on the play mode and sending the configuration command to the server and the client, so that the server and the client set an environment parameter corresponding to the play mode according to the configuration command.
For the specific implementation of steps S404, S405, S406, S407, and S408, please refer to the corresponding steps in the first embodiment, which is not described herein again.
Fig. 4 is a functional module diagram of a static streaming media processing apparatus according to a third embodiment of the present invention. The static streaming media processing device 500 includes a first data acquisition unit 510, a data processing unit 520, a second data acquisition unit 530, a data selection unit 540, and a data generation unit 550.
The first data obtaining unit 510 is configured to obtain a first environment variable set of the streaming media.
And the data processing unit 520 is configured to filter the first environment variable group based on a preset rule, and obtain a filtered second environment variable group.
The data processing unit 520 is further configured to obtain a plurality of first decision codes generated based on a first preset rule; and when the first environment variable group is matched with any one of the plurality of first decision codes, using the first decision code matched with the first environment variable group as a second environment variable group. Specifically, a first parameter supported by the server hardware is obtained based on a first preset rule; acquiring a second parameter supported by the client hardware based on a first preset rule; acquiring a third parameter supported by the redirection player based on a first preset rule; generating the first decision encoding according to the first parameter, the second parameter, and the third parameter. When the first environment variable group is matched with any one of the plurality of first decision codes, taking the first decision code matched with the first environment variable group as the second environment variable group means that each parameter value in the first environment variable group is respectively compared with a corresponding parameter value in each first decision code to obtain a plurality of result variable groups, searching for a target result variable group meeting a preset standard from the plurality of result variable groups, and taking the first decision code corresponding to the target result variable group as the second environment variable group. In particular, the first decision encoding satisfies Y ═ Y1,y2,y3]The first set of environmental variables satisfies X ═ X1,x2,x3]When y ismWhen the value of (A) is 0, then x is not countedmWhen the value of (A) is 0 or 1, the result k is obtainedmThe value of (a) is 0,m is greater than or equal to 1 and less than or equal to 3; when y ismIs 1, and when xmWhen the value of (1) is obtained, kmIs 0; when y ismIs 1, and when xmWhen the value of (A) is 0, k is obtainedmHas a value of 1; when K is ═ K1,k2,k3]=[0,0,0]When the first environment variable group X ═ X is determined1,x2,x3]And said first decision coding Y ═ Y1,y2,y3]And matching, namely using the first decision code matched with the first environment variable group as a second environment variable group.
In this embodiment, the data processing unit 520 is further configured to obtain a plurality of second decision codes generated based on a second preset rule; and when the first environment variable group is matched with any one of the plurality of second decision codes, using the second decision code matched with the first environment variable group as a second environment variable group. Specifically, a first condition parameter supported by the server hardware is obtained based on a second preset rule; acquiring a second condition parameter supported by the client hardware based on a second preset rule; acquiring a third condition parameter supported by the redirection player based on a second preset rule; generating the second decision code according to the first conditional parameter, the second conditional parameter, and the third conditional parameter.
The second data obtaining unit 530 is configured to obtain a playback mode corresponding to the second environment variable group.
A data selecting unit 540, configured to acquire a target play mode selected by the user from the plurality of play modes.
A data generating unit 550, configured to generate a configuration command based on the play mode and send the configuration command to the server and the client, so that the server and the client set an environment parameter corresponding to the play mode according to the configuration command.
Fig. 5 is a functional module diagram of a static streaming media processing apparatus according to a fourth embodiment of the present invention. The static streaming media processing device 600 includes a first data acquisition unit 610, a data processing unit 620, a second data acquisition unit 620, a data selection unit 640, and a data generation unit 650.
The first data obtaining unit 610 is configured to obtain a first environment variable set of the streaming media.
The first data acquiring unit 610 further includes a first parameter acquiring sub-unit 611, a second parameter acquiring sub-unit 612, a third parameter acquiring sub-unit 613, and a data marking sub-unit 614.
A first parameter obtaining subunit 611, configured to obtain a first environment parameter used for representing a hardware support condition of the server.
A second parameter obtaining subunit 612, configured to obtain a second environment parameter used for representing a hardware support condition of the client.
The third parameter acquiring subunit 613 acquires a third environment parameter indicating a playback environment that can support the redirect player.
A data tagging subunit 614, configured to generate the first environment variable group according to the first environment parameter, the second environment parameter, and the third environment parameter.
And the data processing unit 620 is configured to filter the first environment variable group based on a preset rule, and obtain a filtered second environment variable group.
The second data obtaining unit 630 is configured to obtain a playback mode corresponding to the second environment variable group.
A data selecting unit 640, configured to acquire a target play mode selected by the user from the plurality of play modes.
A data generating unit 650, configured to generate a configuration command based on the play mode and send the configuration command to the server and the client, so that the server and the client set an environment parameter corresponding to the play mode according to the configuration command.
In summary, the present invention provides a method and an apparatus for processing static streaming media, in which a first environment variable group is filtered to obtain a plurality of play modes corresponding to the filtered environment variable group; and generating a configuration command for the target playing mode by acquiring the target playing mode selected by the user and sending the configuration command to the server and the client, so that the server and the client set the environmental parameters corresponding to the target playing mode according to the configuration command, thereby realizing intelligent and flexible configuration of the playing mode.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (6)

1. A static streaming media processing method is applied to a desktop virtualization system, the system comprises a server and a client, the server is coupled with the client, and the method comprises the following steps:
acquiring a first environment parameter used for representing the hardware support condition of the server;
acquiring a second environment parameter for representing the hardware support condition of the client;
acquiring a third environment parameter for representing a playing environment which can support a reorientation player;
generating the first environment variable group according to the first environment parameter, the second environment parameter and the third environment parameter;
acquiring a plurality of first decision codes generated based on a first preset rule;
comparing each parameter value in the first environment variable group with a corresponding parameter value in each first decision code to obtain a plurality of result variable groups, searching a target result variable group meeting a preset standard from the plurality of result variable groups, and using the first decision code corresponding to the target result variable group as the second environment variable group, wherein the step of:
the first decision encoding satisfies Y ═ Y1,y2,y3]The first set of environmental variables satisfies X ═ X1,x2,x3],
When y ismWhen the value of (A) is 0, then x is not countedmWhen the value of (A) is 0 or 1, the result k is obtainedmIs 0, said m is greater than or equal to 1 and less than or equal to 3;
when y ismIs 1, and when xmWhen the value of (1) is obtained, kmIs 0;
when y ismIs 1, and when xmWhen the value of (A) is 0, k is obtainedmHas a value of 1;
when K is ═ K1,k2,k3]=[0,0,0]When the first environment variable group X ═ X is determined1,x2,x3]And said first decision coding Y ═ Y1,y2,y3]Matching, namely using a first decision code matched with the first environment variable group as a second environment variable group;
acquiring a plurality of play modes corresponding to the second environment variable group;
acquiring a target play mode selected by a user from the plurality of play modes;
and generating a configuration command based on the target playing mode and sending the configuration command to the server and the client so that the server and the client set the environmental parameters corresponding to the target playing mode according to the configuration command.
2. The method of claim 1, wherein the step of obtaining a plurality of first decision codes generated based on a first predetermined rule comprises:
acquiring a first parameter supported by the server hardware based on a first preset rule;
acquiring a second parameter supported by the client hardware based on a first preset rule;
acquiring a third parameter which can support the support of the reorientation player based on a first preset rule;
generating the first decision encoding according to the first parameter, the second parameter, and the third parameter.
3. The method according to claim 1, wherein the step of filtering the first set of environment variables based on a preset rule and obtaining the filtered second set of environment variables comprises:
acquiring a plurality of second decision codes generated based on a second preset rule;
and when the first environment variable group is matched with any one of the plurality of second decision codes, using the second decision code matched with the first environment variable group as a second environment variable group.
4. The method according to claim 3, wherein the step of obtaining a plurality of second decision encodings generated based on a second predetermined rule comprises:
acquiring a first condition parameter supported by the server hardware based on a second preset rule;
acquiring a second condition parameter supported by the client hardware based on a second preset rule;
acquiring a third condition parameter which can support the support of the reorientation player based on a second preset rule;
generating the second decision code according to the first conditional parameter, the second conditional parameter, and the third conditional parameter.
5. A static streaming media processing device applied to a desktop virtualization system, the system comprising a server and a client, the server being coupled to the client, the device comprising:
the system comprises a first data acquisition unit, a second data acquisition unit and a processing unit, wherein the first data acquisition unit is used for acquiring a first environment variable group of streaming media;
a data processing unit, configured to compare each parameter value in the first environment variable group with a corresponding parameter value in each first decision code, to obtain multiple result variable groups, search a target result variable group that meets a preset criterion from the multiple result variable groups, and use the first decision code corresponding to the target result variable group as a second environment variable group, where the step includes:
the first decision encoding satisfies Y ═ Y1,y2,y3]The first set of environmental variables satisfies X ═ X1,x2,x3],
When y ismWhen the value of (A) is 0, then x is not countedmWhen the value of (A) is 0 or 1, the result k is obtainedmIs 0, said m is greater than or equal to 1 and less than or equal to 3;
when y ismIs 1, and when xmWhen the value of (1) is obtained, kmIs 0;
when y ismIs 1, and when xmWhen the value of (A) is 0, k is obtainedmHas a value of 1;
when K is ═ K1,k2,k3]=[0,0,0]When the first environment variable group X ═ X is determined1,x2,x3]And said first decision coding Y ═ Y1,y2,y3]Matching, namely using a first decision code matched with the first environment variable group as the second environment variable group;
a second data obtaining unit, configured to obtain a play mode corresponding to the second environment variable group;
a data selection unit for acquiring a target play mode selected by a user from the plurality of play modes;
and the data generating unit is used for generating a configuration command based on the play mode and sending the configuration command to the server and the client so that the server and the client set the environment parameters corresponding to the play mode according to the configuration command.
6. The apparatus according to claim 5, wherein the first data obtaining unit is specifically configured to:
acquiring a first environment parameter used for representing the hardware support condition of the server;
acquiring a second environment parameter for representing the hardware support condition of the client;
acquiring a third environment parameter for representing a playing environment which can support a reorientation player;
and generating the first environment variable group according to the first environment parameter, the second environment parameter and the third environment parameter.
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 CN106959863A (en) 2017-07-18
CN106959863B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4086529B2 (en) * 2002-04-08 2008-05-14 松下電器産業株式会社 Image processing apparatus and image processing method
CN102075976B (en) * 2011-01-11 2013-07-24 中国联合网络通信集团有限公司 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
CN104144351B (en) * 2014-04-04 2017-09-19 北京泰然神州科技有限公司 The video broadcasting method and device of application 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
CN106385632B (en) * 2016-09-21 2019-10-22 微鲸科技有限公司 Video broadcasting method and video play device
CN106507178B (en) * 2016-12-09 2019-11-15 北京小米移动软件有限公司 Video broadcasting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106959863A (en) 2017-07-18

Similar Documents

Publication Publication Date Title
US11146858B2 (en) Method and apparatus for pushing video content
KR102124231B1 (en) Streaming content and placeholders
US8788269B2 (en) Satisfying specified intent(s) based on multimodal request(s)
RU2700188C2 (en) Representing computing environment on multiple devices
US8832578B1 (en) Visual clipboard on soft keyboard
CN103763337A (en) Mobile terminal, server and corresponding methods
CN112836072B (en) Information display method and device, electronic equipment and medium
US11025695B2 (en) Techniques for modifying a rules engine in a highly-scaled computing environment
CN106850692B (en) Method and device for determining streaming media playing mode
CN104777986A (en) Navigation processing method and mobile terminal
WO2021017853A1 (en) Method for recommending operation sequence, terminal, and computer readable medium
CN110764849A (en) Rendering method and device for user interface, client device and electronic device
US20240022789A1 (en) Optimization of content representation in a user interface
CN111767270A (en) Data migration method, device, server and storage medium
CN112000911A (en) Page management method and device, electronic equipment and storage medium
US11689757B2 (en) Method and apparatus for providing video streams
CN112102853B (en) Audio and video player control method and device, storage medium and electronic equipment
CN106959863B (en) Static streaming media processing method and device
US20170264962A1 (en) Method, system and computer program product
EP2981882A1 (en) Removable storage device identity and configuration information
CN106975221B (en) User terminal and game data live broadcast device and method
US10732794B2 (en) Methods and systems for managing images
US10904598B2 (en) Apparatuses, systems and methods for sharing content
KR20220109170A (en) Method and system for providing mini-map in chatroom
US20200257825A1 (en) Customized display of filtered social media content using a private dislike button

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
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.