WO2023165320A1 - 播放参数配置方法及装置 - Google Patents

播放参数配置方法及装置 Download PDF

Info

Publication number
WO2023165320A1
WO2023165320A1 PCT/CN2023/075652 CN2023075652W WO2023165320A1 WO 2023165320 A1 WO2023165320 A1 WO 2023165320A1 CN 2023075652 W CN2023075652 W CN 2023075652W WO 2023165320 A1 WO2023165320 A1 WO 2023165320A1
Authority
WO
WIPO (PCT)
Prior art keywords
playback
virtual
target application
hardware
client
Prior art date
Application number
PCT/CN2023/075652
Other languages
English (en)
French (fr)
Inventor
苗金枝
田巍
张献涛
任晋奎
Original Assignee
阿里巴巴(中国)有限公司
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 阿里巴巴(中国)有限公司 filed Critical 阿里巴巴(中国)有限公司
Publication of WO2023165320A1 publication Critical patent/WO2023165320A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Definitions

  • One or more embodiments of this specification relate to the technical field of computer applications, and in particular to a method and device for configuring playback parameters.
  • one or more embodiments of this specification provide a playback parameter configuration method and device, so as to solve the problems existing in related technologies.
  • a playback parameter configuration method including:
  • a playback parameter configuration method and device including:
  • a data acquisition unit configured to acquire usage data of the target application for the virtual playback hardware in response to the remote access of the client to the target application;
  • a scene determining unit configured to determine a playing scene corresponding to the target application based on the usage data
  • a playback configuration unit configured to send the determined playback scene to the client, so that the client performs playback configuration on the physical playback hardware according to playback configuration parameters corresponding to the playback scene.
  • an electronic device including:
  • memory for storing processor-executable instructions
  • the processor implements the method according to the first aspect by running the executable instruction.
  • a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
  • the physical playback hardware carried by the client can be dynamically configured for playback according to the playback scene corresponding to the target application; therefore, The playback effect of the physical playback hardware can be more adapted to the current playback scene of the target application program, thereby improving the user's audio and video playback experience.
  • Fig. 1 is a schematic diagram of a structure of a playback parameter configuration method provided by an exemplary embodiment.
  • Fig. 2 is a flow chart of a playback parameter configuration method provided by an exemplary embodiment.
  • Fig. 3 is a flow chart of acquiring usage data of virtual playback hardware provided by an exemplary embodiment.
  • Fig. 4 is a flow chart of determining a playback scene provided by an exemplary embodiment.
  • Fig. 5 is a flow chart of configuring playback parameters provided by an exemplary embodiment.
  • Fig. 6 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • Fig. 7 is a block diagram of an apparatus for configuring playback parameters provided by an exemplary embodiment.
  • the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification.
  • the method may include more or less steps than those described in this specification.
  • a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe stated.
  • Cloud desktop service also known as virtual desktop service, refers to a technology that uses cloud technology to deploy applications on the cloud, and provides the applications deployed on the cloud to users for remote access in the form of a desktop.
  • applications deployed on the cloud usually run on the cloud, and images and sounds generated during the running process can be transmitted to the client in real time through a transmission protocol.
  • the images and sounds generated during the running of applications deployed on the cloud are usually transmitted to the client through the network, and the client displays and plays them to the user; therefore, once the network jitter and delay When this happens, the image and sound transmitted to the client will be discontinuous, and there will be noise, etc., which will affect the user experience.
  • this manual proposes a technical solution for dynamically configuring the playback configuration of the physical playback hardware on the client according to the playback scenario corresponding to the application when the client remotely accesses the application deployed on the cloud server. .
  • the cloud server can maintain a virtual playback hardware corresponding to the physical playback hardware carried by the client.
  • the above-mentioned several application programs may include at least one target application program having usage requirements of the virtual playing hardware.
  • the client When the client is remotely accessing the above-mentioned target application program, it can obtain the use data of the target application program for the virtual playback hardware, and determine the playback scene corresponding to the above-mentioned target application program based on the use data; then, the The determined playing scene is sent to the client, so that the client can perform playing configuration on the above-mentioned physical playing hardware according to playing configuration parameters corresponding to the playing scene.
  • the playback configuration of the physical playback hardware carried by the client can be dynamically performed; therefore, The playback effect of the physical playback hardware can be more adapted to the current playback scene of the target application program, thereby improving the user's audio and video playback experience.
  • Fig. 1 is a schematic diagram of a structure of a playback parameter configuration method provided by an exemplary embodiment.
  • the system may include a network 10 , a server 11 , and several clients, such as a desktop computer 12 , a notebook computer 13 , and a mobile phone 14 .
  • the server 11 may include a server of an independent host, or the server 11 may be a virtual server carried by a host cluster, a cloud server, or the like.
  • a client 12-14 is just one electronic device that a user can use. In fact, users can also use the following types of electronic devices: tablet devices, personal digital assistants (PDAs, Personal Digital Assistants), etc., which are not limited by one or more embodiments of this specification.
  • Network 10 may include various types of wired or wireless networks.
  • the server 11 and the client 12-14 cooperate; wherein, the server 11 can run the Some applications remotely accessed by the client, the server 11 can also maintain the virtual playback hardware corresponding to the physical playback hardware carried by the client. 14
  • the playback data can be transmitted to the client 12-14 through the network, and then played to the user after being parsed by the client 12-14. Due to problems such as network jitter and delay, it may cause problems such as discontinuity, asynchrony, and more noise in playback.
  • the server 11 can obtain the use data of the virtual playback hardware after the client 12-14 remotely accesses the target application program, and then play the physical playback hardware carried by the client 12-14 based on the playback parameter configuration scheme in this manual. configuration.
  • Fig. 2 is a flow chart of a playback parameter configuration method provided by an exemplary embodiment.
  • the method is applied to a cloud server, which can be, for example, the server 11 described in Figure 1, wherein the cloud server runs several applications for remote access by the client, and can also maintain The virtual playback hardware corresponding to the physical playback hardware carried by the client, wherein among the several application programs for remote access by the client, at least one target application program having usage requirements of the virtual playback hardware is included.
  • the method may include the steps of:
  • Step 202 in response to the remote access of the client to the target application, obtain usage data of the target application for the virtual playback hardware;
  • the virtual playback hardware mentioned above may specifically be virtual playback hardware maintained by the cloud server and corresponding to the physical playback hardware carried by the client.
  • the virtual playback hardware corresponding to the physical playback hardware can be understood as a virtual service deployed in the operating system of the cloud server and corresponding to the above-mentioned physical playback hardware, so that the application program deployed on the cloud server can be launched by launching For the invocation of the virtual playback hardware, it is convenient to complete the remote call for the above-mentioned physical playback hardware.
  • the application deployed on the cloud server may have the requirement to use the physical playback hardware carried by the client.
  • the application deployed on the cloud server may have the requirement to use the physical playback hardware carried by the client.
  • the operating system of the cloud server create a virtual playback hardware corresponding to the physical playback hardware, and give the application the right to call the virtual playback hardware, so that when the user remotely accesses the application deployed on the cloud server, the client can initiate a call to the virtual playback hardware.
  • the invocation of the virtual playback hardware is used to complete the remote invocation of the above-mentioned physical playback hardware.
  • the specific hardware type of the virtual playing hardware is not particularly limited in this specification.
  • the virtual playback hardware may specifically include a virtual microphone, a virtual speaker, and the like.
  • the above-mentioned target application program may specifically include any type of application program running on the cloud that requires the use of virtual playback hardware.
  • it may specifically be a video calling program or a music playing program.
  • the video call program has the use requirements of the virtual microphone and the virtual speaker;
  • the music player program has the use requirement of the virtual speaker.
  • the usage data of the virtual playback hardware described in this specification may include any type of data that can describe whether the virtual playback hardware is being used, for example, it may be the usage status of the virtual playback hardware.
  • the acquisition of the usage data of the target application program for the virtual playback hardware as described in this specification; specifically, when the user accesses the cloud application program through the client, the cloud application program automatically obtains the usage data of the cloud application program for the virtual playback hardware.
  • the user accesses the video call program provided by the cloud server remotely through the client
  • the user accesses the video call program to make a video call.
  • both the virtual microphone and the virtual speaker are being used, and the cloud server can The usage data of the virtual speaker and the virtual microphone are obtained.
  • the virtual speaker is being used at this time, and the cloud server can obtain usage data of the virtual speaker.
  • the cloud server manages the application program and the virtual playback hardware by carrying a virtual operating system, and can obtain whether the virtual playback hardware is in a used state.
  • the application program registers the call monitor for the virtual playback hardware in the operating system carried by the cloud server; the cloud server maintains a state for indicating the usage of the virtual playback hardware by the target application program.
  • Fig. 3 is a kind of flow chart that an exemplary embodiment provides to obtain the use data of virtual playing hardware, as shown in Fig. 3, this may include the following steps:
  • Step 202a listening to the calling event of the target application program for the virtual playback hardware
  • the virtual operating system described in this manual can simulate the same environment as the existing operating system. This operation runs on the cloud server. Users can remotely access the virtual operating system through the client, and various applications can be run on the virtual operating system.
  • the program includes the above-mentioned target application program that has the usage requirements of the virtual playback hardware.
  • the target application program can register call monitoring for the virtual playback hardware, and determine whether the virtual playback hardware is used by monitoring the call event of the target application program for the virtual playback hardware.
  • Step 202b Switch the state maintained by the cloud server from an unused state to an in-use state in response to the detected invocation event of the target application for the virtual playback hardware.
  • the cloud server maintains a state for indicating the usage of the virtual playing hardware by the target application, and the state may include a used state and an unused state.
  • the active state can be used to indicate the use state, that is, the virtual playback hardware is being used.
  • the state maintained by the cloud server and used to indicate the usage of the target application for the virtual playback hardware may be used as the usage data of the target application for the virtual playback hardware.
  • the playback program switches the above-mentioned state maintained by the cloud server for indicating the use of the virtual speaker by the video call program to the use state, and switches the above-mentioned state maintained by the cloud server for indicating the video call
  • the status of the program for virtual microphone usage is switched to use status, and use the usage status as the usage data of the virtual speaker and the virtual microphone.
  • the music player program can be monitored to call the virtual speaker, and the cloud server can respond to the music playback program.
  • the program switches the above-mentioned state maintained by the cloud server for instructing the music player program to use the virtual speaker to the use state, and uses the use state as the use data of the virtual speaker.
  • the application program on the cloud server registers the call monitoring for the virtual playback hardware in the virtual operating system carried by the cloud server; Hardware call monitoring.
  • the virtual operating system carried on the cloud server can obtain whether the virtual playback hardware is in use. When the virtual operating system detects that the virtual playback hardware is in use, it means that a new application is using the virtual playback hardware, and the cloud server registers the call monitoring of the application for the virtual playback hardware.
  • the cloud server simultaneously monitors the invocation events of the virtual operating system for the virtual playback hardware and the target application for the virtual playback hardware. After the invocation event of the virtual operating system for the above-mentioned virtual playback hardware is monitored, and the invocation event of the target application program for the above-mentioned virtual playback hardware is not monitored. At this time, it indicates that a new application program is using the virtual playback hardware, and the cloud server registers an invocation event for the above virtual playback hardware for the new application program.
  • Step 204 determining a playback scene corresponding to the target application based on the usage data
  • the above usage data can be the state maintained by the cloud server to indicate the usage of the target application for the virtual playback hardware.
  • the state is switched to an unused state, which is used as the usage data of the above-mentioned target application program for the virtual playback hardware.
  • the playing scene corresponding to the target application described in this manual may include a video call scene and a music playing scene.
  • the target application program when the target application program is using the virtual microphone, it may be determined that the current playback scene corresponding to the target application program is a video call scene.
  • the target application program is using the virtual speaker and not using the virtual microphone, it can be determined that the current playing scene corresponding to the target application program is a music playing scene.
  • the state maintained by the cloud server indicating the use of the virtual microphone by the target application is the used state, determine that the playback scene corresponding to the target application is a call scene ; if the state maintained by the cloud server indicating the target application’s use of the virtual speaker is a used state, and the cloud service maintained by the cloud service indicates the target application’s use of the virtual microphone If the state of the usage status is the unused state, then it is determined that the playing scene corresponding to the target application program is a music playing scene.
  • the user accesses the video call program provided by the cloud server through the client, and the user accesses the video call program to make a video call
  • the user can monitor that the video call program is calling the virtual speaker and virtual microphone, and the cloud server can respond
  • the music player program switches the above-mentioned state maintained by the cloud server for indicating the use of the virtual speaker by the video call program to the use state, and switches the above-mentioned state maintained by the cloud server for indicating the video
  • the status of the call program for the virtual microphone usage is switched to the usage status.
  • the virtual microphone since the virtual microphone is in use, it can be determined that the current playback scene is a video call scene.
  • the music player program can be monitored to call the virtual speaker, and the cloud server can respond to the music playback program.
  • the program switches the above-mentioned state maintained by the cloud server for instructing the music player program to use the virtual speaker to the use state.
  • the cloud server may run multiple applications at the same time, so the cloud server also maintains the usage count of the virtual playing hardware, which is used to indicate the current usage of the playing hardware.
  • the use count of the virtual playback hardware may include a use count of a virtual microphone and a use count of a virtual speaker.
  • the usage count of the virtual microphone is increased by one; if the cloud server maintains the indicated The state of the target application program for the use of the virtual speaker is the used state, and now the usage count of the virtual speaker is increased by one; In the unused state, the usage count of the virtual hardware is decremented by one.
  • the use count of the virtual microphone is greater than one, it can be determined that the current playing scene corresponding to the target application is a video call scene; when the use count of the virtual speaker is greater than one and the use count of the virtual microphone is 0, it can be determined that the current scene corresponding to the target application is The playing scene is a music playing scene.
  • the user accesses the video call program to perform a video call and also accesses the music player program to play music.
  • the video call program is calling the virtual speaker and the virtual microphone, and it can also be monitored that the music player program is calling the virtual speaker.
  • the cloud server may switch the above-mentioned state maintained by the cloud server for indicating the use of the virtual speaker by the video call program to the use state, and change the status of the virtual speaker to Adding one to the use count; and switching the above-mentioned state maintained by the cloud server for indicating the use of the virtual microphone by the video call program to the use state, and adding one to the use count of the above-mentioned virtual microphone.
  • the cloud server may respond to the calling event of the music playing program for the virtual speaker, and since the virtual speaker is already in use, add one to the use count of the virtual speaker.
  • the use count of the virtual microphone is one, and the use count of the virtual speaker is two. Since the use count of the virtual microphone is greater than one, it is considered as a video call scene. At this time, the playback scene corresponding to the target application program is a video call scene.
  • the cloud server acquires the usage data of the target application for the virtual playback hardware; and based on the usage data, the playback scenario corresponding to the target application can be determined; below in conjunction with FIG. 4, through a specific embodiment The process of determining the playback scene is further explained.
  • Fig. 4 is a flow chart of determining a playback scene provided by an exemplary embodiment.
  • the virtual operating system carried by the cloud server has registered a call monitor (402) for the virtual playback hardware.
  • a call monitor 402 for the virtual playback hardware.
  • Be used at this moment judge whether to be that new application program is using virtual playback hardware (406), if not listening to application program calling event for virtual playback hardware, explanation is that new application program is using virtual playback hardware, at this time
  • the cloud server registers the call event (408) for the virtual playback hardware with this application.
  • the status maintained by the cloud server for indicating the usage of the target application program for the virtual playback hardware is switched from the unused state to the used state (412), Add one to the usage count of the virtual playback hardware maintained by the cloud server to indicate the usage quantity of the current virtual playback hardware (414), and determine the playback scene corresponding to the current application through the usage count of the virtual playback hardware. If the use count of the virtual microphone is greater than one, the current playing scene is a video call scene; if the use count of the virtual speaker is greater than one and the use count of the virtual microphone is equal to zero, the current playing scene is a music playing scene.
  • Step 206 Send the determined playing scene to the client, so that the client performs playing configuration on the physical playing hardware according to playing configuration parameters corresponding to the playing scene.
  • the playing scene corresponding to the target application can be determined, where the playing scene may include a video call scene or a music playing scene.
  • the cloud server can send the video call scene or the music playback scene to the client, so that the client can configure the physical playback hardware according to the above playback scenarios.
  • the client pre-sets different playback configuration parameters for different playback scenarios corresponding to different applications.
  • the physical playback hardware on the client is configured. Users can adjust the preset playback configuration according to actual needs. parameter, which is not limited by the present invention.
  • the playback configuration parameters may include playback optimization configuration parameters related to playback hardware, and the client may perform playback optimization configuration on the physical playback hardware according to the optimization configuration parameters.
  • the playback optimization configuration parameters for the physical playback hardware can include setting the size of the audio anti-network jitter buffer, echo cancellation, noise suppression, variable speed playback level optimization, audio and video synchronization optimization, etc.
  • the playback optimization configuration parameters for the physical playback hardware can include setting the size of the audio anti-network jitter buffer, echo cancellation, noise suppression, variable speed playback level optimization, audio and video synchronization optimization, etc.
  • the optimization technology will not be described in detail in this manual.
  • the playback scene at this time is a video call scene. Since the video playback scene has high requirements on audio transmission, if the network jitter is large, the user's video call experience will be poor. At this time, the size of the audio anti-network jitter buffer can be increased to improve the ability of the audio to resist network jitter, thereby improving user experience.
  • the playback scene at this time is a video call scene. Due to the video call scene, the physical microphone can collect the user's audio data, but noise, echo, etc. may occur when collecting data. At this time, since it is a video call scene, functions such as echo cancellation and noise suppression can be automatically set to improve user experience.
  • the playing scene is a music playing scene.
  • the user may use the double speed function provided by the music player program, such as double speed and triple speed; since the playback data is transmitted from the cloud to the client through the network, if there are problems such as network jitter, the audio may not be continuous And other issues.
  • variable-speed playback level optimization can be automatically enabled to improve user experience; the specific implementation method can refer to related technologies, and will not be described in this manual.
  • the playback scene at this time is a video call scene.
  • audio and video synchronization optimization can be automatically enabled to improve user experience; specific implementation methods can refer to related technologies, and will not be repeated in this manual.
  • the cloud server maintains scene values used to distinguish the playing scenes corresponding to different applications, where the scene values can be numbers, English signs or other values used to distinguish different playing scenes.
  • the instructions are not particularly limited.
  • the cloud server can determine the scene value of the playback scene corresponding to the target application, and send the determined scene value to the client.
  • the client can preset playback configuration parameters corresponding to different scene values. Playback configuration parameters, optimize the playback configuration of the physical playback hardware on the client.
  • the cloud server may obtain the transmission configuration parameters corresponding to the playback scene, based on the obtained transmission configuration parameters Perform transmission configuration on the target application program, so that the target application program transmits the data to be played to the client according to the transmission configuration parameters.
  • the above-mentioned transmission configuration parameters may include transmission optimization configuration parameters related to data transmission, and the cloud server may optimize the configuration of the playing data before transmission according to the transmission optimization configuration parameters.
  • the cloud server can pre-set different transmission optimization configuration parameters for different playback scenarios corresponding to different applications. According to different transmission configuration parameters, the transmission optimization configuration of the application running on the server can be performed. Users can adjust the preset settings according to actual needs The transmission configuration parameters, which are not limited in the present invention.
  • the server may also determine the scene value of the playback scene corresponding to the target application program, obtain the transmission optimization configuration parameters corresponding to the playback scene according to the scene value, and optimize the target application based on the obtained transmission configuration parameters.
  • the application program performs transmission optimization configuration, so that the target application program transmits the data to be played to the client according to the transmission configuration parameters.
  • the above-mentioned transmission configuration parameters may include a transmission priority corresponding to the data to be played.
  • the playback scene is a video call scene. Since the video playback scene has high requirements for audio transmission, the video call program can improve the audio data of the call at this time. Transmission priority ensures the transmission of call audio data, improves the fluency of audio calls, and improves the user's video call experience.
  • the playback scene is a music playback scene.
  • the priority of the music player program for the transmission of music playback data can be increased to ensure music playback. Data transmission improves the user's music playback experience.
  • the cloud server obtains the use data of the target application for the virtual playback hardware; and based on the use data, the playback scene corresponding to the target application can be determined; based on the playback scene corresponding to the target application, the The target application program optimizes the transmission configuration; and sends the playback scene corresponding to the target application program to the client, so that the client performs playback optimization configuration on the physical playback hardware according to the playback configuration parameters corresponding to the playback scene.
  • the cloud server obtains the use data of the target application for the virtual playback hardware; and based on the use data, the playback scene corresponding to the target application can be determined; based on the playback scene corresponding to the target application, the The target application program optimizes the transmission configuration; and sends the playback scene corresponding to the target application program to the client, so that the client performs playback optimization configuration on the physical playback hardware according to the playback configuration parameters corresponding to the playback scene.
  • Fig. 5 is a flow chart of configuring playback parameters provided by an exemplary embodiment.
  • the cloud server can determine whether the playing scene corresponding to the target application is specifically a music playing scene or a video call scene (502). After determining the playing scene corresponding to the target application, the scene value corresponding to the playing scene can be obtained (504), after obtaining the scene value, obtain the transmission configuration parameter (506) according to the scene value at the cloud service end, carry out transmission configuration to the application program running on the cloud service end, by configuring the audio and video transmission priorities corresponding to different data to be played, Optimize the transmission of audio and video data; at the same time, the cloud server can send the scene value to the client, so that the client can perform playback configuration according to the playback configuration parameters corresponding to the scene value, so as to improve the audio and video experience when users access cloud applications.
  • Fig. 6 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • the device includes a processor 602 , an internal bus 604 , a network interface 606 , a memory 608 and a non-volatile memory 610 , and of course it may also include hardware required by other services.
  • the processor 602 reads a corresponding computer program from the non-volatile memory 610 into the memory 609 and then executes it.
  • one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each A logic unit, which can also be a hardware or logic device.
  • the playback parameter configuration device may include:
  • a data acquisition unit 706, configured to acquire usage data of the target application for the virtual playback hardware in response to the client's remote access to the target application;
  • a scene determining unit 708, configured to determine a playing scene corresponding to the target application based on the usage data
  • the playing configuration unit 710 is configured to send the determined playing scene to the client, so that the client performs playing configuration on the physical playing hardware according to playing configuration parameters corresponding to the playing scene.
  • the target application registers a call monitor for the virtual playback hardware in the operating system carried by the cloud server;
  • the playback configuration parameter device also includes an event monitoring unit 702, which is used to monitor the calling event of the target application program for the virtual playback hardware; a state switching unit 704, which is used to respond to The monitored target application program switches the state maintained by the cloud server from the unused state to the used state for the invocation event of the virtual playback hardware.
  • the data obtaining unit 706 is specifically configured to obtain the status maintained by the cloud server indicating the usage of the target application for the virtual playback hardware, as the target application for the Usage data of virtual playback hardware.
  • the virtual playback hardware includes a virtual speaker and a virtual microphone;
  • the scene determining unit 708 is specifically configured to indicate that the target application is using a status of the virtual microphone maintained by the cloud server For the used state, it is determined that the playback scene corresponding to the target application program is a call scene;
  • the cloud server determines whether the playing scene corresponding to the target application program is a music playing scene.
  • the device for playing configuration parameters further includes a transmission configuration unit 712, configured to acquire transmission configuration parameters corresponding to the playback scene, and perform transmission configuration on the target application based on the acquired transmission configuration parameters, making the target application transmit the data to be played to the client according to the transmission configuration parameters.
  • a transmission configuration unit 712 configured to acquire transmission configuration parameters corresponding to the playback scene, and perform transmission configuration on the target application based on the acquired transmission configuration parameters, making the target application transmit the data to be played to the client according to the transmission configuration parameters.
  • the configuration parameters include optimized configuration parameters; the configuration includes optimized configuration.
  • the transmission configuration parameters include a transmission priority corresponding to the data to be played.
  • the cloud server includes a cloud desktop server; the client includes a cloud desktop client; and the application program includes a cloud desktop application provided by the cloud server to the cloud client.
  • a typical implementing device is a computer, which may take the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control device, etc. desktops, tablets, wearables, or any combination of these.
  • a computer includes one or more processors (CPUs), input/output interfaces, network interfaces and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
  • first, second, third, etc. may be used in one or more embodiments of the present specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of one or more embodiments of the present specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word “if” as used herein may be interpreted as “at” or "when” or "in response to a determination.”

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种播放参数配置方法及装置。该方法包括:获取目标应用程序针对虚拟播放硬件的使用数据;基于虚拟播放硬件的使用数据确定与所述目标应用程序对应的播放场景;根据确定出的播放场景,动态的对客户端搭载的物理播放硬件进行播放配置。

