Conference audio and video playing method and device, equipment and storage medium

By embedding the native window of the conference software package in the collaboration tool and rendering the audio and video data directly in the native window, the problem of low audio and video playback efficiency and quality of the collaboration tool is solved, and efficient, high-definition audio and video playback is achieved.

CN118741199APending Publication Date: 2024-10-01GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310296667.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing collaboration tools take a long time to convert and render data formats during conference audio and video playback, resulting in reduced audio and video playback efficiency and picture quality.

Method used

By embedding the native window of the conference software package into the front-end window of the collaboration tool, audio and video data are rendered directly in the native window, avoiding data format conversion and improving playback efficiency and effect.

Benefits of technology

It improves the efficiency and effect of audio and video playback of collaboration tools, avoids the reduction in picture quality caused by format conversion, and ensures the display effect of the front-end window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741199A_ABST
    Figure CN118741199A_ABST
Patent Text Reader

Abstract

The invention discloses a conference audio and video playing method and device, equipment and a storage medium, and relates to the technical field of cooperation tools. According to the technical scheme, the method comprises the steps that a playing instruction sent by a cooperation tool is received, the playing instruction is received and generated through a front-end window of the cooperation tool, and the front-end window is a window developed based on selectron; in response to the playing instruction, setting a click penetration area in the front-end window, embedding the native window into the front-end window, and displaying the native window on the lower layer of the click penetration area; collecting audio and video data through a camera and a microphone; and rendering the audio and video data in the native window to enable the front-end window to play the audio and video data. Through the technical means, the native window of the conference software package is embedded into the front-end window of the collaboration tool, the conference software package renders the acquired audio and video data in the native window, data format conversion and canvas label adding for rendering are not needed, and the playing efficiency and playing effect of the audio and video are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of collaborative tools, and in particular to a conference audio and video playback method, device, equipment and storage medium. Background Art

[0002] Collaboration tools are web browsers used by team members for collaborative interaction and coordination. Collaboration meetings are one of the important functions of collaboration tools. Collaboration meeting software encapsulates its own meeting functions into a software development kit (SDK) for collaboration tools, so that collaboration tools have the ability to create and join meetings before meetings, play audio and video and share screens during meetings, and disband and leave meetings after meetings. Among them, basic meeting functions such as creating meetings, joining meetings, disbanding meetings, and leaving meetings do not involve front-end rendering, and collaboration tools can directly call the meeting software package to achieve them. Screen sharing and conference audio and video playback require front-end rendering by collaboration tools.

[0003] In the prior art, the conference software package obtains the audio and video data collected by the camera and microphone, and transmits the audio and video data in binary format to the collaboration tool. The collaboration tool converts the audio and video data in binary format back to a common format, and the collaboration tool renders the audio and video data by adding a canvas tag to the front window. However, the collaboration tool takes a long time to convert and render the data format, and it also reduces the picture quality of the audio and video, resulting in a decrease in the audio and video playback efficiency and playback effect of the collaboration tool. Summary of the invention

[0004] The present application provides a conference audio and video playback method, apparatus, device and storage medium, so that by embedding the native window of a conference software package into the front-end window of a collaboration tool, the conference software package will obtain audio and video data and render it in the native window, so that the collaboration tool can play audio and video without the need for data format conversion and adding canvas tag rendering, thereby improving the playback efficiency and playback effect of the audio and video of the collaboration tool, and solving the problems of long playback time and low picture quality of audio and video of the collaboration tool in the prior art.

[0005] In a first aspect, the present application provides a conference audio and video playback method, comprising:

[0006] Receive a play instruction sent by a collaboration tool, wherein the play instruction is received and generated by a front-end window of the collaboration tool, and the front-end window is a window developed based on electron;

[0007] In response to the play instruction, setting a click-through area in the front window, embedding the native window into the front window, and displaying the native window below the click-through area;

[0008] Collect audio and video data through cameras and microphones;

[0009] The audio and video data are rendered in the native window so that the front-end window plays the audio and video data.

[0010] In a second aspect, the present application provides a conference audio and video playback device, comprising:

[0011] A play instruction receiving module is configured to receive a play instruction sent by a collaboration tool, wherein the play instruction is received and generated by a front-end window of the collaboration tool, and the front-end window is a window developed based on electron;

