Multimedia device switching method and apparatus, electronic device, medium, and program product

By automatically detecting and switching the type of multimedia devices, the problem of cumbersome multimedia device switching operations in the client is solved, the switching efficiency and user experience are improved, and the device switching process is simplified.

CN114880089BActive Publication Date: 2025-11-21BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210466359.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-11-21
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

During client-side operation, switching between multimedia devices is cumbersome, requiring users to switch manually, which is inefficient, especially when users are unfamiliar with the operation.

Method used

A method for switching multimedia devices is provided, which automatically determines the device type and switches the device according to the switching conditions by monitoring the insertion and removal of multimedia devices in the terminal. It includes different processing logic for audio and video devices, supports fault detection and list updates, and simplifies user operation.

Benefits of technology

It enables automatic switching of multimedia devices, improves switching efficiency, reduces user interaction time, enhances user experience, and avoids connection failures caused by switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880089B_ABST
    Figure CN114880089B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a multimedia device switching method and device, an electronic device, a medium and a program product, which are applied to a client based on a multimedia device working in a terminal. The method comprises the following steps: in the working process, when it is detected that a first multimedia device is inserted into the terminal, the device type of the first multimedia device is determined; whether the current condition meets the switching condition is determined according to the device type of the first multimedia device; if the switching condition is met, the currently used multimedia device with the same device type as the first multimedia device is switched to the first multimedia device. According to the technical scheme provided by the present disclosure, whether the current condition meets the switching condition is automatically determined according to the device type of the inserted first multimedia device without the participation of the user, and the switching of the multimedia device is automatically performed when the switching condition is met, which simplifies the device switching process and improves the switching efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer application technology, and in particular to a multimedia device switching method, apparatus, electronic device, medium, and program product. Background Technology

[0002] With the rapid development of computer technology, WebRTC (Web Real-Time Communication) technology has gradually matured. WebRTC is an API (Application Programming Interface) that enables web browsers to conduct real-time voice or video conversations. As WebRTC technology matures, web-based audio and video communication has been applied to various fields, such as education, finance, government, and healthcare, and in increasingly diverse formats, including online meetings, interactive classrooms, interactive live streams, enterprise live streams, and webinars. Corresponding clients can implement corresponding audio and video functions by using multimedia devices.

[0003] During operation, the multimedia devices used by the client may encounter problems. After the user inserts a new multimedia device into the terminal, the user needs to manually switch the currently used multimedia device to the newly inserted multimedia device. If the user is not familiar with the switching operation, it may be necessary to try multiple times to complete the switch. The device switching process is cumbersome and the switching efficiency is low. Summary of the Invention

[0004] The purpose of this disclosure is to provide a multimedia device switching method, apparatus, electronic device, medium, and program product, so as to automatically determine whether the current switching conditions are met during the client's operation, and automatically switch the multimedia device when the switching conditions are met, thereby simplifying the device switching process and improving switching efficiency.

[0005] To solve the above-mentioned technical problems, this disclosure provides the following technical solution:

[0006] According to a first aspect of the present disclosure, a multimedia device switching method is provided, applied to a client deployed in a terminal that operates based on a multimedia device, the multimedia device switching method comprising:

[0007] During operation, if a first multimedia device is detected being inserted into the terminal, the device type of the first multimedia device is determined.

[0008] Based on the device type of the first multimedia device, determine whether the switching conditions are met;

[0009] If the switching conditions are met, the currently used multimedia device of the same device type as the first multimedia device will be switched to the first multimedia device.

[0010] In one specific embodiment of this disclosure, determining whether the switching conditions are met based on the device type of the first multimedia device includes:

[0011] If the first multimedia device is an audio device, then the switching conditions are met.

[0012] In one specific embodiment of this disclosure, when the first multimedia device is an audio device, before determining that the switching conditions are met, the method further includes:

[0013] Determine whether the first multimedia device is available;

[0014] If the first multimedia device is available, then the step of determining that the current switching conditions are met is performed.

[0015] In one specific embodiment of this disclosure, determining whether the switching conditions are met based on the device type of the first multimedia device includes:

[0016] If the first multimedia device is a video device, then it is determined that the current switching conditions are not met.

[0017] In one specific embodiment of this disclosure, when the first multimedia device is a video device, it further includes:

[0018] If a first switching instruction is received for the first multimedia device, the currently used video device is switched to the first multimedia device.

[0019] In one specific embodiment of this disclosure, it further includes:

[0020] When the client starts, a fault detection is performed on the preset initial multimedia device;

[0021] If the initial multimedia device is functioning correctly, then the initial multimedia device is invoked to perform its functions.

[0022] If the initial multimedia device is faulty, a second available multimedia device is selected from the list of multimedia devices;

[0023] The second multimedia device is invoked to perform its function.

[0024] In one specific embodiment of this disclosure, it further includes:

[0025] If no available multimedia device is found in the list of multimedia devices, a message indicating that no available multimedia device is currently displayed will be output.

[0026] In one specific embodiment of this disclosure, it further includes:

[0027] During operation, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device.

[0028] If the third multimedia device is a currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device.

[0029] Switch to the fourth multimedia device to work.

