Data acquisition method, device, terminal and storage medium
By introducing multiple engine interfaces into the video conferencing terminal, each interface corresponds to multiple SDKs, which solves the problem that existing terminals only support one SDK, and enables the terminal to switch between different SDKs and implement multiple audio and video services. compatible.
Patent Information
- Application Number
- CN202111249331.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Existing video conferencing terminals usually only support one audio and video software development toolkit (SDK) and cannot be compatible with multiple SDKs, which limits users' needs for audio and video services in different scenarios.
By introducing multiple engine interfaces in the terminal, each interface corresponds to multiple SDKs. After receiving the notification message, the target SDK is obtained according to the business identifier, and the target SDK is switched to obtain audio and video data.
It enables the terminal to flexibly switch between different SDKs, is compatible with audio and video services of multiple SDKs, and meets the audio and video service needs of users in different scenarios.
Smart Images

Figure CN114125357B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data acquisition method, device, terminal and storage medium. Background Art
[0002] Video conferencing can achieve the transmission and interaction of voice and video between multiple points and has been widely used in various fields, such as online teaching through video conferencing. During a video conference, the video conferencing terminal can call the software development kit (SDK) corresponding to the audio and video service to obtain the audio and video data of the other end.
[0003] Currently, there are more and more service providers that can provide audio and video services. Different service providers use different SDKs when providing audio and video services. Existing video conferencing terminals usually do not support multiple SDKs and have certain limitations.
[0004] Application Contents
[0005] The embodiments of the present application provide a data acquisition method, device, terminal and storage medium, which can meet the user's needs for audio and video services in different scenarios.
[0006] In a first aspect, an embodiment of the present application provides a data acquisition method, which is applied to a first terminal, wherein the first terminal includes an engine module, the engine module includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK, and the method includes:
[0007] receiving a notification message sent by the second terminal, where the notification message includes a service identifier of the audio and video service;
[0008] Obtain business information from the corresponding business cloud platform according to the business identifier, where the business information includes the target SDK corresponding to the audio and video business;
[0009] According to the service identifier, determine the engine interface corresponding to the audio and video service;
[0010] If the SDK currently loaded in the engine interface is inconsistent with the target SDK, switch the SDK to the target SDK;
[0011] Call the target SDK to obtain audio and video data for audio and video services.
[0012] In a second aspect, an embodiment of the present application provides a data acquisition method, which is applied to a second terminal, wherein the second terminal includes an engine module, the engine module includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK, and the method includes:
[0013] Obtaining a service information table from the service cloud platform, where the service information table includes a service identifier of the audio and video service, a terminal identifier of the first terminal, and a target SDK corresponding to the audio and video service;
[0014] According to the service identifier, determine the engine interface corresponding to the audio and video service;
[0015] If the SDK currently loaded in the engine interface is inconsistent with the target SDK, switch the SDK to the target SDK;
[0016] Call the target SDK to obtain audio and video data for audio and video services.
[0017] In a third aspect, an embodiment of the present application provides a data acquisition device, which is applied to a first terminal, wherein the first terminal includes an engine module, the engine module includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK, wherein the device includes:
[0018] A receiving module, configured to receive a notification message sent by the second terminal, the notification message including a service identifier of the audio and video service;
[0019] An acquisition module is used to acquire business information from a corresponding business cloud platform according to a business identifier, wherein the business information includes a target SDK corresponding to the audio and video business;
[0020] A determination module, used to determine the engine interface corresponding to the audio and video service according to the service identifier;
[0021] The switching module is used to switch the SDK to the target SDK when the SDK currently loaded in the engine interface is inconsistent with the target SDK;
[0022] The calling module is used to call the target SDK to obtain audio and video data for audio and video services.
[0023] In some embodiments, the calling module is specifically configured to:
[0024] Call the target SDK and send a data acquisition request message to the third-party cloud platform, where the data acquisition request message includes the terminal identifier of the second terminal, and the third-party cloud platform is the cloud platform corresponding to the target SDK;
[0025] The target SDK is called again to obtain the audio and video data of the second terminal for the audio and video service sent by the third-party cloud platform.
[0026] In some embodiments, the audio and video service includes a public service and / or a private service, the service cloud platform includes a public service cloud platform and a private service cloud platform, the data of the public service is stored in the public service cloud platform, and the data of the private service is stored in the private service cloud platform;
[0027] The device also includes: a sending module;
[0028] A sending module, configured to send a first request message to the private service cloud platform before the receiving module receives the notification message sent by the second terminal, wherein the first request message includes a registration parameter;
[0029] The receiving module is further used to receive a first request response message sent by the private business cloud platform, where the first request response message is used to indicate that the private business cloud platform accepts the registration request of the first terminal;
[0030] The sending module is further used to send a second request message to the public service cloud platform, where the second request message includes a terminal identifier of the first terminal;
[0031] The receiving module is also used to receive a second request response message sent by the public business cloud platform, where the second request response message is used to indicate that the public business cloud platform agrees that the first terminal accesses the data of the public business in the public business cloud platform.
[0032] In some embodiments, the apparatus further comprises: a display module;
[0033] A display module, configured to display an authorization management interface after the receiving module receives the first request response message sent by the private business cloud platform, the authorization management interface including a terminal identifier and an authorization control of the first terminal;
[0034] The sending module is specifically used to send a second request message to the public business cloud platform when it is detected that the authorization control is triggered.
[0035] In some embodiments, the service information also includes service data for audio and video services;
[0036] Get the module, specifically for:
[0037] When the service identifier is a public service identifier, obtain service data of the audio and video service from the public service cloud platform;
[0038] When the service identifier is a private service identifier, the service data of the audio and video service is obtained from the private service cloud platform.
[0039] In some embodiments, the calling module is further used to call the target SDK to collect local audio and video data when the local audio and video function is enabled;
[0040] The sending module is also used to send audio and video data to a third-party cloud platform.
[0041] In some embodiments, the notification message also includes a conference identifier of the video conference corresponding to the audio and video service;
[0042] The device also includes:
[0043] A joining module is used to join the video conference according to the conference identifier after the receiving module receives the notification message sent by the second terminal. In a fourth aspect, an embodiment of the present application provides a data acquisition device, which is applied to a second terminal, and the second terminal includes an engine module, and the engine module includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK;
[0044] The device comprises:
[0045] An acquisition module, used to acquire a service information table from the service cloud platform, the service information table including a service identifier of the audio and video service, a terminal identifier of the first terminal, and a target SDK corresponding to the audio and video service;
[0046] A determination module, used to determine the engine interface corresponding to the audio and video service according to the service identifier;
[0047] The switching module is used to switch the SDK to the target SDK when the SDK currently loaded in the engine interface is inconsistent with the target SDK;
[0048] The calling module is used to call the target SDK to obtain audio and video data for audio and video services.
[0049] In some embodiments, the apparatus further comprises a sending module;
[0050] The sending module is used to send a notification message to the first terminal after the acquisition module acquires the service information table from the service cloud platform, and the notification message includes the service identifier of the audio and video service.
[0051] In some embodiments, the calling module is further used to call the target SDK to collect local audio and video data when the local audio and video function is turned on after the switching module switches the SDK to the target SDK;
[0052] The sending module is also used to send audio and video data to a third-party cloud platform.
[0053] In some embodiments, the apparatus further comprises a creation module;
[0054] A creation module, used to create a video conference according to a service identifier of the audio and video service and a target SDK before the sending module sends a notification message to the first terminal;
[0055] The notification message also includes the conference ID of the video conference.
[0056] In a fifth aspect, an embodiment of the present application provides a terminal, including:
[0057] An engine module, the engine module includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK;
[0058] processor;
[0059] a memory for storing computer program instructions;
[0060] When the computer program instructions are executed by a processor, the method described in the first aspect or the method described in the second aspect is implemented.
[0061] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method described in the first aspect or the method described in the second aspect.
[0062] The data acquisition method, device, terminal and storage medium provided in the embodiments of the present application, when in the process of acquiring audio and video data of other terminals (second terminal), when the received target SDK is inconsistent with the SDK loaded by the corresponding engine interface, since the engine interface corresponds to multiple SDKs, the SDK loaded by the corresponding engine interface can be switched to the target SDK. In this way, the first terminal can obtain the audio and video data for the audio and video service based on the target SDK. In this way, the first terminal can be compatible with audio and video services corresponding to multiple SDKs, and can switch between different SDKs according to user needs, thereby meeting the user's needs for audio and video services in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0064] Figure 1 A schematic diagram of a scenario of a data acquisition method provided in an embodiment of the present application;
[0065] Figure 2 A structural diagram of an APP integrated in a terminal provided in an embodiment of the present application;
[0066] Figure 3 A flowchart of a data acquisition method provided in an embodiment of the present application;
[0067] Figure 4 A flowchart of another data acquisition method provided in an embodiment of the present application;
[0068] Figure 5 A schematic diagram of an authorization management interface provided in an embodiment of the present application;
[0069] Figure 6A flowchart of another data acquisition method provided in an embodiment of the present application;
[0070] Figure 7 A flowchart of another data acquisition method provided in an embodiment of the present application;
[0071] Figure 8 A schematic diagram of interaction between different terminals provided in an embodiment of the present application;
[0072] Fig. 9 A structural diagram of a data acquisition device provided in an embodiment of the present application;
[0073] Fig.10 A structural diagram of another data acquisition device provided in an embodiment of the present application;
[0074] Fig.11 A structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0076] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0077] When multiple terminals need to interact with each other through audio and video, they can use the SDK provided by a third party to implement it. For example, terminal A can call the SDK provided by a third party to transmit audio and video data to other terminals, or obtain audio and video data from other terminals by calling the SDK provided by a third party.
[0078] Taking online teaching as an example, generally, an online teaching application (Application, APP for short) can be installed in the terminal, and online teaching and online listening can be realized based on the APP.
[0079] Traditional APPs generally only support one SDK, that is, only support one audio and video service, which has certain limitations and cannot meet users' needs for different audio and video services in different scenarios.
[0080] To this end, an embodiment of the present application provides a data acquisition method that can support multiple SDKs through one APP to meet users' needs for different audio and video services in different scenarios.
[0081] The data acquisition method provided in the embodiment of the present application can be applied to Figure 1 The following is a specific scenario combined with Figure 1 Provide detailed explanation.
[0082] The scenario may include a first terminal 10, a second terminal 11 and a third-party cloud platform 12. Figure 1 Taking two terminals as an example, in actual application, the number of terminals can be greater.
[0083] The first terminal 10 and the second terminal 11 can be smart terminals such as mobile phones, laptops, desktops, tablets, etc. In one embodiment, the first terminal 10 can be used as a speaker terminal, and the second terminal 11 can be used as a listener terminal. Of course, the first terminal 10 can also be used as a listener terminal, and the second terminal 11 can also be used as a speaker terminal.
[0084] The third-party cloud platform 13 may be an audio and video cloud server corresponding to different audio and video service providers, and may be used to provide audio and video services. The domains of the audio and video servers of different audio and video service providers are different.
[0085] In actual application, relevant business APPs can be installed in the terminal. For example, when implementing online teaching, the corresponding teaching APP can be installed.
[0086] Take the APP in the first terminal 10 as an example, refer to Figure 2 The APP may include but is not limited to an interface (UI) module 101, a business module 102 and an engine module 103. The UI module 101 may include a UI interface. When the business module 102 needs to display certain information, the UI interface may be called and displayed through the UI module 101.
[0087] The service module 102 may include at least one service interface, and different service interfaces may correspond to different service flows.
[0088] The engine module 103 may include at least one engine interface. Figure 2 Taking two engine interfaces as an example, namely engine interface 1031 and engine interface 1032, different engine interfaces can correspond to services with different functions. For example, engine interface 1031 can correspond to audio and video services, that is, when audio and video interaction is required, the APP can call engine interface 1031.
[0089] The same engine interface can correspond to one SDK or multiple SDKs. When the same engine interface corresponds to multiple SDKs, the multiple SDKs can all provide services with the same function as the engine interface. For example, in the embodiment of the present application, the engine interface 1031 with audio and video functions corresponds to N audio and video SDKs, where N is greater than or equal to 2, indicating that the N SDKs can all provide audio and video services. Figure 2 Taking N=2 as an example, the same APP can call different audio and video SDKs through the engine interface 1031, thereby meeting the user's needs for different audio and video services.
[0090] For example, when the user of the first terminal 10 needs to use the audio and video service provided by service provider A, the first terminal 10 can call the SDK of service provider A to collect local audio and video data, and then send it to the third-party cloud platform 13 of service provider A for storage by the third-party cloud platform 13. When the user of the second terminal 12 needs to obtain the audio and video data of the first terminal 10, the second terminal 12 can call the same SDK to obtain the audio and video data of the first terminal 10 from the third-party cloud platform 13.
[0091] When the user of the first terminal 10 needs to use the audio and video service provided by service provider B, the SDK used by the first terminal 10 can be switched from service provider A to service provider B, thereby achieving on-demand switching of audio and video services and cross-domain access to different audio and video servers.
[0092] According to the above application scenario, the data acquisition method provided by the embodiment of the present application is described below in combination with a specific embodiment. The method can be Figure 1 The first terminal 10 shown is executed, and the first terminal 10 takes the listening terminal as an example.
[0093] Figure 3 A flowchart of a data acquisition method provided in an embodiment of the present application.
[0094] like Figure 3 As shown, the data transmission method may include the following steps:
[0095] S310: Receive a notification message sent by a second terminal.
[0096] The notification message includes the service identifier of the audio and video service.
[0097] S320. Obtain business information from the corresponding business cloud platform according to the business identifier.
[0098] The service information includes the target SDK corresponding to the audio and video service.
[0099] S330: Determine the engine interface corresponding to the audio and video service according to the service identifier.
[0100] S340: When the SDK currently loaded in the engine interface is inconsistent with the target SDK, the SDK is switched to the target SDK.
[0101] S350: Call the target SDK to obtain audio and video data for the audio and video service.
[0102] Therefore, in the process of obtaining audio and video data from other terminals (second terminal), when the received target SDK is inconsistent with the SDK loaded by the corresponding engine interface, since the engine interface corresponds to multiple SDKs, the SDK loaded by the corresponding engine interface can be switched to the target SDK. In this way, the first terminal can obtain audio and video data for the audio and video service based on the target SDK. In this way, the first terminal can be compatible with audio and video services corresponding to multiple SDKs, and can switch between different SDKs according to user needs, thereby meeting user needs for audio and video services in different scenarios.
[0103] Below Figure 3 The steps in the following are described in detail:
[0104] In 310, the second terminal here may be a lecturer terminal. The notification message may be used to notify the lecturer terminal to join a service related to the lecturer terminal. For example, when conducting online teaching, the notification message may be used to notify the first terminal to join the teaching course of the lecturer terminal.
[0105] The audio and video service may be a service that requires the transmission of audio and video data. For example, during online teaching, the audio and video service may be a teaching course.
[0106] The service identifier is used to uniquely identify the audio and video service. For example, when the audio and video service is a teaching course, the service identifier may be the course number corresponding to the teaching course.
[0107] In S320, the service cloud platform is used to store service information of different services. The service information may include an SDK corresponding to the service. For example, for an audio and video service, the service information may include a target SDK corresponding to the audio and video service.
[0108] Taking teaching courses as an example, the target SDK is the SDK corresponding to the service provider that provides audio and video services for the teaching course. Different teaching courses can correspond to different SDKs.
[0109] For example, the service providers that provide audio and video services for special delivery courses and after-school service courses are different, which means that different SDKs need to be used when conducting special delivery courses and after-school service courses.
[0110] Special delivery courses are generally courses offered in a certain area and are mainly applicable to that area. They are also called private courses. After-school service courses, also known as after-school tutoring courses, can be applicable to multiple areas. They are also called public courses.
[0111] Special delivery courses and after-school service courses can be stored in different business cloud platforms respectively. For example, the data of special delivery courses can be stored in a private business cloud platform, and the data of after-school service courses can be stored in a public business cloud platform.
[0112] The public business cloud platform may be a platform for storing public data, and the private business cloud platform may be a platform for storing private data. The public data here may be, for example, the data of after-school service courses, and the private data may be, for example, the data of special delivery courses.
[0113] In one embodiment, the corresponding business cloud platform can be determined according to the business identifier, and then the corresponding business information can be obtained from the corresponding business cloud platform.
[0114] Taking the service identifier as a course number as an example, in one embodiment, the corresponding course can be determined according to the number of digits of the course number. For example, when the course number is 7 digits, it can be determined that the course is an after-school service course, and thus the service information can be obtained from the public service cloud platform; when the course number is 6 digits, it can be determined that the course is a special delivery course, and thus the service information can be obtained from the private service cloud platform.
[0115] Of course, other forms may also be used to distinguish different courses, and this embodiment of the present application does not specifically limit this.
[0116] In S330, different engine interfaces can implement different functions. The service type can be determined according to the service identifier, and the required functions can be determined according to the service type, and then the corresponding engine interface can be determined.
[0117] Taking the audio and video service as an example, the audio and video service needs to implement the audio and video functions, thereby determining the engine interface corresponding to the audio and video functions.
[0118] In S340, when performing audio and video interaction, the corresponding SDK needs to be loaded through the engine interface to obtain audio and video interaction capabilities. The SDK currently loaded by the engine interface is the SDK corresponding to the audio and video service currently used by the APP.
[0119] When the identifier of the target SDK is inconsistent with the identifier of the SDK currently loaded by the engine interface, that is, the target SDK is inconsistent with the SDK currently loaded by the engine interface, the SDK currently loaded by the engine interface can be switched to the target SDK, thereby obtaining the audio and video services corresponding to the target SDK.
[0120] Exemplarily, the SDK corresponding to the special delivery course is SDK1, and the SDK corresponding to the after-school service course is SDK2. Assuming that the user is currently taking a special delivery course and needs to continue to take the after-school service course after the special delivery course, after the special delivery course is over, the first terminal needs to switch the SDK loaded by the engine interface from SDK1 to SD2, so that the user can continue to study the after-school service course, realizing the effect of one APP supporting multiple audio and video services, no longer limited to one audio and video service, so that users can switch audio and video services on demand.
[0121] In S350, the target SDK is called, the third-party cloud platform is accessed, and the audio and video data for the audio and video service is obtained from the third-party cloud platform. The audio and video data here can come from the second terminal, or from a terminal other than the second terminal among the terminals associated with the first terminal. Exemplarily, the first terminal and the third terminal are listening terminals, and the second terminal is the main speaker terminal. When the second terminal speaks, the first terminal can obtain the audio and video data of the second terminal. When the third terminal speaks, the first terminal can also obtain the audio and video data of the third terminal. The source of the audio and video data can be specified by the first terminal.
[0122] Taking obtaining the audio and video data of the second terminal as an example, illustratively, when the target SDK is the SDK corresponding to service provider A, you can access the audio and video server of service provider A to obtain the audio and video data of the second terminal. When the target SDK is the SDK corresponding to service provider B, you can access the audio and video server of service provider B to obtain the audio and video data of the second terminal.
[0123] It should be noted that the embodiment of the present application does not limit the execution order of S340 and S350. For example, S340 and S350 may be executed simultaneously, or S340 may be executed first and then S350.
[0124] The audio and video services in the embodiments of the present application may include public services and / or private services. For example, special delivery courses are private services, and after-school service courses are public services.
[0125] Accordingly, the business cloud platform may include a public business cloud platform and a private business cloud platform. The public business cloud platform is used to store public business data, and the private business cloud platform is used to store private business data. For example, the data of the special delivery course can be stored on the private business cloud platform, and the data of the after-school service course can be stored on the public business cloud platform.
[0126] When a terminal needs to access a business cloud platform, it needs to obtain access rights first. For example, when accessing a private business cloud platform to obtain information about special delivery courses, it needs to obtain access rights to the private business cloud platform first.
[0127] Based on this, in one embodiment, before S310, refer to Figure 4 The data acquisition method provided in the embodiment of the present application may also include the following steps:
[0128] S410. Send a first request message to the private business cloud platform.
[0129] The first request message includes registration parameters.
[0130] S420. Receive a first request response message sent by the private business cloud platform.
[0131] The first request response message is used to indicate that the private service cloud platform accepts the registration request of the first terminal.
[0132] S430: Send a second request message to the public business cloud platform.
[0133] The second request message includes the terminal identifier of the first terminal.
[0134] S440. Receive a second request response message sent by the public business cloud platform.
[0135] The second request response message is used to indicate that the public service cloud platform agrees that the first terminal may access the data of the public service in the public service cloud platform.
[0136] Below Figure 4 The steps in the following are described in detail:
[0137] In S410, the first request message is used to request permission to access the private business cloud platform, where the permission may be permission to access all businesses on the private business cloud platform or permission to access specified businesses on the private business cloud platform.
[0138] The first request message may include registration parameters, and the registration parameters may include, for example, a terminal identifier, a user name, a password, access content, etc. of the first terminal.
[0139] In one embodiment, the first terminal may send the first request message to the private service cloud platform via the http protocol. Of course, other protocols may also be used, which is not limited in the embodiment of the present application.
[0140] In S420, the first request response message is used to indicate that the private service cloud platform accepts the registration request of the first terminal. Exemplarily, the first request response message may include success or accept, indicating that the first terminal is successfully registered in the private service cloud platform.
[0141] As a result, the first terminal obtains the access permission of the private service cloud platform and can access the services on the private service cloud platform.
[0142] In S430, after receiving the first request response message sent by the private business cloud platform, the first terminal may automatically send a second request message to the public business cloud platform to request access rights to the public business cloud platform.
[0143] In one embodiment, the first terminal may send the second request message to the public service cloud platform via the http protocol. Of course, other protocols may also be used, which is not limited in the embodiment of the present application.
[0144] After receiving the second request message, the public service cloud platform may query the authorization database based on the terminal identifier of the first terminal to determine whether the first terminal has access rights.
[0145] When the first terminal has access rights, the public service cloud platform grants the first terminal access rights and sends a second request response message to the first terminal to notify the first terminal that the first terminal can access services in the public service cloud platform.
[0146] In this way, the first terminal obtains the authority to access the private business cloud platform and the public business cloud platform, and can implement cross-domain access to the private business cloud platform and the public business cloud platform as required.
[0147] In one embodiment, in order to meet the personalized needs of the user, before S430, the method may further include the following steps:
[0148] The authorization management interface is displayed.
[0149] The authorization management interface includes a terminal identification of the first terminal and an authorization control.
[0150] Accordingly, S430 may include the following steps:
[0151] When it is detected that the authorization control is triggered, a second request message is sent to the public business cloud platform.
[0152] The second request message includes the terminal identifier of the first terminal.
[0153] In one embodiment, after receiving the first request response message sent by the private business cloud platform, the first terminal may display an authorization management interface to obtain permission to access the public business cloud platform through the authorization management interface.
[0154] The authorization management interface may include, but is not limited to, a terminal identifier of the first terminal and an authorization control, where the authorization control is used to apply for access rights to the public business cloud platform. Figure 5 Taking the authorization management interface including the terminal identification 51 of the first terminal and the authorization control 52 as an example, when the user needs to obtain access rights of the public business cloud platform, the authorization control 52 can be triggered, and the trigger here can be a click or touch operation. The specific form of the authorization control is not limited in the embodiment of the present application.
[0155] When the first terminal detects that the authorization control 52 is triggered, it can send a second request message to the public service cloud platform in combination with the terminal identifier 51 of the first terminal to request access rights to the public service cloud platform. This can meet the user's personalized needs for the public service cloud platform.
[0156] In one embodiment, the business information stored in the business cloud platform may include not only the business identification of the audio and video business, but also business data. For example, for teaching courses, the business information may also include course data, that is, course content.
[0157] Based on this, in one embodiment, S310 may include the following steps:
[0158] When the service identifier is a public service identifier, obtain service data of the audio and video service from the public service cloud platform;
[0159] When the service identifier is a private service identifier, the service data of the audio and video service is obtained from the private service cloud platform.
[0160] Taking the business identifier as a course number as an example, in one embodiment, when the course number is 7 digits, the course data of public courses can be obtained from the public business cloud platform; when the course number is 6 digits, the course data of private courses can be obtained from the private business cloud platform.
[0161] In this way, the first terminal can store course data of different courses locally, which is convenient for users to check the specific content of the course at any time during the course, and can also mark the course data as needed. In this way, cross-domain access to different business cloud platforms can be achieved through one APP according to the needs of the course, without the need to install other APPs. While saving the memory of the first terminal, it meets the user's multi-business needs.
[0162] In one embodiment, reference Figure 6The data acquisition method provided in the embodiment of the present application may also include the following steps:
[0163] S610: Receive a notification message sent by a second terminal.
[0164] S620. Obtain business information from the corresponding business cloud platform according to the business identifier.
[0165] S630: Determine the engine interface corresponding to the audio and video service according to the service identifier.
[0166] S640: When the SDK currently loaded in the engine interface is inconsistent with the target SDK, the SDK is switched to the target SDK.
[0167] S650: Call the target SDK and send a data acquisition request message to the third-party cloud platform.
[0168] The data acquisition request message includes the terminal identifier of the second terminal, and the third-party cloud platform is the cloud platform corresponding to the target SDK.
[0169] S660: Call the target SDK again to obtain the audio and video data for the audio and video service sent by the third-party cloud platform.
[0170] S670: When the local audio and video function is enabled, call the target SDK to collect local audio and video data.
[0171] S680. Send audio and video data to a third-party cloud platform.
[0172] Among them, the process of S610-S640 is the same as Figure 3 The processes of S310-S340 are the same. For details, please refer to the description of S310-S340. For the sake of brevity, they will not be repeated here.
[0173] Below Figure 6 The other steps in the are described in detail as follows:
[0174] In S650, the data acquisition request message is used to request the third-party cloud platform to obtain the audio and video data of a terminal. For example, the third-party cloud platform may be requested to obtain the audio and video data of the second terminal.
[0175] Taking obtaining audio and video data of the second terminal as an example, the data obtaining request message may include the terminal identifier of the second terminal.
[0176] In S660, after receiving the data acquisition request message, the third-party cloud platform can determine the audio and video data corresponding to the second terminal according to the terminal identifier of the second terminal, and send it to the target SDK.
[0177] When the first terminal calls the target SDK again, the audio and video data of the second terminal can be obtained, and thus the audio and video data of the second terminal can be sent to the first terminal through the audio and video service corresponding to the target SDK.
[0178] In S670, the first terminal may not only obtain the audio and video data of the second terminal, but also send the audio and video data to the second terminal, so as to interact with the second terminal.
[0179] For example, when the first terminal is used as a listening terminal to listen to a class, if the user of the first terminal has questions, or when the lecturer asks questions, the first terminal can send audio and video data to the lecturer.
[0180] In one embodiment, when the local audio and video functions of the first terminal are turned on, for example, when the microphone and the camera are turned on, the first terminal can call the target SDK to collect local audio and video data.
[0181] Specifically, the microphone can transmit the collected voice data to the target SDK, and the camera can transmit the collected video images to the target SDK. By calling the target SDK, the audio and video data of the first terminal can be obtained.
[0182] In S680, after the target SDK collects local audio and video data, it sends it to the third-party cloud platform corresponding to the target SDK, which stores it. When the third-party cloud platform receives a request from other terminals to obtain the audio and video data of the first terminal, the locally stored audio and video data of the first terminal can be sent to the other terminals.
[0183] In one embodiment, the notification message may also include a conference identifier of a video conference corresponding to the audio and video service.
[0184] Based on this, after 310, the method may further include the following steps:
[0185] The video conference is joined according to the conference identifier, so that the first terminal and the second terminal are located in the same video conference and can perform audio and video interaction.
[0186] Below Figure 1 The second terminal in the example is the execution subject, and the data acquisition method provided in the embodiment of the present application is described.
[0187] Figure 7 A flowchart of a data acquisition method provided in an embodiment of the present application.
[0188] like Figure 7 As shown, the data acquisition method may include the following steps:
[0189] S710. Obtain a business information table from the business cloud platform.
[0190] The service information table includes a service identifier of the audio and video service, a terminal identifier of the first terminal, and a target SDK corresponding to the audio and video service.
[0191] S720: Determine the engine interface corresponding to the audio and video service according to the service identifier.
[0192] S730: When the SDK currently loaded in the engine interface is inconsistent with the target SDK, the SDK is switched to the target SDK.
[0193] S740: Call the target SDK to obtain audio and video data for the audio and video service.
[0194] Among them, the process of S720-S740 is the same as Figure 3 The processes of S330-S350 are similar. For details, please refer to the description of S330-S350. For the sake of brevity, they will not be repeated here.
[0195] In S710, the service information table may include but is not limited to a service identifier of an audio and video service, a terminal identifier of a listening end, and a target SDK corresponding to the audio and video service. The listening end here may be the first terminal.
[0196] The target SDK corresponding to the audio and video service can be determined by the business cloud platform. For example, when the audio and video service provided by an audio and video service provider is used by multiple terminals, an audio and video service provider with fewer applications can be assigned to the audio and video service, and the SDK of the audio and video service provider can be used as the target SDK corresponding to the audio and video service, thereby improving the data transmission quality.
[0197] In one embodiment, after S610, the method may further include the following steps:
[0198] A notification message is sent to the first terminal, where the notification message includes a service identifier of the audio and video service.
[0199] In one embodiment, the second terminal may send a notification message to the first terminal via a message queue telemetry transport (MQTT) protocol. Of course, other protocols may also be used, which is not limited in the embodiments of the present application.
[0200] In one embodiment, after S730, the method may further include the following steps:
[0201] When the local audio and video function is enabled, call the target SDK to collect local audio and video data;
[0202] Send audio and video data to a third-party cloud platform.
[0203] In one embodiment, before sending the notification message to the first terminal, the method may further include the following steps:
[0204] Create a video conference based on the service ID of the audio and video service and the target SDK;
[0205] The notification message also includes the conference ID of the video conference.
[0206] Thus, the second terminal and the first terminal can perform video interaction through the video conference.
[0207] The data acquisition process of the second terminal is similar to that of the first terminal. Details not described in the embodiment of the present application can be referred to the first terminal. For the sake of brevity, they will not be repeated here.
[0208] Therefore, in the process of obtaining audio and video data from other terminals (first terminal), when the received target SDK is inconsistent with the SDK loaded by the corresponding engine interface, since the engine interface corresponds to multiple SDKs, the SDK loaded by the corresponding engine interface can be switched to the target SDK. In this way, the second terminal can obtain audio and video data for the audio and video service based on the target SDK. In this way, the second terminal can be compatible with audio and video services corresponding to multiple SDKs, and can switch between different SDKs according to user needs, thereby meeting user needs for audio and video services in different scenarios.
[0209] Taking teaching and listening to classes as an example, the following is combined Figure 8 The audio and video interaction process between the first terminal and the second terminal is described. The first terminal is a listening terminal and the second terminal is a speaking terminal. It is assumed that the first terminal and the second terminal have joined the same video conference.
[0210] 1. The second terminal obtains the business information table from the business cloud platform, determines the listening terminal of this course and the target SDK corresponding to the local course;
[0211] 2. Enter the countdown to the start of the course, and send a notification message to the first terminal (listening terminal), which includes the course number of this course;
[0212] 3. The first terminal determines the course type according to the course number. When the course number is 7 digits, it obtains the course data of the public course from the public business cloud platform. When the course number is 6 digits, it obtains the course data of the private course from the private business cloud platform, and obtains the target SDK from the corresponding business cloud platform.
[0213] 4. The second terminal updates its loaded SDK according to the target SDK in the business information table and conducts teaching.
[0214] 5. The first terminal updates the SDK loaded by itself according to the acquired target SDK and listens to the class.
[0215] Based on the same inventive concept, the present application also provides a data acquisition device, which can be arranged at Figure 1 The first terminal shown in the figure includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK. Fig. 9 The data acquisition device provided in the embodiment of the present application is described in detail.
[0216] Fig. 9 A structural diagram of a data acquisition device provided in an embodiment of the present application.
[0217] like Fig. 9 As shown, the data acquisition device may include:
[0218] A receiving module 91, configured to receive a notification message sent by a second terminal, wherein the notification message includes a service identifier of an audio or video service;
[0219] An acquisition module 92 is used to acquire business information from a corresponding business cloud platform according to the business identifier, where the business information includes a target SDK corresponding to the audio and video business;
[0220] A determination module 93, used to determine the engine interface corresponding to the audio and video service according to the service identifier;
[0221] A switching module 94, used to switch the SDK to the target SDK when the SDK currently loaded in the engine interface is inconsistent with the target SDK;
[0222] The calling module 95 is used to call the target SDK to obtain audio and video data for the audio and video service.
[0223] The above data acquisition device is described in detail below, specifically as follows:
[0224] In one embodiment, the calling module 95 is specifically configured to:
[0225] Call the target SDK and send a data acquisition request message to the third-party cloud platform, where the data acquisition request message includes the terminal identifier of the second terminal, and the third-party cloud platform is the cloud platform corresponding to the target SDK;
[0226] The target SDK is called again to obtain the audio and video data of the second terminal for the audio and video service sent by the third-party cloud platform.
[0227] In one embodiment, the audio and video service includes a public service and / or a private service, the service cloud platform includes a public service cloud platform and a private service cloud platform, the data of the public service is stored in the public service cloud platform, and the data of the private service is stored in the private service cloud platform;
[0228] The device may further include: a sending module;
[0229] A sending module, configured to send a first request message to the private service cloud platform before the receiving module 91 receives the notification message sent by the second terminal, wherein the first request message includes a registration parameter;
[0230] The receiving module 91 is further used to receive a first request response message sent by the private service cloud platform, where the first request response message is used to indicate that the private service cloud platform accepts the registration request of the first terminal;
[0231] The sending module is further used to send a second request message to the public service cloud platform, where the second request message includes a terminal identifier of the first terminal;
[0232] The receiving module 91 is further used to receive a second request response message sent by the public service cloud platform, where the second request response message is used to indicate that the public service cloud platform agrees that the first terminal can access the data of the public service in the public service cloud platform.
[0233] In one embodiment, the device may further include a display module;
[0234] A display module, configured to display an authorization management interface after the receiving module 91 receives the first request response message sent by the private business cloud platform, the authorization management interface including a terminal identifier and an authorization control of the first terminal;
[0235] The sending module is specifically used to send a second request message to the public business cloud platform when it is detected that the authorization control is triggered.
[0236] In one embodiment, the service information further includes service data of audio and video services;
[0237] The acquisition module 92 is specifically used for:
[0238] When the service identifier is a public service identifier, obtain service data of the audio and video service from the public service cloud platform;
[0239] When the service identifier is a private service identifier, the service data of the audio and video service is obtained from the private service cloud platform.
[0240] In one embodiment, the calling module 95 is further used to call the target SDK to collect local audio and video data when the local audio and video function is enabled;
[0241] The sending module is also used to send audio and video data to a third-party cloud platform.
[0242] In one embodiment, the notification message further includes a conference identifier of a video conference corresponding to the audio and video service;
[0243] The device also includes:
[0244] The joining module is used to join the video conference according to the conference identifier after the receiving module 91 receives the notification message sent by the second terminal.
[0245] Therefore, in the process of obtaining audio and video data from other terminals (second terminal), when the received target SDK is inconsistent with the SDK loaded by the corresponding engine interface, since the engine interface corresponds to multiple SDKs, the SDK loaded by the corresponding engine interface can be switched to the target SDK. In this way, the first terminal can obtain audio and video data for the audio and video service based on the target SDK. In this way, the first terminal can be compatible with audio and video services corresponding to multiple SDKs, and can switch between different SDKs according to user needs, thereby meeting user needs for audio and video services in different scenarios.
[0246] Fig. 9 Each module in the device shown has the function of realizing Figure 3-Figure 6 The functions of each step in the process can achieve the corresponding technical effects, so for the sake of brevity, they will not be described in detail here.
[0247] Based on the same inventive concept, the present application also provides a data acquisition device, which can be arranged at Figure 1 The second terminal shown in the figure includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK. Fig.10 The data acquisition device provided in the embodiment of the present application is described in detail.
[0248] Fig.10 A structural diagram of another data acquisition device provided in an embodiment of the present application.
[0249] like Fig.10 As shown, the data acquisition device may include:
[0250] An acquisition module 1001 is used to acquire a service information table from a service cloud platform, where the service information table includes a service identifier of an audio and video service, a terminal identifier of a first terminal, and a target SDK corresponding to the audio and video service;
[0251] A determination module 1002, configured to determine an engine interface corresponding to an audio or video service according to a service identifier;
[0252] A switching module 1003, used to switch the SDK to the target SDK when the SDK currently loaded in the engine interface is inconsistent with the target SDK;
[0253] The calling module 1004 is used to call the target SDK to obtain audio and video data for the audio and video service.
[0254] The above data acquisition device is described in detail below, specifically as follows:
[0255] In one embodiment, the apparatus may further include a sending module;
[0256] The sending module is used to send a notification message to the first terminal after the acquisition module 1001 acquires the service information table from the service cloud platform, and the notification message includes the service identifier of the audio and video service.
[0257] In one embodiment, the calling module 1004 is further used to call the target SDK to collect local audio and video data when the local audio and video function is turned on after the switching module 1003 switches the SDK to the target SDK;
[0258] The sending module is also used to send audio and video data to a third-party cloud platform.
[0259] In one embodiment, the apparatus may further include a creation module;
[0260] A creation module, used to create a video conference according to a service identifier of the audio and video service and a target SDK before the sending module sends a notification message to the first terminal;
[0261] The notification message also includes the conference ID of the video conference.
[0262] Therefore, in the process of obtaining audio and video data from other terminals (first terminal), when the received target SDK is inconsistent with the SDK loaded by the corresponding engine interface, since the engine interface corresponds to multiple SDKs, the SDK loaded by the corresponding engine interface can be switched to the target SDK. In this way, the second terminal can obtain audio and video data for the audio and video service based on the target SDK. In this way, the second terminal can be compatible with audio and video services corresponding to multiple SDKs, and can switch between different SDKs according to user needs, thereby meeting user needs for audio and video services in different scenarios.
[0263] Fig.10 Each module in the device shown has the function of realizing Figure 7 The functions of each step in the process can achieve the corresponding technical effects, so for the sake of brevity, they will not be described in detail here.
[0264] Based on the same inventive concept, the embodiment of the present application also provides a terminal, which can be, for example, a mobile phone, a laptop computer, a desktop computer, a tablet computer or other intelligent terminal. Fig.11 The terminal provided in the embodiment of the present application is described in detail.
[0265] like Fig.11As shown, the terminal may include a service APP 1101 , a processor 1102 , and a memory 1103 for storing computer program instructions.
[0266] The business APP 1101 includes an engine module, which includes at least one engine interface, and the engine interface corresponds to multiple audio and video software development kits SDK.
[0267] The processor 1102 may include a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0268] Memory 1103 may include a large capacity memory for data or instructions. For example, but not limitation, memory 1103 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape or a universal serial bus (USB) drive or a combination of two or more of these. In one example, memory 1103 may include a removable or non-removable (or fixed) medium, or memory 1103 is a non-volatile solid-state memory. In one example, memory 1103 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0269] The processor 1102 reads and executes the computer program instructions stored in the memory 1103 to implement Figure 3-Figure 8 The method in the embodiment shown in the figure is achieved Figure 3-Figure 8 The corresponding technical effects achieved by executing the method in the illustrated embodiment are not described in detail here for the sake of brevity.
[0270] In one example, the terminal may further include a communication interface 1104 and a bus 1105. Fig.11 As shown, the service APP 1101 , the processor 1102 , the memory 1103 , and the communication interface 1104 are connected via a bus 1105 and communicate with each other.
[0271] The communication interface 1104 is mainly used to implement the communication between the modules, devices and / or equipment in the embodiments of the present application.
[0272] Bus 1105 includes hardware, software or both, and each component of terminal is coupled to each other.For example, but not limitation, bus 1105 may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), hypertransmission (Hyper Transport, HT) interconnection, industry standard architecture (IndustryStandard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1105 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0273] After receiving the notification message sent by other terminals, the terminal can execute the data acquisition method in the embodiment of the present application, thereby realizing the combination Figure 3-Figure 8 The data acquisition method described and Figure 9-10 A data acquisition device is described.
[0274] In addition, in combination with the data acquisition method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data acquisition methods in the above embodiment is implemented.
[0275] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0276] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0277] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0278] The above reference is according to the method of the present application embodiment, the flow chart of the device (system) and the computer program product and / or the block diagram of the present application embodiment. It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0279] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data acquisition method, characterized in that: Applied to a first terminal, the first terminal includes an engine module, the engine module includes at least one engine interface, different engine interfaces correspond to services with different functions, and the engine interface corresponds to multiple audio and video software development kits SDK; The method comprises: receiving a notification message sent by the second terminal, wherein the notification message includes a service identifier of the audio and video service; Acquire business information from the corresponding business cloud platform according to the business identifier, wherein the business information includes a target SDK corresponding to the audio and video business; Determining, according to the service identifier, an engine interface corresponding to the audio and video service; When the SDK currently loaded by the engine interface is inconsistent with the target SDK, the SDK is switched to the target SDK; The target SDK is called to obtain audio and video data for the audio and video service.
2. The method according to claim 1, characterized in that The calling of the target SDK to obtain audio and video data for the audio and video service includes: Calling the target SDK, sending a data acquisition request message to a third-party cloud platform, wherein the data acquisition request message includes a terminal identifier of the second terminal, and the third-party cloud platform is a cloud platform corresponding to the target SDK; The target SDK is called again to obtain the audio and video data for the audio and video service sent by the third-party cloud platform.
3. The method according to claim 1, characterized in that The audio and video service includes a public service and / or a private service, the service cloud platform includes a public service cloud platform and a private service cloud platform, the data of the public service is stored in the public service cloud platform, and the data of the private service is stored in the private service cloud platform; Before receiving the notification message sent by the second terminal, the method further includes: Sending a first request message to the private service cloud platform, wherein the first request message includes a registration parameter; Receiving a first request response message sent by the private service cloud platform, where the first request response message is used to indicate that the private service cloud platform accepts the registration request of the first terminal; Sending a second request message to the public service cloud platform, where the second request message includes a terminal identifier of the first terminal; A second request response message sent by the public service cloud platform is received, where the second request response message is used to indicate that the public service cloud platform agrees that the first terminal accesses the data of the public service in the public service cloud platform.
4. The method according to claim 3, characterized in that After receiving the first request response message sent by the private business cloud platform, the method further includes: Displaying an authorization management interface, the authorization management interface including a terminal identification and an authorization control of the first terminal; The sending a second request message to the public service cloud platform includes: When it is detected that the authorization control is triggered, a second request message is sent to the public service cloud platform.
5. The method according to claim 3, characterized in that: The service information also includes service data of the audio and video service; The obtaining of business information from the corresponding business cloud platform according to the business identifier includes: When the service identifier is a public service identifier, obtaining service data of the audio and video service from the public service cloud platform; In a case where the service identifier is a private service identifier, the service data of the audio and video service is obtained from the private service cloud platform.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the local audio and video function is enabled, the target SDK is called to collect local audio and video data; The audio and video data is sent to a third-party cloud platform.
7. The method according to any one of claims 1 to 5, characterized in that: The notification message also includes a conference identifier of the video conference corresponding to the audio and video service; After receiving the notification message sent by the second terminal, the method further includes: Join the video conference according to the conference identifier.
8. A data acquisition method, characterized in that: Applied to a second terminal, the second terminal includes an engine module, the engine module includes at least one engine interface, different engine interfaces correspond to services with different functions, and the engine interface corresponds to multiple audio and video software development kits SDK; The method comprises: Obtaining a service information table from the service cloud platform, the service information table including a service identifier of the audio and video service, a terminal identifier of the first terminal, and a target SDK corresponding to the audio and video service; Determining, according to the service identifier, an engine interface corresponding to the audio and video service; When the SDK currently loaded by the engine interface is inconsistent with the target SDK, the SDK is switched to the target SDK; The target SDK is called to obtain audio and video data for the audio and video service.
9. The method according to claim 8, characterized in that After obtaining the business information table from the business cloud platform, the method further includes: A notification message is sent to the first terminal, where the notification message includes a service identifier of the audio and video service.
10. The method according to claim 8, characterized in that After switching the SDK to the target SDK, the method further includes: When the local audio and video function is enabled, the target SDK is called to collect local audio and video data; The audio and video data is sent to a third-party cloud platform.
11. The method according to claim 9, characterized in that Before sending the notification message to the first terminal, the method further includes: Creating a video conference according to the service identifier of the audio and video service and the target SDK; The notification message also includes a conference identifier of the video conference.
12. A data acquisition device, characterized in that: Applied to a first terminal, the first terminal includes an engine module, the engine module includes at least one engine interface, different engine interfaces correspond to services with different functions, and the engine interface corresponds to multiple audio and video software development kits SDK; The device comprises: A receiving module, configured to receive a notification message sent by a second terminal, wherein the notification message includes a service identifier of an audio or video service; An acquisition module, used to acquire service information from a corresponding service cloud platform according to the service identifier, wherein the service information includes a target SDK corresponding to the audio and video service; A determination module, used to determine the engine interface corresponding to the audio and video service according to the service identifier; A switching module, used for switching the SDK to the target SDK when the SDK currently loaded by the engine interface is inconsistent with the target SDK; The calling module is used to call the target SDK to obtain audio and video data for the audio and video service.
13. A data acquisition device, characterized in that: Applied to a second terminal, the second terminal includes an engine module, the engine module includes at least one engine interface, different engine interfaces correspond to services with different functions, and the engine interface corresponds to multiple audio and video software development kits SDK; The device comprises: An acquisition module, configured to acquire a service information table from a service cloud platform, wherein the service information table includes a service identifier of an audio and video service, a terminal identifier of a first terminal, and a target SDK corresponding to the audio and video service; A determination module, used to determine the engine interface corresponding to the audio and video service according to the service identifier; A switching module, used for switching the SDK to the target SDK when the SDK currently loaded by the engine interface is inconsistent with the target SDK; The calling module is used to call the target SDK to obtain audio and video data for the audio and video service.
14. A terminal, characterized in that: include: An engine module, the engine module comprising at least one engine interface, the engine interface corresponding to a plurality of audio and video software development kits SDK; processor; a memory for storing computer program instructions; When the computer program instructions are executed by the processor, the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 11 is implemented.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 11 is implemented.
Citation Information
Patent Citations
Audio and video transmission method and device, equipment and storage medium
CN111294551A
Educational resource processing method, device and system based on hybrid cloud and medium
CN113271362A