[0012] A native window embedding module is configured to, in response to the play instruction, set a click-through area in the front window, embed the native window in the front window, and display the native window below the click-through area;

[0013] An audio and video acquisition module, configured to acquire audio and video data through a camera and a microphone;

[0014] The audio and video playing module is configured to render the audio and video data in the native window so that the front-end window plays the audio and video data.

[0015] In a third aspect, the present application provides a conference audio and video playback device, including:

[0016] One or more processors; a memory storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the conference audio and video playback method as described in the first aspect.

[0017] In a fourth aspect, the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the conference audio and video playback method as described in the first aspect.

[0018] In the present application, the front-end window of the collaboration tool generates a play instruction in response to the play operation input by the user, and the collaboration tool sends the play instruction to the conference software package. After receiving the play instruction sent by the collaboration tool, the conference software package sets a click-through area in the front-end window in response to the play instruction, embeds the native window in the front-end window, and displays the native window in the lower layer of the click-through area. The conference software package starts the camera and microphone to collect audio and video data, and renders the audio and video data in the native window. Since the native window is embedded and displayed in the lower layer of the click-through area of ​​the native window, the audio and video played by the native window is equivalent to the front-end window playing the audio and video. The conference software package can render and play the audio and video data in the native window without format conversion of the audio and video data, which saves the time for the collaboration tool to convert the format of the audio and video data, improves the audio and video playback efficiency of the collaboration tool, avoids the format conversion from reducing the playback quality of the audio and video, and improves the audio and video playback effect of the collaboration tool. Moreover, the time required for the conference software package to render the audio and video data in the native window is much less than the time required for the collaboration tool to add a canvas tag to the front-end window to render the audio and video data, further improving the audio and video playback efficiency of the collaboration tool. Since the native window is located at the lower layer of the click-through area, the native window will not block other areas of the front-end window after it is started, ensuring the display effect of the front-end window. The click-through area can pass the corresponding triggered click event to the native window at the lower layer, so that the native window can respond to the access request to the native window normally, ensuring the control function of the native window. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a conference audio and video playback method provided by an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of a pre-meeting webpage provided in an embodiment of the present application;

[0021] Figure 3 is a first schematic diagram of a front-end window provided in an embodiment of the present application;

[0022] Figure 4 is a second schematic diagram of the front end window provided in an embodiment of the present application;

[0023] Figure 5 is a third schematic diagram of the front-end window provided in an embodiment of the present application;

[0024] Figure 6 is a flow chart of setting a click-through area in a front-end window provided by an embodiment of the present application;

[0025] Figure 7 This is a flow chart of embedding a native window into a front-end window provided by an embodiment of the present application;

[0026] Figure 8 It is a structural diagram of a conference audio and video playback device provided in an embodiment of the present application;

[0027] Fig. 9 It is a structural diagram of a conference audio and video playback device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] In the more common existing implementation methods, the collaboration tool is a web browser used for collaborative interaction and coordination between team members, which includes multiple collaboration modules, such as conference modules, document modules and task modules. The conference module can be used to conduct collaborative meetings between team members, the document module can be used to share documents between team members, and the task module can be used to assign tasks and confirm task progress between team members. Among them, the implementation process of the conference module is: MindLinker (an exemplary audio and video conferencing software) encapsulates its own conference capabilities into a conference software package, and configures the conference software package to the collaboration tool. When the collaboration tool loads the conference software package, it has various conference functions. When the collaboration tool uses basic conference functions such as creating a meeting, joining a meeting, disbanding a meeting and leaving a meeting, it can be realized by calling the conference software package. When the collaboration tool uses conference audio and video playback and screen sharing and other conference functions involving rendering, the conference software package collects audio and video data through a camera and a microphone and transmits the audio and video data in binary format to the collaboration tool. The collaboration tool converts the binary audio and video data sent by the conference software package back to a normal format, and then adds the audio and video data to the canvas tag in the front window for rendering. Because the collaboration tool takes a long time to convert and render data formats, and multiple format conversions will reduce the quality of audio and video, the audio and video playback efficiency and playback effect of the collaboration tool will be reduced.

[0031] To solve the above problems, the present embodiment provides a conference audio and video playback method, device, equipment and storage medium, so as to achieve high-efficiency and high-quality playback of conference audio and video by embedding the native window of the conference software package into the front-end window, thereby solving the problems of long time consumption and low picture quality of conference audio and video playback in the prior art.