[0030] In one specific embodiment of this disclosure, it further includes:

[0031] The multimedia device list is updated when a first multimedia device is detected being inserted into the terminal, and / or when a third multimedia device is detected being unplugged from the terminal.

[0032] In one specific embodiment of this disclosure, it further includes:

[0033] During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

[0034] In one specific embodiment of this disclosure, it further includes:

[0035] If the fifth multimedia device is a faulty device, a prompt message indicating that the fifth audio / video device is a faulty device will be output.

[0036] In one specific embodiment of this disclosure, it further includes:

[0037] If the set list update trigger condition is met, determine whether the sixth multimedia device is in the multimedia device list. The sixth multimedia device is any multimedia device detected by the client in the terminal.

[0038] If the sixth multimedia device is not in the multimedia device list, then the sixth multimedia device is added to the multimedia device list.

[0039] According to a second aspect of the present disclosure, a multimedia device switching apparatus is provided, applied to a client deployed in a terminal that operates based on a multimedia device, the multimedia device switching apparatus comprising:

[0040] The device type determination module is configured to determine the device type of the first multimedia device when it is detected that a first multimedia device has been inserted into the terminal during the operation process.

[0041] The device switching determination module is configured to determine whether the switching conditions are met based on the device type of the first multimedia device.

[0042] The device switching execution module is configured to switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device when the switching conditions are met.

[0043] In one specific embodiment of this disclosure, the device switching determination module is configured to perform:

[0044] If the first multimedia device is an audio device, it is determined that the switching conditions are met.

[0045] In one specific embodiment of this disclosure, a device switching determination module is further included, configured to perform:

[0046] If the first multimedia device is an audio device, before determining whether the first multimedia device is available, the following steps are taken:

[0047] If the first multimedia device is available, then the step of determining that the current switching conditions are met is performed.

[0048] In one specific embodiment of this disclosure, the device switching determination module is configured to perform:

[0049] If the first multimedia device is a video device, it is determined that the current switching conditions are not met.

[0050] In one specific embodiment of this disclosure, the device switching execution module is further configured to execute:

[0051] If the first multimedia device is a video device, and a first switching instruction is received for the first multimedia device, the currently used video device will be switched to the first multimedia device.

[0052] In one specific embodiment of this disclosure, an initialization module is also included, configured to execute:

[0053] When the client starts, a fault detection is performed on the preset initial multimedia device;

[0054] If the initial multimedia device is functioning correctly, then the initial multimedia device is invoked to perform its functions.

[0055] If the initial multimedia device is faulty, a second available multimedia device is selected from the list of multimedia devices;

[0056] The second multimedia device is invoked to perform its function.

[0057] In one specific embodiment of this disclosure, a first prompt message output module is further included, configured to execute:

[0058] If no available multimedia device is found in the list of multimedia devices, a message indicating that no multimedia device is currently available will be output.

[0059] In one specific embodiment of this disclosure, the device switching execution module is further configured to execute:

[0060] During operation, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device.

[0061] If the third multimedia device is a currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device.

[0062] Switch to the fourth multimedia device to work.

[0063] In one specific embodiment of this disclosure, a multimedia device list update module is also included, configured to perform:

[0064] The multimedia device list is updated when a first multimedia device is detected being inserted into the terminal, and / or when a third multimedia device is detected being unplugged from the terminal.

[0065] In one specific embodiment of this disclosure, the device switching execution module is further configured to execute:

[0066] During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

[0067] In one specific embodiment of this disclosure, a second prompting information output module is further included, configured to execute:

[0068] If the fifth multimedia device is a faulty device, a prompt message indicating that the fifth audio / video device is a faulty device will be output.

[0069] In one specific embodiment of this disclosure, a multimedia device query module is also included, configured to perform:

[0070] If the set list update trigger condition is met, determine whether the sixth multimedia device is in the multimedia device list. The sixth multimedia device is any multimedia device detected by the client in the terminal.

[0071] If the sixth multimedia device is not in the multimedia device list, then the sixth multimedia device is added to the multimedia device list.

[0072] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0073] processor;

[0074] Memory used to store the processor's executable instructions;

[0075] The processor is configured to execute the instructions to implement the multimedia device switching method as described in the first aspect.

[0076] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the multimedia device switching method as described in the first aspect.

[0077] A computer program product comprising computer instructions stored in a computer-readable storage medium and adapted to be read and executed by a processor to cause an electronic device having the processor to perform the multimedia device switching method as described in the first aspect.

[0078] By applying the technical solution provided in this disclosure, if the client detects the insertion of a first multimedia device into the terminal during operation, it can first determine the device type of the first multimedia device. Based on the device type of the first multimedia device, it can automatically determine whether the switching conditions are met. If the switching conditions are met, the client can switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device. This process can automatically determine whether the switching conditions are met based on the device type of the inserted first multimedia device without user intervention, and automatically switch the multimedia device when the switching conditions are met. This simplifies the device switching process, improves switching efficiency, and effectively avoids increasing user communication time due to multimedia device switching, thus enhancing the user experience.

[0079] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0080] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0081] Figure 1 This is a flowchart illustrating the implementation of a multimedia device switching method in this disclosure.