Description

播放参数配置方法及装置
本申请要求于2022年03月03日提交中国专利局、申请号为202210204652.1、申请名称为“播放参数配置方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本说明书一个或多个实施例涉及计算机应用技术领域,尤其涉及一种播放参数配置方法及装置。
背景技术
随着云技术的飞速发展,越来越多的应用开始部署在云端。对于部署在云端的应用而言,该应用通常在云端运行,而在运行过程中产生的画面和声音,可以通过传输协议,实时的传输到客户端,由客户端进行解析后向用户进行展现和播放。基于这种特性,使得用户可以突破时间、地点、终端、应用的限制,随时随地接入到云端来访问部署在云端的应用程序。
发明内容
有鉴于此,本说明书一个或多个实施例提供一种播放参数配置方法及装置,以解决相关技术中存在的问题。
为实现上述目的,本说明书一个或多个实施例提供技术方案如下:
根据本说明书一个或多个实施例的第一方面,提出了一种播放参数配置方法,包括:
响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
基于所述使用数据确定与所述目标应用程序对应的播放场景;
将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
根据本说明书一个或多个实施例的第二方面,提出了一种播放参数配置方法及装置,包括:
数据获取单元,用于响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
场景确定单元,用于基于所述使用数据确定与所述目标应用程序对应的播放场景;
播放配置单元,用于将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
根据本说明书一个或多个实施例的第三方面,提出了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器通过运行所述可执行指令以实现如第一方面所述的方法。
根据本说明书一个或多个实施例的第四方面,提出了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如第一方面所述方法的步骤。
本申请的有益效果:由于可以在客户端远程访问云服务端上的目标应用程序时,根据该目标应用程序对应的播放场景,动态的对该客户端搭载的物理播放硬件进行播放配置;因此,使得物理播放硬件的播放效果能够更加的适配该目标应用程序当前的播放场景,进而可以提高用户的音视频播放体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
附图说明
图1是一示例性实施例提供的一种播放参数配置方法的架构示意图。
图2是一示例性实施例提供的一种播放参数配置方法的流程图。
图3是一示例性实施例提供的一种获取虚拟播放硬件使用数据的流程图。
图4是一示例性实施例提供的一种确定播放场景的流程图。
图5是一示例性实施例提供的一种配置播放参数的流程图。
图6是一示例性实施例提供的一种设备的示意结构图。
图7是一示例性实施例提供的一种播放参数配置装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描 述。
云桌面服务,也称之为虚拟桌面服务,是指一种运用云技术,将部署在云端的应用,并通过一个桌面的形式,将部署在云端的应用提供给用户进行远程访问的技术。例如,在实际应用中,部署在云端的应用,通常在云端运行,而在运行过程中产生的画面和声音,可以通过传输协议,实时的传输到客户端。
由于云桌面服务,具有集中管理、安全可靠、节约成本、绿色节能等优势。使得用户可以突破时间、地点、终端、应用的限制,随时随地接入到云端桌面。
在实际应用中,由于部署在云端的应用在运行过程中产生的画面和声音,通常都是通过网络传输到客户端,由客户端面向用户进行展现和播放;因此,一旦网络出现网络抖动和延时,就会导致传输到客户端的画面和声音不连续,有噪音等问题,进而影响用户体验。
有鉴于此,本说明书提出一种客户端在远程访问云服务端上部署的应用程序时,根据该应用程序对应的播放场景,来动态的对客户端搭载的物理播放硬件进行播放配置的技术方案。
在实现时,在云服务端上,可以运行了供客户端远程访问的若干应用程序。而云服务端可以维护一个与所述客户端搭载的物理播放硬件对应的虚拟播放硬件。上述若干应用程序中可以包括至少一个具有该虚拟播放硬件的使用需求的目标应用程序。
当客户端在对上述目标应用程序进行远程访问时,可以获取该目标应用程序针对所述虚拟播放硬件的使用数据,并基于该使用数据确定与上述目标应用程序对应的播放场景;然后,可以将确定出的播放场景发送至所述客户端,以使客户端可以根据该播放场景对应的播放配置参数,对上述物理播放硬件进行播放配置。
在以上技术方案中,由于可以在客户端远程访问云服务端上的目标应用程序时,根据该目标应用程序对应的播放场景,动态的对该客户端搭载的物理播放硬件进行播放配置;因此,使得物理播放硬件的播放效果能够更加的适配该目标应用程序当前的播放场景,进而可以提高用户的音视频播放体验。
图1是一示例性实施例提供的一种播放参数配置方法的架构示意图。如图1所示,该***可以包括网络10、服务端11、若干客户端,如台式电脑12,笔记本电脑13,手机14等。
服务端11可以包含一***立主机的服务器,或者该服务端11可以为主机集群承载的虚拟服务器,云服务器等。客户端12-14只是用户可以使用的一种电子设备。实际上,用户还可以使用注入下述类型的电子设备:平板设备、掌上电脑(PDAs,Personal Digital Assistants)等,本说明书一个或多个实施例并不对此进行限制。网络10可以包括多种类型的有线或无线网络。
在一实施例中,服务端11客户端12-14进行配合;其中,服务端11可以运行了供客 户端远程访问的若干应用程序,服务端11还可以维护了与所述客户端搭载的物理播放硬件对应的虚拟播放硬件,由于应用程序都是运行在服务端11,当用户通过客户端12-14访问应用程序时,播放数据可以通过网络传输到客户端12-14,由客户端12-14解析后向用户进行播放。由于网络抖动和延时等问题,可能会导致播放出现不连续,不同步,噪音较多等问题。基于此,服务端11可以获取客户端12-14远程访问目标应用程序后针对虚拟播放硬件的使用数据,然后基于本说明书的播放参数配置方案,对客户端12-14搭载的物理播放硬件进行播放配置。
下面结合附图对本说明书的播放参数配置方案进行详细说明。
图2是一示例性实施例提供的一种播放参数配置方法的流程图。如图2所示,该方法应用于云服务端,该云服务端例如可以为图1所述的服务端11,其中云服务端运行了供客户端远程访问的若干应用程序,还可以维护了与所述客户端搭载的物理播放硬件对应的虚拟播放硬件,其中供客户端远程访问的若干应用程序中,包括至少一个具有所述虚拟播放硬件的使用需求的目标应用程序。该方法可以包括以下步骤:
步骤202,响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
上述虚拟播放硬件,具体可以是云服务端维护的,与客户端搭载的物理播放硬件对应的虚拟播放硬件。其中,与该物理播放硬件对应的虚拟播放硬件,可以理解为是部署在云服务端的操作***中的,与上述物理播放硬件对应的一个虚拟服务,使得部署在云服务端的应用程序,可以通过发起针对该虚拟播放硬件的调用,来便捷的完成针对上述物理播放硬件的远程调用。
例如,在实际应用中,云服务端上部署的应用程序,可能会具有客户端搭载的物理播放硬件的使用需求,为了便于该应用程序调用该物理播放硬件,可以在云服务端的操作***中,创建一个与该物理播放硬件对应的虚拟播放硬件,并赋予该应用程序针对该虚拟播放硬件的调用权限,使得用户在远程访问云服务端上部署的该应用程序时,该客户端可以通过发起针对该虚拟播放硬件的调用,来完成针对上述物理播放硬件的远程调用。
其中,需要说明的是,该虚拟播放硬件具体的硬件类型,在本说明书中不进行特别限定。例如,在示出的一种实施方式中,上述虚拟播放硬件具体可以包括虚拟麦克风及虚拟扬声器,等等。
上述目标应用程序,具体可以包括任意类型的具有虚拟播放硬件的使用需求的云端运行的应用程序。例如,在实际应用中,具体可以是视频通话程序或是音乐播放程序。其中,视频通话程序具有虚拟麦克风以及虚拟扬声器的使用需求;音乐播放程序具有虚拟扬声器的使用需求。
本说明书所述的虚拟播放硬件的使用数据,可以包括任意类型的能够描述该虚拟播放硬件是否正在被使用的数据,例如,可以是虚拟播放硬件的使用情况的状态。
本说明书描述的获取所述目标应用程序针对所述虚拟播放硬件的使用数据;具体可以是用户通过客户端访问云端应用程序时,云端应用程序自动获取云端应用程序针对虚拟播放硬件的使用数据。
例如,在实际应用中,当用户通过客户端远程访问云服务端提供的视频通话程序时,用户访问该视频通话程序进行视频通话,此时虚拟麦克风及虚拟扬声器均正在被使用,云服务端可以获取到该虚拟扬声器及虚拟麦克风的使用数据。又例如,当用户通过客户端远程访问云服务端提供的音乐播放程序时,用户访问该音乐播放程序播放音乐,此时虚拟扬声器正在被使用,云服务端可以获取到该虚拟扬声器的使用数据。
在一种实施例中,云服务端通过搭载虚拟操作***,对应用程序及虚拟播放硬件进行管理,可以获取虚拟播放硬件是否为已使用状态。其中,应用程序在云服务端搭载的操作***中,注册了针对所述虚拟播放硬件的调用监听;云服务端维护了用于指示目标应用程序针对虚拟播放硬件使用情况的状态。
在上述获取目标应用程序针对播放硬件的使用数据之前,可以通过获取虚拟播放硬件的使用情况的状态,作为虚拟播放硬件的使用数据。图3是一示例性实施例提供的一种获取虚拟播放硬件使用数据的流程图,如图3所示,该可以包括以下步骤:
步骤202a,监听所述目标应用程序针对所述虚拟播放硬件的调用事件;
本说明书所述的虚拟操作***,可以模拟和现有操作***相同的环境,该操作运行在云服务端,用户可以通过客户端远程访问该虚拟操作***,在虚拟操作***上可以运行多种应用程序,包括上述具有所述虚拟播放硬件的使用需求的目标应用程序。在该虚拟操作***中,目标应用程序可以注册针对虚拟播放硬件的调用监听,通过监听目标应用程序针对虚拟播放硬件的调用事件,来确定虚拟播放硬件是否被使用。
步骤202b,响应于监听到的所述目标应用程序针对所述虚拟播放硬件的调用事件,将所述云服务端维护的所述状态由未使用状态切换为使用状态。
云服务端维护了用于指示目标应用程序针对虚拟播放硬件的使用情况的状态,该状态可以包括使用状态和未使用状态。在实际应用中可以用active状态来表示使用状态,即虚拟播放硬件正在被使用。当云服务端监听到目标应用程序针对上述虚拟播放硬件的调用事件后,响应于该调用事件,将云服务端维护的用于指示目标应用程序针对虚拟播放硬件使用情况的状态由未使用状态切换使用状态。
在一种实施例中,可以将云服务端维护的用于指示目标应用程序针对虚拟播放硬件使用情况的状态,作为所述目标应用程序针对所述虚拟播放硬件的使用数据。
例如,当用户通过客户端访问云服务端的提供视频通话程序,用户访问该视频通话程序进行视频通话,此时可以监听到该视频通话程序正在调用虚拟扬声器和虚拟麦克风,云服务端可以响应于音乐播放程序针对虚拟扬声器和虚拟麦克风的调用事件,将云服务端维护的上述用于指示视频通话程序针对虚拟扬声器使用情况的状态切换为使用状态,以及将云服务端维护的上述用于指示视频通话程序针对虚拟麦克风使用情况的状态切换为使用 状态,并将该使用状态作为虚拟扬声器和虚拟麦克风的使用数据。
又例如,当用户通过客户端远程访问云服务端提供的音乐播放程序,用户访问该音乐播放程序播放音乐,此时可以监听到该音乐播放程序正在调用虚拟扬声器,云服务端可以响应于音乐播放程序针对虚拟扬声器的调用事件,将云服务端维护的上述用于指示音乐播放程序针对虚拟扬声器使用情况的状态切换为使用状态,并将该使用状态作为虚拟扬声器的使用数据。
在另一种实施例中,云服务端的应用程序在云服务端搭载的虚拟操作***中,注册了针对所述虚拟播放硬件的调用监听之前;云服务端搭载的虚拟操作***注册了针对虚拟播放硬件的调用监听。云服务端搭载的虚拟操作***可以获取虚拟播放硬件是否为已使用状态。当虚拟操作***监听到虚拟播放硬件为已使用状态时,此时说明有新的应用程序正在使用虚拟播放硬件,云服务端注册该应用程序针对虚拟播放硬件的调用监听。
也即,云服务端同时监听虚拟操作***针对上述虚拟播放硬件和目标应用程序针对上述虚拟播放硬件的调用事件。当监听到虚拟操作***针对上述虚拟播放硬件的调用事件后,且没有监听到目标应用程序针对上述虚拟播放硬件的调用事件。此时说明有新的应用程序正在使用虚拟播放硬件,云服务端为该新的应用程序注册针对上述虚拟播放硬件的调用事件。
步骤204,基于所述使用数据确定与所述目标应用程序对应的播放场景;
如前所述,上述使用数据可以为云服务端维护的用于指示目标应用程序针对虚拟播放硬件使用情况的状态,当监听到虚拟播放硬件被目标应用程序调用事件时,将该状态由未使用状态切换未使用状态,作为上述目标应用程序针对所述虚拟播放硬件的使用数据。
本说明书所述的目标应用程序对应的播放场景,可以包括视频通话场景和音乐播放场景。其中,当目标应用程序正在使用虚拟麦克风时,可以确定目标应用程序对应的当前播放场景为视频通话场景。当目标应用程序正在使用虚拟扬声器且没有使用虚拟麦克风时,可以确定目标应用程序对应的当前播放场景为音乐播放场景。
在一种实施例中,如果所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用情况的状态为已使用状态,确定与所述目标应用程序对应的播放场景为通话场景;如果所述云服务端维护的指示所述目标应用程序针对所述虚拟扬声器的使用情况的状态为已使用状态,并且所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用状况的状态为未使用状态,则确定与所述目标应用程序对应的播放场景为音乐播放场景。
例如,当用户通过客户端访问云服务端提供的视频通话程序,用户访问该视频通话程序进行视频通话,此时可以监听到该视频通话程序正在调用虚拟扬声器和虚拟麦克风,云服务端可以响应于音乐播放程序针对虚拟扬声器和虚拟麦克风的调用事件,将云服务端维护的上述用于指示视频通话程序针对虚拟扬声器使用情况的状态切换为使用状态,以及将云服务端维护的上述用于指示视频通话程序针对虚拟麦克风使用情况的状态切换为使用状态。此时,由于虚拟麦克风为使用状态,可以确定当前的播放场景为视频通话场景。
又例如,当用户通过客户端远程访问云服务端提供的音乐播放程序,用户访问该音乐播放程序播放音乐,此时可以监听到该音乐播放程序正在调用虚拟扬声器,云服务端可以响应于音乐播放程序针对虚拟扬声器的调用事件,将云服务端维护的上述用于指示音乐播放程序针对虚拟扬声器使用情况的状态切换为使用状态。此时,由于虚拟扬声器为使用状态且虚拟麦克风部位使用状态,可以确定当前播放场景为音乐播放场景。
在另一种实施例中,云服务端可能同时运行多个应用程序,因此云服务端还维护了虚拟播放硬件的使用计数,用于指示当前播放硬件的使用数量。其中虚拟播放硬件的使用计数可以包括虚拟麦克风的使用计数和虚拟扬声器的使用计数。
如果所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用情况的状态为已使用状态,此时虚拟麦克风的使用计数加一;如果所述云服务端维护的指示所述目标应用程序针对所述虚拟扬声器使用情况的状态为已使用状态,此时虚拟扬声器的使用计数加一;当目标应用程序停止使用虚拟播放硬件时,云服务端维护的上述状态由使用状态切换为未使用状态,此时虚拟硬件的使用计数减一。当虚拟麦克风的使用计数大于一时,可以确定目标应用程序对应的当前播放场景为视频通话场景;当虚拟扬声器的使用计数大于一时且虚拟麦克风的使用计数为0时,可以确定目标应用程序对应的当前播放场景为音乐播放场景。
例如,当用户通过客户端同时访问云服务端提供的视频通话程序和音乐播放程序,用户访问该视频通话程序进行视频通话也访问该音乐播放程序进行播放音乐。此时可以监听到该视频通话程序正在调用虚拟扬声器和虚拟麦克风,也可以监听到该音乐播放程序正在调用虚拟扬声器。云服务端可以响应于视频通话程序针对虚拟扬声器和虚拟麦克风的调用事件,将云服务端维护的上述用于指示视频通话程序针对虚拟扬声器使用情况的状态切换为使用状态,并将上述虚拟扬声器的使用计数加一;以及将云服务端维护的上述用于指示视频通话程序针对虚拟麦克风使用情况的状态切换为使用状态,并将上述虚拟麦克风的使用计数加一。同时,云服务端可以响应于音乐播放程序针对虚拟扬声器的调用事件,由于虚拟扬声器已为使用状态,将虚拟扬声器的使用计数加一。此时虚拟麦克风的使用计数为一,虚拟扬声器的使用计数为二,由于虚拟麦克风的使用计数大于一即被认为是视频通话场景。此时目标应用程序对应的播放场景为视频通话场景。
通过上述步骤,云服务端通过获取目标应用程序针对所述虚拟播放硬件的使用数据;并基于所述使用数据可以确定所述目标应用程序对应的播放场景;下面结合图4,通过一个具体实施例进一步解释该确定播放场景的过程。
图4是一示例性实施例提供的一种确定播放场景的流程图。
如图4所示,云服务端搭载的虚拟操作***注册了针对虚拟播放硬件的调用监听(402),当监听到虚拟操作***针对虚拟播放硬件的调用事件时(404),说明虚拟播放硬件正在被使用,此时判断是否为新的应用程序正在使用虚拟播放硬件(406),如果没有监听到应用程序针对虚拟播放硬件调用事件,说明为新的应用程序正在使用虚拟播放硬件,此时 云服务端对这个应用程序注册针对虚拟播放硬件的调用事件(408)。当监听到应用程序针对虚拟播放硬件的调用硬件时(410),将云服务端维护的用于指示目标应用程序针对虚拟播放硬件使用情况的状态,由未使用状态切换至使用状态(412),将云服务端维护的用于指示当前虚拟播放硬件的使用数量的虚拟播放硬件的使用计数加一(414),通过上述虚拟播放硬件的使用计数确定当前应用程序对应的播放场景。如果虚拟麦克风的使用计数大于一,则当前播放场景为视频通话场景,如果虚拟扬声器的使用计数大于一且虚拟麦克风的使用计数等于零,则当前播放场景为音乐播放场景。
步骤206,将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
通过上述步骤可以确定目标应用程序对应的播放场景,其中播放场景可以包括视频通话场景或者音乐播放场景。云服务端可以将视频通话场景或者音乐播放场景发送至客户端,使客户端根据上述播放场景对物理播放硬件进行播放配置。其中客户端针对不同应用程序对应的播放场景预先设置了不同的播放配置参数,根据不同的播放配置参数,对客户端搭载的物理播放硬件进行配置,用户可以根据实际需要自行调整预先设置的播放配置参数,本发明对此不作限定。
在一种实施方式中,上述播放配置参数可以包括与播放硬件相关的播放优化配置参数,客户端可以根据优化配置参数对上述物理播放硬件进行播放优化配置。其中,对物理播放硬件进行播放优化配置参数可以包括,设置音频抗网络抖动缓存的大小,回波抵消,噪声抑制,变速播放等级优化,音视频同步优化等等,相关内容可以参考相关音视频播放优化技术,本说明书不再赘述。
例如,当用户通过客户端访问云服务端提供的视频通话程序时,此时播放场景为视频通话场景。由于视频播放场景对音频传输要求较高,如果网络抖动较大,用户的视频通话体验较差。此时可以增加音频抗网络抖动缓存的大小,提高音频抗网络抖动的能力,以此提高用户体验。
在另一个例子中,当用户通过客户端访问云服务端提供的视频通话程序时,此时播放场景为视频通话场景。由于视频通话场景时,物理麦克风可以采集到用户的音频数据,而在采集数据时可能出现噪音,回波等情况。此时由于是视频通话场景,可以自动设置回波抵消,噪声抑制等功能,以此提高用户的使用体验。
在另一个例子中,当用户通过客户端访问云服务端提供的音乐播放程序时,此时播放场景为音乐播放场景。用户在播放音乐时,可能会使用音乐播放程序提供的倍速功能,比如二倍速,三倍速;由于播放数据都是通过网络从云端传输至客户端,如果出现网络抖动等问题,可能出现音频不连续等问题。此时由于播放场景,可以自动开启变速播放等级优化,以提高用户体验;具体实现方法可以参考相关技术,本说明书不再赘述。
在另一个例子中,当用户通过客户端访问云服务端提供的视频通话程序时,此时播放场景为视频通话场景。在视频通话中,由于网络延时,抖动等情况,可能会出现音画不同 步等情况。此时由于是视频通话场景,可以自动开启音视频同步优化,以提高用户体验;具体实现方法可以参考相关技术,本说明书不再赘述。
在一种实施方式中,云服务端维护了用于区分不同应用程序对应的播放场景的场景值,其中场景值可以具体为数字,英文标识或是其他用于区分不同的播放场景的值,本说明书不作特别限定。云服务端可以确定目标应用程序对应的播放场景的场景值,将确定出的场景值发送至客户端,客户端可以预先设置不同场景值对应的播放配置参数,客户端可以根据不同场景值对应的播放配置参数,对客户端搭载的物理播放硬件进行播放优化配置。
在另一种实施方式中,云服务端确定目标应用程序对应的播放场景后,将上述播放场景发送至客户端之前,可以获取播放场景对应的传输配置参数,基于获取到的所述传输配置参数对所述目标应用程序进行传输配置,以使所述目标应用程序根据所述传输配置参数向所述客户端传输待播放数据。其中,上述传输配置参数可以包括与数据传输相关的传输优化配置参数,云服务端可以根据传输优化配置参数对播放数据传输前进行优化配置。
云服务端可以针对不同应用程序对应的播放场景预先设置了不同的传输优化配置参数,根据不同的传输配置参数,对服务端运行的应用程序进行传输优化配置,用户可以根据实际需要自行调整预先设置的传输配置参数,本发明对此不作限定。
在另一种实施方式中,服务端还可以确定目标应用程序对应的播放场景的场景值,根据场景值获取播放场景对应的传输优化配置参数,基于获取到的所述传输配置参数对所述目标应用程序进行传输优化配置,以使所述目标应用程序根据所述传输配置参数向所述客户端传输待播放数据。
在一种实施方式中,上述传输配置参数可以包括与待播放数据对应的传输优先级。例如,当用户通过客户端访问云服务端提供的视频通话程序,此时播放场景为视频通话场景,由于视频播放场景对音频传输要求较高,此时可以提高视频通话程序针对通话的音频数据的传输优先级,保证通话音频数据的传输,提高音频通话的流畅度,提高用户视频通话的体验。
在另一个例子中,当用户通过客户端访问云服务端提供的音乐播放程序时,此时播放场景为音乐播放场景,此时可以提高音乐播放程序针对音乐播放数据的传输优先级,保证音乐播放数据的传输,提高用户的音乐播放体验。
通过上述步骤,云服务端通过获取目标应用程序针对所述虚拟播放硬件的使用数据;并基于所述使用数据可以确定所述目标应用程序对应的播放场景;基于目标应用程序对应的播放场景,对目标应用程序进行传输配置优化;并将目标应用程序对应的播放场景发送至客户端,以使客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放优化配置。通过对不同场景配置不同的传输配置参数及播放配置,能够提高用户在访问云服务端运行的应用程序时的音视频体验。下面结合图5,通过一个具体实施例进一步解释通过播放场景进行播放参数配置的过程。
图5是一示例性实施例提供的一种配置播放参数的流程图。
如图5所示,云服务端可以确定目标应用程序对应的播放场景具体是音乐播放场景还是视频通话场景(502),当确定目标应用程序对应的播放场景后,可以获取播放场景对应的场景值(504),获取场景值后,在云服务端根据场景值获取传输配置参数(506),对云服务端运行的应用程序进行传输配置,通过配置不同待播放数据对应的音视频传输优先级,对音视频数据传输进行优化;同时,云服务端可以将场景值发送至客户端,使客户端根据场景值对应的播放配置参数进行播放配置,以提高用户访问云端应用程序时的音视频体验。
图6是一示例性实施例提供的一种设备的示意结构图。请参考图6,在硬件层面,该设备包括处理器602、内部总线604、网络接口606、内存608以及非易失性存储器610,当然还可能包括其他业务所需要的硬件。本说明书一个或多个实施例可以基于软件方式来实现,比如由处理器602从非易失性存储器610中读取对应的计算机程序到内存609中然后运行。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图7,在一种实施方式中,该播放参数配置装置可以包括:
数据获取单元706,用于响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
场景确定单元708,用于基于所述使用数据确定与所述目标应用程序对应的播放场景;
播放配置单元710,用于将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
可选的,所述目标应用程序在所述云服务端搭载的操作***中注册了针对所述虚拟播放硬件的调用监听;所述云服务端维护了用于指示所述目标应用程序针对所述虚拟播放硬件的使用情况的状态;所述播放配置参数装置还包括,事件监听单元702,用于监听所述目标应用程序针对所述虚拟播放硬件的调用事件;状态切换单元704,用于响应于监听到的所述目标应用程序针对所述虚拟播放硬件的调用事件,将所述云服务端维护的所述状态由未使用状态切换为使用状态。
可选的,所述数据获取单元706,具体用于获取所述云服务端维护的指示所述目标应用程序针对所述虚拟播放硬件的使用情况的状态,以作为所述目标应用程序针对所述虚拟播放硬件的使用数据。
可选的,所述虚拟播放硬件包括虚拟扬声器和虚拟麦克风;所述场景确定单元708,具体用于如果所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用状况的状态为已使用状态,确定与所述目标应用程序对应的播放场景为通话场景;
如果所述云服务端维护的指示所述目标应用程序针对所述虚拟扬声器的使用情况的状态为已使用状态,并且所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风 的使用情况的状态为未使用状态,则确定与所述目标应用程序对应的播放场景为音乐播放场景。
可选的,所述播放配置参数装置还包括传输配置单元712,用于获取与所述播放场景对应的传输配置参数,基于获取到的所述传输配置参数对所述目标应用程序进行传输配置,以使所述目标应用程序根据所述传输配置参数向所述客户端传输待播放数据。
可选的,所述配置参数包括优化配置参数;所述配置包括优化配置。
可选的,所述传输配置参数包括与待播放数据对应的传输优先级。
可选的,所述云服务端包括云桌面服务端;所述客户端包括云桌面客户端;所述应用程序包括云服务端提供给所述云客户端的云桌面应用。
上述实施例阐明的***、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并 且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。