[0032] The conference audio and video playback method provided in this embodiment can be executed by a conference audio and video playback device, which can be implemented by software and / or hardware. The conference audio and video playback device can be composed of two or more physical entities or one physical entity.

[0033] The conference audio and video playback device is installed with at least one type of operating system, wherein the operating system includes but is not limited to Android system, Linux system, Windows system and macOS system. The conference audio and video playback device can install at least one application based on the operating system, and the application can be an application that comes with the operating system or an application downloaded from a third-party device or server. In this embodiment, the conference audio and video playback device has at least an application that can execute the conference audio and video playback method.

[0034] For ease of understanding, this embodiment is described by taking a conference software package as an example of the main body for executing the conference audio and video playback method.

[0035] Figure 1 A flowchart of a conference audio and video playback method provided by an embodiment of the present application is given. Figure 1 The conference audio and video playback method specifically includes:

[0036] S110, receiving a play instruction sent by the collaboration tool, where the play instruction is received and generated by a front-end window of the collaboration tool, and the front-end window is a window developed based on electron.

[0037] Electron is a framework for building cross-platform desktop applications. This embodiment uses Electron to develop various web windows of the collaboration tool. The main interface of the collaboration tool displays the web links or startup controls corresponding to each collaboration module. When the user clicks the web link or startup control corresponding to the conference module on the main interface, the collaboration tool jumps from the main page to the pre-meeting web page of the conference module. At the same time, the operating system starts the conference software package in the form of a command line so that the collaboration tool can call the conference software package to implement various conference functions in the conference module.

[0038] Figure 2 Schematic diagram of the pre-meeting webpage provided in the embodiment of the present application. Figure 2 As shown, a create conference control 12 and a join conference control 13 are displayed in the pre-meeting webpage 11. When the user clicks the create conference control 12, a first click operation is input, and the collaboration tool responds to the first click operation and calls the create conference program provided by the conference software package to create the corresponding conference, and the collaboration tool jumps from the pre-meeting webpage 11 to the in-meeting webpage. When the user clicks the join conference control 13, a second click operation is input, and the collaboration tool responds to the second click operation and pops up a conference code input window on the pre-meeting webpage 11. When the user fills in the conference code in the conference code input window, the user inputs a first filling operation, and the collaboration tool responds to the first filling operation and calls the join conference program provided by the conference software package to join the conference corresponding to the conference code, and the collaboration tool jumps from the pre-meeting webpage 11 to the in-meeting webpage.

[0039] In one embodiment, after the operating system starts the conference software package in the form of a command line, the conference software package sends the handle of the native window to the collaboration tool, so that the collaboration tool hides the native window based on the handle of the native window. The native window refers to the application window of the conference software package. When the conference software package is started, the native window is generally displayed accordingly, causing the native window to block the pre-meeting webpage of the collaboration tool, affecting the normal display of the pre-meeting webpage. Therefore, after startup, the conference software package sends the handle of the native window to the collaboration tool through a socket, and the collaboration tool hides the native window by adjusting the handle of the native window.

[0040] In this embodiment, the front-end window refers to the in-conference webpage of the conference module of the collaboration tool. Figure 3 1 is a first schematic diagram of the front-end window provided in the embodiment of the present application. Figure 3 As shown, the front-end window 14 displays a play control 15, an exit control 16, and a return control 17. When the user clicks the play control 15, a third click operation is input. After the front-end window receives the third click operation, the collaboration tool responds to the third click operation and generates a play instruction. The collaboration tool sends the play instruction to the conference software package to notify the conference software package to play the conference audio and video. When the user clicks the exit control 16, a fourth click operation is input. The collaboration tool responds to the fourth click operation and calls the exit conference program provided by the conference software package to exit the corresponding conference. The collaboration tool jumps from the front-end window 14 to the pre-conference webpage. When the user clicks the return control 17, a fifth click operation is input. The collaboration tool responds to the fifth click operation and returns to the main page.

[0041] After the collaboration tool generates a play command, it sends the play command and the handle of the front-end window to the conference software package through the socket. After receiving the play command and the handle of the front-end window, the conference software package embeds the native window into the front-end window according to the handle of the front-end window and the handle of the native window, and starts the camera and microphone to collect audio and video data, and plays the audio and video data in the native window, so as to realize the front-end window to play the conference audio and video data.