[0082] Figure 2 This is a schematic diagram illustrating the process of adding a multimedia device in an embodiment of this disclosure;

[0083] Figure 3 This is a schematic diagram of the multimedia device initialization process in an embodiment of this disclosure;

[0084] Figure 4 This is a schematic diagram illustrating the process of deleting a multimedia device in an embodiment of this disclosure;

[0085] Figure 5 This is a schematic diagram of the structure of a multimedia device switching device according to an embodiment of the present disclosure;

[0086] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0087] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0088] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0089] The core of this disclosure is to provide a multimedia device switching method. This method can be applied to clients deployed on terminals that work with multimedia devices, such as clients for online meetings, interactive classrooms, interactive live streaming, enterprise live streaming, and webinars. These clients all require multimedia devices to function. The client can be pre-installed on the terminal. When needed, the user can activate the client, which then calls upon the multimedia device to provide the corresponding functions. For example, in an online meeting client, when needed, the user can activate the client, which then calls upon the multimedia device to enable the user to participate in the online meeting.

[0090] See Figure 1 The diagram shown is an implementation flowchart of a multimedia device switching method provided in this disclosure. The method may include the following steps:

[0091] S110: During operation, if a first multimedia device is detected being inserted into the terminal, determine the device type of the first multimedia device.

[0092] The client operates based on multimedia devices, which can be audio-visual devices such as headphones and cameras. The client can use multimedia devices deployed on the terminal itself, or multimedia devices plugged into the terminal.

[0093] During client-side operation, users can insert or remove multimedia devices as needed. The client can monitor the multimedia devices in the terminal, and upon detecting the insertion of a first multimedia device, it can determine the device type. Based on the device type, the multimedia device can be categorized as an audio device or a video device.

[0094] S120: Determine whether the switching conditions are met based on the device type of the first multimedia device.

[0095] In this embodiment of the disclosure, switching conditions can be preset. When a first multimedia device is detected being inserted into the terminal, after determining the device type of the first multimedia device, it can be determined whether the switching conditions are met based on the device type of the first multimedia device.

[0096] S130: If the switching conditions are met, the currently used multimedia device of the same type as the first multimedia device will be switched to the first multimedia device.

[0097] During operation, when the client detects the insertion of a first multimedia device into the terminal, it can assume that the user needs to use the new multimedia device. Based on the device type of the first multimedia device, it can determine whether the switching conditions are met. If the switching conditions are met, it can further identify the currently used multimedia device of the same type as the first multimedia device and switch it to the first multimedia device, allowing the user to continue working using the first multimedia device. If the switching conditions are not met, no action is taken, and the currently used multimedia device remains unchanged.

[0098] By applying the method provided in this embodiment, if the client detects the insertion of a first multimedia device into the terminal during operation, it can first determine the device type of the first multimedia device. Based on the device type of the first multimedia device, it can automatically determine whether the switching conditions are met. If the switching conditions are met, the client can switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device. This process can automatically determine whether the switching conditions are met based on the device type of the inserted first multimedia device without user intervention, and automatically switch the multimedia device when the switching conditions are met. This simplifies the device switching process, improves switching efficiency, and effectively avoids increasing user communication time due to multimedia device switching, thus enhancing the user experience.

[0099] In one embodiment of this disclosure, step S120 may include the following steps:

[0100] If the first multimedia device is an audio device, then the switching conditions are met.

[0101] Based on the device type of the first multimedia device, it can be determined whether the first multimedia device is an audio device or a video device. When the insertion of the first multimedia device into the terminal is detected, if the first multimedia device is an audio device, it can be assumed that the user currently has a need to switch audio devices. It can be determined that the switching conditions are met, and the currently used audio device can be switched to the first multimedia device, such as switching the currently used speaker and microphone to the first multimedia device. This allows for rapid switching of audio devices.

[0102] In one embodiment of this disclosure, when the first multimedia device is an audio device, before determining whether the switching conditions are met, it can be determined whether the first multimedia device is available. If the first multimedia device is available, the step of determining whether the switching conditions are met can be performed.

[0103] It is understandable that the client is providing corresponding functions to the user during the operation process. Switching multimedia devices is to better serve the user. If the switched multimedia device is unavailable, it will seriously affect the user's experience.

[0104] Therefore, when the client detects that a first multimedia device has been inserted into the terminal, if the first multimedia device is an audio device, it can first determine whether the first multimedia device is available. Specifically, this can be determined by creating a media stream and passing it to the first multimedia device.

[0105] If the first multimedia device is determined to be available, the steps to determine if the switching conditions are met can be continued, and the currently used audio device can be switched to the first multimedia device. This ensures that the switched audio device can be used normally, which helps the client provide better service to users.

[0106] If it is determined that the first multimedia device is unavailable or malfunctioning, the currently used audio device can remain unchanged to avoid affecting user operation. Simultaneously, a faulty message indicating that the first multimedia device is malfunctioning can be output, allowing the user to determine whether to re-insert the first multimedia device, insert another multimedia device, or continue issuing switching commands for the first multimedia device. This facilitates further user operations.

[0107] In one embodiment of this disclosure, step S120 may include the following steps:

[0108] If the first multimedia device is a video device, then the current switching conditions are not met.

[0109] In this embodiment of the disclosure, when a first multimedia device is detected being inserted into the terminal, if the first multimedia device is a video device, considering that the user needs a certain amount of preparation time to use the new video device, such as adjusting personal makeup and clothing, it can be determined that the current switching conditions are not met, and the video device will not be automatically switched. The currently used video device can be kept unchanged to provide the user with a stable service.

[0110] In one embodiment of this disclosure, if the first multimedia device is a video device, and a first switching instruction for the first multimedia device is received, the currently used video device is switched to the first multimedia device.

[0111] In this embodiment, when a first multimedia device is detected being inserted into the terminal, if it is determined to be a video device, then the switching conditions are not met, and the currently used video device can remain unchanged. Simultaneously, a switching control is provided to the user, allowing them to determine whether to switch video devices based on their actual situation. For example, if the user has already adjusted their makeup and clothing, they can decide to switch video devices. If they decide to switch, they can issue a first switching command for the first multimedia device through the switching control. If the client receives the first switching command for the first multimedia device, it can assume that the user has a need to switch video devices and can switch the currently used video device to the first multimedia device to better meet the user's needs.

[0112] When the first multimedia device is a video device, its availability can be determined by creating a media stream and transmitting it to the first multimedia device. If the first multimedia device is determined to be unavailable or faulty, a fault message can be output to inform the user of the device's status. Alternatively, upon receiving a first switching instruction for the first multimedia device, a fault message can be output to alert the user. If a cancellation instruction from the user is received, the currently used video device can remain unchanged. If no cancellation instruction is received, the process of switching the currently used video device to the first multimedia device can continue to meet the user's needs.

[0113] For ease of understanding, Figure 2 The present invention will be described using the processing procedure of the newly added multimedia device as an example.

[0114] During operation, the client can monitor whether there are any changes to the multimedia devices on the terminal.

[0115] If a change is detected in the multimedia device of the terminal, such as the insertion of a first multimedia device, the device type of the first multimedia device can be determined. Based on the device type of the first multimedia device, it can be determined whether the first multimedia device is an audio device or a video device.

[0116] If the first multimedia device is an audio device, it can be determined whether the first multimedia device is available; if the first multimedia device is unavailable, the currently used audio device can remain unchanged, and a prompt message indicating that the first multimedia device is faulty can be output; if the first multimedia device is available, the currently used audio device can be switched to the first multimedia device.

[0117] If the first multimedia device is a video device, the currently used video device can remain unchanged, and it can be determined whether the first multimedia device is available; if the first multimedia device is unavailable, a prompt message indicating that the first multimedia device is faulty can be output; if the first multimedia device is available, no action needs to be taken.

[0118] When a new multimedia device is inserted into the terminal, the system automatically determines whether the switching conditions are met based on the device type of the new multimedia device. If the switching conditions are met, the system automatically switches the multimedia device, simplifying the device switching process, improving switching efficiency, effectively saving communication time, making it more convenient for users, and reducing the failure rate of audio and video connections caused by multimedia device problems.

[0119] In one embodiment of this disclosure, the method may further include the following steps:

[0120] Step 1: When the client starts up, perform fault detection on the preset initial multimedia devices;

[0121] Step 2: If the initial multimedia device is working properly, then invoke the initial multimedia device to begin operation;

[0122] Step 3: If the initial multimedia device is faulty, select a second available multimedia device from the list of multimedia devices;

[0123] Step 4: Call the second multimedia device to start working.

[0124] For ease of description, the above four steps will be explained together.

[0125] In this embodiment of the disclosure, the multimedia device can be initialized upon client startup. A preset initial multimedia device can be determined during client startup. This initial multimedia device can be determined through terminal settings. The initial multimedia device is usually a commonly used multimedia device deployed on the terminal, and its likelihood of failure is low. However, to ensure normal service provision to users, fault detection can be performed on the initial multimedia device.

[0126] If the initial multimedia device is normal, has no faults, and is available, then the initial multimedia device can be called to perform the work. For example, the initial multimedia device can be used as the default multimedia device to perform the work.

[0127] If the initial multimedia device malfunctions, a second available multimedia device can be selected from the list of multimedia devices and used as the default multimedia device to perform the operation.

[0128] The client can obtain a list of multimedia devices through a device reading interface, etc. This list can include multiple multimedia devices. It can be divided into audio device sublists and video device sublists based on device type. The second available multimedia device selected from the list can include audio and / or video devices.

[0129] Prioritizing the use of the initial multimedia device, and if the initial multimedia device malfunctions, using the second available multimedia device selected from the multimedia device list, can largely ensure that the client can provide normal services to users after startup.

[0130] In one embodiment of this disclosure, the step of selecting an available second multimedia device from the list of multimedia devices may include the following steps:

[0131] The most frequently used available multimedia device in the list of multimedia devices is identified as the second multimedia device.