Claims (14)

  1. 一种播放参数配置方法,其特征在于,应用于云服务端,所述云服务端运行了供客户端远程访问的若干应用程序,所述云服务端维护了与所述客户端搭载的物理播放硬件对应的虚拟播放硬件,所述若干应用程序中包括至少一个具有所述虚拟播放硬件的使用需求的目标应用程序,所述方法包括:
    响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
    基于所述使用数据确定与所述目标应用程序对应的播放场景;
    将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
  2. 根据权利要求1所述的方法,其特征在于,所述目标应用程序在所述云服务端搭载的操作***中注册了针对所述虚拟播放硬件的调用监听;所述云服务端维护了用于指示所述目标应用程序针对所述虚拟播放硬件的使用情况的状态;
    所述获取所述目标应用程序针对所述播放硬件的使用数据之前,还包括:
    监听所述目标应用程序针对所述虚拟播放硬件的调用事件;
    响应于监听到的所述目标应用程序针对所述虚拟播放硬件的调用事件,将所述云服务端维护的所述状态由未使用状态切换为使用状态。
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述目标应用程序针对所述虚拟播放硬件的使用数据,包括:
    获取所述云服务端维护的指示所述目标应用程序针对所述虚拟播放硬件的使用情况的状态,以作为所述目标应用程序针对所述虚拟播放硬件的使用数据。
  4. 根据权利要求3所述的方法,其特征在于,所述虚拟播放硬件包括虚拟扬声器和虚拟麦克风;
    基于所述使用数据确定与所述目标应用程序对应的播放场景,包括:
    如果所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用状况的状态为已使用状态,确定与所述目标应用程序对应的播放场景为通话场景;
    如果所述云服务端维护的指示所述目标应用程序针对所述虚拟扬声器的使用情况的状态为已使用状态,并且所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用情况的状态为未使用状态,则确定与所述目标应用程序对应的播放场景为音乐播放场景。
  5. 根据权利要求1所述的方法,其特征在于,所述将确定出的所述播放场景发送至所述客户端之前,还包括:
    获取与所述播放场景对应的传输配置参数,基于获取到的所述传输配置参数对所述目标应用程序进行传输配置,以使所述目标应用程序根据所述传输配置参数向所述客户端传输待播放数据。
  6. 根据权利要求1或5所述的方法,其特征在于,所述配置参数包括优化配置参数;所述配置包括优化配置。
  7. 根据权利要求5所述的方法,其特征在于,所述传输配置参数包括与待播放数据对应的传输优先级。
  8. 根据权利要求1所述的方法,其特征在于,所述云服务端包括云桌面服务端;所述客户端包括云桌面客户端;所述应用程序包括云服务端提供给所述客户端的云桌面应用。
  9. 一种播放参数配置装置,其特征在于,应用于云服务端,所述云服务端运行了供客户端远程访问的若干应用程序,所述云服务端维护了与所述客户端搭载的物理播放硬件对应的虚拟播放硬件,所述若干应用程序中包括至少一个具有所述虚拟播放硬件的使用需求的目标应用程序,所述装置包括:
    数据获取单元,用于响应于所述客户端对所述目标应用程序的远程访问,获取所述目标应用程序针对所述虚拟播放硬件的使用数据;
    场景确定单元,用于基于所述使用数据确定与所述目标应用程序对应的播放场景;
    播放配置单元,用于将确定出的所述播放场景发送至所述客户端,以使所述客户端根据所述播放场景对应的播放配置参数对所述物理播放硬件进行播放配置。
  10. 根据权利要求9所述的装置,其特征在于,所述目标应用程序在所述云服务端搭载的操作***中注册了针对所述虚拟播放硬件的调用监听;所述云服务端维护了用于指示所述目标应用程序针对所述虚拟播放硬件的使用情况的状态;
    所述获取所述目标应用程序针对所述播放硬件的使用数据之前,还包括:
    事件监听单元,用于监听所述目标应用程序针对所述虚拟播放硬件的调用事件;
    状态切换单元,用于响应于监听到的所述目标应用程序针对所述虚拟播放硬件的调用事件,将所述云服务端维护的所述状态由未使用状态切换为使用状态。
  11. 根据权利要求9所述的装置,其特征在于,所述虚拟播放硬件包括虚拟扬声器和虚拟麦克风;
    所述场景确定单元,具体用于如果所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用状况的状态为已使用状态,确定与所述目标应用程序对应的播放场景为通话场景;
    如果所述云服务端维护的指示所述目标应用程序针对所述虚拟扬声器的使用情况的状态为已使用状态,并且所述云服务端维护的指示所述目标应用程序针对所述虚拟麦克风的使用情况的状态为未使用状态,则确定与所述目标应用程序对应的播放场景为音乐播放场景。
  12. 根据权利要求9所述的装置,其特征在于,所述云服务端包括云桌面服务端;所述客户端包括云桌面客户端;所述应用程序包括云服务端提供给所述客户端的云桌面应用。
  13. 一种电子设备,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-8中任一项所述的方法。
  14. 一种计算机可读存储介质,其特征在于,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1-8中任一项所述方法的步骤。