[0042] S120. In response to the play instruction, a click-through area is set in the front window, the native window is embedded in the front window, and the native window is displayed below the click-through area.

[0043] In this embodiment, if the native window of the conference software package is embedded in the front-end window, the native window plays audio and video data equivalent to the front-end window playing audio and video data in the sub-window. In terms of user experience, since the native window is embedded in the front-end window, when the front-end window moves, closes, or opens, the native window also moves, closes, or opens accordingly. When the native window plays audio and video, it is equivalent to the front-end window playing audio and video. Therefore, the playback interface of the front-end window in this embodiment is the same as the playback interface of the front-end window in the prior art, and the front-end window can play the conference audio and video normally. However, the audio and video data obtained by the conference software package from the camera and microphone can be played through the native window of the conference software package without data conversion. The rendering of audio and video data and other functions are implemented by the native window of the conference software package, which saves the format conversion time of audio and video and the time for the front-end window to add canvas to render audio and video, thereby improving the playback efficiency of conference audio and video. The native window directly plays the audio and video data without data conversion, which ensures the picture quality of the audio and video displayed in the front-end window and improves the playback effect of the conference audio and video.

[0044] It should be noted that the front-end window is a window developed based on electron, and windows developed by electron do not support direct embedding into native windows. In this regard, "embedded" in this embodiment means that the native window and the front-end window are embedded in the page display, but not in the underlying window resources.

[0045] After the native window is embedded in the front-end window, if the hierarchy of the native window and the front-end window is not adjusted, the native window will be displayed on the upper layer of the front-end window. Figure 4 is a second schematic diagram of the front window provided in the embodiment of the present application. Figure 4 As shown, the native window 20 is displayed on the upper layer of the front window 14 and covers part of the functional controls of the front window 14, so that the user cannot view and operate the content blocked by the native window. Therefore, this embodiment proposes to set a click-through area in the front window, and display the native window embedded in the front window on the lower layer of the click-through area, so that the display content of the native window can be displayed in the front window through the transparent click-through area, thereby ensuring the display effect of the front window. Figure 5 is a third schematic diagram of the front window provided in the embodiment of the present application. Figure 5 As shown, the window content of the native window 20 can be displayed in the front window 14 through the click-through area 18, and the function controls in the front window 14 will not be blocked by the native window. When the user moves the mouse cursor to the microphone control 21 in the native window 20 and clicks, the click-through area 14 can pass the click event to the native window 20 at the lower layer, so that the native window turns off the microphone after receiving the click event, ensuring that the function controls in the native window can be triggered normally.

[0046] In one embodiment, Figure 6 This is a flow chart of setting a click-through area in a front-end window provided by an embodiment of the present application. Figure 6 As shown, the step of setting the click-through area in the front window specifically includes S1201-S1203:

[0047] S1201. Set the front window to be transparent, and set the document object model in the first area of ​​the front window to be transparent.

[0048] Based on the handle of the front-end window, the conference software package sets the front-end window to a transparent property, so that the background of the front-end window becomes transparent. When the front-end window is set to a transparent property, the property of the front-end window is defined as Transparent: true; Transparent is the property of whether the window is transparent, and true is the property value.

[0049] Among them, the first area can be understood as the area in the front-end window used to embed the native window. Since the front-end window has other interface elements in addition to the background, the interface elements are defined and displayed by the document object module. In order for the front-end window to display the native window of the lower layer, the CSS (Cascading Style Sheets) of the document object model (DOM, Document ObjectModel) of the interface elements in the first area can be set to a transparent attribute to make the interface elements in the first area transparent. At this time, the first area can display the window content located in the lower layer of the front-end window. When setting the transparent attribute of the cascading style, the attribute of the cascading style is defined as background: transparent; wherein background refers to the background attribute of the interface element, and transparent is the attribute value.

[0050] S1202: Set the pointer attribute of the cascading style of the document object model of the first area to a first attribute value, and set the pointer attribute of the cascading style of the document object model of the second area to a second attribute value, where the second area is an area in the front window other than the first area.