[0132] In this embodiment of the disclosure, if the client determines that the initial multimedia device is faulty upon startup, it can select a second available multimedia device from the multimedia device list. The multimedia devices in the list can be arranged in the order of insertion. During selection, the availability of each multimedia device in the list can be checked one by one, and the first available multimedia device is designated as the second multimedia device. Alternatively, the multimedia devices in the list can be arranged in descending order of usage frequency, and then the availability of each multimedia device can be checked one by one, with the first available multimedia device being designated as the second multimedia device. In other words, the available multimedia device with the highest usage frequency in the list is designated as the second multimedia device. It can be assumed that the higher the usage frequency of a multimedia device, the stronger its stability, and the more stable the service the client can provide to the user using that multimedia device. The usage frequency of the multimedia device can be determined based on the number of times the multimedia device is used within a set time period.

[0133] In one embodiment of this disclosure, if no available multimedia device is found in the list of multimedia devices, a prompt message indicating that no available multimedia device is currently displayed can be output.

[0134] In this embodiment of the disclosure, upon startup, the client performs fault detection on a preset initial multimedia device. If the initial multimedia device is faulty, fault detection can be performed on each multimedia device in the multimedia device list to determine if there are any usable multimedia devices in the list. If there are no usable multimedia devices in the list, a prompt message indicating that no usable multimedia devices are currently available can be output, allowing the user to promptly confirm whether there is a problem with the terminal's multimedia devices based on this prompt message.

[0135] For ease of understanding, Figure 3 The embodiments of this disclosure will be described using the multimedia device initialization process shown as an example.

[0136] When the client starts up, it can obtain a list of multimedia devices and perform fault detection on the preset initial multimedia devices;

[0137] If the initial multimedia device is faulty and unavailable, check if the next multimedia device in the multimedia device list is available. If the multimedia device is available, use it as the default multimedia device and call it to work. If the multimedia device is unavailable, repeat the step of checking if the next multimedia device in the multimedia device list is available. If the multimedia device is the last multimedia device in the multimedia device list, it means that there is no available multimedia device in the list, and a prompt message can be output that there is no available multimedia device.

[0138] If the initial multimedia device is available, it can be used as the default multimedia device, and the initial multimedia device can be invoked to perform the work.

[0139] When the client starts, it initializes the multimedia devices, which can quickly select available multimedia devices to provide services to users.

[0140] In one embodiment of this disclosure, the method may further include the following steps:

[0141] The first step: During the work process, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device;

[0142] The second step: If the third multimedia device is the currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device;

[0143] The third step: Switch to the fourth multimedia device to work.

[0144] For ease of description, the three steps above will be explained together.

[0145] During client-side operation, users can insert or remove multimedia devices as needed. The client can monitor multimedia devices on the terminal, and if it detects a third multimedia device being removed, it can determine whether the third multimedia device is the one currently in use.

[0146] If the third multimedia device is the currently used multimedia device, unplugging it will prevent the client from providing normal service to the user. In this case, a fourth multimedia device of the same type as the third multimedia device can be selected from the multimedia device list. Specifically, the multimedia devices in the list can be arranged in the order of insertion. Each multimedia device in the list can be checked for availability, and the first available device of the same type as the third multimedia device can be designated as the fourth multimedia device. Alternatively, the multimedia devices in the list can be arranged in descending order of usage frequency, and each device can be checked for availability. The first available device of the same type as the third multimedia device can be designated as the fourth multimedia device. Or, a default multimedia device of the same type as the third multimedia device can be selected from the list, and if it is confirmed to be available, it can be designated as the fourth multimedia device.

[0147] After selecting the fourth multimedia device, you can switch to the fourth multimedia device to ensure the continuity of service to users.

[0148] If the third multimedia device that is unplugged is not the currently used multimedia device, unplugging the third multimedia device will not affect the client's ability to provide normal services to the user. In this case, the currently used multimedia device can be kept unchanged to avoid affecting the user's experience.

[0149] For ease of understanding, Figure 4 The present invention will be described using the process of deleting a multimedia device as an example.

[0150] During operation, the client can monitor whether there are any changes to the multimedia devices on the terminal.

[0151] If a change in the multimedia device on the terminal is detected, such as a third multimedia device being unplugged, it can be determined whether the third multimedia device is the currently used multimedia device. At the same time, the multimedia device list can be updated, and the third multimedia device can be deleted from the multimedia device list.

[0152] If the third multimedia device is the currently used multimedia device, you can select an available fourth multimedia device from the list of multimedia devices that is the same type as the third multimedia device, and switch to the fourth multimedia device to work.

[0153] If the third multimedia device is not the currently used multimedia device, the currently used multimedia device can remain unchanged.

[0154] When a multimedia device is unplugged from the terminal, timely determination of whether to switch to the current multimedia device based on whether the unplugged device is the one currently in use can improve switching efficiency, save users' communication time, facilitate user use, and reduce the failure rate of audio and video connections caused by multimedia device problems.

[0155] In this embodiment, the client can obtain a list of multimedia devices through a language interface, such as the raw interface provided by JavaScript. Upon detecting the insertion of a first multimedia device into the terminal, and / or upon detecting the unplugging of a third multimedia device, the multimedia device list can be updated in real time. This allows for accurate selection of available multimedia devices based on the updated list. The availability status of each multimedia device can be marked in the list, indicating whether the corresponding multimedia device is available or faulty.