PCT/CN2023/075652 2022-03-03 2023-02-13 播放参数配置方法及装置 WO2023165320A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210204652.1A CN114760283A (zh) 2022-03-03 2022-03-03 播放参数配置方法及装置
CN202210204652.1 2022-03-03

Publications (1)

Publication Number Publication Date
WO2023165320A1 true WO2023165320A1 (zh) 2023-09-07

Family

ID=82326019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075652 WO2023165320A1 (zh) 2022-03-03 2023-02-13 播放参数配置方法及装置

Country Status (2)

Country Link
CN (1) CN114760283A (zh)
WO (1) WO2023165320A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760283A (zh) * 2022-03-03 2022-07-15 阿里巴巴(中国)有限公司 播放参数配置方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559571A (zh) * 2016-11-18 2017-04-05 努比亚技术有限公司 参数配置装置、移动终端及方法
US20170251257A1 (en) * 2014-05-28 2017-08-31 Dermot OBrien Apps, LLC System and method for aggregating and displaying media from multiple cloud services
CN111638779A (zh) * 2020-04-27 2020-09-08 维沃移动通信有限公司 音频播放控制方法、装置、电子设备及可读存储介质
CN114125369A (zh) * 2021-12-03 2022-03-01 北京国基科技股份有限公司 一种基于虚拟音视频的视频会议融合方法及***
CN114760283A (zh) * 2022-03-03 2022-07-15 阿里巴巴(中国)有限公司 播放参数配置方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8416247B2 (en) * 2007-10-09 2013-04-09 Sony Computer Entertaiment America Inc. Increasing the number of advertising impressions in an interactive environment
US9654360B1 (en) * 2016-02-29 2017-05-16 Wowza Media Systems, LLC Coordinating analytics between media player and server
CN109240833A (zh) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 资源配置方法、装置、终端及存储介质
CN112565508B (zh) * 2019-09-26 2022-07-22 华为技术有限公司 处理方法及移动设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170251257A1 (en) * 2014-05-28 2017-08-31 Dermot OBrien Apps, LLC System and method for aggregating and displaying media from multiple cloud services
CN106559571A (zh) * 2016-11-18 2017-04-05 努比亚技术有限公司 参数配置装置、移动终端及方法
CN111638779A (zh) * 2020-04-27 2020-09-08 维沃移动通信有限公司 音频播放控制方法、装置、电子设备及可读存储介质
CN114125369A (zh) * 2021-12-03 2022-03-01 北京国基科技股份有限公司 一种基于虚拟音视频的视频会议融合方法及***
CN114760283A (zh) * 2022-03-03 2022-07-15 阿里巴巴(中国)有限公司 播放参数配置方法及装置