[0051] Exemplarily, when the pointer attribute of the cascading style of the interface elements in the first area is set to the first attribute value, the attribute of the cascading style is defined as pointer-events:none; wherein pointer-events is the pointer attribute of the interface element, and none is the first attribute value. After defining the cascading style of the interface element as pointer-events:none, for two superimposed interface elements, the lower element can be clicked. When the pointer attribute of the cascading style of the interface elements in the second area is set to the second attribute value, the attribute of the cascading style is defined as pointer-events:auto; wherein auto is the second attribute value. After defining the cascading style of the interface element as pointer-events:auto, for two superimposed interface elements, only the upper element can be clicked.

[0052] S1203: Based on the setting of the function to ignore mouse events, the front window is set to transfer the click event to the property of the lower window, so that the first area becomes a click penetration area.

[0053] Among them, setting the function of ignoring mouse events (setIgnoreMouseEvents) can make the window ignore the mouse events in the window. When calling this function, define the property of the front window as setIgnoreMouseEvents(true, {forward: true}), then the front window can pass the mouse events occurring in the window to the lower window, where forward is the property of whether the window passes the mouse events to the lower window, and true is the property value.

[0054] It is easy to understand that since the front-end window can pass mouse events to the lower-level window and the lower-level interface elements can be clicked in the first area, when the native window is embedded in the front-end window and is located in the lower layer of the first area, not only can the native window be seen, but the interface elements of the native window can also be clicked. Therefore, the first area can be used as the click-through area of ​​the front-end window for embedding the native window.

[0055] In one embodiment, Figure 7 This is a flow chart of embedding a native window into a front-end window provided by an embodiment of the present application. Figure 7 As shown, the steps of embedding the native window into the front-end window specifically include S1204-S1205:

[0056] S1204: Based on the function of setting the parent window, embed the native window into the front-end window.

[0057] The SetParent function is a function used to set the parent window of a child window. For example, the conference software package calls the SetParent function to configure the front-end window as the parent window of the native window, so that the native window is displayed in the front-end window in an embedded form, thereby realizing an embedded relationship between the native window and the front-end window in the page display.

[0058] In the specific implementation process, based on the handle of the front-end window, the property of the front-end window is set to not render the child window area, and the property of the native window is set to display the child window in the client area of ​​the parent window; the native window is used as a child window of the front-end window by setting the parent window function, and the native window is drawn at the position corresponding to the click penetration area. Exemplarily, the collaboration tool sends the handle of the front-end window to the conference software package in response to the play instruction. The conference software package sets the property of the front-end window to WS_CLIPCHILDREN through the handle of the front-end window. WS_CLIPCHILDREN is used to exclude the parent window from drawing in the child window area, that is, the front-end window does not render the native window located in the child window area when displayed as the parent window, so as to avoid the front-end window blocking the display of the native window. Based on the native window handle, the conference software package sets the property of the native window to WS_CHILD. WS_CHILD is used to draw the child window in the client area of ​​the parent window, that is, the native window is always displayed in the front-end window as a child window, and the native window moves, closes or opens accordingly as the front-end window moves, closes or opens. Furthermore, the conference software package combines the native window as a child window with the front-end window by setting the parent window function, sets the display status of the native window through the showWindow function, and updates the client area of ​​the native window displayed in the front-end window, and updates the client area of ​​the native window through the updateWindow function to draw the native window at the position of the click-through area in the front-end window.

[0059] When the front-end window is provided with a front-end sub-window, the collaboration tool will send the handles of the front-end window and the front-end sub-window to the conference software package. Among them, the front-end sub-window refers to a window that is embedded with the front-end window in terms of underlying window resources and page display. In this embodiment, the conference software package can set the properties of the front-end sub-window to not render the brother window area, and set the properties of the native window to not render the brother window area based on the handle of the front-end sub-window. Exemplarily, the front-end sub-window and the native window are both child windows of the front-end window, that is, the front-end window and the native window are brother windows of each other. Through the handles of the front-end sub-window and the native window, the properties of the front-end sub-window and the native window are set to WS_CLIPSIBLINGS. WS_CLIPSIBLINGS is used to exclude the drawing of brother windows, that is, the front-end sub-window and the native window do not draw each other's window area, so as to avoid the front-end sub-window and the native window from blocking each other.

[0060] S1205. Establish a communication connection between the native window and the front-end window through a socket.

