Multi-party call method, device, electronic device, storage medium and product
By managing subscription and unsubscription tasks in the message queue of the terminal device, the problem of insufficient performance and lag caused by high-frequency page turning in multi-party calls is solved, and smoother member image switching is achieved.
Patent Information
- Application Number
- CN202410552341.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-07
AI Technical Summary
Existing multi-party call solutions have difficulty viewing all members' videos smoothly when turning pages at high frequencies, resulting in insufficient decoding performance and computer lags.
By sequentially adding subscription and unsubscription tasks to the message queue of the terminal device, and ignoring invalid intermediate tasks when the queue is long, only the last subscription task is executed, and the target page member corresponding to the last subscription task is directly played in the play window. Member images.
In the case of high-frequency switching of playlists, unnecessary resource overhead is reduced, software performance and the smoothness of member image switching are improved.
Smart Images

Figure CN118138713B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video call technology, and in particular to a multi-party call method, device, electronic device, storage medium and product. Background Art
[0002] Multi-party calls refer to multi-party online audio and video calls achieved through various means, which can realize multi-party, remote and real-time online communication. The device screen can display a member playlist containing multiple call members, and the user can scroll the member playlist to view the video of each member.
[0003] In the existing multi-party call solution, the display status of the list item currently in the play state in the list page can be monitored to change to the hidden display state, and the player corresponding to the list item can be paused to alleviate the jamming when the list page is scrolled. However, the live stream designed by some businesses cannot be paused, and can only be closed. Moreover, if the playlist is large, if it is only paused, it will seriously affect the performance of the computer and software, resulting in insufficient decoding performance and computer jamming when playing later.
[0004] Therefore, how to smoothly view the videos of all members during a multi-party call is an urgent problem to be solved. Summary of the invention
[0005] The present invention provides a multi-party call method, device, electronic device, storage medium and product, which are used to solve the defect in the prior art that it is difficult to smoothly view the videos of all members during a multi-party call, and to achieve smooth switching of member image screens when switching playlists frequently, thereby reducing unnecessary resource overhead.
[0006] The present invention provides a multi-party call method, which is applied to a terminal device, wherein the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play member images of each member in a member play list page. The method includes:
[0007] During a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members of the current page is added to a message queue, and a task of subscribing members of the next page is added to the message queue;
[0008] When the trigger frequency of the page turning operation is greater than the preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks in the message queue except the last subscription task, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0009] According to a multi-party call method provided by the present invention, the content displayed on the call page also includes a number of placeholder windows with the same number as the play windows, and the number of placeholder windows is used to display member information of each member in the member playlist page, and the number of members in each member playlist page is the same as the number of placeholder windows; after adding the task of unsubscribing members of the current page to the message queue and adding the task of subscribing members of the next page to the message queue, it also includes:
[0010] hiding the plurality of playback windows and displaying the plurality of placeholder windows;
[0011] Bind each placeholder window to different members in the next page one by one, and update and display member information of the bound members in the placeholder window;
[0012] Associate each playback window with different members in the next page;
[0013] According to the association relationship between the play window and different members in the next page and the binding relationship between the placeholder window and different members in the next page, a placeholder window corresponding to the play window is determined, and the play window is covered on the corresponding placeholder window.
[0014] According to a multi-party call method provided by the present invention, the terminal device is integrated with a player software development kit SDK for binding a decoder and a window handle; and each playback window is associated with different members in the next page, including:
[0015] Subscribe to the video streams of the next page members through the player SDK, bind the video stream channels of different members in the next page to each playback window one by one, and associate each playback window with different members in the next page.
[0016] According to a multi-party call method provided by the present invention, the playback window includes a main window and a sub-window, and the size of the main window is larger than the size of the sub-window; during the multi-party call, the method further includes:
[0017] In response to a switching operation, switching the playback position of the member image;
[0018] When the member image is switched from the sub-window to the main window for playback, and the sub-window is a remote window, the subscribed video stream is switched from the sub-stream to the main stream;
[0019] When the member image is switched from the main window to the sub-window for playing, and the main window is a remote window, the subscribed video stream is switched from the main stream to the sub-stream.
[0020] According to a multi-party call method provided by the present invention, the switching operation is an exchange operation between a target main window and a target sub-window; the response to the switching operation, switching the playback position of the member image, includes:
[0021] In response to a swap operation between a target main window and a target sub-window, the target main window and the target sub-window are hidden, and a position of a placeholder window corresponding to the target main window is swapped with a position of a placeholder window corresponding to the target sub-window;
[0022] The target sub-window is covered with the corresponding placeholder window after the exchange, and the target main window is covered with the corresponding placeholder window after the exchange.
[0023] According to a multi-party conversation method provided by the present invention, during the multi-party conversation process, the method further includes:
[0024] In response to a viewing operation on a target member, loading a cached image of the target member and subscribing to a latest video stream of the target member;
[0025] The cached image is displayed in a play window, and after receiving the real-time video stream of the target member, the content displayed in the play window is switched from the cached image to the real-time video stream.
[0026] According to a multi-party conversation method provided by the present invention, the cached image is obtained by:
[0027] When a member enters a call, obtaining the latest video image of the member and storing the latest video image in a cache;
[0028] When the cached image in the cache is not the latest video image, the cached image is updated.
[0029] The present invention also provides a multi-party conversation device, which is applied to a terminal device, wherein the content displayed on the conversation page of the terminal device includes at least a plurality of play windows, and the play windows are used to play member images of each member in a member play list page, and the device includes:
[0030] A message queue processing module, used for responding to a page turning operation on a member playlist page during a multi-party call, adding a task of unsubscribing members of the current page to the message queue, and adding a task of subscribing members of the next page to the message queue;
[0031] A task execution module is used to delete other tasks in the message queue except the last subscription task when the trigger frequency of the page turning operation is greater than a preset frequency threshold and there are multiple tasks in the message queue, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the multi-party call method as described in any one of the above items when executing the program.
[0033] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the multi-party conversation method as described in any one of the above items are implemented.
[0034] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the multi-party conversation methods described above are implemented.
[0035] The multi-party call method, device, electronic device, storage medium and product provided by the present invention use a message queue to queue and execute subscription and unsubscription tasks in sequence when the page is turned frequently, ignore the intermediate invalid tasks when the queue is long, and only execute the last subscription task, and directly play the member image of the target page member corresponding to the last subscription task in the playback window. This is beneficial to reduce unnecessary resource overhead and improve software performance and the smoothness of member image screen switching when the play list is switched frequently. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a flowchart of a multi-party conversation method provided by an embodiment of the present invention;
[0038] Figure 2 is a schematic diagram of a multi-party call provided by an embodiment of the present invention;
[0039] Figure 3 It is a schematic diagram of the process of switching screens during high-frequency page turning provided by an embodiment of the present invention;
[0040] Figure 4is a schematic diagram of a dual-window display control process provided by an embodiment of the present invention;
[0041] Figure 5 It is a schematic diagram of the process of switching between main and sub-streams provided by an embodiment of the present invention;
[0042] Figure 6 It is a schematic diagram of the process of intelligent caching and data preloading provided by an embodiment of the present invention;
[0043] Figure 7 is a schematic diagram of the structure of a multi-party conversation device provided by an embodiment of the present invention;
[0044] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Figure 1 1 is a flow chart of a multi-party conversation method provided by an embodiment of the present invention. Figure 1 The embodiment of the present invention provides a multi-party call method, which is applied to a terminal device, wherein the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play the member images of each member in the member play list page. The method may specifically include the following steps:
[0047] Step 101, during a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members on the current page is added to a message queue, and a task of subscribing members on the next page is added to the message queue.
[0048] It should be noted that the execution subject of the multi-party call method provided in the embodiment of the present invention may be a terminal device, a component in the terminal device, an integrated circuit or a chip. The terminal device may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile terminal device may be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
[0049] The multi-party call method provided in the embodiment of the present invention can be integrated with the security monitoring platform, so as to be applied to various multi-party call scenarios, such as emergency command, demonstration projects, remote training, etc., to realize simultaneous calls among multiple parties on different terminal devices, and has the advantages of convenient use, high-definition and smooth, and telecommunications-level audio and video communication services.
[0050] Figure 2 Schematic diagram of multi-party conversation provided by an embodiment of the present invention. Figure 2 , multiple members can access the multi-party call through various methods such as mobile video calls, mobile application software, PC, all-in-one machines, etc. The content displayed through the call interface of the terminal device may include several member playback windows, and may also include a local playback window. The local playback window can be used to display member images captured by the local camera, and the member playback window can be used to play the member images of each member in the member playback list page. After entering the multi-party call, you can get the member playback list containing all the members connected to the call. The member playback list can include multiple member groups, and a member group can include multiple members playing on the same list page. A playback window can play the member image of a member. Such as Figure 2 As shown, the call interface may display 3 play windows, and the member play list may include M member groups, with a total of N members. Each member group may include 3 members, member group 1 includes member 1, member 2, and member 3, member group 2 includes member 4, member 5, and member 6, member group 3 includes member 7, member 8, and member 9, ..., member group M includes member N-2, member N-1, and member N.
[0051] In an embodiment of the present invention, during a multi-party call, a page turning operation for a member's playlist page can be responded to. When it is determined that there is still a next list page, that is, the current list page is not the last page, a task of unsubscribing all members in the current list page (that is, the current member group) can be added to the message queue, and a task of subscribing to all members in the next list page (that is, the next member group) can be added to the message queue. After the task of subscribing to all members of the next list page is executed, the member images of all members of the next list page can be played on the playback window of the call page. It should be noted that the member image can refer to a member video image or a member cache image, and the present invention does not make specific limitations here.
[0052] For example, it is assumed that the playing window currently plays the member images of members 4, 5, and 6 in member group 2. In response to the user's page turning operation on the member playlist, the terminal device can add a task of unsubscribing members 4, 5, and 6 in member group 2 to the message queue, and add a task of subscribing members 7, 8, and 9 in member group 3 to the message queue. After the subscription task for member group 3 is executed, the member image of member 7 can be played on the playing window 1, the member image of member 8 can be played on the playing window 2, and the member image of member 9 can be played on the playing window 3.
[0053] Step 102, when the trigger frequency of the page turning operation is greater than the preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks in the message queue except the last subscription task, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0054] When a call supports multiple members participating at the same time, but each page turn can only display a few members, the user needs to frequently perform page turning operations on the member playlist. The page turning operation will trigger the subscription / unsubscription interface call. Frequent calls to the subscription / unsubscription interface involve network requests, which may cause time-consuming operations and affect software performance and fluency. When the pages are turned frequently, the embodiment of the present invention uses a message queue to add subscription and unsubscription tasks in sequence. When the queue is long, the intermediate invalid tasks are ignored and only the last subscription task is executed, thereby reducing unnecessary overhead.
[0055] Figure 3 1 is a flow chart of switching screens during high-frequency page turning provided by an embodiment of the present invention. Figure 3After entering a multi-party call, you can obtain a member playlist containing all members who have joined the call. In response to the page turning operation on the member playlist page, when it is determined that there is still a next list page, the task of unsubscribing members on the current page can be added to the message queue, and the task of subscribing members on the next page can be added to the message queue; when it is determined that there is no next list page, the current message queue can be kept unchanged. If the trigger frequency of the page turning operation is greater than the preset frequency threshold before the previous subscription / unsubscription task is completed, that is, when the page turning is triggered frequently, multiple subscription / unsubscription tasks will be accumulated in the message queue.
[0056] When executing a task in a message queue, you can determine whether there is a task in the message queue. If it is determined that there is only one task in the message queue, or the next task is an unsubscribe task, you can directly execute the task in the message queue. If there are multiple tasks in the message queue (that is, the number of tasks is greater than 1), and the next task is not an unsubscribe task, you can directly find the last subscription task, delete the remaining tasks in the middle, and then execute the last subscription task. For example, if a user triggers 10 page turning actions with the purpose of jumping directly from the video screen of the member on the 1st list page to the video screen of the member on the 10th list page, then the subscription / unsubscription tasks for the members on the 2nd list page to the 9th list page do not need to be executed.
[0057] The number of members in each member playlist page can be the same as the number of play windows, and one play window can play the member image of one member. After executing the last subscription task, the member images of different members in the target page corresponding to the last subscription task can be played in each play window. For example, assuming that the target page corresponding to the last subscription task is list page 3, and the members in list page 3 include members 7, 8, and 9, after executing the last subscription task, the member image of member 7 can be played on play window 1, the member image of member 8 can be played on play window 2, and the member image of member 9 can be played on play window 3.
[0058] The embodiment of the present invention uses a message queue to queue and execute subscription and unsubscription tasks in sequence when pages are turned frequently. When the queue is long, invalid intermediate tasks are ignored and only the last subscription task is executed. The member image of the target page member corresponding to the last subscription task is directly played in the playback window. This is beneficial for reducing unnecessary resource overhead and improving software performance and the smoothness of member image screen switching when the play list is switched frequently.
[0059] In an optional embodiment, the content displayed on the call page also includes a number of placeholder windows, the number of which is the same as the number of the playback windows, and the number of placeholder windows is used to display member information of each member in the member playlist page, and the number of members in each member playlist page is the same as the number of the placeholder windows; after adding the task of unsubscribing from the current page members to the message queue and adding the task of subscribing to the next page members to the message queue, it also includes: hiding the playback window and displaying the placeholder window; binding the placeholder window to the next page members one by one, and updating the member information of the bound members in the placeholder window; associating the playback window with the next page members; determining the placeholder window corresponding to the playback window based on the association relationship between the playback window and the next page members and the binding relationship between the placeholder window and the next page members, and overwriting the playback window with the corresponding placeholder window.
[0060] The number of members, the number of placeholder windows and the number of play windows in each member playlist page may be the same. A placeholder window may display the member information of a member, and the play window corresponding to the placeholder window may play the member image of the member.
[0061] Since the member display positions are fixed and the playback screen window is not fixed, an embodiment of the present invention proposes a solution for separating the placeholder window and the playback window, creates the same number of placeholder windows and playback windows, first uses the placeholder window to bind the next page member information and displays it, then associates the playback window with the next page members, and finally determines the placeholder window corresponding to the playback window based on the relationship between the next page members and the placeholder window and the playback window, and overwrites the playback window with the corresponding placeholder window, so that through the display control of the placeholder window and the playback window, the smoothness of video screen switching is achieved, the problem of screen see-through or screen flashing during abnormal playback and the abnormal problem caused by the delay of the first frame of decoding are solved, and the user experience is improved.
[0062] In the embodiment of the present invention, when turning pages, the playback window can be hidden first, and the placeholder window can be displayed, so that each time the page is turned, only the user information displayed in the placeholder window needs to be updated, and the screen can be seen to be constantly switching. The switching of the member information displayed in the placeholder window has little performance overhead, so that the smooth use of the software can be guaranteed.
[0063] In an optional embodiment, the terminal device is integrated with a player software development kit SDK for binding the relationship between a decoder and a window handle; associating each playback window with different members in the next page includes: subscribing to the video stream of the next page members through the player SDK, binding the video stream channels of different members in the next page to each playback window one by one, so as to associate each playback window with different members in the next page.
[0064] Continue to refer to Figure 2 The terminal device can be integrated with the player software development kit (SDK), which can include functions such as subscribing / unsubscribing members, decoding and rendering functions, turning on / off the local camera function, turning on / off the local microphone function, sharing the screen function, and inviting Internet Protocol Multimedia Subsystem (IMS) members.
[0065] At the beginning of a call, all window handles for playback can be set to the player SDK, and members can be subscribed to through the member list to display the member images of the subscribed members. The player SDK can bind the video stream channel to the window and notify the upper application through callback. Users can switch member images by using the up and down page buttons to view the video images of all members in the member playlist.
[0066] Specifically, when turning pages, the video stream of the members of the next page can be subscribed through the player SDK. When the player SDK completes the binding of the video stream channels of different members in the next page with each playback window one by one, so as to associate each playback window with different members in the next page, the playback window can cover the placeholder window and play the video stream screen of the members of the next page, so as to achieve smooth screen switching and solve the abnormal problem caused by the delay of the first frame of decoding.
[0067] Figure 4 1 is a schematic diagram of a dual-window display control process provided by an embodiment of the present invention. Figure 4 After starting a call, you can determine whether the member image is playing in the main window. If it is playing in the main window, you can subscribe to the main stream. If it is not playing in the main window, you can subscribe to the substream. You can hide the playback window, display the placeholder window, and update the member information of the bound member in the placeholder window. After the player SDK callbacks the association between the playback window and the next page of members, and the player SDK callback successfully decodes the first frame of the member video image, you can display the playback window and overlay the playback window on the corresponding placeholder window to play the video image of the next page of members.
[0068] In an embodiment of the present invention, by accessing the player SDK, the relationship sinking operation of binding the decoder and the window handle can be implemented; the terminal device cannot directly determine in which window a specific video will be played. After the player SDK subscribes to the video stream of the next page member, the present invention renders it to the corresponding window according to its association relationship, and conveys this association relationship to the terminal device through a callback mechanism. The terminal device can display the window at a predetermined position to play the video image of the next page member, thereby adapting the relationship between the bound decoder and the window handle to be sunk to the playback library inside the SDK.
[0069] In an optional embodiment, the playback window includes a main window and a sub-window, and the size of the main window is larger than the size of the sub-window; during a multi-party call, the method further includes: responding to a switching operation, switching the playback position of the member image; when the member image is switched from the sub-window to the main window for playback, and the sub-window is a remote window, switching the subscribed video stream from the sub-stream to the main stream; when the member image is switched from the main window to the sub-window for playback, and the main window is a remote window, switching the subscribed video stream from the main stream to the sub-stream.
[0070] The playback window layout of the call page may include a main window and multiple sub-windows, wherein the size of the main window is larger than that of the sub-window. However, terminal devices with poor performance or low configuration may not be able to decode multiple video playbacks simultaneously. In the embodiment of the present invention, by subscribing to the main stream when playing in the main window, the higher the definition, the higher the decoding requirements; and by subscribing to the sub-stream when playing in the sub-window, the lower the definition, the lower the decoding requirements. Thus, for different window layouts, the main stream and the sub-stream are switched according to the window size, and the definition and decoding requirements are dynamically adjusted, which effectively reduces the performance requirements for playback. It is possible to decode multiple video playbacks simultaneously on terminal devices with poor performance, thereby improving the applicability of playback.
[0071] Figure 5 1 is a schematic diagram of the process of switching the main and sub-code streams provided by an embodiment of the present invention. Figure 5, when the member image is played in a sub-window (i.e., a small window), the sub-stream can be subscribed; when the member image is played in a main window (i.e., a large window), the main stream can be subscribed. The member image playback position can be switched in response to the switching operation. If a member image is switched from a sub-window to a main window for playback, it can be determined whether the sub-window is a remote window; if the sub-window is a remote window, i.e., the remote window is switched to a large window, the subscribed member video stream playing in the window can be switched from a sub-stream to a main stream; if the sub-window is a local window, since the local window obtains the member image captured by the local camera, there is no need to switch the stream, and the playback window can be directly overlaid on the corresponding placeholder window. When one member image is switched from the sub-window to the main window for playback, another member image will be switched from the main window to the sub-window for playback, so that it can be determined whether the main window is a remote window; if the main window is a remote window, that is, the remote window is switched to a small window, then the video stream of the subscribed member playing in this window can be switched from the main stream to the sub-stream; if the main window is a local window, there is no need to switch the stream, and the playback window can be directly overlaid on the corresponding placeholder window.
[0072] In an optional embodiment, the switching operation is an exchange operation between a target main window and a target sub-window; the response to the switching operation switches the playback position of the member image, including: responding to the exchange operation between the target main window and the target sub-window, hiding the target main window and the target sub-window, exchanging the position of the placeholder window corresponding to the target main window with the position of the placeholder window corresponding to the target sub-window; covering the target sub-window with the corresponding placeholder window after the exchange, and covering the target main window with the corresponding placeholder window after the exchange.
[0073] The switching operation may be a switching operation between the target main window and the target sub-window, such as a window double-click operation, a switching option click operation, and the like.
[0074] For example, in response to a double-click operation on the target small window, the target main window and the target sub-window can be exchanged, the target main window and the target sub-window to be exchanged are hidden, and the position of the placeholder window corresponding to the target main window is exchanged with the position of the placeholder window corresponding to the target sub-window. At this time, the position of the member image can be viewed through the call page. Then, the target sub-window can be covered with the corresponding placeholder window after the exchange, and the target main window can be covered with the corresponding placeholder window after the exchange, so as to realize the exchange of the playback window position of the member image.
[0075] In an optional embodiment, during a multi-party call, the method further includes: responding to a viewing operation on a target member, loading a cached image of the target member and subscribing to the latest video stream of the target member; displaying the cached image in a playback window, and after receiving the real-time video stream of the target member, switching the content displayed in the playback window from the cached image to the real-time video stream.
[0076] In a video call scenario with hundreds of people, it is usually difficult to effectively find the target member. The embodiments of the present invention can improve the user experience by caching the image data of the members and quickly loading the cached image data of the target members when the user needs to view the target members, so that the user can easily find and interact with the members of interest, while reducing the waiting time and improving the efficiency of the video call, which is conducive to improving the usability and operation convenience of large-scale video call applications and providing users with a smoother and better communication experience.
[0077] Specifically, when other members choose to view the target member's video image, the terminal device can respond to the user's viewing operation on the target member, load the target member's cached image, and display it on the call page, so that the user can immediately see the member's image without waiting for the first frame from the real-time video stream to arrive. At the same time, the real-time video stream of the target member can be subscribed. After receiving the available real-time video stream data, the terminal device can render the real-time video stream of the target member on the playback window displaying the member, thereby switching the content displayed in the playback window from the cached image to the real-time video stream, providing the user with a smooth video experience.
[0078] In an optional embodiment, the cached image is obtained in the following manner: when a member enters a call, the latest video image of the member is obtained, and the latest video image is stored in the cache; if the cached image in the cache is not the latest video image, the cached image is updated.
[0079] Specifically, when a member enters a call, the terminal device can collect and obtain the latest video image of the member and upload it to the server. The server can save the latest uploaded video image in the cache. At the same time, during the call, the server can update the cache image in the cache, so that the cache image in the cache is the latest video image of the member. When the terminal device needs to load the latest video image of the target member, the server can send the cache image saved in the cache to the terminal device, so that the user can immediately see the member image without waiting for the first frame from the real-time video stream to arrive.
[0080] Figure 6 Schematic diagram of the process of intelligent caching and data preloading provided by an embodiment of the present invention. Figure 6When a member joins a video call conference with 100 people, the server can automatically detect the member and generate a member identity document (ID) as the member's unique identifier. When a member joins the conference, the server can capture the latest video image frames from the member's image acquisition device. The captured image frames will be immediately stored in the cache, indexed by the member ID, and the image data will be marked as "latest".
[0081] When other members choose to view the target member's video image, the server can check the cache status of the target member. If there is a cache image related to the target member, the server can send the cache image stored in the cache to the terminal device, and the terminal device can display the loaded cache image of the target member on the screen, thereby ensuring that the user can immediately see the member's image without waiting for the first frame to arrive from the real-time video stream.
[0082] At the same time, you can subscribe to the real-time video stream of the target member. After receiving the available real-time video stream data, the terminal device can render the real-time video stream of the target member on the playback window displaying the member, thereby switching the content displayed in the playback window from the cached image to the real-time video stream, providing users with a smooth video experience.
[0083] If other members have subscribed to the target member's video during the conference, the server can periodically check the member's cache status. If it is detected that the cached image is outdated or no longer up to date, the cached image data can be automatically requested and updated to ensure that the participating members can always view the latest member image.
[0084] The embodiment of the present invention utilizes a cache strategy and mechanism for automatically capturing, storing and updating member images, and ensures the timeliness of cache data by identifying, collecting, storing and maintaining the latest image data of members and making intelligent decisions.
[0085] The embodiment of the present invention uses a message queue to queue and execute subscription and unsubscription tasks in sequence when pages are turned frequently. When the queue is long, invalid intermediate tasks are ignored and only the last subscription task is executed. The member image of the target page member corresponding to the last subscription task is directly played in the playback window. This is beneficial for reducing unnecessary resource overhead and improving software performance and the smoothness of member image screen switching when the play list is switched frequently.
[0086] The multi-party conversation device provided by the present invention is described below. The multi-party conversation device described below and the multi-party conversation method described above can be referred to each other.
[0087] Figure 7Schematic diagram of the structure of a multi-party conversation device provided by an embodiment of the present invention. Figure 7 The embodiment of the present invention provides a multi-party call device, which is applied to a terminal device. The content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play the member images of each member in the member play list page. The device may specifically include the following modules:
[0088] The message queue processing module 701 is used to respond to the page turning operation on the member playlist page during the multi-party call, add the task of unsubscribing the members of the current page to the message queue, and add the task of subscribing the members of the next page to the message queue;
[0089] The task execution module 702 is used to delete the tasks except the last subscription task in the message queue when the trigger frequency of the page turning operation is greater than a preset frequency threshold and there are multiple tasks in the message queue, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0090] The embodiment of the present invention uses a message queue to queue and execute subscription and unsubscription tasks in sequence when pages are turned frequently. When the queue is long, invalid intermediate tasks are ignored and only the last subscription task is executed. The member image of the target page member corresponding to the last subscription task is directly played in the playback window. This is beneficial for reducing unnecessary resource overhead and improving software performance and the smoothness of member image screen switching when the play list is switched frequently.
[0091] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the multi-party call method, which is applied to a terminal device, and the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play the member images of each member in the member play list page. The method includes:
[0092] During a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members of the current page is added to a message queue, and a task of subscribing members of the next page is added to the message queue;
[0093] When the trigger frequency of the page turning operation is greater than the preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks in the message queue except the last subscription task, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0094] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0095] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the multi-party call method provided by the above methods, and is applied to a terminal device, wherein the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play the member images of each member in the member play list page, and the method includes:
[0096] During a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members of the current page is added to a message queue, and a task of subscribing members of the next page is added to the message queue;
[0097] When the trigger frequency of the page turning operation is greater than the preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks in the message queue except the last subscription task, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0098] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the multi-party call method provided by the above methods, applied to a terminal device, the content displayed by the call page of the terminal device includes at least a plurality of play windows, the play windows are used to play the member images of each member in the member play list page, the method includes:
[0099] During a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members of the current page is added to a message queue, and a task of subscribing members of the next page is added to the message queue;
[0100] When the trigger frequency of the page turning operation is greater than the preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks in the message queue except the last subscription task, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window.
[0101] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-party conversation method, characterized in that: Applied to a terminal device, the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play member images of each member in a member play list page. The method includes: During a multi-party call, in response to a page turning operation on a member playlist page, a task of unsubscribing members of the current page is added to a message queue, and a task of subscribing members of the next page is added to the message queue; When the trigger frequency of the page turning operation is greater than a preset frequency threshold and there are multiple tasks in the message queue, delete the other tasks except the last subscription task in the message queue, and execute the last subscription task to play the member images of different members in the target page corresponding to the last subscription task in each playback window; The content displayed on the call page also includes a number of placeholder windows that are the same as the number of the play windows, and the number of placeholder windows is used to display member information of each member in the member playlist page, and the number of members in each member playlist page is the same as the number of the placeholder windows; after adding the task of unsubscribing from the current page members to the message queue and adding the task of subscribing to the next page members to the message queue, it also includes: hiding the plurality of playback windows and displaying the plurality of placeholder windows; Bind each placeholder window to different members in the next page one by one, and update and display member information of the bound members in the placeholder window; Associate each playback window with different members in the next page; According to the association relationship between the play window and different members in the next page and the binding relationship between the placeholder window and different members in the next page, a placeholder window corresponding to the play window is determined, and the play window is covered on the corresponding placeholder window.
2. The method according to claim 1, characterized in that The terminal device is integrated with a player software development kit SDK for binding a decoder to a window handle; and each playback window is associated with different members in the next page, including: Subscribe to the video streams of the next page members through the player SDK, bind the video stream channels of different members in the next page to each playback window one by one, and associate each playback window with different members in the next page.
3. The method according to claim 1, characterized in that: The playback window includes a main window and a sub-window, and the size of the main window is larger than the size of the sub-window; During the multi-party call, the method further includes: In response to a switching operation, switching the playback position of the member image; When the member image is switched from the sub-window to the main window for playback, and the sub-window is a remote window, the subscribed video stream is switched from the sub-stream to the main stream; When the member image is switched from the main window to the sub-window for playing, and the main window is a remote window, the subscribed video stream is switched from the main stream to the sub-stream.
4. The method according to claim 3, characterized in that The switching operation is an exchange operation between the target main window and the target sub-window; the response switching operation switches the playback position of the member image, including: In response to a swap operation between a target main window and a target sub-window, the target main window and the target sub-window are hidden, and a position of a placeholder window corresponding to the target main window is swapped with a position of a placeholder window corresponding to the target sub-window; The target sub-window is covered with the corresponding placeholder window after the exchange, and the target main window is covered with the corresponding placeholder window after the exchange.
5. The method according to claim 1, characterized in that During the multi-party call, the method further includes: In response to a viewing operation on a target member, loading a cached image of the target member and subscribing to a latest video stream of the target member; The cached image is displayed in a play window, and after receiving the real-time video stream of the target member, the content displayed in the play window is switched from the cached image to the real-time video stream.
6. The method according to claim 5, characterized in that The cached image is obtained in the following manner: When a member enters a call, obtaining the latest video image of the member and storing the latest video image in a cache; When the cached image in the cache is not the latest video image, the cached image is updated.
7. A multi-party conversation device, characterized in that: Applied to a terminal device, the content displayed on the call page of the terminal device includes at least a plurality of play windows, and the play windows are used to play the member images of each member in the member play list page. The device includes: A message queue processing module, used for responding to a page turning operation on a member playlist page during a multi-party call, adding a task of unsubscribing members of the current page to the message queue, and adding a task of subscribing members of the next page to the message queue; A task execution module, used for deleting other tasks except the last subscription task in the message queue when the trigger frequency of the page turning operation is greater than a preset frequency threshold and there are multiple tasks in the message queue, and executing the last subscription task, and playing member images of different members in the target page corresponding to the last subscription task in each playback window; The content displayed on the call page also includes a number of placeholder windows that are the same as the number of the play windows, and the number of placeholder windows is used to display member information of each member in the member playlist page, and the number of members in each member playlist page is the same as the number of the placeholder windows; after adding the task of unsubscribing from the current page members to the message queue and adding the task of subscribing to the next page members to the message queue, the device is also used to: hiding the plurality of playback windows and displaying the plurality of placeholder windows; Bind each placeholder window to different members in the next page one by one, and update and display member information of the bound members in the placeholder window; Associate each playback window with different members in the next page; According to the association relationship between the play window and different members in the next page and the binding relationship between the placeholder window and different members in the next page, a placeholder window corresponding to the play window is determined, and the play window is covered on the corresponding placeholder window.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the multi-party conversation method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multi-party conversation method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the multi-party conversation method according to any one of claims 1 to 6 is implemented.
