Data interaction method, device, electronic device and storage medium
Through caching and progress identifier matching technology, the problem of asynchronous interactive data display progress between dual-end devices is solved, and the display effect and user experience of the viewing end are improved.
Patent Information
- Application Number
- CN202310908567.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-21
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2043-07-21
AI Technical Summary
During the data interaction process between the two-end devices, the display progress of the interactive resources in the viewing data received by the viewing end is not synchronized with the display progress of the feedback data, resulting in poor display effect of the viewing end display interface and affecting the user experience.
By obtaining the first interactive data from the interaction initiator and caching it, sending it to the interaction receiving end and obtaining the second interactive data generated by it, using the cached first interactive data, progress identifier, second interactive data and second progress identifier, the target interactive data is determined and sent to the interactive viewing end to achieve display progress matching of the interactive data.
The display effect of the interactive viewing end is improved, and the application software usage experience of the interactive initiator, receiver and viewer is enhanced.
Smart Images

Figure CN119342262B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data transmission technology, and in particular to a data interaction method, device, electronic device, and storage medium. Background Art
[0002] With the continuous development of network technology, more and more network devices can realize network communication and data transmission functions, and more and more applications have developed interactive functions between two-end devices or multiple-end devices.
[0003] In related technologies, when an interactive relationship is established between two-end devices, when one-end device displays interactive multimedia resources, the other-end device can generate feedback data corresponding to the interactive resources based on the interactive resources displayed by the resource display end, and feed back the generated feedback data to the resource display end, so that the resource display end will use the received feedback data and interactive resources as viewing data and push them to the viewing end corresponding to the resource display end.
[0004] However, when performing data interaction based on the above-mentioned data interaction method, there may be a problem in which the display progress of the interactive resources in the viewing data received by the viewing end is out of sync with the display progress of the feedback data, resulting in poor display effect of the viewing end display interface and affecting the user experience. Summary of the Invention
[0005] The present disclosure provides a data interaction method, device, electronic device and storage medium to achieve a matching effect between the display progress of first interactive data and the display progress of second interactive data in target interactive data.
[0006] In a first aspect, an embodiment of the present disclosure provides a data interaction method, applied to an interaction initiating end, the method comprising:
[0007] Acquire first interaction data corresponding to the interaction initiator, and cache the first interaction data, wherein the first interaction data carries a first progress indicator;
[0008] Sending the first interaction data to an interaction receiving end, and obtaining second interaction data generated by the interaction receiving end and corresponding to the first interaction data, wherein the second interaction data carries a second progress identifier corresponding to the first progress identifier;
[0009] Based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end.
[0010] In a second aspect, the embodiments of the present disclosure further provide a data interaction method, which is applied to an interaction receiving end, and the method includes:
[0011] receiving first interaction data sent by an interaction initiator, and generating second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress identifier, and the second interaction data carries a second progress identifier corresponding to the first progress identifier;
[0012] The second interactive data is transmitted to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0013] In a third aspect, an embodiment of the present disclosure provides a data interaction device, which is configured at an interaction initiating end, and includes:
[0014] a data acquisition module, configured to acquire first interaction data corresponding to the interaction initiator and cache the first interaction data, wherein the first interaction data carries a first progress indicator;
[0015] a data sending module, configured to send the first interactive data to an interactive receiving end, and obtain second interactive data corresponding to the first interactive data generated by the interactive receiving end, wherein the second interactive data carries a second progress identifier corresponding to the first progress identifier;
[0016] A viewing data determination module is used to determine target interaction data corresponding to the interaction initiating end based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, and send the target interaction data to the interactive viewing end corresponding to the interaction initiating end.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a data interaction device, configured at an interaction receiving end, comprising:
[0018] a data receiving module, configured to receive first interaction data sent by an interaction initiator, and generate second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress indicator, and the second interaction data carries a second progress indicator corresponding to the first progress indicator;
[0019] A data transmission module is used to transmit the second interactive data to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0020] In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0021] one or more processors;
[0022] a storage device for storing one or more programs,
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the data interaction method as described in any one of the embodiments of the present disclosure.
[0024] In a sixth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the data interaction method as described in any one of the embodiments of the present disclosure.
[0025] The technical solution of the disclosed embodiment obtains first interaction data corresponding to an interaction initiating end and caches the first interaction data. This allows the first interaction data to be cached locally while determining the first interaction data, providing a data basis for subsequent data processing. Furthermore, the first interaction data is sent to an interaction receiving end, and second interaction data generated by the interaction receiving end and corresponding to the first interaction data is obtained. This enables data interaction between the interaction initiating end and the interaction receiving end, while ensuring the relevance between the second interaction data and the first interaction data. Finally, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art of the display progress of interactive resources in the viewing data received by the viewing end being out of sync with the display progress of feedback data, resulting in poor display quality on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display quality of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0027] Figure 1 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0028] Figure 2 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0029] Figure 3 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0030] Figure 4 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0031] Figure 5 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0032] Figure 6 A schematic diagram of a process of establishing an interactive relationship in a data interaction method provided by an embodiment of the present disclosure;
[0033] Figure 7 A schematic diagram of the structure of a data interaction device provided in an embodiment of the present disclosure;
[0034] Figure 8 A schematic diagram of the structure of a data interaction device provided in an embodiment of the present disclosure;
[0035] Figure 9 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0038] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0039] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0040] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0042] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0044] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0046] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0047] Before introducing this technical solution, an example application scenario may be provided. The technical solutions of the embodiments of the present disclosure can be applied to scenarios where network communication and data interaction are performed between any two devices or more than two devices. For example, in a scenario where network communication and data interaction are performed between an interaction initiating end and an interaction receiving end, a data interaction request can be initiated based on the interaction initiating end, and the interaction receiving end corresponding to the interaction initiating end can be determined based on the response data of the data interaction request. When the interaction initiating end and the interaction receiving end have established an interactive relationship, the data to be shared can be displayed based on the interaction initiating end. At the same time, the interaction receiving end can determine feedback data corresponding to the interactive resources in the interactive data to be shared displayed by the interaction initiating end and feed it back to the interaction initiating end. Furthermore, when the interaction initiating end receives the feedback data, it can merge the received feedback data with the displayed data to be shared to generate viewing data corresponding to the interaction initiating end, and send the viewing data to the interactive viewing end corresponding to the interaction initiating end. However, when performing data interaction based on the above-mentioned data interaction method, there may be a problem where the display progress of the data to be shared in the viewing data received by the interactive viewing end is out of sync with the display progress of the feedback data, resulting in poor display effect on the display interface of the interactive viewing end. At this time, based on the technical solution of the embodiment of the present disclosure, the data to be shared displayed on the interaction initiating end can be obtained, and each frame of the data to be shared can be marked to obtain a first progress identifier corresponding to the data to be shared. Then, the data to be shared and the first progress identifier are sent to the interaction receiving end as first interaction data. At the same time, the first interaction data is cached. When the interaction receiving end receives the first interaction data, second interaction data corresponding to the first interaction data and carrying a second progress identifier corresponding to the first progress identifier can be generated, and the second interaction data can be fed back to the interaction initiating end. Furthermore, when the interaction initiating end receives the second interaction data, target interaction data corresponding to the interaction initiating end can be generated based on the cached first interaction data, the first progress identifier, the second interaction data, and the second progress identifier, and the target interaction data can be sent to the interaction viewing end corresponding to the interaction initiating end. This achieves the effect of matching the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, improves the display effect of the interaction viewing end, and enhances the user experience of the interaction initiating end, the interaction receiving end, and the interaction viewing end for the application software.
[0048] Figure 1This is a flow chart of a data interaction method provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where network communication is established and data is transmitted between an interaction initiating end and an interaction receiving end. The method can be applied to the interaction initiating end and can be executed by a data interaction device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0049] like Figure 1 As shown, the method of this embodiment may specifically include:
[0050] S110: Obtain first interaction data corresponding to the interaction initiator, and cache the first interaction data.
[0051] In this embodiment, the interaction initiating end may be an electronic device that has application software that supports data interaction functions pre-installed. Optionally, the interaction initiating end may include a mobile terminal, a PC, a tablet computer, or a virtual reality device. The application software may be a type of software that supports data interaction functions. The specific application software will not be described here one by one, as long as the data interaction function can be realized. The first interactive data may be data that meets user needs and can be transmitted between multiple device ends. The first interactive data may be at least one of images, videos, texts, and audios. Optionally, the first interactive data may include only interactive resources, or may include interactive resources and other resources associated with the interactive resources. Among them, the interactive resources may be pre-set multimedia data streams that can be transmitted between multiple device ends. Optionally, the interactive resources may include multimedia resources, such as music accompaniment data, film and television clips to be dubbed, or any video. Optionally, other resources associated with the interactive resource may include images or videos collected by the interaction initiator, for example, a sing-along video of the music accompaniment data collected by the interaction initiator; it may also include text acquisition information corresponding to the interactive resource, for example, if the interactive resource is music accompaniment data, the lyrics acquisition path corresponding to the music accompaniment data.
[0052] The first interactive data includes a first progress indicator. The first progress indicator may be an indicator that indicates the display progress of the first interactive data. Each frame of the first interactive data has a corresponding first progress indicator, and the first progress indicator corresponding to each frame of the first interactive data is different. The display order of each frame of the first interactive data can be determined based on the first progress indicator corresponding to each frame of the first interactive data. The first progress indicator may be any form of identification information, and may optionally be a timestamp or a number.
[0053] In this embodiment, the first progress identifier can be associated with the data acquisition time corresponding to the first interactive data. Specifically, when the interaction initiator obtains the corresponding first interactive data, the obtained first interactive data are all data after marking processing. That is to say, the first interactive data obtained by the interaction initiator carries the first progress identifier at the time of acquisition.
[0054] In practical applications, before obtaining the first interaction data corresponding to the interaction initiator, the corresponding first interaction data can be first determined based on the interaction initiator so that the first interaction data carries a first progress identifier representing the display progress of the first interaction data.
[0055] Optionally, obtaining first interaction data corresponding to the interaction initiator includes: obtaining data to be shared displayed by the interaction initiator, determining a first progress identifier corresponding to the data to be shared, and using the data to be shared and the first progress identifier as the first interaction data corresponding to the interaction initiator.
[0056] In this embodiment, the data to be shared may be data that does not carry the first progress indicator and can be transmitted between multiple devices. Optionally, the data to be shared may include only interactive resources, or may include both interactive resources and other resources associated with the interactive resources.
[0057] In actual application, the data to be shared displayed by the interaction initiator can be first determined. Then, when the data to be shared is determined and displayed on the interaction initiator, a first progress indicator corresponding to the displayed data to be shared can be determined.
[0058] In this embodiment, whether the data to be shared includes only interactive resources or both interactive resources and other resources associated with the interactive resources, it can be indicated that the data to be shared is data associated with the interactive resources. Therefore, when determining the data to be shared based on the interaction initiator's presentation, the interactive resources included in the data to be shared can be first determined. Then, based on the interactive resources, the data to be shared based on the interaction initiator's presentation can be determined. In actual applications, there are at least two ways to determine the data to be shared. These two determination methods are described below.
[0059] One approach may be: in response to a trigger operation on a resource display control, displaying at least one candidate interactive resource; in response to a selection trigger operation on a candidate interactive resource, using the selected candidate interactive resource as the interactive resource included in the data to be shared.
[0060] In this embodiment, the trigger operation for the resource display control and the trigger operation for selecting the candidate interactive resource can be any operation acting on the resource display control or the candidate interactive resource. For example, a click operation on the resource display control or the candidate interactive resource. Among them, the click operation can be a single click operation or a multiple click operation (such as a double-click operation, etc.). In order to facilitate user operations, the trigger operation for the resource display control and the trigger operation for selecting the candidate interactive resource can also be that when it is detected that the user's pause time on the resource display control or the candidate interactive resource based on the input device or touch point reaches a preset time, it can be determined that the resource display control is triggered, or the candidate interactive resource is used as an interactive resource that meets the user's needs.
[0061] In actual applications, when it is detected that the user inputs a trigger operation for the resource display control through an input device or touch point, the trigger operation can be responded to, and at least one candidate interactive resource can be displayed on the display interface corresponding to the interaction initiation end. Furthermore, a selection can be made from the displayed candidate interactive resources through the trigger operation. When a user selection trigger operation for any candidate interactive resource is detected, the selected candidate interactive resource can be used as the interactive resource included in the data to be shared.
[0062] Another method may be: receiving the uploaded resources to be processed as interactive resources included in the data to be shared.
[0063] In this embodiment, the resources to be processed may be resources uploaded to the interaction initiating end in real time or periodically based on an external device.
[0064] Furthermore, after determining the interactive resources, the data to be shared displayed by the interactive initiating end can be determined. If the data to be shared only includes interactive resources, the determined interactive resources can be directly displayed in the display interface corresponding to the interactive initiating end; if the data to be shared includes interactive resources and other resources associated with the interactive resources, then after determining the interactive resources, other resources associated with the interactive resources can be determined based on the determined interactive resources, and then the determined interactive resources and other resources associated with the interactive resources can be displayed as data to be shared on the interactive initiating end. For example, if the data to be shared includes interactive resources and other resources associated with the interactive resources, and the interactive resources are music accompaniment data, and the other resources are real-time singing videos of singers based on the music accompaniment data collected by the interactive initiating end, then while the music accompaniment data is played on the interactive initiating end, a video of the singer singing based on the music accompaniment data can be collected based on the camera device set on the interactive initiating end, and then the music accompaniment data and the collected video can be used as data to be shared.
[0065] Furthermore, after determining the data to be shared, each frame of the data to be shared may be marked to determine a first progress identifier corresponding to each frame of the data to be shared, so that the data to be shared and the first progress identifier may be used as the first interactive data corresponding to the interaction initiator.
[0066] It should be noted that the advantage of using the data to be shared and the first progress identifier corresponding to the data to be shared as the first interactive data corresponding to the interaction initiator is that it achieves the effect of marking each frame of data to be shared, so that the obtained first interactive data all carry the corresponding first progress identifier, and achieves the effect of indicating the display order of each frame of the first interactive data based on the first progress identifier, laying the foundation for data merging and data tracing.
[0067] In practical applications, the technical solution provided by this embodiment can be applied to a live broadcast chorus scenario. In this application scenario, the interaction initiator and the interaction receiver can be two live broadcast rooms that have established a connection relationship, with the interaction initiator being the first live broadcast room and the interaction receiver being the second live broadcast room. The interaction resource can be music accompaniment data. In this application scenario, obtaining first interaction data corresponding to the interaction initiator includes: obtaining audio data from the first live broadcast room as the first interaction data, adding a timestamp to the first interaction data based on the acquisition time of the first interaction data, and using the timestamp as the first progress indicator.
[0068] The audio data includes audio data and music accompaniment data collected in the first live broadcast room.
[0069] In practical applications, when the music accompaniment data is determined, the determined music accompaniment data can be played based on the first live broadcast room, and the audio displayed in the first live broadcast room can be collected. Then, the audio data and music accompaniment data collected in the first live broadcast room can be obtained. The audio data and music accompaniment data collected in the first live broadcast room can be used as the first interactive data. Furthermore, the acquisition time corresponding to each frame of the first interactive data can be obtained. Then, a timestamp can be added to the first interactive data of the corresponding frame according to the acquisition time of each frame of the first interactive data, and the added timestamp can be used as the first progress identifier corresponding to the first interactive data. Thus, the effect of matching the playback progress of the music accompaniment data with the display progress of the audio data in the first live broadcast room can be achieved.
[0070] It should be noted that, in addition to the audio data and music accompaniment data collected by the first live broadcast room, the first interactive data may also include video data collected by the first live broadcast room. This video data can represent the first live broadcast room's performance of the music accompaniment data. In practical applications, while the first live broadcast room plays the determined music accompaniment data, the video and audio displayed in the first live broadcast room can be simultaneously collected. Consequently, the audio data, video data, and music accompaniment data collected in the first live broadcast room can be obtained. The collected audio data, video data, and music accompaniment data can be used as the first interactive data. Furthermore, the first interactive data can be sent to the second live broadcast room. When the second live broadcast room receives the first interactive data, the first interactive data can be displayed based on the terminal corresponding to the second live broadcast room. The advantage of this arrangement is that the singing and performance of the music accompaniment data by two live broadcast rooms can be displayed simultaneously in any live broadcast room, increasing the interactive flexibility between live broadcast rooms and improving the visual display effect of the live broadcast rooms.
[0071] In actual applications, the first interaction data is data that can be transmitted among multiple device ends. Therefore, when obtaining the first interaction data corresponding to the interaction initiating end, the other device ends that have established an interactive relationship with the interaction initiating end can be determined first. Thus, the first interaction data corresponding to the interaction initiating end can be obtained after determining the other device ends that have established an interactive relationship with the interaction initiating end.
[0072] Optionally, obtaining the first interaction data corresponding to the interaction initiating end includes: responding to a data interaction request initiated by the interaction initiating end, determining the interaction receiving end corresponding to the interaction initiating end based on the response data corresponding to the data interaction request; and obtaining the first interaction data corresponding to the interaction initiating end when the interaction initiating end and the interaction receiving end have established an interactive relationship.
[0073] In this embodiment, the data interaction request may be a pre-written request message that represents a request by the interaction initiator to establish a communication connection with another device and interact with data. Optionally, the other device may include a mobile terminal, a PC, a tablet computer, or a virtual reality device. The response data may represent the response of the other device to the received data interaction request.
[0074] In actual applications, there may be at least two ways to initiate a data interaction request and determine the interaction receiving end corresponding to the interaction initiating end. These two ways will be described below respectively.
[0075] One method may be: displaying identification information of a target object belonging to at least one device end to be interacted in a display interface corresponding to the interaction initiating end, so that when a trigger operation for the identification information is detected, a data interaction request is initiated to the device end to be interacted corresponding to the identification information; and determining the interaction receiving end corresponding to the interaction initiating end from the device end to be interacted based on the response data corresponding to the data interaction request.
[0076] In this embodiment, the device to be interacted with may be an electronic device owned by a user registered in the corresponding application software or application. Alternatively, the device to be interacted with may include a mobile terminal, a PC, a tablet computer, or a virtual reality device. The identification information may be used to indicate the target object to which the device to be interacted belongs. The identification information may be in any form, and may optionally be an avatar of the target object.
[0077] In this embodiment, in application software or applications that support data interaction functions, a user list display control for displaying the device end to be interacted can be pre-developed. When it is detected that the user triggers the control based on the interaction initiating end, the identification information corresponding to at least one device end to be interacted can be displayed in the display interface corresponding to the interaction initiating end.
[0078] In actual applications, when the interaction initiating end detects the user's trigger operation on the user list display control, it can display the identification information of at least one object belonging to the device end to be interacted based on the display interface corresponding to the interaction initiating end. The user can select from the identification information displayed in the display interface through the trigger operation. When a trigger operation on any identification information is detected, a data interaction request can be initiated to the device end to be interacted corresponding to the identification information.
[0079] Furthermore, for the interaction initiating end, after detecting that the interaction initiating end initiates a data interaction request to the selected device end to be interacted, the response data generated by the device end to be interacted with the data interaction request can be obtained, and then, the interaction receiving end corresponding to the interaction initiating end can be determined based on the response data corresponding to the data interaction request.
[0080] In actual applications, for the device end to be interacted that receives the data interaction request, when the data interaction request is received, a request inquiry page corresponding to the data interaction request can pop up on the display interface corresponding to the device end to be interacted. The page may include an accept request control, a reject request control, and the identification information of the target object to which the interaction initiator belongs that initiates the data interaction request. The target object to which the device end to be interacted belongs can select the controls included in the request inquiry page through a trigger operation, and then, based on the trigger operation of the controls included in the request inquiry page, it can generate response data corresponding to the data interaction request and feed it back to the interaction initiator that initiates the data interaction request.
[0081] Furthermore, for the interaction initiating end, when the interaction receiving end corresponding to the interaction initiating end is determined based on the response data corresponding to the data interaction request, if the response data corresponding to the received data interaction request is an acceptance request, the device end to be interacted that generates and sends the response data can be used as the interaction receiving end corresponding to the interaction initiating end; if the response data corresponding to the received data interaction request is a rejection request, the operation of initiating a data interaction request to the next device end to be interacted can be executed. In the case that the response data corresponding to the received data interaction request is a reception request, the device end to be interacted that generates and sends the response data can be used as the interaction receiving end corresponding to the interaction initiating end.
[0082] Another method may be: in response to a trigger operation on a data interaction control, a data interaction request is initiated to at least one interactive viewing end corresponding to the interaction initiating end based on the trigger operation; the request acceptance response data corresponding to the data interaction request with the earliest reception time is determined, and the interactive viewing end corresponding to the request acceptance response data with the earliest reception time is used as the interactive receiving end corresponding to the interaction initiating end.
[0083] In this embodiment, a data interaction control for triggering the data interaction function can be pre-developed in application software or applications that support data interaction functionality. Upon detecting a trigger operation on the control, the interaction initiator initiates a data interaction request to the interactive viewing terminal corresponding to the interaction initiator. The interactive viewing terminal can be an electronic device that views the data stream displayed by the interaction initiator. The request acceptance response data can be data indicating the status of the interactive viewing terminal's acceptance of the received data interaction request. The response data can include request acceptance response data or request rejection response data.
[0084] In actual applications, for the interaction initiating end, when a trigger operation for a data interaction control is detected, a data interaction request can be initiated to the interactive viewing end corresponding to the interaction initiating end, and then, the initiated data interaction request can be responded to, and the response data corresponding to the data interaction request generated by the interactive viewing end can be obtained, and the request acceptance response data with the earliest reception time can be determined from these response data, so that the interactive viewing end corresponding to the determined request acceptance response data can be used as the interactive receiving end corresponding to the interaction initiating end.
[0085] It should be noted that the data interaction function between the interaction initiator and the interaction receiver can be achieved directly by establishing network communication between the interaction initiator and the interaction receiver; or, the data interaction between the interaction initiator and the interaction receiver can be achieved through the server. Specifically, the interaction initiator can send a data interaction request to the server, so that the server sends the data interaction request to the device to be interacted. Furthermore, based on the feedback data corresponding to the data interaction request fed back by the device to be interacted, the server receives the feedback data, and sends the received feedback data to the interaction initiator through the server, so that the interaction initiator determines the interaction receiver corresponding to the interaction initiator based on the received feedback data.
[0086] Furthermore, after determining the interactive receiving end corresponding to the interactive initiating end, an interactive relationship between the interactive initiating end and the interactive receiving end can be established, so that when the interactive relationship has been established between the interactive initiating end and the interactive receiving end, the first interactive data corresponding to the interactive initiating end can be obtained and the first interactive data can be cached.
[0087] It should be noted that, when caching the first interactive data, a preset number of frames of the first interactive data may be cached, wherein the preset number of frames may be any value.
[0088] S120: Send the first interactive data to the interactive receiving end, and obtain second interactive data generated by the interactive receiving end and corresponding to the first interactive data.
[0089] In this embodiment, after obtaining the first interaction data corresponding to the interaction initiating end, the first interaction data can be sent to the interaction receiving end that has established an interactive relationship with the interaction initiating end, so that the interaction receiving end can process the received first interaction data to obtain the second interaction data corresponding to the first interaction data.
[0090] The second interactive data may be feedback data generated by the interactive receiving end based on the received first interactive data. The second interactive data may carry a second progress identifier corresponding to the first progress identifier. The second progress identifier may be an identifier representing the display progress of the second interactive data. Each frame of the second interactive data has a second progress identifier corresponding thereto, and the second progress identifier corresponding to each frame of the second interactive data is different. The display order between each frame of the second interactive data may be determined based on the second progress identifier corresponding to each frame of the second interactive data. The second progress identifier may be any form of identification information, and optionally, may be a timestamp or a number.
[0091] In actual applications, after obtaining the first interaction data corresponding to the interaction initiator, the first interaction data can be sent to the interaction receiving end, so that when the interaction receiving end receives the first interaction data, it can generate second interaction data corresponding to the first interaction data based on the first interaction data and feed it back to the interaction initiator.
[0092] It should be noted that when the first interactive data is sent to the interactive receiving end based on the interactive initiator, a real-time clock (RTC) interface can be called based on the interactive initiator to send the first interactive data to the interactive receiving end based on the RTC interface.
[0093] It should also be noted that when the second interactive data is fed back to the interactive initiating end based on the interactive receiving end, the RTC interface can be called based on the interactive receiving end to send the second interactive data to the interactive initiating end based on the RTC interface.
[0094] In a specific implementation, for the interactive receiving end, when the first interactive data is received, the received first interactive data can be displayed based on the interactive receiving end, and then, based on the displayed first interactive data, the participation data corresponding to each frame of the first interactive data can be determined. At the same time, the first progress identifier corresponding to each frame of the first interactive data can be obtained, and then, based on the first progress identifier corresponding to each frame of the first interactive data, the second progress identifier corresponding to each frame of the participation data can be determined, so that the participation data and the corresponding second progress identifier can be used as the second interactive data corresponding to the first interactive data and sent to the interaction initiating end.
[0095] In practical applications, an identifier mapping relationship between the first progress identifier and the second progress identifier can be pre-established. The mapping relationship can represent the correspondence between each first progress identifier and each second progress identifier, that is, for each first progress identifier, there is a corresponding second progress identifier. Furthermore, after obtaining the first progress identifier corresponding to each frame of first interactive data, each frame of participation data can be marked according to the pre-established identifier mapping relationship to obtain the second progress identifier corresponding to each frame of participation data.
[0096] S130: Determine target interaction data corresponding to the interaction initiating end based on the cached first interaction data, the first progress identifier, the second interaction data, and the second progress identifier, and send the target interaction data to the interaction viewing end corresponding to the interaction initiating end.
[0097] In this embodiment, after receiving the second interaction data corresponding to the first interaction data generated by the interaction receiving end, the target interaction data corresponding to the interaction initiating end can be determined based on the cached first interaction data, the first progress identifier corresponding to the first interaction data, the second interaction data, and the second progress identifier corresponding to the second interaction data.
[0098] The target interactive data may be data displayed on a display interface corresponding to the viewing terminal. The target interactive data may include first interactive data and second interactive data. The interactive viewing terminal may be an electronic device that is viewing a data stream displayed by another device. Optionally, the interactive viewing terminal may include a mobile terminal, a PC, a tablet computer, or a virtual reality device.
[0099] It should be noted that the first progress identifier and the second progress identifier corresponding to the first progress identifier can be used to indicate the relative correlation relationship between the display progress of the first interactive data and the second interactive data. Specifically, for each frame of first interactive data, it carries the first progress identifier corresponding to the first interactive data of the frame. At the same time, for each frame of second interactive data, it carries the second progress identifier corresponding to the second interactive data of the frame. Moreover, the second progress identifier is determined based on the first progress identifier. Therefore, based on the first progress identifier corresponding to each frame of first interactive data and the second progress identifier corresponding to each frame of second interactive data, the relative display progress between each frame of first interactive data and each frame of second interactive data can be determined. In other words, the display progress of the first interactive data and the display progress of the second interactive data can be compared in the vertical dimension based on the first progress identifier and the second progress identifier.
[0100] It should also be noted that while sending the first interaction data to the interaction receiving end, the interaction initiating end will also display the first interaction data. When receiving the second interaction data fed back by the interaction receiving end, the first interaction data currently displayed by the interaction initiating end may be ahead of the second interaction data received. Therefore, when determining the target interaction data corresponding to the interaction initiating end, the first interaction data that matches the second interaction data can be determined from the cached first interaction data, and then, based on the matched first interaction data and second interaction data, the target interaction data can be determined.
[0101] In actual applications, after obtaining the second interactive data corresponding to the first interactive data generated by the interactive receiving end, the pre-cached first interactive data can be retrieved, and then, the display progress of the first interactive data and the second interactive data can be matched according to the first progress identifier carried by the first interactive data and the second progress identifier carried by the second interactive data. Therefore, based on the matched first interactive data and the second interactive data, the target interactive data corresponding to the interactive initiating end can be determined, and the target interactive data can be sent to the interactive viewing end corresponding to the interactive initiating end, so that the display interface corresponding to the interactive viewing end can display the received target interactive data.
[0102] It should be noted that when the target interactive data is sent to the corresponding interactive viewing end based on the interactive initiator, the content delivery network (CDN) interface can be called based on the interactive initiator to send the target interactive data to the interactive viewing end based on the CDN interface.
[0103] It should be noted that, when the interactive viewing terminal displays the received target interactive data, it can be displayed in the corresponding display interface in any form. Optionally, it can be an evenly divided interface display (such as evenly divided up and down or evenly divided left and right), that is, the first interactive data and the second interactive data included in the target interactive data are displayed simultaneously based on the display interface corresponding to the interactive viewing terminal, and the display area of the display interface of these two types of data is the same; or, it can also be a small window display, that is, the first interactive data in the target interactive data is displayed in full screen based on the display interface corresponding to the interactive viewing terminal, and at the same time, the second interactive data in the target interactive data is displayed in the form of a small window at any position in the first interactive data display area; or, other display forms can also be included, which are not specifically limited in the embodiments of the present disclosure.
[0104] In actual applications, when the display progress of the first interactive data and the second interactive data is matched based on the first progress identifier and the second progress identifier, there may be various situations, which will be described below respectively.
[0105] The first situation may be: based on the first progress identifier corresponding to each frame of the first interactive data and the second progress identifier corresponding to each frame of the second interactive data, the first interactive data having the same display progress as the second interactive data is determined from the cached first interactive data, and the determined first interactive data is used as the first interactive data that matches the second interactive data. Furthermore, based on the matched first interactive data and second interactive data, the target interactive data corresponding to the interaction initiator is determined.
[0106] The second scenario may be: based on the first progress indicator corresponding to each frame of first interaction data and the second progress indicator corresponding to each frame of second interaction data, first interaction data whose presentation progress lags behind the second interaction data by a preset number of frames is determined from the cached first interaction data, and then, based on the determined first interaction data and second interaction data, target interaction data corresponding to the interaction initiator is determined. The preset number of frames may be any value.
[0107] A third scenario may be: based on the first progress indicator corresponding to each frame of first interaction data and the second progress indicator corresponding to each frame of second interaction data, first interaction data whose presentation progress is ahead of the second interaction data by a preset number of frames is determined from the cached first interaction data, and then, based on the determined first interaction data and second interaction data, target interaction data corresponding to the interaction initiator is determined. The preset number of frames may be any value.
[0108] The technical solution of the disclosed embodiment obtains first interaction data corresponding to an interaction initiating end and caches the first interaction data. This allows the first interaction data to be cached locally while determining the first interaction data, providing a data basis for subsequent data processing. Furthermore, the first interaction data is sent to an interaction receiving end, and second interaction data generated by the interaction receiving end and corresponding to the first interaction data is obtained. This enables data interaction between the interaction initiating end and the interaction receiving end, while ensuring the relevance between the second interaction data and the first interaction data. Finally, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art of the display progress of interactive resources in the viewing data received by the viewing end being out of sync with the display progress of feedback data, resulting in poor display quality on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display quality of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end.
[0109] Figure 2 This is a flow chart of a data interaction method provided by an embodiment of the present disclosure. The technical solution of this embodiment, based on the above-described embodiment, performs progress matching on the cached first interaction data and the second interaction data based on the first progress identifier and the second progress identifier to generate target interaction data corresponding to the interaction initiator. For specific implementation methods, please refer to the description of this embodiment. Technical features that are identical or similar to those of the above-described embodiments will not be repeated here.
[0110] like Figure 2As shown, the method of this embodiment may specifically include:
[0111] S210: Obtain first interaction data corresponding to the interaction initiator, and cache the first interaction data.
[0112] S220: Send the first interactive data to the interactive receiving end, and obtain second interactive data generated by the interactive receiving end and corresponding to the first interactive data.
[0113] S230: Based on the first progress identifier and the second progress identifier, perform progress matching on the cached first interaction data and the second interaction data.
[0114] In this embodiment, after obtaining the second interaction data corresponding to the first interaction data generated by the interaction receiving end, the cached first interaction data can be obtained, so that progress matching can be performed on the cached first interaction data and the second interaction data.
[0115] In actual applications, you can first obtain the first progress identifier corresponding to the cached first interactive data and the second progress identifier corresponding to the acquired second interactive data. Based on the first progress identifier, you can determine the display order between each frame of the first interactive data. At the same time, based on the second progress identifier, you can determine the display order between each frame of the second interactive data. Furthermore, you can match the progress of the cached first interactive data and the second interactive data based on the first progress identifier, the second progress identifier, and the pre-constructed identifier mapping relationship.
[0116] It should be noted that when progress matching is performed on the cached first interaction data and the second interaction data, matching can be performed based on user needs or default matching rules. Optionally, it can include the same display progress, delayed display progress, or advanced display progress, etc. The progress matching process between the cached first interaction data and the second interaction data will be explained below using the same display progress as an example.
[0117] Optionally, based on the first progress identifier and the second progress identifier, the cached first interaction data and the second interaction data are progress matched, including: based on the first progress identifier and the second progress identifier, determining the first interaction data with the same display progress as the second interaction data from the cached first interaction data, and using the determined first interaction data as the first interaction data that matches the second interaction data.
[0118] In actual applications, while sending the first interactive data to the interactive receiving end, the interactive initiating end will display the obtained first interactive data. Then, when obtaining the second interactive data corresponding to the first interactive data generated by the interactive receiving end, the first interactive data currently displayed by the interactive initiating end will be ahead of the second interactive data. Therefore, the first interactive data with the same display progress as the second interactive data can be determined from the cached first interactive data. Specifically, first, while receiving the second interactive data, the first progress identifier corresponding to the cached first interactive data and the second progress identifier corresponding to the received second interactive data can be obtained. Furthermore, based on the second progress identifier and the pre-established identifier mapping relationship, the first progress identifier matching the second progress identifier is determined from the multiple first progress identifiers obtained, and the first interactive data corresponding to the first progress identifier is used as the first interactive data with the same display progress as the second interactive data, so that the first interactive data can be used as the first interactive data matching the second interactive data. The advantage of this setting is that it achieves the effect of synchronizing the display progress of the first interactive data with the display progress of the second interactive data in the target interactive data, so that the display progress of the interactive resources displayed in the display interface corresponding to the interactive viewing end, the display progress of the corresponding data on the display interface corresponding to the interactive initiating end, and the display progress of the corresponding data on the display interface corresponding to the interactive receiving end are all at the same display progress, thereby improving the display effect of the interactive viewing end.
[0119] S240: Generate target interaction data corresponding to the interaction initiating end based on the matched first interaction data and the second interaction data, and send the target interaction data to the interaction viewing end corresponding to the interaction initiating end.
[0120] In actual applications, after determining the first interactive data that matches the second interactive data, the matched first interactive data and the second interactive data can be merged, and the merged data can be used as the target interactive data corresponding to the interaction initiating end. Then, the target interactive data can be sent to the interactive viewing end corresponding to the interaction initiating end, so that the display interface corresponding to the interactive viewing end can display the received target interactive data.
[0121] The technical solution of the embodiment of the present disclosure obtains first interactive data corresponding to the interactive initiating end and caches the first interactive data, then sends the first interactive data to the interactive receiving end, and obtains second interactive data corresponding to the first interactive data generated by the interactive receiving end. Furthermore, based on the first progress identifier and the second progress identifier, the cached first interactive data and the second interactive data are progress-matched. Finally, based on the matched first interactive data and the second interactive data, target interactive data corresponding to the interactive initiating end is generated, and the target interactive data is sent to the interactive viewing end corresponding to the interactive initiating end. This solves the problem in the prior art that the display progress of the interactive resources in the viewing data received by the viewing end is out of sync with the display progress of the feedback data, resulting in poor display effect of the display interface of the viewing end, and achieves the effect of mutual matching between the display progress of the first interactive data and the display progress of the second interactive data in the target interactive data, thereby improving the display effect of the interactive viewing end and enhancing the user experience of the interactive initiating end, the interactive receiving end and the interactive viewing end for the application software.
[0122] Figure 3 This is a flow chart of a data interaction method provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where network communication is established and data transmission is performed between an interaction initiating end and an interaction receiving end. The method can be applied to an interaction receiving end and can be executed by a data interaction device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0123] like Figure 3 As shown, the method of this embodiment may specifically include:
[0124] S310: Receive first interaction data sent by an interaction initiator, and generate second interaction data corresponding to the first interaction data.
[0125] The first interactive data carries a first progress indicator, and the second interactive data carries a second progress indicator corresponding to the first progress indicator.
[0126] In actual applications, when an interactive relationship has been established between an interaction initiator and an interaction receiver, first interactive data sent by the interaction initiator is received, and then, the received first interactive data is processed based on the interaction receiver to generate second interactive data corresponding to the first interactive data. Specifically, when the first interactive data is received, feedback data corresponding to the interactive resource can be determined based on the interactive resource included in the first interactive data. At the same time, each determined frame of feedback data can be marked in turn according to the first progress identifier carried in the first interactive data and the pre-established identifier mapping relationship to obtain a second progress identifier corresponding to each frame of feedback data. Then, the feedback data and the corresponding second progress identifier can be used as the second interactive data corresponding to the first interactive data.
[0127] In actual applications, when this embodiment is applied to a live broadcast chorus scenario, the interactive initiator and the interactive receiver are two live broadcast rooms that have established a connection relationship. The interactive initiator is the first live broadcast room, and the interactive receiver is the second live broadcast room. The first interactive data can be the audio data of the first live broadcast room. The second interactive data can be the audio data of the second live broadcast room. Accordingly, generating second interactive data corresponding to the first interactive data includes: obtaining a timestamp indicating the collection time of the first interactive data as a first progress identifier corresponding to the audio data of the first live broadcast room; and adding the first progress identifier as a second progress identifier to the audio data of the second live broadcast room to obtain the second interactive data.
[0128] In a specific implementation, in order to achieve the effect of synchronous singing of the music accompaniment data by the first live broadcast room and the second live broadcast room, the second interactive identifier of the second interactive data can be determined based on the first progress identifier of the first interactive data. When the audio data of the first live broadcast room sent by the first live broadcast room is received, the timestamp indicating the acquisition time of the first interactive data can be first obtained. Then, the timestamp of each frame of the first interactive data can be used as the first progress identifier corresponding to the audio data of the first live broadcast room. Furthermore, after obtaining the first progress identifier of the first interactive data, in order to achieve the effect of synchronous singing of the music accompaniment data by the first live broadcast room and the second live broadcast room, the first progress identifier can be used as the second progress identifier, and the second progress can be added to the audio data of the second live broadcast room. Thus, the audio data to which the second progress identifier has been added can be used as the second interactive data.
[0129] S320: Transmit the second interactive data to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data, and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0130] In actual applications, after determining the second interactive data corresponding to the first interactive data, the second interactive data can be transmitted to the interaction initiating end, so that when the interaction initiating end receives the second interactive data, it can obtain the cached first interactive data. Then, the interaction initiating end can match the progress of the cached first interactive data with the second interactive data based on the first progress identifier carried by the dynamic sharing data and the second progress identifier carried by the second interactive data. Furthermore, based on the matched first interactive data and second interactive data, it can generate target interactive data corresponding to the interaction initiating end, and send the target interactive data to the interactive viewing end corresponding to the interaction initiating end, so that the interactive viewing end can display the received target interactive data based on the corresponding display interface.
[0131] The technical solution of the embodiment of the present disclosure receives first interactive data sent by an interactive initiating end, generates second interactive data corresponding to the first interactive data, and further transmits the second interactive data to the interactive initiating end, so that the interactive initiating end determines the target interactive data corresponding to the interactive initiating end based on the cached first interactive data, the first progress identifier, the second interactive data, and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interactive initiating end. This solves the problem in the prior art that the display progress of the interactive resources in the viewing data received by the viewing end is out of sync with the display progress of the feedback data, resulting in poor display effect of the display interface of the viewing end, and achieves the effect of mutual matching between the display progress of the first interactive data and the display progress of the second interactive data in the target interactive data, thereby improving the display effect of the interactive viewing end and enhancing the user experience of the interactive initiating end, the interactive receiving end, and the interactive viewing end for the application software.
[0132] Figure 4 This is a flow chart of a data interaction method provided by an embodiment of the present disclosure. The technical solution of this embodiment, based on the above embodiment, obtains interactive participation data corresponding to the first interactive data, and determines a second progress indicator based on the first progress indicator, so as to generate second interactive data corresponding to the first interactive data based on the interactive participation data and the second progress indicator. For specific implementation methods, please refer to the description of this embodiment. Technical features that are the same or similar to those of the above embodiment will not be repeated here.
[0133] like Figure 4 As shown, the method of this embodiment may specifically include:
[0134] S410: Receive first interaction data sent by an interaction initiating end, and obtain interaction participation data corresponding to the first interaction data generated by an interaction receiving end.
[0135] In this embodiment, the interactive participation data may be feedback data that does not carry a progress indicator and corresponds to the first interactive data. The interactive participation data may be data providing feedback on the interactive resources included in the first interactive data. For example, if the interactive resources included in the first interactive data are musical accompaniment data, the interactive participation data may be a sing-along video of the musical accompaniment data collected by the interactive receiving end.
[0136] In actual applications, when an interactive relationship has been established between the interactive receiving end and the interactive initiating end, the interactive receiving end receives the first interactive data sent by the interactive initiating end and displays the interactive resources included in the first interactive data, so as to determine the feedback data on the interactive resources collected by the interactive receiving end during the display of the interactive resources, and use the feedback data as the interactive participation data corresponding to the first interactive data.
[0137] Exemplarily, the interactive resource included in the first interactive data is music accompaniment data, and the interactive participation data is a sing-along video of the music accompaniment data collected by the interactive receiving end. Then, when the interactive receiving end receives the first interactive data, the music accompaniment data included in the first interactive data can be displayed based on the interactive receiving end. At the same time, the camera device set in the interactive receiving end can be used to collect the user's sing-along video of the displayed music accompaniment data. Furthermore, the collected sing-along video of the user's music accompaniment data can be used as the interactive participation data corresponding to the first interactive data.
[0138] S420: Determine a second progress identifier corresponding to the interactive participation data based on the first progress identifier corresponding to the first interactive data, and use the interactive participation data and the second progress identifier as second interactive data corresponding to the first interactive data.
[0139] In this embodiment, after obtaining the interactive participation data corresponding to the first interactive data, each frame of the interactive participation data may be marked to obtain a second progress indicator corresponding to the interactive participation data.
[0140] In actual applications, when marking interactive participation data, a first progress identifier corresponding to the first interactive data may be obtained, so as to determine a second progress identifier corresponding to the interactive participation data based on the first progress identifier corresponding to the first interactive data.
[0141] Optionally, determining the second progress identifier corresponding to the interactive participation data based on the first progress identifier corresponding to the first interactive data includes: obtaining the first progress identifier corresponding to the first interactive data, and using the first progress identifier as the second progress identifier corresponding to the interactive participation data.
[0142] In a specific implementation, when obtaining interactive participation data, the first progress indicator carried in the first interactive data can be obtained. This first progress indicator can then be used as the second progress indicator corresponding to the interactive participation data, thereby allowing the interactive participation data and the second progress indicator to be used as the second interactive data corresponding to the first interactive data. This arrangement has the advantage of establishing a progress association relationship between the first interactive data and the second interactive data based on the first and second progress indicators, thereby enhancing the correlation between the first and second interactive data and laying the foundation for the subsequent data merging process.
[0143] It should be noted that when determining the second progress identifier corresponding to the interactive participation data, it is also possible to determine the progress identifier corresponding to the first progress identifier based on a pre-established identifier mapping relationship after obtaining the first progress identifier carried in the first interactive data, and then, the determined progress identifier can be used as the second progress identifier corresponding to the interactive participation data.
[0144] S430. Transmit the second interactive data to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data, and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0145] The technical solution of the disclosed embodiment receives first interaction data sent by an interaction initiating end, obtains interaction participation data corresponding to the first interaction data generated by an interaction receiving end, further determines a second progress identifier corresponding to the interaction participation data based on a first progress identifier corresponding to the first interaction data, and uses the interaction participation data and the second progress identifier as second interaction data corresponding to the first interaction data. Finally, the second interaction data is transmitted to the interaction initiating end, so that the interaction initiating end determines target interaction data corresponding to the interaction initiating end based on the cached first interaction data, the first progress identifier, the second interaction data, and the second progress identifier, and transmits the target interaction data to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art that the display progress of interactive resources in the viewing data received by the viewing end is out of sync with the display progress of feedback data, resulting in poor display effects on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display effect of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end.
[0146] Figure 5This is a flow chart of a data interaction method provided by an embodiment of the present disclosure. The technical solution of this embodiment is based on the above embodiment. The first interactive data includes interactive resources and text acquisition information corresponding to the interactive resources, so as to obtain target text information corresponding to the interactive resources based on the text acquisition information, and associate the target text information with the interactive resources for display. For specific implementation methods, please refer to the description of this embodiment. Technical features that are the same or similar to those in the above embodiment will not be repeated here.
[0147] like Figure 5 As shown, the method of this embodiment may specifically include:
[0148] S510: Receive first interaction data sent by an interaction initiator, and generate second interaction data corresponding to the first interaction data.
[0149] S520: Transmit the second interactive data to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data, and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0150] S530: Acquire target text information corresponding to the interactive resource included in the first interactive data based on the text acquisition information, and associate the target text information with the interactive resource for display.
[0151] In this embodiment, the text acquisition information may be information representing the corresponding text acquisition method. Optionally, the text acquisition information may include at least one of the text storage path, the text acquisition path, and the text acquisition method. The target text information may be information representing the corresponding resource in text form. For example, if the interactive resource is music accompaniment data, the target text information may be the lyrics corresponding to the music accompaniment data.
[0152] In this embodiment, a text information acquisition control can be developed in advance and set in a display interface corresponding to the interactive resources included in the second interactive data and the first interactive data. In the process of displaying the interactive resources and the corresponding second interactive data based on the interactive receiving end, if the user triggers the text information acquisition control, the text acquisition information corresponding to the interactive resources included in the first interactive data can be obtained.
[0153] In actual applications, for the interactive receiving end, while generating the second interactive data corresponding to the first interactive data, the second interactive data and the interactive resources included in the first interactive data can also be displayed simultaneously in the display interface corresponding to the interactive receiving end. During the display process, when the user's text acquisition operation for the target text information corresponding to the interactive resource is detected, the text acquisition information corresponding to the interactive resource included in the first interactive data can be obtained. Furthermore, based on the text acquisition information, the target text information corresponding to the interactive resource included in the first interactive data can be obtained, and then the acquired target text information can be associated with the interactive resource for display.
[0154] It should be noted that the text acquisition operation for the target text information corresponding to the interactive resource can be responded to while the interactive resource is displayed on the interactive receiving end, that is, when the interactive resource is displayed on the interactive receiving end, the target text information corresponding to the interactive resource can be acquired based on the text acquisition information, and the target text information can be associated with the interactive resource for display; or, the text acquisition operation for the interactive resource can be responded to during the process of the interactive resource being displayed on the interactive receiving end, that is, when the interactive resource is displayed on the interactive receiving end, when the user's text acquisition operation for the target text information corresponding to the interactive resource is detected, the operation can be responded to, the target text information corresponding to the interactive resource can be acquired based on the text acquisition information, and the target text information can be associated with the interactive resource for display. At this time, when performing the associated display, the current display progress of the interactive resource based on the interactive receiving end can be determined first, so as to perform a positioning query in the target text information based on the display progress, so that the queried target text information can be associated with the interactive resource currently displayed on the interactive receiving end for display.
[0155] In actual applications, when this embodiment is applied to a live chorus scene, the interactive resource includes musical accompaniment data; the text acquisition information includes a lyrics storage path; and the target text information includes lyrics information. Accordingly, the target text information corresponding to the interactive resource included in the first interactive data is acquired based on the text acquisition information, and the target text information is displayed in association with the interactive resource. This includes: accessing the target storage space based on the lyrics storage path to acquire the lyrics information corresponding to the musical accompaniment data included in the first interactive data from the target storage space; synchronizing the lyrics information with the progress of the musical accompaniment data, and displaying the synchronized lyrics information in conjunction with the musical accompaniment data.
[0156] In this embodiment, the lyrics storage path may be a path representing a location where the lyrics are stored. The target storage space may be a space for storing lyrics information corresponding to the music accompaniment data.
[0157] In actual applications, when a user's text acquisition operation for the target text information corresponding to the interactive resource is detected, the lyrics storage path corresponding to the music accompaniment data can be determined first. Afterwards, the target storage space storing the lyrics information can be accessed according to the determined lyrics storage path. Afterwards, when the first interactive data is determined, the identifier corresponding to the music accompaniment data included in the first interactive data can be determined. Then, the lyrics information corresponding to the identifier can be retrieved from the target storage space according to the identifier. Furthermore, the playback progress of the music accompaniment data in the first interactive data can be determined, so as to perform a positioning query in the retrieved lyrics information based on the playback progress. Then, the lyrics information is synchronized with the progress of the music accompaniment data according to the positioning query result. Thus, the synchronized lyrics information and the music accompaniment data can be displayed in conjunction.
[0158] The technical solution of the embodiment of the present disclosure generates second interactive data corresponding to the first interactive data by receiving first interactive data sent by an interactive initiating end, and further transmits the second interactive data to the interactive initiating end, so that the interactive initiating end determines the target interactive data corresponding to the interactive initiating end based on the cached first interactive data, the first progress identifier, the second interactive data, and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interactive initiating end, obtains the target text information corresponding to the interactive resource included in the first interactive data based on the text acquisition information, associates the target text information with the interactive resource for display, achieves the effect of mutual matching between the display progress of the first interactive data and the display progress of the second interactive data in the target interactive data, and achieves the effect of synchronous display of the target text information and the interactive resource, thereby improving the display effect of the interactive viewing end, and enhancing the user experience of the interactive initiating end, the interactive receiving end and the interactive viewing end for the application software.
[0159] Figure 6 This is a flow chart of a data interaction method provided by the embodiment of the present disclosure. The embodiment of the present disclosure is an optional embodiment of the above disclosed embodiments. The data interaction method between the interaction initiator and the interaction receiver can be described by taking the scene of chorus between two live broadcast rooms as an example. Figure 6 As shown, the method of the embodiment of the present disclosure may include the following steps:
[0160] 1. When the live broadcast room A and the live broadcast room B have established a chorus interactive relationship, at time T1, the first interactive data corresponding to the live broadcast room A (i.e. Figure 6 The first interactive data is sent to the live broadcast room B through the server, and at the same time, the video data corresponding to the live broadcast room A is obtained, and the first interactive data and the video data are cached (i.e. Figure 6The first interactive data may include the audio data collected by the live broadcast room A and the corresponding first progress mark TS (i.e. Figure 6 AudioA in) and interactive resources (i.e. Figure 6 In order to intuitively understand the singing situation of the interactive resources in the live broadcast room A and enrich the display effect of the live broadcast room in the display interface. The first interactive data includes the audio data collected by the live broadcast room A and the corresponding first progress mark TS (i.e. Figure 6 In addition to the AudioA) and interactive resources, it can also include the video data corresponding to the live broadcast room A that has been obtained;
[0161] 2. For live broadcast room B, when receiving the first interactive data, it can generate the second interactive data corresponding to the first interactive data (i.e. Figure 6 The second interactive data can include the audio data collected by Room B and the corresponding second progress indicator, which can be the first progress indicator obtained from Audio A. If the first interactive data includes the acquired video data corresponding to Room A, the second interactive data can also include the video data corresponding to Room B. The advantage of this setting is that it can more intuitively understand the chorus situation of Room A and Room B for the interactive resources, thereby improving the chorus display effect of the live rooms.
[0162] 3. For live broadcast room A, at time T2, the second interactive data corresponding to the first interactive data obtained at time T1 is received, and based on the second progress indicator included in data B, the cached first interactive data and video data are backtracked (i.e. Figure 6 TS search), such as Figure 6 As shown, data a, data b, data c, data d, data e, data f, data g, and data h are all cached audio data frames, and data 1, data 2, data 3, data 4, data 5, data 6, data 7, and data 8 are all cached video data frames;
[0163] 4. Based on the second progress indicator included in data B, determine the audio data frame corresponding to time T1 from the cached audio data sequence as data e, and simultaneously determine the video data frame corresponding to time T1 from the cached video data sequence as data 5;
[0164] 5. Combine data e, data 5 and data B to obtain the target interactive data corresponding to live broadcast room A (i.e. Figure 6The data frame sequence includes data e, data 5 and data B), and calls the Real Time Messaging Protocol (RTMP) , RTMP ) Or the CDN interface sends the target interactive data to the corresponding audience end of live broadcast room A;
[0165] 5. For live broadcast room A, the data that can be viewed by live broadcast room A on the display interface can be determined based on the time when live broadcast room A receives the second interactive data (i.e., time T2). At time T2, the audio data frame corresponding to time T2 is determined from the cached audio data sequence as data h. At the same time, the video data frame corresponding to time T2 is determined from the cached video data sequence as data 8.
[0166] 6. For live broadcast room A, data h, data 8 and data B are merged to obtain the target preview data corresponding to live broadcast room A (i.e. Figure 6 The data frame sequence includes data h, data 8 and data B), and the target preview data is displayed in the live broadcast room A;
[0167] 7. For live broadcast room B, when generating the second interactive data corresponding to the first interactive data, the video data corresponding to live broadcast room B can be obtained (i.e. Figure 6 Data in V);
[0168] 8. For live broadcast room B, data A, data B and data V are merged to obtain the viewing data corresponding to live broadcast room B (i.e. Figure 6 The viewing data is sent to the audience end corresponding to the live broadcast room B by calling the RTMP interface or the CDN interface. At the same time, the display interface displayed by the device end of the live broadcast room B also displays the generated viewing data.
[0169] The technical solution of the disclosed embodiment obtains first interaction data corresponding to an interaction initiating end and caches the first interaction data. This allows the first interaction data to be cached locally while determining the first interaction data, providing a data basis for subsequent data processing. Furthermore, the first interaction data is sent to an interaction receiving end, and second interaction data generated by the interaction receiving end and corresponding to the first interaction data is obtained. This enables data interaction between the interaction initiating end and the interaction receiving end, while ensuring the relevance between the second interaction data and the first interaction data. Finally, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art of the display progress of interactive resources in the viewing data received by the viewing end being out of sync with the display progress of feedback data, resulting in poor display quality on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display quality of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end.
[0170] Figure 7 A schematic diagram of the structure of a data interaction device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the apparatus includes: a first interaction data acquiring module 610 , a first interaction data sending module 620 and a viewing data determining module 630 .
[0171] Among them, the first interactive data acquisition module 610 is used to obtain the first interactive data corresponding to the interactive initiating end and cache the first interactive data, wherein the first interactive data includes a first progress identifier corresponding to the first interactive data; the first interactive data sending module 620 is used to send the first interactive data to the interactive receiving end and obtain the second interactive data corresponding to the first interactive data generated by the interactive receiving end, wherein the second interactive data includes a second progress identifier corresponding to the first progress identifier; the viewing data determination module 630 is used to determine the target interactive data corresponding to the interactive initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and send the target interactive data to the interactive viewing end corresponding to the interactive initiating end.
[0172] Based on the above technical solutions, the first interaction data acquisition module 610 is specifically used to obtain the data to be shared displayed by the interaction initiator, determine the first progress identifier corresponding to the data to be shared, and use the data to be shared and the first progress identifier as the first interaction data corresponding to the interaction initiator.
[0173] On the basis of the above technical solutions, the first interactive data acquisition module 610 includes: an interactive receiving end determination unit and a first interactive data acquisition unit.
[0174] An interaction receiving end determining unit, configured to respond to a data interaction request initiated by an interaction initiating end and determine an interaction receiving end corresponding to the interaction initiating end based on response data corresponding to the data interaction request;
[0175] The first interaction data acquisition unit is configured to acquire first interaction data of the interaction initiating end when the interaction initiating end and the interaction receiving end have established an interaction relationship.
[0176] Based on the above technical solutions, the viewing data determination module 630 includes: a progress matching unit and a viewing data determination unit.
[0177] a progress matching unit, configured to perform progress matching between the cached first interaction data and the second interaction data based on the first progress identifier and the second progress identifier;
[0178] A viewing data determining unit is configured to generate target interaction data corresponding to the interaction initiating end based on the matched first interaction data and the second interaction data.
[0179] Based on the above technical solutions, the progress matching unit is specifically used to determine, from the cached first interaction data, the first interaction data having the same display progress as the second interaction data based on the first progress identifier and the second progress identifier, and use the determined first interaction data as the first interaction data that matches the second interaction data.
[0180] Based on the above technical solutions, the first progress indicator is associated with the data acquisition time corresponding to the first interactive data.
[0181] On the basis of the above technical solutions, the first interactive data includes interactive resources, and the interactive resources include multimedia resources.
[0182] On the basis of the above technical solutions, the interaction initiating end is the first live broadcast room, the interaction receiving end is the second live broadcast room, and the interaction resource is music accompaniment data;
[0183] Correspondingly, the first interactive data acquisition module 610 is specifically used to obtain the audio data of the first live broadcast room as the first interactive data, and add a timestamp to the first interactive data based on the collection time of the first interactive data, and use the timestamp as the first identification data, wherein the audio data includes the audio data collected in the first live broadcast room and the music accompaniment data.
[0184] The technical solution of the disclosed embodiment obtains first interaction data corresponding to an interaction initiating end and caches the first interaction data. This allows the first interaction data to be cached locally while determining the first interaction data, providing a data basis for subsequent data processing. Furthermore, the first interaction data is sent to an interaction receiving end, and second interaction data generated by the interaction receiving end and corresponding to the first interaction data is obtained. This enables data interaction between the interaction initiating end and the interaction receiving end, while ensuring the relevance between the second interaction data and the first interaction data. Finally, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art of the display progress of interactive resources in the viewing data received by the viewing end being out of sync with the display progress of feedback data, resulting in poor display quality on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display quality of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end.
[0185] The data interaction device provided in the embodiments of the present disclosure can execute the data interaction method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0186] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0187] Figure 8 A schematic diagram of the structure of a data interaction device provided by an embodiment of the present disclosure is shown in FIG. Figure 8 As shown, the device includes: a first interactive data receiving module 710 and a second interactive data transmitting module 720.
[0188] Among them, the first interactive data receiving module 710 is used to receive the first interactive data sent by the interaction initiating end, and generate second interactive data corresponding to the first interactive data, wherein the first interactive data carries a first progress identifier, and the second interactive data carries a second progress identifier corresponding to the first progress identifier; the second interactive data transmission module 720 is used to transmit the second interactive data to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0189] On the basis of the above technical solutions, the first interactive data receiving module 710 includes: an interactive participation data acquiring unit and a second interactive data generating unit.
[0190] an interactive participation data acquisition unit, configured to acquire interactive participation data generated by the interactive receiving terminal and corresponding to the first interactive data;
[0191] The second interaction data generating unit is configured to determine a second progress identifier corresponding to the interaction participation data based on a first progress identifier corresponding to the first interaction data, and use the interaction participation data and the second progress identifier as second interaction data corresponding to the first interaction data.
[0192] On the basis of the above technical solutions, the second interactive data generating unit is specifically configured to obtain a first progress identifier corresponding to the first interactive data, and use the first progress identifier as a second progress identifier corresponding to the interactive participation data.
[0193] On the basis of the above technical solutions, the interaction initiator is the first live broadcast room, and the interaction receiver is the second live broadcast room; the first interaction data is the audio data of the first live broadcast room; and the interaction participation data is the audio data of the second live broadcast room;
[0194] Correspondingly, the second interaction data generating unit includes: a first progress indicator determining subunit and a second interaction data determining subunit.
[0195] A first progress indicator determination subunit is configured to obtain a timestamp indicating a time when the first interactive data was collected as a first progress indicator corresponding to the audio data of the first live broadcast room;
[0196] The second interactive data determination subunit is used to add the first progress identifier as the second progress identifier to the audio data of the second live broadcast room to obtain second interactive data.
[0197] Based on the above technical solutions, the first interactive data includes the interactive resource and text acquisition information corresponding to the interactive resource;
[0198] The device further includes: a target text information acquisition module.
[0199] The target text information acquisition module is configured to acquire target text information corresponding to the interactive resource and included in the first interactive data based on the text acquisition information, and associate the target text information with the interactive resource for display.
[0200] On the basis of the above technical solutions, the interactive resource includes music accompaniment data, the text acquisition information includes lyrics storage path, and the target text information includes lyrics information;
[0201] Correspondingly, the target text information acquisition module includes: a lyrics information acquisition unit and a linkage display unit.
[0202] a lyrics information acquiring unit, configured to access a target storage space based on the lyrics storage path, so as to acquire lyrics information corresponding to the music accompaniment data included in the first interactive data from the target storage space;
[0203] The linkage display unit is used to synchronize the progress of the lyrics information with the music accompaniment data, and to display the synchronized lyrics information and the music accompaniment data in a linkage manner.
[0204] The technical solution of the disclosed embodiment obtains first interaction data corresponding to an interaction initiating end and caches the first interaction data. This allows the first interaction data to be cached locally while determining the first interaction data, providing a data basis for subsequent data processing. Furthermore, the first interaction data is sent to an interaction receiving end, and second interaction data generated by the interaction receiving end and corresponding to the first interaction data is obtained. This enables data interaction between the interaction initiating end and the interaction receiving end, while ensuring the relevance between the second interaction data and the first interaction data. Finally, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end. This solves the problem in the prior art of the display progress of interactive resources in the viewing data received by the viewing end being out of sync with the display progress of feedback data, resulting in poor display quality on the viewing end display interface. This achieves a matching effect between the display progress of the first interaction data and the display progress of the second interaction data in the target interaction data, thereby improving the display quality of the interactive viewing end and enhancing the user experience of the application software for the interaction initiating end, the interaction receiving end, and the interactive viewing end.
[0205] The data interaction device provided in the embodiments of the present disclosure can execute the data interaction method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0206] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0207] Figure 9 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 9 , which shows an electronic device (eg Figure 9 The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0208] like Figure 9 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.
[0209] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 9The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0210] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0211] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0212] The electronic device provided by the embodiment of the present disclosure and the data interaction method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0213] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the data interaction method provided in the above embodiment.
[0214] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0215] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0216] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0217] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0218] Acquire first interaction data corresponding to the interaction initiator, and cache the first interaction data, wherein the first interaction data includes a first progress indicator corresponding to the first interaction data;
[0219] Sending the first interaction data to an interaction receiving end, and obtaining second interaction data generated by the interaction receiving end and corresponding to the first interaction data, wherein the second interaction data includes a second progress indicator corresponding to the first progress indicator;
[0220] Based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end.
[0221] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device:
[0222] receiving first interaction data sent by an interaction initiator, and generating second interaction data corresponding to the first interaction data, wherein the first interaction data includes a first progress indicator corresponding to the first interaction data, and the second interaction data includes a second progress indicator corresponding to the first progress indicator;
[0223] The second interactive data is transmitted to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0224] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0225] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0226] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0227] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0228] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0229] According to one or more embodiments of the present disclosure, [Example 1] provides a data interaction method, which is applied to an interaction initiator, including:
[0230] Acquire first interaction data corresponding to the interaction initiator, and cache the first interaction data, wherein the first interaction data includes a first progress indicator corresponding to the first interaction data;
[0231] Sending the first interaction data to an interaction receiving end, and obtaining second interaction data generated by the interaction receiving end and corresponding to the first interaction data, wherein the second interaction data includes a second progress indicator corresponding to the first progress indicator;
[0232] Based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end.
[0233] According to one or more embodiments of the present disclosure, [Example 2] provides the method of Example 1, further comprising:
[0234] Optionally, obtaining the first interaction data corresponding to the interaction initiator includes: obtaining the data to be shared displayed by the interaction initiator, determining a first progress identifier corresponding to the data to be shared, and using the data to be shared and the first progress identifier as the first interaction data corresponding to the interaction initiator.
[0235] According to one or more embodiments of the present disclosure, [Example 3] provides the method of Example 1, further comprising:
[0236] Optionally, obtaining the first interaction data of the interaction initiating end includes: responding to a data interaction request initiated by the interaction initiating end, determining the interaction receiving end corresponding to the interaction initiating end based on the response data corresponding to the data interaction request; and obtaining the first interaction data of the interaction initiating end when the interaction initiating end and the interaction receiving end have established an interactive relationship.
[0237] According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 1, further comprising:
[0238] Optionally, determining the target interaction data corresponding to the interaction initiator based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier includes: performing progress matching on the cached first interaction data and the second interaction data based on the first progress identifier and the second progress identifier; and generating the target interaction data corresponding to the interaction initiator based on the matched first interaction data and the second interaction data.
[0239] According to one or more embodiments of the present disclosure, [Example 5] provides the method of Example 4, further comprising:
[0240] Optionally, the progress matching of the cached first interaction data with the second interaction data based on the first progress identifier and the second progress identifier includes: determining the first interaction data having the same display progress as the second interaction data from the cached first interaction data based on the first progress identifier and the second progress identifier, and using the determined first interaction data as the first interaction data that matches the second interaction data.
[0241] According to one or more embodiments of the present disclosure, [Example 6] provides the method of Example 1, further comprising:
[0242] Optionally, the first progress indicator is associated with a data acquisition time corresponding to the first interactive data.
[0243] According to one or more embodiments of the present disclosure, [Example 7] provides the method of Example 1, further comprising:
[0244] Optionally, the first interactive data includes interactive resources, and the interactive resources include multimedia resources.
[0245] According to one or more embodiments of the present disclosure, [Example 8] provides the method of Example 7, further comprising:
[0246] Optionally, the interaction initiating end is the first live broadcast room, the interaction receiving end is the second live broadcast room, and the interaction resource is music accompaniment data; obtaining the first interaction data corresponding to the interaction initiating end includes: obtaining the audio data of the first live broadcast room as the first interaction data, and adding a timestamp to the first interaction data based on the collection time of the first interaction data, and using the timestamp as the first identification data, wherein the audio data includes the audio data collected in the first live broadcast room and the music accompaniment data.
[0247] According to one or more embodiments of the present disclosure, [Example 9] provides a data interaction method, which is applied to an interaction receiving end and includes:
[0248] receiving first interaction data sent by an interaction initiator, and generating second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress identifier, and the second interaction data carries a second progress identifier corresponding to the first progress identifier;
[0249] The second interactive data is transmitted to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
[0250] According to one or more embodiments of the present disclosure, [Example 10] provides the method of Example 9, further including: optionally, the generating of second interaction data corresponding to the first interaction data includes: obtaining interaction participation data corresponding to the first interaction data generated by the interaction receiving end; determining the second progress identifier corresponding to the interaction participation data based on the first progress identifier corresponding to the first interaction data, and using the interaction participation data and the second progress identifier as the second interaction data corresponding to the first interaction data.
[0251] According to one or more embodiments of the present disclosure, [Example 11] provides the method of Example 10, further comprising:
[0252] Optionally, determining the second progress identifier corresponding to the interactive participation data based on the first progress identifier corresponding to the first interactive data includes: obtaining the first progress identifier corresponding to the first interactive data, and using the first progress identifier as the second progress identifier corresponding to the interactive participation data.
[0253] According to one or more embodiments of the present disclosure, [Example 12] provides the method of Example 10, further comprising:
[0254] Optionally, the interaction initiator is the first live broadcast room, and the interaction receiver is the second live broadcast room; the first interaction data is the audio data of the first live broadcast room; the interaction participation data is the audio data of the second live broadcast room; and the generation of the second interaction data corresponding to the first interaction data includes: obtaining a timestamp indicating the collection time of the first interaction data as a first progress identifier corresponding to the audio data of the first live broadcast room; adding the first progress identifier as a second progress identifier to the audio data of the second live broadcast room to obtain the second interaction data.
[0255] According to one or more embodiments of the present disclosure, [Example 13] provides the method of Example 9, further comprising:
[0256] The first interactive data includes the interactive resource and text acquisition information corresponding to the interactive resource; the data interaction method also includes: acquiring target text information corresponding to the interactive resource included in the first interactive data based on the text acquisition information, and associating the target text information with the interactive resource for display.
[0257] According to one or more embodiments of the present disclosure, [Example 14] provides the method of Example 13, further comprising:
[0258] Optionally, the interactive resource includes music accompaniment data, the text acquisition information includes a lyrics storage path, and the target text information includes lyrics information; the target text information corresponding to the interactive resource included in the first interactive data is obtained based on the text acquisition information, and the target text information is displayed in association with the interactive resource, including: accessing the target storage space based on the lyrics storage path to obtain lyrics information corresponding to the music accompaniment data included in the first interactive data from the target storage space; synchronizing the lyrics information with the progress of the music accompaniment data, and displaying the synchronized lyrics information in conjunction with the music accompaniment data.
[0259] According to one or more embodiments of the present disclosure, [Example 15] provides a data interaction device, which is configured at an interaction initiating end and includes:
[0260] A first interaction data acquisition module, configured to acquire first interaction data corresponding to the interaction initiator and cache the first interaction data, wherein the first interaction data carries a first progress indicator;
[0261] a first interaction data sending module, configured to send the first interaction data to an interaction receiving terminal, and obtain second interaction data corresponding to the first interaction data and generated by the interaction receiving terminal, wherein the second interaction data carries a second progress indicator corresponding to the first progress indicator;
[0262] A viewing data determination module is used to determine target interaction data corresponding to the interaction initiating end based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, and send the target interaction data to the interactive viewing end corresponding to the interaction initiating end.
[0263] According to one or more embodiments of the present disclosure, [Example 16] provides a data interaction device, which is configured at an interaction receiving end and includes:
[0264] A first interaction data receiving module, configured to receive first interaction data sent by an interaction initiator, and generate second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress identifier, and the second interaction data carries a second progress identifier corresponding to the first progress identifier;
[0265] The second interactive data transmission module is used to transmit the second interactive data to the interactive initiating end, so that the interactive initiating end determines the target interactive data corresponding to the interactive initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interactive initiating end.
[0266] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0267] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0268] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A data interaction method, characterized in that: Applied to the interaction initiator, including: Acquire first interaction data corresponding to the interaction initiator, and cache the first interaction data, wherein the first interaction data carries a first progress indicator; Sending the first interaction data to an interaction receiving end, and obtaining second interaction data generated by the interaction receiving end and corresponding to the first interaction data, wherein the second interaction data carries a second progress identifier corresponding to the first progress identifier; Based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, target interaction data corresponding to the interaction initiating end is determined, and the target interaction data is sent to the interaction viewing end corresponding to the interaction initiating end.
2. The data interaction method according to claim 1, characterized in that: The obtaining of first interaction data corresponding to the interaction initiating end includes: The data to be shared displayed by the interaction initiator is acquired, a first progress identifier corresponding to the data to be shared is determined, and the data to be shared and the first progress identifier are used as first interaction data corresponding to the interaction initiator.
3. The data interaction method according to claim 1, characterized in that: The obtaining of first interaction data corresponding to the interaction initiating end includes: In response to a data interaction request initiated by an interaction initiating end, determining an interaction receiving end corresponding to the interaction initiating end based on response data corresponding to the data interaction request; In a case where the interaction initiating end and the interaction receiving end have established an interaction relationship, first interaction data corresponding to the interaction initiating end is obtained.
4. The data interaction method according to claim 1, characterized in that: The determining, based on the cached first interaction data, the first progress indicator, the second interaction data, and the second progress indicator, target interaction data corresponding to the interaction initiator includes: Based on the first progress identifier and the second progress identifier, performing progress matching on the cached first interaction data and the second interaction data; Target interaction data corresponding to the interaction initiator is generated based on the matched first interaction data and the second interaction data.
5. The data interaction method according to claim 4, characterized in that: The performing progress matching on the cached first interaction data and the second interaction data based on the first progress identifier and the second progress identifier includes: Based on the first progress identifier and the second progress identifier, the first interaction data having the same presentation progress as the second interaction data is determined from the cached first interaction data, and the determined first interaction data is used as the first interaction data matching the second interaction data.
6. The data interaction method according to claim 1, characterized in that: The first progress indicator is associated with a data acquisition time corresponding to the first interactive data.
7. The data interaction method according to claim 1, characterized in that: The first interactive data includes interactive resources, and the interactive resources include multimedia resources.
8. The data interaction method according to claim 7, characterized in that: The interaction initiating end is the first live broadcast room, the interaction receiving end is the second live broadcast room, and the interaction resource is music accompaniment data; The obtaining of first interaction data corresponding to the interaction initiating end includes: The audio data of the first live broadcast room is obtained as the first interactive data, and a timestamp is added to the first interactive data based on the collection time of the first interactive data, and the timestamp is used as the first identification data, wherein the audio data includes the audio data collected in the first live broadcast room and the music accompaniment data.
9. A data interaction method, characterized in that: Applied to interactive receiving end, including: receiving first interaction data sent by an interaction initiator, and generating second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress identifier, and the second interaction data carries a second progress identifier corresponding to the first progress identifier; The second interactive data is transmitted to the interaction initiating end, so that the interaction initiating end determines the target interactive data corresponding to the interaction initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interaction initiating end.
10. The data interaction method according to claim 9, characterized in that: The generating of second interaction data corresponding to the first interaction data includes: Acquiring interactive participation data generated by the interactive receiving end and corresponding to the first interactive data; A second progress identifier corresponding to the interactive participation data is determined based on a first progress identifier corresponding to the first interactive data, and the interactive participation data and the second progress identifier are used as second interactive data corresponding to the first interactive data.
11. The data interaction method according to claim 10, characterized in that: The determining, based on the first progress indicator corresponding to the first interaction data, the second progress indicator corresponding to the interaction participation data includes: A first progress identifier corresponding to the first interactive data is obtained, and the first progress identifier is used as a second progress identifier corresponding to the interactive participation data.
12. The data interaction method according to claim 10, characterized in that: The interaction initiating end is the first live broadcast room, and the interaction receiving end is the second live broadcast room; the first interaction data is the audio data of the first live broadcast room; The interactive participation data is the audio data of the second live broadcast room; The generating of second interaction data corresponding to the first interaction data includes: Obtaining a timestamp indicating a collection time of the first interactive data as a first progress indicator corresponding to the audio data of the first live broadcast room; The first progress identifier is added as a second progress identifier to the audio data of the second live broadcast room to obtain second interaction data.
13. The data interaction method according to claim 9, characterized in that: The first interactive data includes interactive resources and text acquisition information corresponding to the interactive resources; The data interaction method further includes: Target text information corresponding to the interactive resource included in the first interactive data is acquired based on the text acquisition information, and the target text information is associated with the interactive resource for display.
14. The data interaction method according to claim 13, characterized in that: The interactive resource includes music accompaniment data, the text acquisition information includes lyrics storage path, and the target text information includes lyrics information; The acquiring target text information corresponding to the interactive resource included in the first interactive data based on the text acquisition information, and associating and displaying the target text information with the interactive resource, includes: accessing a target storage space based on the lyrics storage path to obtain lyrics information corresponding to the music accompaniment data included in the first interactive data from the target storage space; The lyrics information is synchronized with the progress of the music accompaniment data, and the synchronized lyrics information and the music accompaniment data are displayed in a linked manner.
15. A data interaction device, characterized in that: Configuration on the interaction initiator includes: A first interaction data acquisition module, configured to acquire first interaction data corresponding to the interaction initiator and cache the first interaction data, wherein the first interaction data carries a first progress indicator; a first interaction data sending module, configured to send the first interaction data to an interaction receiving terminal, and obtain second interaction data generated by the interaction receiving terminal and corresponding to the first interaction data, wherein the second interaction data carries a second progress identifier corresponding to the first progress identifier; A viewing data determination module is used to determine target interaction data corresponding to the interaction initiating end based on the cached first interaction data, the first progress identifier, the second interaction data and the second progress identifier, and send the target interaction data to the interactive viewing end corresponding to the interaction initiating end.
16. A data interaction device, characterized in that: Configured on the interactive receiving end, including: a first interaction data receiving module, configured to receive first interaction data sent by an interaction initiator, and generate second interaction data corresponding to the first interaction data, wherein the first interaction data carries a first progress indicator, and the second interaction data carries a second progress indicator corresponding to the first progress indicator; The second interactive data transmission module is used to transmit the second interactive data to the interactive initiating end, so that the interactive initiating end determines the target interactive data corresponding to the interactive initiating end based on the cached first interactive data, the first progress identifier, the second interactive data and the second progress identifier, and sends the target interactive data to the interactive viewing end corresponding to the interactive initiating end.
17. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for 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 data interaction method as described in any one of claims 1-8 or 9-14.
18. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the data interaction method as described in any one of claims 1-8 or 9-14.
Citation Information
Patent Citations
Data playing method and device, electronic equipment and storage medium
CN113382272A
Interaction method and device, terminal and storage medium
CN113518264A