[0061] Exemplarily, the parent window and child window of the parent form function restriction are generally owned by the same application, because the child window and parent window of the same application can communicate data through the window system's API (Application Program Interface). When the parent window and child window do not belong to the same application, the parent window and child window only maintain an embedding relationship in the page display, while the underlying window resources do not follow the embedding relationship. Therefore, after calling the parent form function to embed the native window into the front-end window, the native window and the front-end window cannot communicate data through the API, but must rely on sockets for data communication between the collaboration tool and the conference software package. In this embodiment, refer to Figure 5 When the user clicks the microphone control 21 in the native window 20, the front-end window 14 transmits the corresponding trigger click event to the native window 20 through the socket, so that the native window 20 receives the click event and responds, ensuring that the various control functions in the native window can be used normally.

[0062] In one embodiment, the implementation process of displaying the native window in the lower layer of the click-through area is: setting the front window to the top display attribute. Exemplarily, through the handle of the front window, the attribute of the front window is defined as alwaysontop:true, so that the front window is displayed on the top layer to avoid the native window covering the front window; where alwaysontop is the attribute of whether the window is displayed on the top layer, and true is the attribute value.

[0063] S130. Collect audio and video data through a camera and a microphone.

[0064] Exemplarily, after receiving the play instruction sent by the collaboration tool, the conference software package starts the camera and microphone to collect audio and video data of the conference.

[0065] S140: Render the audio and video data in the native window so that the front-end window plays the audio and video data.

[0066] refer to Figure 5 , the native window 20 displays the conference audio and video playback window 22. Since the format of the audio and video data collected by the camera and microphone is the format that can be rendered and played by the native window 20, the conference software package can play it in the native window without converting the format of the audio and video data. When the native window 20 renders the audio and video data in the conference audio and video playback window 22, it is equivalent to playing the audio and video of the conference in the front-end window 14, which enables the collaboration tool to quickly play the audio and video of the conference.

[0067] In summary, the conference audio and video playback method provided by the embodiment of the present application generates a playback instruction through the front-end window of the collaboration tool in response to the playback operation input by the user, and the collaboration tool sends the playback instruction to the conference software package. After receiving the playback instruction sent by the collaboration tool, the conference software package sets a click-through area in the front-end window in response to the playback instruction, embeds the native window in the front-end window, and displays the native window in the lower layer of the click-through area. The conference software package starts the camera and microphone to collect audio and video data, and renders the audio and video data in the native window. Since the native window is embedded and displayed in the lower layer of the click-through area of ​​the native window, the audio and video played by the native window is equivalent to the front-end window playing audio and video. The conference software package can render and play the audio and video data in the native window without format conversion of the audio and video data, which saves the time for the collaboration tool to convert the format of the audio and video data, improves the audio and video playback efficiency of the collaboration tool, avoids the format conversion from reducing the playback quality of the audio and video, and improves the audio and video playback effect of the collaboration tool. Moreover, the time required for the conference software package to render the audio and video data in the native window is much less than the time required for the collaboration tool to add a canvas tag to the front-end window to render the audio and video data, further improving the audio and video playback efficiency of the collaboration tool. Since the native window is located at the lower layer of the click-through area, the native window will not block other areas of the front-end window after it is started, ensuring the display effect of the front-end window. The click-through area can pass the corresponding triggered click event to the native window at the lower layer, so that the native window can respond to the access request to the native window normally, ensuring the control function of the native window.

[0068] Based on the above embodiments, Figure 8 This is a schematic diagram of the structure of a conference audio and video playback device provided in an embodiment of the present application. Figure 8 The conference audio and video playback device provided in this embodiment specifically includes: a playback instruction receiving module 31, a native window embedding module 32, an audio and video acquisition module 33 and a conference audio and video playback module 34.

[0069] The play instruction receiving module is configured to receive the play instruction sent by the collaboration tool, wherein the play instruction is received and generated by the front-end window of the collaboration tool, and the front-end window is a window developed based on electron;

[0070] A native window embedding module is configured to, in response to the play instruction, set a click-through area in the front window, embed the native window in the front window, and display the native window below the click-through area;

[0071] An audio and video acquisition module, configured to acquire audio and video data through a camera and a microphone;

[0072] The audio and video playing module is configured to render the audio and video data in the native window so that the front-end window plays the audio and video data.

