Content sharing method, apparatus, computer device, and storage medium
By placing the identifiers of multiple terminals into the same resource pool in the online 3D exhibition hall through the server and using a network metronome to synchronize the playback progress, the technical problem of multiple people browsing the exhibition at the same time is solved, and the unified playback and progress maintenance of content on multiple terminals are realized.
Patent Information
- Application Number
- CN202211093791.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-09-08
AI Technical Summary
Current technology has not yet enabled online guided tours where multiple people can visit an exhibition together and one person can provide explanations, especially in online 3D exhibition halls where it is impossible to achieve synchronized and collaborative playback of content across multiple terminals.
The server receives the sharing request from the first terminal, puts its identifier into the same resource pool as the identifier of the second terminal that meets the preset requirements, and uses a network metronome to synchronize the playback progress, so as to achieve unified playback and progress maintenance of content on multiple terminals.
It enables multiple people to view a 3D exhibition hall online simultaneously with one person providing narration, solving the technical challenge of content sharing across multiple terminals and meeting the exhibition browsing needs of exhibitors.
Smart Images

Figure CN116319609B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of artificial intelligence, in particular to a content sharing method and device, computer equipment, storage medium and computer program product. BACKGROUND
[0002] With the rapid development of technology, a mode of combining offline exhibitions with online exhibitions and holding them synchronously has gradually emerged, such as the Canton Fair, the China-ASEAN Expo, the China-Intelligence Expo, and the Digital China, which can expand the audience and influence of the exhibition, and meet the needs of manufacturers who cannot participate in the exhibition and users who do not want to go to the exhibition.
[0003] Currently, various 3D modeling companies have realized the construction and deployment of online 3D exhibition halls, and users can freely go to the exhibition in the 3D exhibition hall in the form of a 3D virtual image and interact with the display content and exhibits inside the exhibition hall. However, the online leading exhibition service based on multiple people going to the exhibition and one person performing interpretation has not been realized. SUMMARY
[0004] Therefore, it is necessary to provide a content sharing method, device, computer equipment, computer readable storage medium and computer program product capable of realizing content sharing of multiple terminals in view of the above technical problems.
[0005] In a first aspect, the present application provides a content sharing method applied to a server, which comprises
[0006] receiving a sharing request sent by a first terminal, and broadcasting the sharing request to a second terminal meeting a preset requirement;
[0007] when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool;
[0008] in response to a playing request sent by the first terminal, synchronizing a playing content to the first terminal and the second terminal in the same resource pool; and the first terminal in the same resource pool synchronizes a playing progress to the second terminal through a network metronome.
[0009] In one of the embodiments, before receiving the sharing request sent by the first terminal, the method comprises:
[0010] obtaining login information uploaded by the first terminal and the second terminal;
[0011] obtaining preset allocation information;
[0012] allocating the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0013] In one embodiment, after the first terminal identifier and the second terminal identifier are put into the same resource pool, the method further comprises:
[0014] masking the play request sent by the second terminal in the same resource pool.
[0015] In one embodiment, the synchronizing the play content to the first terminal and the second terminal in the same resource pool comprises:
[0016] obtaining a preset splitting condition;
[0017] splitting the play content into a plurality of sub-files according to the preset splitting condition, and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0018] In a second aspect, the application provides a content sharing method applied to a first terminal, the method comprising:
[0019] sending a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and putting an identifier of the first terminal and an identifier of the second terminal into the same resource pool when the second terminal responds to the sharing request sent by the first terminal;
[0020] sending a play request to the server when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool;
[0021] receiving the play content sent by the server and synchronizing the play progress to the second terminal through a network metronome.
[0022] In one embodiment, the receiving the play content sent by the server and synchronizing the play progress to the second terminal through the network metronome comprises:
[0023] obtaining a preset time interval;
[0024] generating a timestamp corresponding to the play content according to the preset time interval;
[0025] sending the timestamp corresponding to the play content to the second terminal, the timestamp corresponding to the play content being used to instruct the second terminal to synchronize the play progress according to the play content and the timestamp corresponding to the play content.
[0026] In a third aspect, the application provides a content sharing method applied to a second terminal, the method comprising:
[0027] receiving a sharing request sent by a first terminal broadcasted by a server;
[0028] feedback a response information corresponding to the sharing request to the server, the response information being used to indicate that the server puts the identity of the first terminal and the identity of the second terminal into a same resource pool;
[0029] receive the playing content sent by the server and the playing progress synchronized by the first terminal through a network metronome.
[0030] In one of the embodiments, the receiving the playing content sent by the server and the playing progress synchronized by the first terminal through a network metronome comprises:
[0031] receiving the playing content sent by the server and the time stamp corresponding to the playing content sent by the first terminal;
[0032] synchronizing the playing progress of the playing content according to the time stamp of the playing content.
[0033] In a fourth aspect, the present application provides a content sharing system, comprising a server, a first terminal and a second terminal, the server, the first terminal and the second terminal being communicatively connected with each other;
[0034] The server is configured to receive a sharing request sent by the first terminal, and broadcast the sharing request to a second terminal meeting a preset requirement; when the second terminal responds to the sharing request sent by the first terminal, put the identity of the first terminal and the identity of the second terminal into a same resource pool; and in response to a playing request sent by the first terminal, synchronize playing content to the first terminal and the second terminal in the same resource pool; the first terminal in the same resource pool synchronizes playing progress to the second terminal through a network metronome;
[0035] The first terminal is configured to send a sharing request to the server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and when the second terminal responds to the sharing request sent by the first terminal, put the identity of the first terminal and the identity of the second terminal into a same resource pool; when the identity of the first terminal and the identity of the second terminal are put into the same resource pool, send a playing request to the server; receive the playing content sent by the server and synchronize playing progress to the second terminal through a network metronome;
[0036] The second terminal is configured to receive a sharing request sent by the first terminal and broadcast the sharing request to a second terminal meeting a preset requirement; receive response information corresponding to the sharing request from the second terminal, the response information being used to indicate that the server puts an identifier of the first terminal and an identifier of the second terminal into a same resource pool; and receive a playing content and a playing progress synchronized by the first terminal through a network metronome.
[0037] In a fifth aspect, the present application provides a content sharing device applied to a server, the device comprising:
[0038] a receiving module configured to receive a sharing request sent by a first terminal and broadcast the sharing request to a second terminal meeting a preset requirement;
[0039] a dividing module configured to put an identifier of the first terminal and an identifier of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal;
[0040] a responding module configured to synchronize a playing content to the first terminal and the second terminal in the same resource pool in response to a playing request sent by the first terminal; and synchronize a playing progress of the first terminal in the same resource pool to the second terminal through a network metronome.
[0041] In an embodiment, the device further comprises:
[0042] a first obtaining module configured to obtain login information uploaded by the first terminal and the second terminal;
[0043] a second obtaining module configured to obtain preset allocation information;
[0044] an identifier allocation module configured to allocate the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0045] In an embodiment, the device further comprises:
[0046] a shielding module configured to shield the playing request sent by the second terminal in the same resource pool.
[0047] In an embodiment, the responding module comprises:
[0048] a third obtaining unit configured to obtain a preset splitting condition;
[0049] a splitting unit configured to split the playing content into a plurality of sub-files according to the preset splitting condition and sequentially synchronize the plurality of sub-files to the first terminal and the second terminal.
[0050] In a sixth aspect, the present application provides a content sharing device applied to a first terminal, the device comprising:
[0051] a sharing request sending module configured to send a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting preset requirements, and put an identifier of the first terminal and an identifier of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal;
[0052] a playing request sending module configured to send a playing request to the server when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool;
[0053] a synchronizing module configured to receive the playing content sent by the server and synchronize a playing progress to the second terminal through a network metronome.
[0054] In one of the embodiments, the synchronizing module comprises:
[0055] a fourth obtaining unit configured to obtain a preset time interval;
[0056] a timestamp generating unit configured to generate a timestamp corresponding to the playing content according to the preset time interval;
[0057] a timestamp sending unit configured to send the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content.
[0058] In a seventh aspect, the present application provides a content sharing device applied to a second terminal, the device comprising:
[0059] a sharing request receiving module configured to receive a sharing request sent by a first terminal and broadcasted by a server;
[0060] a request responding module configured to feed back response information corresponding to the sharing request to the server, the response information being used to instruct the server to put an identifier of the first terminal and an identifier of the second terminal into a same resource pool;
[0061] a timestamp receiving module configured to receive playing content sent by the server and a playing progress synchronized by the first terminal through a network metronome.
[0062] In one of the embodiments, the timestamp receiving module comprises:
[0063] a second receiving module configured to receive the playing content sent by the server and the timestamp corresponding to the playing content sent by the first terminal;
[0064] a synchronizing unit, configured to synchronize a playing progress of the playing content according to a timestamp of the playing content.
[0065] In an eighth aspect, a computer device is provided, which includes a memory and a processor. The memory stores a computer program. The processor implements the steps of the method in any one of the above embodiments when executing the computer program.
[0066] In a ninth aspect, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps of the method in any one of the above embodiments.
[0067] In a tenth aspect, a computer program product is provided, which includes a computer program. The computer program is executed by a processor to implement the steps of the method in any one of the above embodiments.
[0068] The content sharing method, device, computer device, storage medium and computer program product have the following advantages. The server receives a sharing request sent by a first terminal, broadcasts the sharing request to a second terminal meeting a preset requirement, puts an identifier of the first terminal and an identifier of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal, and synchronizes a playing content to the first terminal and the second terminal in the same resource pool in response to a playing request sent by the first terminal. The first terminal in the same resource pool synchronizes a playing progress to the second terminal through a network metronome. Since the server puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the first terminal and the second terminal in the same resource pool can share the content. The playing content is synchronized to the first terminal and the second terminal in the same resource pool, and the playing content is synchronized to the second terminal by the first terminal through the network metronome. Thus, the first terminal can start playing, control a playing file block and stop playing by the control of the network metronome, so that different second terminals can watch the hot playing content according to the progress of the first terminal, thereby realizing the online exhibition service with one person performing commentary. BRIEF DESCRIPTION OF DRAWINGS
[0069] Figure 1 An application environment diagram of the content sharing method in one embodiment;
[0070] Figure 2 A flowchart of the content sharing method in one embodiment;
[0071] Figure 3 A flowchart of the content sharing method in another embodiment;
[0072] Figure 4Flowchart of content sharing method in other embodiments;
[0073] Figure 5 Content sharing diagram of 3D exhibition hall in one embodiment;
[0074] Figure 6 System principle diagram in one embodiment;
[0075] Figure 7 Structure block diagram of content sharing device in one embodiment;
[0076] Figure 8 Structure block diagram of content sharing device in another embodiment;
[0077] Figure 9 Structure block diagram of content sharing device in other embodiments;
[0078] Figure 10 Internal structure diagram of computer device in one embodiment. DETAILED DESCRIPTION
[0079] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application.
[0080] The content sharing method provided by the embodiments of the present application can be applied to, for example, Figure 1The application environment is shown. Among them, the server 102, the first terminal 104 and the first terminal 106 are connected with each other. The data storage system can store the data required by the server 104 to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The first terminal 104 sends a sharing request to the server 102, and broadcasts the sharing request to the second terminal 106 meeting the preset requirements. After the second terminal 106 receives the sharing request sent by the first terminal 104 broadcasted by the server 102, the server 102 feeds back the response information corresponding to the sharing request; when the second terminal 106 responds to the sharing request sent by the first terminal 104, the server 102 puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool; when the first terminal 104 and the second terminal 106 are in the same resource pool, the first terminal 104 sends a play request to the server 102, and the server 102 responds to the play request sent by the first terminal 104, and synchronizes the play content to the first terminal 104 and the second terminal 106 in the same resource pool; the first terminal 104 receives the play content sent by the server 102 and synchronizes the play progress to the second terminal 106 through the network metronome, and the second terminal 106 receives the play content sent by the server 102 and the play progress synchronized by the first terminal 104 through the network metronome, so as to realize the consistency of the play progress with the first terminal 104. Among them, the server 102 can be realized by an independent server or a server cluster composed of multiple servers. The terminal 102 and the terminal 104 can be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and the like.
[0081] In one embodiment, as shown in Figure 2 , a content sharing method applied to a server is provided. Taking the server 102 in Figure 1 as an example, the method includes the following steps:
[0082] S202, receiving a sharing request sent by a first terminal, and broadcasting the sharing request to a second terminal meeting preset requirements.
[0083] Among them, the sharing request refers to the request sent by the first terminal, inviting other terminal users to share content together; the first terminal refers to the terminal that initiates content sharing, and the terminal that synchronizes the play progress of the second terminal.
[0084] Among them, the preset requirements refer to the requirements of the range of terminals that the first terminal can invite, such as terminals in the same 3D exhibition hall, or terminals online at a preset time, etc.
[0085] When the server receives the sharing request sent by the first terminal, the sharing request is broadcasted to the second terminal meeting the preset requirement, so that the second terminal meeting the preset requirement can receive the sharing request broadcasted by the server and actively respond to the sharing request sent by the first terminal.
[0086] Optionally, the sharing request further comprises a sharing identifier, wherein the sharing identifier refers to an identifier of the second terminal set by the first terminal and broadcasted by the server, for example, if the sharing identifier is [1, 2, 4, 6], the server broadcasts to the second terminal with the identifier 1, 2, 4, and 6.
[0087] Optionally, after receiving the sharing request sent by the first terminal, the server further judges the sharing request according to a preset type, for example, if the preset type in a 3D exhibition hall is a sharing time of 10:00-16:00, when the first terminal sends the sharing request, the server further judges the sharing request according to the preset type, that is, judges whether the time when the first terminal sends the sharing request is in the preset type, if the preset type is met, the sharing request is forwarded, if not, the corresponding error type information is sent to the first terminal, such as “the time period is not in the sharing time range, the sharing time of the exhibition hall is 10:00-16:00, please adjust the time of initiating the sharing request”. In other embodiments, the preset type can be set according to the actual application scene, such as the permission type, which is not limited in the embodiment.
[0088] S204, when the second terminal responds to the sharing request sent by the first terminal, the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool.
[0089] The resource pool refers to all texts, pictures, videos, hyperlinks and the like carried by the exhibition hall.
[0090] When the second terminal responds to the sharing request sent by the first terminal, that is, after the second terminal agrees to the sharing request sent by the first terminal, the server puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool, so that multiple terminals in the same resource pool can realize content sharing.
[0091] Optionally, the first terminal can be a guide terminal, and the second terminal can be a user terminal, the guide terminal initiates the sharing request, and after the user terminal responds to the sharing request, that is, after the user terminal confirms to join the sharing request initiated by the guide terminal, the server puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool.
[0092] S206, in response to the play request sent by the first terminal, synchronizing the play content to the first terminal and the second terminal in the same resource pool; the first terminal in the same resource pool synchronizes the play progress to the second terminal through a network metronome.
[0093] The play request is an instruction for requesting to play the play content; the network metronome is for synchronizing the play of the second terminal according to the play progress of the first terminal
[0094] Specifically, the first terminal can send a play request to the server, and the server synchronizes the play content to the first terminal and the second terminal in the same resource pool after receiving the play request sent by the first terminal, wherein the first terminal in the same resource pool can synchronize the play progress to the second terminal through a network metronome, that is, the play progress of the second terminal keeps consistent with that of the first terminal.
[0095] Optionally, the play request further includes a corresponding play identifier, and the server synchronizes the play content corresponding to the play identifier to the first terminal and the second terminal according to the play identifier. For example, if the first terminal wants to play the background introduction of the exhibition hall, it can send the identifier corresponding to the background introduction of the exhibition hall to the server together with the play request. The server will synchronize the play content corresponding to the play identifier to the first terminal and the second terminal in the same resource pool according to the play identifier carried in the play request.
[0096] Optionally, when the server receives the close play request sent by the first terminal, the server synchronizes the content play of the second terminal in the same resource pool to be closed, and opens the play request of the second terminal. At the same time, the first terminal and the second terminal are released from the same resource pool.
[0097] Optionally, the server can compress the play content before synchronizing it to the first terminal and the second terminal, and the first terminal and the second terminal receive the compressed play content for decompression and play, which can improve the data transmission efficiency and reduce the communication cost.
[0098] In the content sharing method, the server receives a sharing request sent by the first terminal, broadcasts the sharing request to the second terminal meeting preset requirements, puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool when the second terminal responds to the sharing request sent by the first terminal, and synchronizes the playing content to the first terminal and the second terminal in the same resource pool in response to the playing request sent by the first terminal. The first terminal in the same resource pool synchronizes the playing progress to the second terminal through a network metronome. Since the server puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the first terminal and the second terminal in the same resource pool can share the content. Then, the playing content is synchronized to the first terminal and the second terminal in the same resource pool, the first terminal in the same resource pool synchronizes the playing progress to the second terminal through the network metronome, and the playing content is synchronized to the second terminal through the network metronome. Thus, the first terminal can start playing, control the playing file block and stop playing through the control of the network metronome, so that different second terminals can watch the hot playing content according to the progress of the first terminal, thereby realizing the online exhibition service of one person performing commentary.
[0099] In one embodiment, before receiving the sharing request sent by the first terminal, the method comprises: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; and allocating the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0100] The login information refers to information used by the first terminal and the second terminal when logging in to the server, such as an account name, a mobile phone number, and an ID name.
[0101] The preset allocation information refers to information that can allocate corresponding identifiers to the first terminal and the second terminal, which can be a preset table.
[0102] When the first terminal and the second terminal log in to the server, the server will receive the login information uploaded by the first terminal and the second terminal. Thus, the server can allocate corresponding identifiers of the first terminal and the second terminal to the first terminal and the second terminal according to the preset allocation information.
[0103] Optionally, the server can allocate the identifier of the first terminal and the identifier of the second terminal according to a preset rule. For example, in a certain scenario, each terminal needs to take turns to act as the first terminal, i.e., the commentator terminal. Thus, the server can allocate the identifier of the first terminal and the identifier of the second terminal according to a preset rule, wherein the preset rule can be a polling algorithm or a weighted polling algorithm.
[0104] In the above embodiment, the server allocates corresponding identities to the first terminal and the second terminal according to the login information and the preset allocation information, so that the first terminal and the second terminal can be put into the same resource pool according to the corresponding identities of the first terminal and the second terminal, and the content sharing of the first terminal and the second terminal can be ensured.
[0105] In one embodiment, after the identity of the first terminal and the identity of the second terminal are put into the same resource pool, the server further screens the play request sent by the second terminal in the same resource pool.
[0106] Specifically, after the identity of the first terminal and the identity of the second terminal are put into the same resource pool, the server further screens the play request sent by the second terminal in the same resource pool to prevent conflict with the active play of the first terminal. The active play refers to synchronizing the play progress of other terminals based on the play progress of the first terminal.
[0107] Optionally, the server can screen the play request sent by the second terminal in the same resource pool according to the identity of the second terminal.
[0108] In the above embodiment, the server screens the play request sent by the second terminal, which can prevent conflict in the process of synchronizing the play of the first terminal to the second terminal, and further ensure that the first terminal can synchronize the play progress of the second terminal.
[0109] In one embodiment, synchronizing the play content to the first terminal and the second terminal in the same resource pool comprises: obtaining a preset splitting condition; splitting the play content into a plurality of sub-files according to the preset splitting condition, and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0110] The preset splitting condition refers to a preset splitting rule for the play content, for example, splitting the play content into sub-files of a preset size, or a preset number of sub-files, or splitting according to a play point in the play content. For example, the play content includes introductions of three aspects of an exhibition hall, and each aspect is a play point. The server can split the play content into three sub-files.
[0111] Specifically, after obtaining the preset splitting condition, the server splits the play content into a plurality of sub-files according to the preset splitting condition, and synchronizes the plurality of sub-files to the first terminal and the second terminal in sequence.
[0112] For example, if the size of the play content is 100M and the preset size is 5M, the server can split the play content into 20 sub-files of 5M in size, and synchronize the 20 sub-files to the first terminal and the second terminal in sequence according to the play order of the play content.
[0113] In the above embodiment, the server splits the playing content into sub-files of a preset size, and synchronizes the plurality of sub-files to the first terminal and the second terminal in sequence, so that the risk of failure caused by circumventing the server to load the playing content, i.e., the large file, can be avoided.
[0114] In one embodiment, as shown in FIG. 1, a content sharing method applied to a first terminal is provided. Figure 3 The content sharing method applied to the first terminal in the above embodiment is taken as an example for illustration, which includes the following steps. Figure 1
[0115] S302, a sharing request is sent to the server, the sharing request being used to instruct the server to broadcast to a second terminal satisfying a preset requirement, and the identity of the first terminal and the identity of the second terminal being put into a same resource pool when the second terminal responds to the sharing request sent by the first terminal.
[0116] Specifically, after the first terminal logs in the server, the first terminal sends a sharing request to the server. After the server receives the sharing request sent by the first terminal, the server broadcasts to the second terminal satisfying the preset requirement. After the second terminal responds to the sharing request sent by the first terminal, i.e., after the second terminal determines to join the sharing request initiated by the first terminal, the identity of the first terminal and the identity of the second terminal are put into the same resource pool, so that the first terminal and the second terminal in the same resource pool can realize content sharing.
[0117] S304, when the identity of the first terminal and the identity of the second terminal are put into the same resource pool, a playing request is sent to the server.
[0118] Specifically, after the server puts the identity of the first terminal and the identity of the second terminal into the same resource pool, the first terminal sends a playing request to the server. After the server receives the playing request sent by the first terminal, the server synchronizes the playing content to the first terminal and the second terminal.
[0119] S306, the playing content sent by the server is received and the playing progress is synchronized to the second terminal through a network metronome.
[0120] Specifically, after the first terminal receives the playing content sent by the server, the playing progress is synchronized to the second terminal through a network metronome, i.e., the playing progress of the second terminal is kept consistent with that of the first terminal.
[0121] Optionally, the receiving the playing content sent by the server and synchronizing the playing progress to the second terminal through the network metronome comprises: obtaining a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; and sending the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content.
[0122] The preset time interval refers to a preset time interval for generating the timestamp, for example, the time interval can be 200 ms (microsecond), so that the first terminal generates a timestamp every 200 ms (microsecond).
[0123] Specifically, the first terminal obtains a preset time interval, and generates a timestamp corresponding to the playing content according to the preset time interval, and then sends the generated timestamp to the second terminal, so that the second terminal can synchronize the playing progress according to the timestamp corresponding to the playing content, so as to keep the playing progress consistent with that of the first terminal.
[0124] Optionally, the first terminal sends the timestamp corresponding to the sub-file to the second terminal, so that the second terminal adjusts the playing progress of the sub-file synchronized by the server according to the timestamp sent by the first terminal, so as to keep the playing progress of the second terminal consistent with that of the first terminal.
[0125] Optionally, if the preset splitting condition of the server is to split the playing content into sub-files of a preset size, the size of the sub-file, i.e. the playing duration of the sub-file, needs to be consistent with the preset time interval of the first terminal, so that the second terminal can adjust the playing progress of the current playing content according to the timestamp.
[0126] In the above embodiment, the first terminal synchronizes the multimedia playing progress of the second terminal through the network metronome, so as to match the playing progress requirement of the first terminal, and thus the second terminal can watch the playing content according to the progress of the first terminal.
[0127] In one embodiment, as shown in Figure 4 , a content sharing method applied to a second terminal is provided, which is taken as an example of the second terminal 106 in Figure 1 for illustration, comprising the following steps:
[0128] S402, receiving the shared request sent by the first terminal broadcasted by the server.
[0129] S404, feeding back response information corresponding to the shared request to the server, the response information being used to instruct the server to put the identifier of the first terminal and the identifier of the second terminal into the same resource pool.
[0130] Specifically, after the second terminal receives the sharing request sent by the first terminal broadcast by the server, it responds to the sharing request and generates response information corresponding to the sharing request. When the server receives the response information sent by the second terminal, the server puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool so that the first terminal and the second terminal in the same resource pool can share content.
[0131] S406 receives the playback content sent by the server and the playback progress synchronized by the first terminal through the network metronome.
[0132] Specifically, the second terminal receives the playback content sent by the server, and then synchronizes the playback progress with the first terminal via a network metronome, so that the playback progress of the second terminal is consistent with that of the first terminal.
[0133] Optionally, receiving the playback content sent by the server and the playback progress synchronized by the first terminal via the network metronome includes: receiving the timestamps corresponding to the playback content sent by the server and the playback content sent by the first terminal; and synchronizing the playback progress of the playback content according to the timestamps of the playback content.
[0134] Specifically, the second terminal receives the playback content sent by the server and the timestamp corresponding to the playback content sent by the first terminal, and synchronizes the playback progress of the playback content according to the timestamp corresponding to the playback content, so that the playback progress of the second terminal is consistent with that of the first terminal.
[0135] Optionally, the playback progress of the sub-file is synchronized based on the timestamps corresponding to the sub-files sent by the receiving service and the sub-files sent by the first terminal.
[0136] For example, the server simultaneously plays content to the first terminal, namely sub-file 1, sub-file 2, ... sub-file N. When the first terminal receives sub-file 1 and starts playing it, it generates a timestamp and sends the timestamp to the second terminal. In this way, when the second terminal receives sub-file 1, it can play it according to the timestamp corresponding to sub-file 1, thereby keeping the playback progress of the second terminal consistent with that of the first terminal.
[0137] In the above embodiment, the first terminal receives a sharing request broadcast by the server and sends a response information corresponding to the sharing request back to the server. The response information is used to instruct the server to put the identifiers of the first terminal and the second terminal into the same resource pool. The server sends playback content and the playback progress synchronized by the first terminal through the network metronome, so as to keep the playback progress consistent with the first terminal.
[0138] In one exemplary embodiment, such as Figure 5 As shown, Figure 5As a content sharing schematic diagram of a 3D exhibition hall in an embodiment, in the embodiment, the first terminal is a guide terminal, the second terminal is a user terminal, the sharing request is a tour request, and the hotspot information is playing content. Specifically, there are the following steps: 1, when the user logs in the online exhibition hall, the online exhibition hall allocates a specific user identifier to the user; 2, the online exhibition hall allocates a unique guide ID to the guide; 3, the guide initiates a tour request in the exhibition hall space, and the users in the exhibition hall will receive a tour notification, and after the user clicks to confirm, the user enters the guide tour link; 4, the system adds the ID of the user participating in the tour to the tour resource pool; 5, during the guide process, the guide opens the hotspot, that is, sends a playing request to the system. The hotspot starts playing picture or video content; 6, the system automatically synchronizes the hotspot content to the resource pool user, and the user in the resource pool can see the hotspot information opened by the guide. Wherein, the online 3D exhibition hall: a 3D exhibition hall presented on the Internet. By replicating or migrating the offline exhibition to the online, the audience of the exhibition is greatly enriched, meeting the needs of exhibitors and users for not being restricted by space and time, and is a new exhibition presentation form; the exhibition hall hotspot: the hotspot is a marked point in the exhibition hall. The user can access high-definition pictures, videos, and text links by clicking the hotspot, and understand the exhibition information carried by the hotspot in detail.
[0139] Wherein, the system principle is as shown in Figure 6 Figure 6 As a system principle schematic diagram in an embodiment, specifically includes the following steps: 1, the server allocates different user IDs to the logged-in users, and allocates a guide ID to the guide; 2, the server encodes the user ID of the user who joins the specified guide into the same guide group together with the guide ID; 3, shield the hotspot playing function of the user ID encoded into the unified guide group; 4, when the guide in the guide group opens the hotspot, the guide synchronizes the hotspot file playing operation to the users in the same group, that is, the users in the same resource pool, specifically, the server will split the hotspot information into sub-files of a preset size and synchronize them to the users; 5, establish a network metronome to synchronize the playing progress of different user terminals, so that it is synchronized with the hotspot content playing of the guide terminal; 6, after the guide closes the hotspot, the guide synchronously closes the hotspot playing of each user terminal in the same group.
[0140] In the above embodiment, first, the multimedia playing progress of each terminal is synchronized by establishing a network metronome to match the guide content and guide progress requirements; second, by block transmission of the hotspot information, the instantaneous traffic impact on the server during multi-terminal large file transmission can be effectively reduced, and server congestion caused by malicious requests can be avoided.
[0141] It should be understood that although the steps in the flowcharts involved in the embodiments described above are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the embodiments described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of the steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0142] Based on the same inventive concept, the embodiments of the present application also provide a content sharing device for implementing the content sharing method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more content sharing device embodiments provided below can refer to the limitations of the content sharing method described above, which will not be repeated here.
[0143] In one embodiment, as shown in Figure 7 a content sharing device applied to a server is provided, comprising: a receiving module 100, a division module 200 and a response module 300, wherein:
[0144] The receiving module 100 is configured to receive a sharing request sent by a first terminal, and broadcast the sharing request to a second terminal that meets a preset requirement.
[0145] The division module 200 is configured to, when the second terminal responds to the sharing request sent by the first terminal, put the identifier of the first terminal and the identifier of the second terminal into the same resource pool.
[0146] The response module 300 is configured to, in response to a playing request sent by the first terminal, synchronize the playing content to the first terminal and the second terminal in the same resource pool; and the first terminal in the same resource pool synchronizes the playing progress to the second terminal through a network metronome.
[0147] In one embodiment, the device described above further comprises:
[0148] The first obtaining module is configured to obtain login information uploaded by the first terminal and the second terminal.
[0149] The second obtaining module is configured to obtain preset allocation information.
[0150] The identifier allocation module is configured to allocate the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0151] In one embodiment, the apparatus further comprises:
[0152] a shielding module configured to shield a play request sent by a second terminal in the same resource pool.
[0153] In one embodiment, the response module 300 comprises:
[0154] a third obtaining unit configured to obtain a preset splitting condition;
[0155] a splitting unit configured to split the play content into a plurality of sub-files according to the preset splitting condition, and synchronously transmit the plurality of sub-files to the first terminal and the second terminal in sequence.
[0156] In one embodiment, as shown in Figure 8 there is provided a content sharing apparatus applied to a first terminal, comprising a receiving module 400, a division module 500 and a response module 600, wherein:
[0157] the sharing request sending module 400 is configured to send a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and put an identifier of the first terminal and an identifier of the second terminal into the same resource pool when the second terminal responds to the sharing request sent by the first terminal;
[0158] the play request sending module 500 is configured to send a play request to the server when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool;
[0159] the synchronization module 600 is configured to receive the play content sent by the server and synchronize the play progress to the second terminal through a network metronome.
[0160] In one embodiment, the synchronization module comprises:
[0161] a fourth obtaining unit configured to obtain a preset time interval;
[0162] a timestamp generating unit configured to generate a timestamp corresponding to the play content according to the preset time interval;
[0163] a timestamp sending unit configured to send the timestamp corresponding to the play content to the second terminal, the timestamp corresponding to the play content being used to instruct the second terminal to synchronize the play progress according to the play content and the timestamp corresponding to the play content.
[0164] In one embodiment, as shown in Figure 9 there is provided a content sharing apparatus applied to a second terminal, comprising a sharing request receiving module 700, a request response module 800 and a timestamp receiving module 900, wherein:
[0165] The shared request receiving module 700 is configured to receive a shared request sent by a first terminal and broadcast by a server.
[0166] The request response module 800 is configured to feed back response information corresponding to the shared request to the server, and the response information is used to instruct the server to put the identifier of the first terminal and the identifier of the second terminal into the same resource pool.
[0167] The timestamp receiving module 900 is configured to receive the playing content sent by the server and the playing progress synchronized by the first terminal through a network metronome.
[0168] In an embodiment, the timestamp receiving module described above comprises:
[0169] The second receiving module is configured to receive the playing content sent by the server and the timestamp corresponding to the playing content sent by the first terminal;
[0170] The synchronized unit is configured to synchronize the playing progress of the playing content according to the timestamp of the playing content.
[0171] The modules in the content sharing device described above can be realized by software, hardware and combinations thereof in whole or in part. The modules described above can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the modules.
[0172] In an embodiment, a computer device is provided, which can be a server, and the internal structure diagram thereof can be as shown in Figure 10 The computer device comprises a processor, a memory and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store playing content. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a content sharing method.
[0173] Those skilled in the art can understand that Figure 10 the structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can comprise more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0174] In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: receiving a sharing request sent by a first terminal, and broadcasting the sharing request to a second terminal meeting a preset requirement; when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; in response to a playing request sent by the first terminal, synchronizing a playing content to the first terminal and the second terminal in the same resource pool; and synchronizing a playing progress to the second terminal by a network metronome by the first terminal in the same resource pool.
[0175] In one embodiment, before the processor implements the step of receiving the sharing request sent by the first terminal, the processor further implements the following steps when executing the computer program: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; and allocating the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0176] In one embodiment, after the processor implements the step of putting the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the processor further implements the following step when executing the computer program: shielding a playing request sent by the second terminal in the same resource pool.
[0177] In one embodiment, the processor implements the step of synchronizing the playing content to the first terminal and the second terminal in the same resource pool by executing the computer program, comprising: obtaining a preset splitting condition; splitting the playing content into a plurality of sub-files according to the preset splitting condition; and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0178] In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: sending a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool, sending a playing request to the server; and receiving a playing content sent by the server and synchronizing a playing progress to the second terminal by a network metronome.
[0179] In one embodiment, the processor implements the step of receiving the playing content sent by the server and synchronizing the playing progress to the second terminal by the network metronome by executing the computer program, comprising: obtaining a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; and sending the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content.
[0180] In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: receiving a sharing request sent by a first terminal and broadcasted by a server; feeding back response information corresponding to the sharing request to the server, the response information being used to indicate that the server puts an identity of the first terminal and an identity of a second terminal into a same resource pool; receiving playing content sent by the server and playing progress synchronized by the first terminal through a network metronome.
[0181] In one embodiment, the processor implements the following step when executing the computer program: receiving playing content sent by the server and a timestamp corresponding to the playing content sent by the first terminal; and synchronizing playing progress of the playing content according to the timestamp of the playing content.
[0182] In one embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program is executed by a processor to implement the following steps: receiving a sharing request sent by a first terminal and broadcasting the sharing request to a second terminal satisfying a preset requirement; when the second terminal responds to the sharing request sent by the first terminal, putting an identity of the first terminal and an identity of the second terminal into a same resource pool; in response to a playing request sent by the first terminal, synchronizing playing content to the first terminal and the second terminal in the same resource pool; and the first terminal in the same resource pool synchronizes playing progress to the second terminal through a network metronome.
[0183] In one embodiment, the computer program is executed by the processor to implement the following step before receiving the sharing request sent by the first terminal: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; and according to the login information and the preset allocation information, allocating the identity of the first terminal and the identity of the second terminal.
[0184] In one embodiment, the computer program is executed by the processor to implement the following step after putting the identity of the first terminal and the identity of the second terminal into the same resource pool: shielding a playing request sent by the second terminal in the same resource pool.
[0185] In one embodiment, the computer program is executed by the processor to implement the following step of synchronizing the playing content to the first terminal and the second terminal in the same resource pool: obtaining a preset splitting condition; according to the preset splitting condition, splitting the playing content into a plurality of sub-files, and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0186] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: receiving a sharing request sent by a first terminal, and broadcasting the sharing request to a second terminal meeting a preset requirement; when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; in response to a playing request sent by the first terminal, synchronizing a playing content to the first terminal and the second terminal in the same resource pool; and the first terminal in the same resource pool synchronizes a playing progress to the second terminal through a network metronome.
[0187] In one embodiment, before the computer program is executed by the processor to receive the sharing request sent by the first terminal, the computer program is further executed by the processor to implement the following steps: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; and allocating the identifier of the first terminal and the identifier of the second terminal according to the login information and the preset allocation information.
[0188] In one embodiment, after the computer program is executed by the processor to put the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the computer program is further executed by the processor to implement the following steps: shielding a playing request sent by the second terminal in the same resource pool.
[0189] In one embodiment, the computer program is further executed by the processor to implement the following steps after synchronizing the playing content to the first terminal and the second terminal in the same resource pool: obtaining a preset splitting condition; splitting the playing content into a plurality of sub-files according to the preset splitting condition, and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0190] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: sending a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool, sending a playing request to the server; and receiving a playing content sent by the server and synchronizing a playing progress to the second terminal through a network metronome.
[0191] In one embodiment, the computer program is further executed by the processor to implement the following steps after receiving the playing content sent by the server and synchronizing the playing progress to the second terminal through the network metronome: obtaining a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; and sending the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content.
[0192] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: receiving a sharing request sent by a first terminal and broadcasted by a server; feeding back response information corresponding to the sharing request to the server, and the response information is used to indicate that the server puts an identifier of the first terminal and an identifier of a second terminal into a same resource pool; receiving playing content sent by the server and playing progress synchronized by the first terminal through a network metronome.
[0193] In one embodiment, the computer program executed by the processor further implements receiving the playing content sent by the server and the playing progress synchronized by the first terminal through the network metronome, and the receiving includes: receiving the playing content sent by the server and a timestamp corresponding to the playing content sent by the first terminal; and synchronizing the playing progress of the playing content according to the timestamp of the playing content.
[0194] In one embodiment, a computer program product is provided, and the computer program product includes a computer program, and the computer program is executed by a processor to implement the following steps: receiving a sharing request sent by a first terminal and broadcasting the sharing request to a second terminal satisfying a preset requirement; when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; in response to a playing request sent by the first terminal, synchronizing playing content to the first terminal and the second terminal in the same resource pool; and the first terminal in the same resource pool synchronizes playing progress to the second terminal through a network metronome.
[0195] In one embodiment, before the computer program executed by the processor receives the sharing request sent by the first terminal, the computer program executed by the processor further implements the following steps: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; and according to the login information and the preset allocation information, allocating the identifier of the first terminal and the identifier of the second terminal.
[0196] In one embodiment, after the computer program executed by the processor puts the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the computer program executed by the processor further implements the following steps: shielding a playing request sent by the second terminal in the same resource pool.
[0197] In one embodiment, the computer program executed by the processor synchronizes the playing content to the first terminal and the second terminal in the same resource pool, and the synchronizing includes: obtaining a preset splitting condition; according to the preset splitting condition, splitting the playing content into a plurality of sub-files, and synchronizing the plurality of sub-files to the first terminal and the second terminal in sequence.
[0198] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps: sending a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal that meets preset requirements, and placing an identity of the first terminal and an identity of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal; sending a playing request to the server when the identity of the first terminal and the identity of the second terminal are placed into the same resource pool; and receiving playing content sent by the server and synchronizing a playing progress to the second terminal through a network metronome.
[0199] In one embodiment, the computer program which, when executed by a processor, implements the receiving playing content sent by the server and synchronizing the playing progress to the second terminal through the network metronome comprises: obtaining a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; and sending the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content.
[0200] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps: receiving a sharing request sent by a first terminal broadcasted by a server; feeding back response information corresponding to the sharing request to the server, the response information being used to instruct the server to place an identity of the first terminal and an identity of the second terminal into a same resource pool; and receiving playing content sent by the server and a playing progress synchronized by the first terminal through a network metronome.
[0201] In one embodiment, the computer program which, when executed by a processor, implements the receiving playing content sent by the server and the playing progress synchronized by the first terminal through the network metronome comprises: receiving the playing content sent by the server and a timestamp corresponding to the playing content sent by the first terminal; and synchronizing a playing progress of the playing content according to the timestamp of the playing content.
[0202] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0203] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0204] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A content sharing method, characterized by, The method applied to a server comprises: receiving a sharing request sent by a first terminal and broadcasting the sharing request to a second terminal meeting preset requirements; when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; in response to a playing request sent by the first terminal, synchronizing playing content to the first terminal and the second terminal in the same resource pool; the first terminal in the same resource pool synchronizes playing progress to the second terminal through a network metronome; the synchronizing of the playing content to the first terminal and the second terminal in the same resource pool comprises: obtaining preset splitting conditions; according to the preset splitting conditions, splitting the playing content into multiple sub-files and synchronizing the multiple sub-files to the first terminal and the second terminal in sequence; the first terminal obtains a preset time interval; according to the preset time interval, generates a timestamp corresponding to the playing content; sends the timestamp corresponding to the playing content to the second terminal, which is used to instruct the second terminal to synchronize playing progress according to the playing content and the timestamp corresponding to the playing content; the playing time length of the sub-file is consistent with the preset time interval.
2. The method of claim 1, wherein, before the receiving of the sharing request sent by the first terminal, the method comprises: obtaining login information uploaded by the first terminal and the second terminal; obtaining preset allocation information; according to the login information and the preset allocation information, allocating the identifier of the first terminal and the identifier of the second terminal.
3. The method of claim 1, wherein, after the putting of the identifier of the first terminal and the identifier of the second terminal into the same resource pool, the method further comprises: shielding the playing request sent by the second terminal in the same resource pool.
4. A content sharing method characterized by, The method applied to a first terminal comprises: sending a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting preset requirements and, when the second terminal responds to the sharing request sent by the first terminal, putting an identifier of the first terminal and an identifier of the second terminal into a same resource pool; when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool, sending a playing request to the server; receiving playing content sent by the server and synchronizing playing progress to the second terminal through a network metronome; the server obtains preset splitting conditions; according to the preset splitting conditions, splits the playing content into multiple sub-files and synchronizes the multiple sub-files to the first terminal and the second terminal in sequence; The receiving the playing content sent by the server and synchronizing the playing progress to the second terminal through the network metronome comprises: obtaining a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; sending the timestamp corresponding to the playing content to the second terminal, and the timestamp corresponding to the playing content is used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content; and the playing duration of the sub-file is consistent with the preset time interval.
5. A content sharing method characterized by, The method applied to the second terminal comprises: receiving the sharing request sent by the first terminal broadcasted by the server; feeding back response information corresponding to the sharing request to the server, and the response information is used to instruct the server to put the identity of the first terminal and the identity of the second terminal into the same resource pool; receiving the playing content sent by the server and the playing progress synchronized by the first terminal through the network metronome; the server obtains a preset splitting condition; the playing content is split into multiple sub-files according to the preset splitting condition, and the multiple sub-files are sequentially synchronized to the first terminal and the second terminal; The receiving the playing content sent by the server and the playing progress synchronized by the first terminal through the network metronome comprises: receiving the playing content sent by the server and the timestamp corresponding to the playing content sent by the first terminal; synchronizing the playing progress of the playing content according to the timestamp of the playing content; and the playing duration of the sub-file is consistent with the preset time interval.
6. A content sharing system characterized by, The server, the first terminal and the second terminal are mutually communicated and connected; The server is used to receive the sharing request sent by the first terminal, broadcast the sharing request to the second terminal satisfying the preset requirement, put the identity of the first terminal and the identity of the second terminal into the same resource pool when the second terminal responds to the sharing request sent by the first terminal, synchronize the playing content to the first terminal and the second terminal in the same resource pool in response to the playing request sent by the first terminal, and synchronize the playing progress to the second terminal through the network metronome by the first terminal in the same resource pool; The synchronizing the playing content to the first terminal and the second terminal in the same resource pool comprises: obtaining a preset splitting condition; splitting the playing content into multiple sub-files according to the preset splitting condition, and sequentially synchronizing the multiple sub-files to the first terminal and the second terminal; the first terminal obtains a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; sending the timestamp corresponding to the playing content to the second terminal, and the timestamp corresponding to the playing content is used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content; and the playing duration of the sub-file is consistent with the preset time interval. The first terminal is configured to send a sharing request to a server, the sharing request being configured to instruct the server to broadcast to a second terminal satisfying a preset requirement, and put an identifier of the first terminal and an identifier of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal; send a playing request to the server when the identifier of the first terminal and the identifier of the second terminal are put into the same resource pool; receive playing content sent by the server and synchronize a playing progress to the second terminal through a network metronome; the server acquires a preset splitting condition; split the playing content into a plurality of sub-files according to the preset splitting condition, and synchronize the plurality of sub-files to the first terminal and the second terminal in sequence; the receiving the playing content sent by the server and synchronizing the playing progress to the second terminal through the network metronome comprises: acquiring a preset time interval; generating a timestamp corresponding to the playing content according to the preset time interval; sending the timestamp corresponding to the playing content to the second terminal, the timestamp corresponding to the playing content being configured to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content; and a playing duration of the sub-file is consistent with the preset time interval; The second terminal is configured to receive the sharing request sent by the first terminal broadcasted by the server; feed back response information corresponding to the sharing request to the server, the response information being configured to instruct the server to put the identifier of the first terminal and the identifier of the second terminal into the same resource pool; receive playing content sent by the server and a playing progress synchronized by the first terminal through a network metronome; the server acquires a preset splitting condition; split the playing content into a plurality of sub-files according to the preset splitting condition, and synchronize the plurality of sub-files to the first terminal and the second terminal in sequence; the receiving the playing content sent by the server and the playing progress synchronized by the first terminal through the network metronome comprises: receiving the playing content sent by the server and a timestamp corresponding to the playing content sent by the first terminal; synchronizing a playing progress of the playing content according to the timestamp of the playing content; and a playing duration of the sub-file is consistent with the preset time interval.
7. A content sharing apparatus characterized by comprising: The application is applied to a server, and the device comprises: a receiving module configured to receive a sharing request sent by a first terminal and broadcast the sharing request to a second terminal satisfying a preset requirement; a dividing module configured to put an identifier of the first terminal and an identifier of the second terminal into a same resource pool when the second terminal responds to the sharing request sent by the first terminal; The response module is configured to synchronize the playing content to the first terminal and the second terminal in the same resource pool in response to the playing request sent by the first terminal; the first terminal in the same resource pool synchronizes the playing progress to the second terminal through a network metronome; the first terminal acquires a preset time interval; a timestamp corresponding to the playing content is generated according to the preset time interval; the timestamp corresponding to the playing content is sent to the second terminal, and the timestamp corresponding to the playing content is used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content; the playing duration of the sub-file is consistent with the preset time interval; The device further comprises: The first acquisition module is configured to acquire login information uploaded by the first terminal and the second terminal; The second acquisition module is configured to acquire preset allocation information; The identification allocation module is configured to allocate an identification of the first terminal and an identification of the second terminal according to the login information and the preset allocation information.
8. The apparatus of claim 7, wherein, The device further comprises: The shielding module is configured to shield the playing request sent by the second terminal in the same resource pool.
9. The apparatus of claim 7, wherein, The response module comprises: The third acquisition unit is configured to acquire a preset splitting condition; The splitting unit is configured to split the playing content into a plurality of sub-files according to the preset splitting condition, and sequentially synchronize the plurality of sub-files to the first terminal and the second terminal.
10. A content sharing apparatus characterized by comprising: The device applied to the first terminal comprises: The sharing request sending module is configured to send a sharing request to a server, the sharing request being used to instruct the server to broadcast to a second terminal meeting a preset requirement, and put an identification of the first terminal and an identification of the second terminal into the same resource pool when the second terminal responds to the sharing request sent by the first terminal; The playing request sending module is configured to send a playing request to the server when the identification of the first terminal and the identification of the second terminal are put into the same resource pool; The synchronization module is configured to receive the playing content sent by the server and synchronize the playing progress to the second terminal through a network metronome; the server acquires a preset splitting condition; the playing content is split into a plurality of sub-files according to the preset splitting condition, and the plurality of sub-files are sequentially synchronized to the first terminal and the second terminal; The synchronization module comprises: The fourth acquisition unit is configured to acquire a preset time interval; The timestamp generation unit is configured to generate a timestamp corresponding to the playing content according to the preset time interval; The timestamp sending unit is configured to send the timestamp corresponding to the playing content to the second terminal, and the timestamp corresponding to the playing content is used to instruct the second terminal to synchronize the playing progress according to the playing content and the timestamp corresponding to the playing content; the playing duration of the sub-file is consistent with the preset time interval.
11. A content sharing apparatus characterized by comprising: The device applied to the second terminal comprises: The sharing request receiving module is configured to receive the sharing request sent by the first terminal broadcasted by the server; The request response module is configured to feed back response information corresponding to the sharing request to the server, and the response information is used to instruct the server to put the identifier of the first terminal and the identifier of the second terminal into the same resource pool. The timestamp receiving module is configured to receive the playing content sent by the server and the playing progress of the first terminal synchronized by the network metronome. The timestamp receiving module comprises: The second receiving module is configured to receive the playing content sent by the server and the timestamp corresponding to the playing content sent by the first terminal. The synchronized unit is configured to synchronize the playing progress of the playing content according to the timestamp of the playing content.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method in any one of claims 1 to 3 or 4 or 5.
13. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 3 or 4 or 5.
14. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 3 or 4 or 6.
Citation Information
Patent Citations
Method and system for transmitting files with large data sizes
CN102752283A
Multi-party video sharing method and device
CN103209360A
Multimedia data progress control method and device and readable storage medium
CN114584838A