[0156] In one embodiment of this disclosure, the method may further include the following steps:

[0157] During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

[0158] In this embodiment, the client can provide a switching control for the user. When the user needs to switch multimedia devices, they can issue a corresponding switching command through the switching control. Upon detecting the user's operation on the switching control, a list of multimedia devices can be displayed to the user, who can then select which multimedia device to switch to.

[0159] During operation, if a second switching instruction is received for the fifth multimedia device, it can be assumed that the user has a switching requirement. The currently used multimedia device of the same type as the fifth multimedia device can be switched to the fifth multimedia device. That is, if the fifth multimedia device is an audio device, the currently used audio device will be switched to the fifth multimedia device; if the fifth multimedia device is a video device, the currently used video device will be switched to the fifth multimedia device.

[0160] Switching multimedia devices according to user commands can better meet user needs and make it convenient for users to use.

[0161] Of course, upon receiving the second switching command for the fifth multimedia device, fault detection can be performed on the fifth multimedia device. If the fifth multimedia device is a faulty device, a prompt message indicating that the fifth multimedia device is a faulty device can be output so that the user can troubleshoot the problem in a timely manner based on the prompt message.

[0162] In one embodiment of this disclosure, the method may further include the following steps:

[0163] Step 1: If the set list update trigger condition is met, determine whether the sixth multimedia device is in the multimedia device list. The sixth multimedia device is any multimedia device detected by the client in the terminal.

[0164] Step 2: If the sixth multimedia device is not in the multimedia device list, add the sixth multimedia device to the multimedia device list.

[0165] For ease of description, the two steps above will be explained together.

[0166] In this embodiment of the disclosure, list update triggering conditions can be preset, such as being considered to have met the list update triggering conditions when a set time interval is reached, or being considered to have met the list update triggering conditions when a list update instruction is received.

[0167] The multimedia device list is fundamental for selecting available multimedia devices. Only by ensuring the accuracy of the multimedia device list can the accuracy of the selection of available multimedia devices be guaranteed. During operation, errors in the client's language interface may cause inaccuracies in the multimedia device list, meaning that the multimedia devices actually detected on the terminal may differ from those included in the list. Therefore, when the list update trigger condition is met, for any multimedia device detected by the client on the terminal, such as the sixth multimedia device, it can be determined whether the sixth multimedia device is in the multimedia device list. If the sixth multimedia device is not in the terminal's multimedia device list, it can be added to the list, updating the list to ensure its accuracy.

[0168] The client actively queries whether the multimedia devices detected in the terminal are in the multimedia device list and updates the multimedia device list. This facilitates the selection of available multimedia devices based on the updated list and also helps to determine the usage status of multimedia devices.

[0169] Corresponding to the above method embodiments, this disclosure also provides a multimedia device switching device, applied to a client deployed in a terminal that works based on a multimedia device. The multimedia device switching device described below can be referred to in correspondence with the multimedia device switching method described above.

[0170] See Figure 5 As shown, the device may include the following modules:

[0171] The device type determination module 510 is configured to determine the device type of the first multimedia device when it is detected that a first multimedia device has been inserted into the terminal during the operation process.

[0172] The device switching determination module 520 is configured to determine whether the switching conditions are met based on the device type of the first multimedia device.

[0173] The device switching execution module 530 is configured to switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device when the switching conditions are met.

[0174] Using the apparatus provided in this disclosure, if the client detects the insertion of a first multimedia device into the terminal during operation, it can first determine the device type of the first multimedia device. Based on the device type of the first multimedia device, it can automatically determine whether the switching conditions are met. If the switching conditions are met, the client can switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device. This process can automatically determine whether the switching conditions are met based on the device type of the inserted first multimedia device without user intervention, and automatically switch the multimedia device when the switching conditions are met. This simplifies the device switching process, improves switching efficiency, and effectively avoids increasing user communication time due to multimedia device switching, thus enhancing the user experience.

[0175] In one specific embodiment of this disclosure, the device switching determination module 520 is configured to perform:

[0176] If the first multimedia device is an audio device, determine that the switching conditions are met.

[0177] In one specific embodiment of this disclosure, the device switching determination module 520 is further configured to perform:

[0178] If the first multimedia device is an audio device, determine whether the first multimedia device is available before determining that the switching conditions are met;

[0179] If the first multimedia device is available, proceed with the steps to determine if the switching conditions are met.

[0180] In one specific embodiment of this disclosure, the device switching determination module 520 is configured to perform:

[0181] If the first multimedia device is a video device, it is determined that the current switching conditions are not met.

[0182] In one specific embodiment of this disclosure, the device switching execution module 530 is further configured to execute:

[0183] If the first multimedia device is a video device, and a first switching instruction is received for the first multimedia device, the currently used video device will be switched to the first multimedia device.

[0184] In one specific embodiment of this disclosure, an initialization module is also included, configured to execute:

[0185] When the client starts, a fault detection is performed on the preset initial multimedia device;

[0186] If the initial multimedia device is working properly, then the initial multimedia device will be invoked to perform the task.

[0187] If the initial multimedia device is faulty, select a second available multimedia device from the list of multimedia devices;

[0188] Call upon a second multimedia device to perform the operation.