[0073] Based on the above embodiment, the native window embedding module includes: a first property setting unit, configured to set the front window to a transparent property, and set the document object model of the first area in the front window to a transparent property; a second property setting unit, configured to set the pointer property of the cascading style of the document object model of the first area to a first property value, and set the pointer property of the cascading style of the document object model of the second area to a second property value, and the second area is the area other than the first area in the front window; a third property setting unit, configured to set the front window to the property of passing click events to the lower window based on setting an ignore mouse event function, so that the first area becomes a click penetration area.

[0074] Based on the above embodiment, the native window embedding module includes: a window embedding unit, configured to embed the native window into the front-end window based on setting the parent window function; and a communication establishing unit, configured to establish a communication connection between the native window and the front-end window through a socket.

[0075] On the basis of the above embodiment, the native window embedding module includes: a fourth attribute setting unit configured to set the front window to a top-level display attribute.

[0076] Based on the above embodiment, the window embedding unit includes: a first property setting sub-unit, which is configured to set the properties of the front-end window to not render the child window area based on the handle of the front-end window, and set the properties of the native window to display the child window in the client area of ​​the parent window; a parent-child window definition sub-unit, which is configured to use the native window as a child window of the front-end window by setting the parent window function, and draw the native window in the front-end window.

[0077] On the basis of the above embodiment, when the front-end window is provided with a front-end sub-window, the window embedding unit also includes: a second property setting sub-unit, which is configured to set the property of the front-end sub-window to not render the sibling window area and the property of the native window to not render the sibling window area based on the handle of the front-end sub-window before setting the native window as a child window of the front-end window by setting the parent window function.

[0078] Based on the above embodiments, the conference audio and video playback device also includes: a native window hiding module, which is configured to send the handle of the native window to the collaboration tool before receiving the playback instruction sent by the collaboration tool, after being started in the form of a command line, so that the collaboration tool hides the native window based on the handle of the native window.

[0079] As described above, in the conference audio and video playback device provided by the embodiment of the present application, the front-end window of the collaboration tool generates a playback instruction in response to the playback operation input by the user, and the collaboration tool sends the playback instruction to the conference software package. After receiving the playback instruction sent by the collaboration tool, the conference software package sets a click-through area in the front-end window in response to the playback instruction, embeds the native window in the front-end window, and displays the native window in the lower layer of the click-through area. The conference software package starts the camera and microphone to collect audio and video data, and renders the audio and video data in the native window. Since the native window is embedded and displayed in the lower layer of the click-through area of ​​the native window, the audio and video played by the native window is equivalent to the front-end window playing audio and video. The conference software package can render and play the audio and video data in the native window without format conversion of the audio and video data, which saves the time for the collaboration tool to convert the format of the audio and video data, improves the audio and video playback efficiency of the collaboration tool, avoids the format conversion from reducing the playback quality of the audio and video, and improves the audio and video playback effect of the collaboration tool. Moreover, the time required for the conference software package to render the audio and video data in the native window is much less than the time required for the collaboration tool to add a canvas tag to the front-end window to render the audio and video data, further improving the audio and video playback efficiency of the collaboration tool. Since the native window is located at the lower layer of the click-through area, the native window will not block other areas of the front-end window after it is started, ensuring the display effect of the front-end window. The click-through area can pass the corresponding triggered click event to the native window at the lower layer, so that the native window can respond to the access request to the native window normally, ensuring the control function of the native window.

[0080] The conference audio and video playback device provided in the embodiment of the present application can be used to execute the conference audio and video playback method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0081] Fig. 9 This is a schematic diagram of the structure of a conference audio and video playback device provided in an embodiment of the present application, with reference to Fig. 9 The conference audio and video playback device includes: a processor 41, a memory 42, a communication device 43, an input device 44, and an output device 45. The number of processors 41 in the conference audio and video playback device can be one or more, and the number of memories 42 in the conference audio and video playback device can be one or more. The processor 41, memory 42, communication device 43, input device 44, and output device 45 of the conference audio and video playback device can be connected through a bus or other methods.

[0082] The memory 42, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the conference audio and video playback method of any embodiment of the present application (for example, the playback instruction receiving module 31, the native window embedding module 32, the audio and video acquisition module 33 and the conference audio and video playback module 34 in the conference audio and video playback device). The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0083] The communication device 43 is used for data transmission.

[0084] The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 42, that is, realizes the above-mentioned conference audio and video playback method.