Also Published As

Publication number Publication date
CN114760283A (zh) 2022-07-15

Similar Documents

Publication Publication Date Title
WO2020221190A1 (zh) 小程序状态同步方法、设备和计算机存储介质
JP6384877B2 (ja) ストリーミング・サーバのセッション・アイドル最適化
US9253100B2 (en) Asynchronous virtual machine replication
WO2019206296A1 (zh) 用于网关服务器的故障处理方法和装置
WO2017124842A1 (zh) 一种截图的方法及装置
WO2019127191A1 (zh) 一种多操作***共享文件***的方法、装置和电子设备
WO2022017007A1 (zh) 音频数据处理方法、服务器及存储介质
US10244451B2 (en) Seamless application connectivity
US10389832B2 (en) Remote casting of media content
WO2022142619A1 (zh) 一种私密音视频通话的方法与设备
WO2022111027A1 (zh) 视频获取方法、电子设备及存储介质
WO2020042769A1 (zh) 图像信息的传输方法、装置、存储介质及电子设备
WO2023165320A1 (zh) 播放参数配置方法及装置
US20230405455A1 (en) Method and apparatus for processing cloud gaming resource data, computer device, and storage medium
WO2019047708A1 (zh) 资源配置方法及相关产品
US9391918B2 (en) Communicating data in flows between first and second computers over a network
JP2021184607A (ja) オーディオデータ処理方法、装置、デバイス、記憶媒体及びプログラム
CN114785848A (zh) 电子设备之间的协同交互和协同方法、装置和***
US11418839B2 (en) Automatic media control
CN110620761B (zh) 一种实现多人虚拟互动的方法与装置
CN111324808B (zh) 一种用于提供信息流的方法与设备
WO2024093264A1 (zh) 音频检测方法、装置及设备
US9516355B2 (en) Discovering and controlling multiple media rendering devices utilizing different networking protocols
WO2023024894A1 (zh) 一种多设备同步播放方法及装置
CN116074688A (zh) 音频播放方法、装置和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23762721

Country of ref document: EP

Kind code of ref document: A1