[0189] In one specific embodiment of this disclosure, a first prompt message output module is further included, configured to execute:

[0190] If no available multimedia device is found in the list of multimedia devices, output a message indicating that no multimedia device is currently available.

[0191] In one specific embodiment of this disclosure, a device switching execution module 530 is also included, which is further configured to execute:

[0192] During the work process, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device;

[0193] If the third multimedia device is the currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device.

[0194] Switch to the fourth multimedia device to work.

[0195] In one specific embodiment of this disclosure, a multimedia device list update module is also included, configured to perform:

[0196] Update the multimedia device list if a first multimedia device is detected being inserted into the terminal, and / or if a third multimedia device is detected being unplugged from the terminal.

[0197] In one specific embodiment of this disclosure, the device switching execution module 530 is further configured to execute:

[0198] During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

[0199] In one specific embodiment of this disclosure, the second output module for prompting information is configured to execute:

[0200] If the fifth multimedia device is faulty, output a message indicating that the fifth audio / video device is faulty.

[0201] In one specific embodiment of this disclosure, a multimedia device query module is also included, configured to perform:

[0202] If the set list update trigger condition is met, determine whether the sixth multimedia device is in the multimedia device list. The sixth multimedia device is any multimedia device detected by the client in the terminal.

[0203] If the sixth multimedia device is not in the multimedia device list, then add the sixth multimedia device to the multimedia device list.

[0204] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0205] Corresponding to the above method embodiments, this disclosure also provides an electronic device, including:

[0206] processor;

[0207] Memory used to store processor-executable instructions;

[0208] The processor is configured to execute instructions to implement the multimedia device switching method described above.

[0209] like Figure 6The diagram shows the structural composition of an electronic device, which may include a processor 10, a memory 11, a communication interface 12, and a communication bus 13. The processor 10, memory 11, and communication interface 12 all communicate with each other through the communication bus 13.

[0210] In this embodiment of the disclosure, the processor 10 may be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic devices.

[0211] The processor 10 can call programs stored in the memory 11. Specifically, the processor 10 can execute operations in the embodiments of the multimedia device switching method.

[0212] The memory 11 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment of the disclosure, the memory 11 stores at least a program for implementing the following functions:

[0213] During the operation, if a first multimedia device is detected being inserted into the terminal, the device type of the first multimedia device is determined.

[0214] Based on the device type of the first multimedia device, determine whether to switch the currently used multimedia device of the corresponding device type to the first multimedia device.

[0215] In one possible implementation, the memory 11 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function (such as a listening function or a switching function). The data storage area may store data created during use, such as device type data and multimedia device data.

[0216] In addition, memory 11 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0217] Communication interface 12 can be an interface for the communication module, used to connect with other devices or systems.

[0218] Of course, it should be noted that, Figure 6 The structure shown does not constitute a limitation on the electronic device in the embodiments of this disclosure. In practical applications, the electronic device may include more than Figure 6 More or fewer components as shown, or combinations of certain components.

[0219] Corresponding to the above method embodiments, this disclosure also provides a storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the above-described multimedia device switching method.

[0220] Furthermore, it should be noted that this disclosure also provides a computer program product or computer program, which may include computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the multimedia device switching method described in the preceding embodiments; therefore, this will not be repeated here. Additionally, the beneficial effects of using the same method will not be repeated here either. For technical details not disclosed in the embodiments of the computer program product or computer program involved in this disclosure, please refer to the description of the method embodiments of this disclosure.

[0221] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0222] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for switching multimedia devices, characterized in that, The multimedia device switching method, applied to a client deployed in a terminal and operating based on a multimedia device, includes: When the client starts, a fault detection is performed on the preset initial multimedia device; If the initial multimedia device is functioning correctly, then the initial multimedia device is invoked to perform its functions. If the initial multimedia device is faulty, a second available multimedia device is selected from the list of multimedia devices; The second multimedia device is invoked to perform the work. The second multimedia device is the most frequently used available multimedia device in the list of multimedia devices. The frequency of use is determined based on the number of times the multimedia device is used within a set time period. During operation, if a first multimedia device is detected being inserted into the terminal, the device type of the first multimedia device is determined. Based on the device type of the first multimedia device, determine whether the switching conditions are met; If the switching conditions are met, the currently used multimedia device of the same type as the first multimedia device will be switched to the first multimedia device. If the set list update trigger condition is met, determine whether the sixth multimedia device is in the multimedia device list. The list update trigger condition is reaching a set time interval and / or receiving a list update instruction. The sixth multimedia device is any multimedia device detected by the client in the terminal. If the sixth multimedia device is not in the multimedia device list, then the sixth multimedia device is added to the multimedia device list.

2. The multimedia device switching method according to claim 1, characterized in that, The step of determining whether the switching conditions are met based on the device type of the first multimedia device includes: If the first multimedia device is an audio device, then the switching conditions are met.

3. The multimedia device switching method according to claim 2, characterized in that, If the first multimedia device is an audio device, the method further includes, before determining that the switching conditions are met: Determine whether the first multimedia device is available; If the first multimedia device is available, then the step of determining that the current switching conditions are met is performed.