[0085] The input device 44 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 45 may include a display device such as a display screen.

[0086] The conference audio and video playback device provided above can be used to execute the conference audio and video playback method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0087] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a conference audio and video playback method, the conference audio and video playback method comprising: receiving a playback instruction sent by a collaboration tool, the playback instruction being received and generated by a front-end window of the collaboration tool, the front-end window being a window developed based on electron; in response to the playback instruction, setting a click-through area in the front-end window, embedding a native window in the front-end window, and displaying the native window below the click-through area; collecting audio and video data through a camera and a microphone; rendering the audio and video data in the native window so that the front-end window plays the audio and video data.

[0088] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0089] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above-mentioned conference audio and video playback method, can also execute related operations in the conference audio and video playback method provided in any embodiment of the present application.

[0090] The conference audio and video playback device, storage medium and conference audio and video playback equipment provided in the above embodiments can execute the conference audio and video playback method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the conference audio and video playback method provided in any embodiment of the present application.

[0091] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A conference audio and video playback method, It is characterized in that include: Receive a play instruction sent by a collaboration tool, wherein the play instruction is received and generated by a front-end window of the collaboration tool, and the front-end window is a window developed based on electron; In response to the play instruction, setting a click-through area in the front window, embedding the native window into the front window, and displaying the native window below the click-through area; Collect audio and video data through cameras and microphones; The audio and video data are rendered in the native window so that the front-end window plays the audio and video data.

2. The conference audio and video playback method according to claim 1, It is characterized in that The step of setting a click-through area in the front-end window includes: Setting the front window to a transparent attribute, and setting the document object model of the first area in the front window to a transparent attribute; The pointer property of the cascading style of the document object model of the first area is set to a first property value, and the pointer property of the cascading style of the document object model of the second area is set to a second property value, wherein the second area is an area other than the first area in the front window; Based on setting the function of ignoring mouse events, the front window is set to transfer the click event to the property of the lower window, so that the first area becomes a click penetration area.

3. The conference audio and video playback method according to claim 1, It is characterized in that The embedding the native window into the front-end window comprises: Based on setting the parent window function, embedding the native window into the front-end window; A communication connection between the native window and the front-end window is established through a socket.

4. The conference audio and video playback method according to claim 1, It is characterized in that The step of displaying the native window in a lower layer of the click-through area includes: The front window is set as the top-level display property.

5. The conference audio and video playback method according to claim 3, It is characterized in that The method of embedding the native window into the front-end window based on setting the parent window function includes: Based on the handle of the front-end window, the property of the front-end window is set to not render the child window area, and the property of the native window is set to display the child window in the client area of ​​the parent window; The native window is used as a child window of the front-end window by setting a parent window function, and the native window is drawn at a position corresponding to the click-through area.

6. The conference audio and video playback method according to claim 5, It is characterized in that In the case where the front-end window is provided with a front-end sub-window, before the native window is used as a sub-window of the front-end window by setting a parent window function, the method further includes: Based on the handle of the front-end subwindow, the property of the front-end subwindow is set to not render the brother window area, and the property of the native window is set to not render the brother window area.

7. The conference audio and video playback method according to claim 1, It is characterized in that Before receiving the play instruction sent by the collaboration tool, the method further includes: After being started in the form of a command line, the handle of the native window is sent to the collaboration tool, so that the collaboration tool hides the native window based on the handle of the native window.

8. A conference audio and video playback device, running on a conference software package, It is characterized in that include: A play instruction receiving module is configured to receive a play instruction sent by a collaboration tool, wherein the play instruction is received and generated by a front-end window of the collaboration tool, and the front-end window is a window developed based on electron; A native window embedding module is configured to, in response to the play instruction, set a click-through area in the front window, embed the native window in the front window, and display the native window below the click-through area; An audio and video acquisition module, configured to acquire audio and video data through a camera and a microphone; The audio and video playing module is configured to render the audio and video data in the native window so that the front-end window plays the audio and video data.

9. A conference audio and video playback device, It is characterized in that include: one or more processors; A memory stores one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the conference audio and video playback method as described in any one of claims 1-7.

10. A storage medium containing computer executable instructions, It is characterized in that The computer executable instructions are used to execute the conference audio and video playback method as described in any one of claims 1-7 when executed by a computer processor.