4. The multimedia device switching method according to claim 1, characterized in that, The step of determining whether the switching conditions are met based on the device type of the first multimedia device includes: If the first multimedia device is a video device, then it is determined that the current switching conditions are not met.

5. The multimedia device switching method according to claim 4, characterized in that, If the first multimedia device is a video device, it further includes: If a first switching instruction is received for the first multimedia device, the currently used video device is switched to the first multimedia device.

6. The multimedia device switching method according to claim 1, characterized in that, Also includes: If no available multimedia device is found in the list of multimedia devices, a message indicating that no available multimedia device is currently displayed will be output.

7. The multimedia device switching method according to claim 1, characterized in that, Also includes: During operation, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device. If the third multimedia device is a currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device. Switch to the fourth multimedia device to work.

8. The multimedia device switching method according to claim 7, characterized in that, Also includes: The multimedia device list is updated when a first multimedia device is detected being inserted into the terminal, and / or when a third multimedia device is detected being unplugged from the terminal.

9. The multimedia device switching method according to claim 1, characterized in that, Also includes: During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

10. The multimedia device switching method according to claim 9, characterized in that, Also includes: If the fifth multimedia device is a faulty device, a prompt message indicating that the fifth multimedia device is a faulty device will be output.

11. A multimedia device switching device, characterized in that, A multimedia device switching device is used in a client deployed on a terminal that operates based on a multimedia device. The multimedia device switching device includes: The initialization module is configured to perform fault detection on a preset initial multimedia device when the client starts; if the initial multimedia device is normal, it is invoked to work; if the initial multimedia device is faulty, a second available multimedia device is selected from the multimedia device list; the second multimedia device is invoked to work, and the second multimedia device is the available multimedia device with the highest usage frequency in the multimedia device list, the usage frequency being determined based on the number of times the multimedia device is used within a set time period. The device type determination module is configured to determine the device type of the first multimedia device when it is detected that a first multimedia device has been inserted into the terminal during the operation process. The device switching determination module is configured to determine whether the switching conditions are met based on the device type of the first multimedia device. The device switching execution module is configured to switch the currently used multimedia device of the same device type as the first multimedia device to the first multimedia device when the switching conditions are met. The multimedia device query module is configured to determine whether a sixth multimedia device is in the multimedia device list when a set list update trigger condition is met. The list update trigger condition is reaching a set time interval and / or receiving a list update instruction. The sixth multimedia device is any multimedia device detected by the client in the terminal. If the sixth multimedia device is not in the multimedia device list, then the sixth multimedia device is added to the multimedia device list.

12. The multimedia device switching device according to claim 11, characterized in that, The device switching determination module is configured to execute: If the first multimedia device is an audio device, it is determined that the switching conditions are met.

13. The multimedia device switching device according to claim 12, characterized in that, The device switching determination module is also configured to perform: If the first multimedia device is an audio device, before determining whether the first multimedia device is available, the following steps are taken: If the first multimedia device is available, then the step of determining that the current switching conditions are met is performed.

14. The multimedia device switching device according to claim 11, characterized in that, The device switching determination module is configured to execute: If the first multimedia device is a video device, it is determined that the current switching conditions are not met.

15. The multimedia device switching device according to claim 14, characterized in that, The device switching execution module is also configured to execute: If the first multimedia device is a video device, and a first switching instruction is received for the first multimedia device, the currently used video device will be switched to the first multimedia device.

16. The multimedia device switching device according to claim 11, characterized in that, It also includes a prompt message first output module, which is configured to execute: If no available multimedia device is found in the list of multimedia devices, a message indicating that no available multimedia device is currently displayed will be output.

17. The multimedia device switching device according to claim 11, characterized in that, The device switching execution module is also configured to execute: During operation, if a third multimedia device is detected being disconnected from the terminal, determine whether the third multimedia device is the currently used multimedia device. If the third multimedia device is a currently used multimedia device, then select an available fourth multimedia device from the list of multimedia devices that is of the same device type as the third multimedia device. Switch to the fourth multimedia device to work.

18. The multimedia device switching device according to claim 17, characterized in that, It also includes a multimedia device list update module, configured to perform: The multimedia device list is updated when a first multimedia device is detected being inserted into the terminal, and / or when a third multimedia device is detected being unplugged from the terminal.

19. The multimedia device switching device according to claim 11, characterized in that, The device switching execution module is also configured to execute: During operation, if a second switching instruction is received for the fifth multimedia device, the currently used multimedia device of the same type as the fifth multimedia device will be switched to the fifth multimedia device.

20. The multimedia device switching device according to claim 19, characterized in that, It also includes a second output module for prompting information, which is configured to execute: If the fifth multimedia device is a faulty device, a prompt message indicating that the fifth multimedia device is a faulty device will be output.

21. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the multimedia device switching method as described in any one of claims 1 to 10.

22. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the multimedia device switching method as described in any one of claims 1 to 10.

23. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium and adapted to be read and executed by a processor to cause an electronic device having the processor to perform the multimedia device switching method as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Switching method and processing equipment

    CN111147799A

  • Multimedia playing method and device, equipment and storage medium

    CN111866567A

  • Multimedia device and its control method

    JP2005182533A