CN113542773B - Multimedia resource sharing method and device, electronic equipment and storage medium - Google Patents
Multimedia resource sharing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113542773B CN113542773B CN202110813554.3A CN202110813554A CN113542773B CN 113542773 B CN113542773 B CN 113542773B CN 202110813554 A CN202110813554 A CN 202110813554A CN 113542773 B CN113542773 B CN 113542773B
- Authority
- CN
- China
- Prior art keywords
- data
- vibration
- terminal
- multimedia
- vibration signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/214—Specialised server platform, e.g. server located in an airplane, hotel, hospital
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The method comprises the steps of responding to a received sharing instruction, obtaining multimedia data collected by a first terminal, generating vibration data according to the starting time point of the vibration signal when the first terminal is detected to generate the vibration signal, sending the multimedia data and the vibration data to a target server, enabling the target server to generate corresponding multimedia resources to be shared according to the multimedia data and the vibration data, distributing the multimedia resources to be shared to a second terminal, enabling the second terminal to play the multimedia data according to the multimedia resources to be shared, controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data is reached, sharing the vibration effect on the sharing equipment to a device to be shared, improving user experience, and being beneficial to improving the click rate of the multimedia resources to be shared.
Description
Technical Field
The present disclosure relates to network technologies, and in particular, to a method and an apparatus for sharing multimedia resources, an electronic device, and a storage medium.
Background
With the continuous development of network technology, users can not only click and watch multimedia resources shared by other users on various platforms, but also record the multimedia resources by themselves and share the multimedia resources to other users through various platforms.
In the related art, in order to improve the playing effect of the shared multimedia resource, special effect features are generally added to the picture or audio of the multimedia resource to enhance the audibility and visual appeal of the multimedia resource.
However, the hearing and visual improvement does not enable the user to fully experience the effect of the shared multimedia resource, thereby affecting the click rate of the shared multimedia resource.
Disclosure of Invention
The present disclosure provides a method and an apparatus for sharing multimedia resources, an electronic device, and a storage medium, so as to at least solve the problem of low click rate of shared resources in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, a method for sharing a multimedia resource is provided, where the method includes:
responding to a received sharing instruction, and acquiring multimedia data acquired by a first terminal, wherein the multimedia data carries an acquisition starting time point of the multimedia data;
when the first terminal is detected to generate a vibration signal, generating vibration data according to the starting time point of the vibration signal;
the multimedia data and the vibration data are sent to a target server, the multimedia data and the vibration data are used for indicating the target server to generate multimedia resources to be shared, the multimedia resources to be shared are used for indicating that a second terminal which acquires the multimedia resources to be shared through the target server plays the multimedia data, and the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data is reached.
In one embodiment, after detecting that the first terminal generates a vibration signal, the method further includes: when the vibration signal of the first terminal is detected to stop, recording the stop time point of the vibration signal in the vibration data corresponding to the vibration signal, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data reaches.
In one embodiment, after detecting that the first terminal generates a vibration signal, the method further includes: and acquiring the vibration intensity of the vibration signal, recording the vibration intensity of the vibration signal in vibration data corresponding to the vibration signal, wherein the vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data.
In one embodiment, the vibration data has a unique data identification; the sharing instruction is a live broadcasting instruction; after the multimedia data collected by the first terminal is obtained, the method further includes: and transmitting an audio coding signaling to the target server, writing a data identifier corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal, wherein the audio coding signaling is used for indicating that the second terminal which acquires the multimedia resource to be shared through the target server plays the multimedia data, and reading the corresponding vibration data according to the data identifier in the audio coding signaling.
In one embodiment, the transmitting audio coding signaling to the target server includes: and starting from the detection that the first terminal generates the vibration signal, continuously writing a data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period, and pushing the audio coding signaling written with the data identifier to the target server.
In one embodiment, the target server comprises a content distribution network server and a live broadcast server; the sending the multimedia data and the vibration data to a target server includes: and pushing the multimedia data to the content distribution network server, and sending the vibration data to the live broadcast server through a long connection.
In one embodiment, the sharing instruction is a screen recording instruction; the sending the multimedia data and the vibration data to a target server includes: and when the screen recording instruction is detected to be finished, the multimedia data and the vibration data collected in the recording process are sent to the target server, and the vibration data have unique data identification.
According to a second aspect of the embodiments of the present disclosure, a method for sharing multimedia resources is provided, including:
receiving multimedia data and vibration data collected by a first terminal, wherein the vibration data are generated according to the starting time point of a vibration signal when the first terminal generates the vibration signal, and the multimedia data carry the collection starting time point of the multimedia data;
generating multimedia resources to be shared according to the multimedia data and the vibration data;
and issuing the multimedia resource to the second terminal based on a sharing request of the second terminal to the multimedia resource to be shared, wherein the multimedia resource to be shared is used for indicating the second terminal to play the multimedia data and controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data is reached.
In one embodiment, the vibration signal has a corresponding vibration intensity; the method further comprises the following steps: receiving vibration data including the vibration intensity, which is acquired by the first terminal; the issuing the multimedia resource to the second terminal includes: and issuing the multimedia resource comprising the vibration intensity to the second terminal.
In one embodiment, the vibration data has a unique data identification; the sharing request is a live broadcast request; the receiving of the multimedia data and the vibration data collected by the first terminal includes: receiving vibration data sent by the first terminal through long connection; and receiving multimedia data and an audio coding signaling of the first terminal plug flow, wherein the audio coding signaling is written with a unique data identifier of the vibration data.
In one embodiment, the issuing the multimedia resource to the second terminal includes: sending the vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, streaming the multimedia data and the audio coding signaling to the second terminal.
In one embodiment, the method further comprises: receiving a stop time point of the vibration signal sent by the first terminal through long connection when the first terminal detects that the vibration signal stops; and sending a stop time point of the vibration signal to the second terminal through long connection, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data is reached.
In one embodiment, the sharing request is a resource request, and the vibration data further includes a stop time point of the vibration signal; the receiving of the multimedia data and the vibration data collected by the first terminal includes: and receiving multimedia data collected by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal, wherein the vibration data has a unique data identifier.
According to a third aspect of the embodiments of the present disclosure, there is provided a sharing apparatus for multimedia resources, including:
the multimedia data acquisition module is configured to execute a sharing instruction received in response to acquire multimedia data acquired by a first terminal, wherein the multimedia data carries an acquisition starting time point of the multimedia data;
the vibration data generation module is configured to generate vibration data according to a starting time point of a vibration signal when the first terminal is detected to generate the vibration signal;
the data sending module is configured to execute sending of the multimedia data and the vibration data to a target server, the multimedia data and the vibration data are used for indicating the target server to generate multimedia resources to be shared, the multimedia resources to be shared are used for indicating that a second terminal which obtains the multimedia resources to be shared through the target server plays the multimedia data, and the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data is reached.
In one embodiment, the apparatus further comprises a time recording module configured to perform: when the vibration signal of the first terminal is detected to stop, recording the stop time point of the vibration signal in the vibration data corresponding to the vibration signal, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data reaches.
In one embodiment, the apparatus further includes a vibration intensity obtaining module configured to perform: and when the first terminal generates the vibration signal, acquiring the vibration intensity of the vibration signal, recording the vibration intensity of the vibration signal in the vibration data corresponding to the vibration signal, wherein the vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data.
In one embodiment, the vibration data has a unique data identification; the sharing instruction is a live broadcasting instruction; the data transmission module is further configured to perform: and transmitting an audio coding signaling to the target server, writing a data identifier corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal, wherein the audio coding signaling is used for indicating that the second terminal which acquires the multimedia resource to be shared through the target server plays the multimedia data, and reading the corresponding vibration data according to the data identifier in the audio coding signaling.
In one embodiment, the data transmission module is further configured to perform: and starting from the detection that the first terminal generates the vibration signal, continuously writing a data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period, and pushing the audio coding signaling written with the data identifier to the target server.
In one embodiment, the target server comprises a content distribution network server and a live broadcast server; the data transmission module is further configured to perform: and pushing the multimedia data to the content distribution network server, and sending the vibration data to the live broadcast server through a long connection.
In one embodiment, the sharing instruction is a screen recording instruction; the data transmission module is further configured to perform: and when the screen recording instruction is detected to be finished, the multimedia data and the vibration data collected in the recording process are sent to the target server, wherein the vibration data has a unique data identifier.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a multimedia resource sharing apparatus, including:
the data receiving module is configured to receive multimedia data and vibration data acquired by a first terminal, wherein the vibration data is generated according to a starting time point of a vibration signal when the first terminal generates the vibration signal, and the multimedia data carries the acquisition starting time point of the multimedia data;
the to-be-shared multimedia resource generation module is configured to execute generation of the to-be-shared multimedia resource according to the multimedia data and the vibration data;
the data sending module is configured to execute a sharing request of a second terminal for the multimedia resource to be shared, issue the multimedia resource to the second terminal, and the multimedia resource to be shared is used for indicating the second terminal to play the multimedia data and controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data is reached.
In one embodiment, the vibration signal has a corresponding vibration intensity; the data receiving module is further configured to perform: receiving vibration data including the vibration intensity, which is acquired by the first terminal; the issuing the multimedia resource to the second terminal includes: and issuing the multimedia resource comprising the vibration intensity to the second terminal.
In one embodiment, the vibration data has a unique data identification; the sharing request is a live broadcast request; the data receiving module is further configured to perform: receiving vibration data sent by the first terminal through long connection; and receiving multimedia data and an audio coding signaling of the first terminal plug flow, wherein the audio coding signaling is written with a unique data identifier of the vibration data.
In one embodiment, the data transmission module is configured to perform: sending the vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, streaming the multimedia data and the audio coding signaling to the second terminal.
In one embodiment, the data receiving module is further configured to perform: receiving a stop time point of the vibration signal sent by the first terminal through long connection when the first terminal detects that the vibration signal stops; the data transmission module is further configured to perform: and sending the stop time point of the vibration signal to the second terminal through long connection, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data is reached.
In one embodiment, the sharing request is a resource request, and the vibration data further includes a stop time point of the vibration signal; the data receiving module is further configured to perform: and receiving multimedia data collected by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal, wherein the vibration data has a unique data identifier.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to cause the electronic device to perform the method for sharing a multimedia resource described in any embodiment of the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to cause the server to execute the method for sharing a multimedia resource described in any embodiment of the second aspect.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method for sharing a multimedia resource described in any one of the first or second aspects.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the method for sharing of multimedia resources as described in any one of the embodiments of the first or second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the multimedia data collected by the first terminal is obtained in response to the received sharing instruction, when the first terminal is detected to generate a vibration signal, the vibration data are generated according to the starting time point of the vibration signal, the multimedia data and the vibration data are sent to the target server, the target server can generate corresponding multimedia resources to be shared according to the multimedia data and the vibration data, the multimedia resources to be shared are distributed to the second terminal, the second terminal plays the multimedia data according to the multimedia resources to be shared, the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data is reached, the vibration effect on the sharing equipment is shared to the shared equipment, user experience is improved, and the click rate of the shared multimedia resources is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of a method for sharing a multimedia resource according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a sharing method of multimedia resources according to an exemplary embodiment.
Fig. 3 is a schematic application diagram illustrating a multimedia resource sharing method according to an exemplary embodiment.
Fig. 4 is a schematic application diagram illustrating another multimedia resource sharing method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating another method of sharing a multimedia resource according to an example embodiment.
Fig. 6 is a block diagram illustrating a sharing apparatus for multimedia resources according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating another sharing apparatus for multimedia resources according to an example embodiment.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 9 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The multimedia resource sharing method provided by the present disclosure may be applied to an application environment shown in fig. 1, as shown in fig. 1, and includes: the system comprises a first terminal 101, a second terminal 102 and a server 103, wherein the first terminal 101 and the second terminal 102 can be connected with the server 103 through a network for data interaction. Specifically, corresponding application programs are installed on both the first terminal 101 and the second terminal 102, the first terminal 101 may be a sharing device for sharing resources through the application programs, and the second terminal 102 may be a shared device for viewing resources shared by other users (for example, a first user account) through the application programs. For example, taking a live scene as an example, the first terminal 101 and the second terminal 102 are both installed with corresponding live clients, and the server 103 is a background server corresponding to the live clients. In practical applications, whether the first terminal 101 or the second terminal 102 shares the resource through the live client, or receives the shared resource through the live client, so that the first terminal 101 and the second terminal 102 can be used as sharing devices and shared devices, and the live client processes the service when the terminal is used as a sharing device and processes the service when the terminal is used as a shared device. For convenience of description, the first terminal 101 is taken as a sharing device for sharing resources, and the second terminal 102 is taken as a shared device for viewing resources shared by other users for example. The first terminal 101 and the second terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 103 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
Fig. 2 is a flowchart illustrating a multimedia resource sharing method according to an exemplary embodiment, and the method is described as being applied to a client side, as shown in fig. 2, and includes the following steps.
In step S210, in response to the received sharing instruction, the multimedia data collected by the first terminal is obtained.
The first terminal is used as a sharing device, and a corresponding client application is installed in the first terminal. The sharing instruction is an instruction or a command for sharing the resource, which is initiated to the client through the sharing device (i.e., the first terminal). In this embodiment, when a user needs to share resources, a corresponding sharing instruction may be initiated to a client through a first terminal, and the client receives and responds to the sharing instruction, so as to collect multimedia data that is recorded by the first terminal and needs to be shared. Specifically, the multimedia data may be recorded based on the resource being played by the first terminal, and the multimedia data carries the collection start time point of the multimedia data. The collection start time point may be time point information corresponding to the start of collecting the multimedia data, for example, when the recorded multimedia data starts to be collected from 10 points 45 minutes 23 seconds, the collection start time point of the multimedia data is 10 points 45 minutes 23 seconds. The acquisition start time point may also be a recording start time point determined with respect to a recording time period for recording the multimedia data, and typically, the recording start time point based on the recording time period is 0 minutes 0 seconds.
In step S220, when it is detected that the first terminal generates the vibration signal, vibration data is generated according to a start time point of the vibration signal.
The vibration signal refers to a signal detected by the client when the first terminal vibrates, and specifically, the first terminal vibration refers to vibration generated by a vibrator inside the first terminal. The starting time point of the vibration signal may be time point information corresponding to the starting time of the vibration signal, for example, when the first terminal is detected to generate the vibration signal at 10 points 53 minutes 50 seconds, the starting time point of the vibration signal is 10 points 53 minutes 50 seconds; the starting time point of the vibration signal may also be a vibration starting time point determined relative to the recording duration of the recorded multimedia data, and if the vibration signal is detected when the 8 th minute 27 second is recorded, the starting time point of the vibration signal is the 8 th minute 27 second of the multimedia data. In this embodiment, when the client detects that the first terminal generates the vibration signal, the client generates corresponding vibration data according to a start time point of the vibration signal. It is understood that the start time point of the vibration signal is recorded in the vibration data.
In step S230, the multimedia data and the vibration data are transmitted to the target server.
The target server is a background server corresponding to the client. Generally, resources shared by the sharing device through the client are stored by the corresponding server, and are distributed to the client in the shared device through the server. Therefore, in this embodiment, by sending the multimedia data and the vibration data to the target server, the target server may generate the corresponding multimedia resource to be shared according to the multimedia data and the vibration data, and distribute the multimedia resource to be shared to the client in the shared device (i.e., the second terminal), so that the second terminal plays the multimedia data, and controls the second terminal to generate vibration when the start time point of the vibration signal in the vibration data arrives.
According to the multimedia resource sharing method, the multimedia data collected by the first terminal is obtained in response to the received sharing instruction, when the first terminal is detected to generate the vibration signal, the vibration data is generated according to the starting time point of the vibration signal, the multimedia data and the vibration data are sent to the target server, the target server can generate the corresponding multimedia resource to be shared according to the multimedia data and the vibration data, the multimedia resource to be shared is distributed to the second terminal, the second terminal plays the multimedia data according to the multimedia resource to be shared, and the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data is reached, so that the vibration effect on the sharing device is shared to the shared device, user experience is improved, and the click rate of the shared multimedia resource is improved.
In an exemplary embodiment, after detecting that the first terminal generates the vibration signal, the method may further include: when the stop of the vibration signal of the first terminal is detected, the stop time point of the vibration signal is recorded in the vibration data corresponding to the vibration signal. And the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data is reached. Specifically, the stop time point of the vibration signal may be time point information corresponding to the stop of the vibration signal, for example, when the first terminal is detected to stop vibrating at 10 points 53 minutes 58 seconds, the stop time point of the vibration signal is 10 points 53 minutes 58 seconds; of course, the stop time point of the vibration signal may also be a vibration stop time point determined relative to the recording duration of the recorded multimedia data, and if the vibration stop is detected after the 8 th minute 35 second recording, the stop time point of the vibration signal is the 8 th minute 35 second of the multimedia data. In this embodiment, when the client detects that the vibration signal of the first terminal stops, the stop time point of the vibration signal is recorded in the vibration data corresponding to the vibration signal, so that the vibration data in which the stop time point of the vibration signal is recorded is sent to the target server, and when the stop time point arrives, the second terminal is controlled to stop vibrating, so as to achieve the same vibration effect as that of the first terminal, thereby further improving user experience.
In an exemplary embodiment, after detecting that the first terminal generates the vibration signal, the method may further include: and acquiring the vibration intensity of the vibration signal, and recording the vibration intensity of the vibration signal in the vibration data corresponding to the vibration signal. The vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data. Specifically, the vibration intensity of the vibration signal refers to the vibration intensity of the vibration signal, for example, for a collected game video, if a player lies on the stomach in a grove and a person walks slowly nearby, a terminal corresponding to the player may generate sporadic slight vibration, and if a person walks quickly, continuous strong vibration may be generated. In this embodiment, after the client detects that the first terminal generates the vibration signal, the client further detects the vibration intensity of the vibration signal, so as to obtain the detected vibration intensity, and records the vibration intensity of the vibration signal in the vibration data corresponding to the vibration signal, so as to send the vibration data recorded with the vibration intensity of the vibration signal to the target server, so that the second terminal generates vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data, so as to achieve the same vibration effect as the first terminal, and further improve user experience.
In an exemplary embodiment, for example, the sharing command is a live command, and the vibration data has a unique data identifier. After acquiring the multimedia data collected by the first terminal, the method further includes: and transmitting the audio coding signaling to the target server, and writing the data identification corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal. The audio coding signaling is used for indicating a second terminal which acquires the multimedia resources to be shared through the target server to play the multimedia data, and reading corresponding vibration data according to a data identifier in the audio coding signaling. The data identifier is a unique mark or sign for distinguishing different vibration data, for example, when different vibration data are acquired for multiple times in the process of acquiring the multimedia data of the first terminal, a unique data identifier is assigned to each acquired vibration data, so as to distinguish different vibration data. It can be understood that, for the vibration signals collected between the vibration start time point and the vibration stop time point corresponding to the same vibration signal, the corresponding data identifications are the same, that is, for the vibration signals collected between the vibration start time point and the next vibration stop time point, the vibration data are once complete vibration data. Specifically, the Audio Coding signaling may be AAC (Advanced Audio Coding) signaling. In this embodiment, when the client detects that the first terminal generates the vibration signal, the client writes the data identifier corresponding to the vibration signal into the audio coding signaling, and transmits the audio coding signaling to the target server, so that the second terminal can read the corresponding vibration data according to the data identifier in the audio coding signaling, and control the second terminal to generate vibration when the start time point of the vibration signal in the vibration data is reached, and control the second terminal to stop vibrating until the stop time point is reached, so as to share the vibration effect on the shared device to the shared device, thereby improving user experience.
In an exemplary embodiment, in order to avoid data loss due to network jitter, in the above embodiment, transmitting an audio coding signaling to the target server may further include: and continuously writing the data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period from the detection of the vibration signal generated by the first terminal, and pushing the audio coding signaling written with the data identifier to the target server. The preset time period may be a preset time length range, for example, 100ms, 200ms, or 500 ms. In this embodiment, in order to avoid data loss due to network jitter, the data identifier corresponding to the shock signal may be continuously written into the audio coding signaling within a preset time period from the detection of the shock signal generated by the first terminal, and the audio coding signaling written with the data identifier is transmitted to the target server based on a stream pushing manner, so that the audio coding signaling written with the data identifier is ensured to be able to reach the target server.
In an exemplary embodiment, taking a live broadcast sharing scenario as an example, further explaining the sharing method of the multimedia resource of the present disclosure, as shown in fig. 3, in a scenario where an anchor shares a game through live broadcast, the method specifically includes the following steps:
1. the anchor client responds to a live instruction of an anchor user, continuously acquires audio and video data on the anchor terminal, and uploads the audio and video data to a Content Delivery Network (CDN) based on a stream pushing mode.
2. When the anchor terminal encounters certain specific scenes in the game provided by the game client, the game client controls the anchor terminal to vibrate, namely the anchor terminal generates a vibration signal.
3. The method comprises the steps that a main broadcast client monitors a vibration interface of a main broadcast terminal, if vibration is detected, a vibration starting time point, a vibration stopping time point (vibration duration) and vibration intensity related data are recorded, and a unique identification mark is generated to mark the vibration data based on the vibration starting time point; and reporting the vibration data to a live broadcast server through a long connection, writing the unique identification of the vibration data into an AAC signaling, and pushing the AAC signaling to the CDN server. Furthermore, in order to avoid data loss caused by network jitter, the unique identification of the vibration data can be continuously written in the AAC signaling for a period of time, such as 200 ms.
4. And after receiving the vibration data, the live broadcast server transmits the vibration data to all audience client sides in the live broadcast room.
5. And after receiving the vibration data, the audience client uses the unique identifier as a Key to store the vibration data.
6. And the audience client side pulls the audio and video data from the CDN server and decodes the audio and video data, and identifies the AAC signaling at the same time to obtain the unique identification of the vibration data.
7. The method comprises the steps that a spectator client plays audio and video data, obtains complete vibration data from a stored data pool according to a unique identifier of the obtained vibration data, and controls a spectator terminal to generate vibration when the spectator client recovers the vibration data, namely, a starting time point based on a vibration signal in the vibration data arrives, and controls the spectator terminal to stop vibrating until a stopping time point arrives; and destroy the vibration data after the playing is finished, thereby avoiding repeated vibration.
In the above embodiment, the vibration effect on the anchor terminal is recorded and shared to the audience terminal during live broadcasting, for example, in gun battle games, the terminal corresponding to the player shakes when the player hits a player or when the player hits a player, so as to simulate the feeling of back frustration or middle bullet of the gun, if the player shares the game process to live broadcasting through the method, the audience shakes when the player hits a middle bullet or hits a player in live broadcasting, so that the experience is stronger, the audience and the anchor have the same experience, and the audience and the anchor are more personally on the scene.
In an exemplary embodiment, taking a sharing screen recording scene as an example, the method for sharing multimedia resources of the present disclosure is further described, as shown in fig. 4, specifically including the following steps:
1. and the recording client responds to a screen recording instruction of the sharing user, starts to record video frame data and audio data on the sharing terminal, and records a time point t1 when the recording is started.
2. When the recording client detects the vibration of the sharing terminal, the starting time point t2 of the vibration is obtained, the difference value delta _ t between the starting time point t2 and the time point t1 of starting recording is calculated, and the vibration starting offset time delta _ t, the vibration duration (vibration stopping time point) and the intensity related data are recorded to generate the vibration data, and a unique identifier is allocated to the vibration data.
3. And when the recording is finished, the recording client finishes the audio and video data.
4. And the recording client packs the video, audio and vibration data and sends the packed data to the production server.
5. When watching the video, the video watching user pulls the video, the audio and the vibration data from the production server.
6. And the audience client analyzes the data, plays the audio and the video, monitors the video playing progress, and provides vibration experience for audiences according to the vibration intensity and the vibration duration at corresponding time points according to the offset time of the vibration starting time point relative to the video starting time point in the vibration data.
In the embodiment, when the screen is shared and recorded, the vibration effect on the sharing terminal is shared to the audience, so that the experience of the audience is improved, and the audience can be personally on the scene.
Fig. 5 is a flowchart illustrating a multimedia resource sharing method according to an exemplary embodiment, and the method is described as being applied to a server as shown in fig. 5, and includes the following steps.
In step S510, multimedia data and vibration data collected by the first terminal are received.
The vibration data are generated according to the starting time point of the vibration signal when the first terminal generates the vibration signal, and the multimedia data carry the acquisition starting time point of the multimedia data. Specifically, the multimedia data and the vibration data are collected by the first terminal based on a sharing instruction of a user.
In step S520, a multimedia resource to be shared is generated according to the multimedia data and the vibration data.
In step S530, based on the sharing request of the multimedia resource to be shared by the second terminal, the multimedia resource is issued to the second terminal.
The multimedia resource to be shared is used for indicating the second terminal to play the multimedia data and controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data is reached. The sharing request can be understood as an acquisition request of the multimedia resource to be shared.
In the above embodiment, the server receives the multimedia data and the vibration data collected by the first terminal, generates the multimedia resource to be shared according to the multimedia data and the vibration data, and then issues the multimedia resource to the second terminal based on the sharing request of the second terminal for the multimedia resource to be shared, so that the second terminal plays the multimedia data according to the multimedia resource to be shared, and controls the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data arrives, so that the vibration effect on the sharing device is shared to the shared device, thereby improving the user experience, and being beneficial to improving the click rate of the shared multimedia resource.
In an exemplary embodiment, the vibration signal has a corresponding vibration intensity, and the method may further include: receiving vibration data including vibration intensity collected by a first terminal; and then the multimedia resource comprising the vibration intensity is issued to the second terminal. The second terminal is controlled to generate vibration with corresponding strength according to the vibration strength of the vibration signal, and the same vibration effect as that of the first terminal is achieved, so that the user experience is further improved.
In an exemplary embodiment, taking the sharing request as a live broadcast request as an example, if the vibration data has a unique data identifier, the receiving of the multimedia data and the vibration data acquired by the first terminal specifically includes: receiving vibration data sent by a first terminal through long connection; and receiving multimedia data and an audio coding signaling pushed by the first terminal, wherein the audio coding signaling is written with a unique data identifier of vibration data. Therefore, real-time vibration data can be acquired, and the vibration effect can be shared.
In an exemplary embodiment, the issuing the multimedia resource to the second terminal specifically includes: sending vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, pushing the streaming multimedia data and the audio coding signaling to the second terminal. Therefore, when the second terminal plays the multimedia data, the corresponding vibration data can be read based on the data identification written in the audio coding signaling, and vibration is generated according to the related parameters recorded in the vibration data, so that the sharing of the vibration effect is realized, and the user experience is improved.
In an exemplary embodiment, the method further comprises: receiving a stop time point of a vibration signal sent by a long connection when the first terminal detects that the vibration signal stops; and a stop time point at which the vibration signal is transmitted to the second terminal through the long connection. The stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data is reached, so that the second terminal achieves the same vibration effect as the first terminal, and the user experience is further improved
In an exemplary embodiment, for example, taking the sharing request as the resource request, the vibration data further includes a stop time point of the vibration signal; then, receiving the multimedia data and the vibration data collected by the first terminal, specifically including: and receiving multimedia data collected by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal, wherein the vibration data has a unique data identifier.
It should be understood that although the various steps in the flowcharts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
Fig. 6 is a block diagram illustrating a sharing apparatus for multimedia resources according to an exemplary embodiment. Referring to fig. 6, the apparatus includes a multimedia data acquisition module 602, a vibration data generation module 604, and a data transmission module 606.
A multimedia data obtaining module 602, configured to execute a sharing instruction received in response to obtain multimedia data collected by a first terminal, where the multimedia data carries a collection start time point of the multimedia data;
a vibration data generation module 604 configured to perform generating vibration data according to a start time point of a vibration signal when it is detected that the first terminal generates the vibration signal;
the data sending module 606 is configured to execute sending of the multimedia data and the vibration data to a target server, where the multimedia data and the vibration data are used for instructing the target server to generate a multimedia resource to be shared, the multimedia resource to be shared is used for instructing a second terminal, which obtains the multimedia resource to be shared through the target server, to play the multimedia data, and the second terminal is controlled to generate vibration when a starting time point of a vibration signal in the vibration data arrives.
In an exemplary embodiment, the apparatus further comprises a time recording module configured to perform: when the vibration signal of the first terminal is detected to stop, recording the stop time point of the vibration signal in the vibration data corresponding to the vibration signal, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data reaches.
In an exemplary embodiment, the apparatus further comprises a vibration intensity acquisition module configured to perform: and when the first terminal generates the vibration signal, acquiring the vibration intensity of the vibration signal, recording the vibration intensity of the vibration signal in vibration data corresponding to the vibration signal, wherein the vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data.
In an exemplary embodiment, the shock data has a unique data identification; the sharing instruction is a live broadcasting instruction; the data transmission module is further configured to perform: and transmitting an audio coding signaling to the target server, writing a data identifier corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal, wherein the audio coding signaling is used for indicating that the second terminal which acquires the multimedia resource to be shared through the target server plays the multimedia data, and reading the corresponding vibration data according to the data identifier in the audio coding signaling.
In an exemplary embodiment, the data transmission module is further configured to perform: and continuously writing a data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period from the detection of the vibration signal generated by the first terminal, and pushing the audio coding signaling of the data identifier to the target server.
In an exemplary embodiment, the target server includes a content distribution network server and a live server; the data transmission module is further configured to perform: and pushing the multimedia data to the content distribution network server, and sending the vibration data to the live broadcast server through long connection.
In an exemplary embodiment, the sharing instruction is a screen recording instruction; the data transmission module is further configured to perform: and when the screen recording instruction is detected to be finished, the multimedia data and the vibration data collected in the recording process are sent to the target server, and the vibration data have unique data identification.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a sharing apparatus for multimedia resources according to an exemplary embodiment. Referring to fig. 7, the apparatus includes a data receiving module 702, a multimedia resource to be shared generating module 704, and a data transmitting module 706.
A data receiving module 702, configured to perform receiving of multimedia data and vibration data acquired by a first terminal, where the vibration data is generated according to a starting time point of a vibration signal generated by the first terminal, and the multimedia data carries the acquiring starting time point of the multimedia data;
a to-be-shared multimedia resource generating module 704 configured to execute generating a to-be-shared multimedia resource according to the multimedia data and the vibration data;
the data sending module 706 is configured to execute a sharing request for the multimedia resource to be shared based on a second terminal, issue the multimedia resource to the second terminal, where the multimedia resource to be shared is used to instruct the second terminal to play the multimedia data, and control the second terminal to generate vibration when a start time point of a vibration signal in the vibration data arrives.
In an exemplary embodiment, the vibration signal has a corresponding vibration intensity; the data receiving module is further configured to perform: receiving vibration data including the vibration intensity, which is acquired by the first terminal; the issuing the multimedia resource to the second terminal includes: and issuing the multimedia resource comprising the vibration intensity to the second terminal.
In an exemplary embodiment, the shock data has a unique data identification; the sharing request is a live broadcast request; the data receiving module is further configured to perform: receiving vibration data sent by the first terminal through long connection; and receiving multimedia data and an audio coding signaling of the first terminal plug flow, wherein the audio coding signaling is written with a unique data identifier of the vibration data.
In an exemplary embodiment, the data transmission module is configured to perform: sending the vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, streaming the multimedia data and the audio coding signaling to the second terminal.
In an exemplary embodiment, the data receiving module is further configured to perform: receiving a stop time point of the vibration signal sent by the first terminal through long connection when the first terminal detects that the vibration signal stops; the data transmission module is further configured to perform: and sending the stop time point of the vibration signal to the second terminal through long connection, wherein the stop time point is used for controlling the second terminal to stop vibrating when the stop time point of the vibration signal in the vibration data is reached.
In an exemplary embodiment, the sharing request is a resource request, and the shock data further includes a stop time point of the shock signal; the data receiving module is further configured to perform: and receiving multimedia data collected by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal, wherein the vibration data has a unique data identifier.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 8 is a block diagram illustrating a sharing device Z00 for multimedia resources according to an exemplary embodiment. For example, device Z00 can be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 8, device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power component Z06, a multimedia component Z08, an audio component Z10, an interface for input/output (I/O) Z12, a sensor component Z14 and a communication component Z16.
The processing component Z02 generally controls the overall operation of the device Z00, such as operations associated with display, telephone calls, data communication, camera operations and recording operations. The processing component Z02 may comprise one or more processors Z20 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component Z02 may include one or more modules that facilitate interaction between the processing component Z02 and other components. For example, the processing component Z02 may comprise a multimedia module to facilitate interaction between the multimedia component Z08 and the processing component Z02.
Memory Z04 is configured to store various types of data to support operation at device Z00. Examples of such data include instructions for any application or method operating on device Z00, contact data, phonebook data, messages, pictures, videos, and so forth. The memory Z04 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component Z06 provides power to the various components of the device Z00. Power component Z06 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device Z00.
The multimedia component Z08 comprises a screen providing an output interface between said device Z00 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component Z08 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device Z00 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component Z10 is configured to output and/or input an audio signal. For example, the audio component Z10 comprises a Microphone (MIC) configured to receive an external audio signal when the device Z00 is in an operating mode, such as a call mode, a recording mode and a speech recognition mode. The received audio signal may further be stored in the memory Z04 or transmitted via the communication component Z16. In some embodiments, the audio component Z10 further comprises a speaker for outputting audio signals.
The I/O interface Z12 provides an interface between the processing component Z02 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly Z14 includes one or more sensors for providing various aspects of status assessment for the device Z00. For example, the sensor assembly Z14 may detect the open/closed status of the device Z00, the relative positioning of the components, such as the display and keypad of the device Z00, the sensor assembly Z14 may also detect a change in the position of the device Z00 or a component of the device Z00, the presence or absence of user contact with the device Z00, the orientation or acceleration/deceleration of the device Z00, and a change in the temperature of the device Z00. Sensor assembly Z14 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component Z16 is configured to facilitate communication between the device Z00 and other devices in a wired or wireless manner. Device Z00 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component Z16 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component Z16 further comprises a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device Z00 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory Z04 comprising instructions, executable by the processor Z20 of the device Z00 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises a computer program, which when executed by a processor implements the method for sharing a multimedia resource as described above.
Fig. 9 is a block diagram illustrating a sharing device S00 for multimedia resources according to an example embodiment. For example, device S00 may be a server. Referring to fig. 9, the device S00 includes a processing component S20, which further includes one or more processors, and memory resources, represented by memory S22, for storing instructions, such as applications, executable by the processing component S20. The application stored in the memory S22 may include one or more modules each corresponding to a set of instructions. Furthermore, the processing component S20 is configured to execute instructions to execute the sharing method of the multimedia resource.
The device S00 may also include a power component S24 configured to perform power management of the device S00, a wired or wireless network interface S26 configured to connect the device S00 to a network, and an input-output (I/O) interface S28. The device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, mac OS X, unix, linux, freeBSD, or the like.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory S22 comprising instructions, executable by the processor of the device S00 to perform the above-described method is also provided. The storage medium may be a computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the method of sharing a multimedia resource described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (27)
1. A method for sharing multimedia resources, the method comprising:
responding to a received sharing instruction, and acquiring multimedia data acquired by a first terminal, wherein the multimedia data carries an acquisition starting time point of the multimedia data; the multimedia data are audio and video data which are recorded based on game resources played by the first terminal and need to be shared;
when the first terminal is detected to generate a vibration signal, generating vibration data according to the starting time point of the vibration signal; the vibration data has a unique data identifier, and the vibration signal is a signal generated when the first terminal triggers an internal vibrator to vibrate according to the scene of the playing game resource;
when the vibration signal of the first terminal is detected to stop, recording the stop time point of the vibration signal in vibration data corresponding to the vibration signal;
the multimedia data and the vibration data are sent to a target server, the multimedia data and the vibration data are used for indicating the target server to generate multimedia resources to be shared, the multimedia resources to be shared are used for indicating to pass through the target server to obtain the multimedia resources to be shared, a second terminal plays the multimedia data, the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data arrives, and the second terminal is controlled to stop vibrating when the stopping time point of the vibration signal in the vibration data arrives.
2. The method according to claim 1, wherein after detecting that the first terminal generates the vibration signal, the method further comprises:
and acquiring the vibration intensity of the vibration signal, recording the vibration intensity of the vibration signal in vibration data corresponding to the vibration signal, wherein the vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data.
3. The method according to claim 1 or 2, wherein the sharing instruction is a live instruction; after the multimedia data collected by the first terminal is obtained, the method further includes:
and transmitting an audio coding signaling to the target server, writing a data identifier corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal, wherein the audio coding signaling is used for indicating that the second terminal which acquires the multimedia resource to be shared through the target server plays the multimedia data, and reading the corresponding vibration data according to the data identifier in the audio coding signaling.
4. The method of claim 3, wherein the transmitting audio coding signaling to the target server comprises:
and continuously writing a data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period from the detection of the vibration signal generated by the first terminal, and pushing the audio coding signaling written with the data identifier to the target server.
5. The method of claim 3, wherein the target servers comprise a content distribution network server and a live server; the sending the multimedia data and the vibration data to a target server includes:
and pushing the multimedia data to the content distribution network server, and sending the vibration data to the live broadcast server through a long connection.
6. The method according to claim 1 or 2, wherein the sharing instruction is a screen recording instruction; the sending the multimedia data and the vibration data to a target server includes:
and when the screen recording instruction is detected to be finished, sending the multimedia data and the vibration data acquired in the recording process to the target server.
7. A method for sharing multimedia resources is characterized by comprising the following steps:
receiving multimedia data and vibration data collected by a first terminal, wherein the vibration data are generated according to the starting time point of a vibration signal when the first terminal generates the vibration signal, the vibration data have a unique data identifier, and the vibration data also record the stopping time point when the vibration signal of the first terminal stops;
the multimedia data carries the collection starting time point of the multimedia data; the multimedia data are audio and video data which are recorded based on game resources played by the first terminal and need to be shared; the vibration signal is a signal generated when the first terminal triggers an internal vibrator to vibrate according to the scene of the playing game resource;
generating multimedia resources to be shared according to the multimedia data and the vibration data;
the multimedia resource is issued to the second terminal based on a sharing request of the second terminal for the multimedia resource to be shared, the multimedia resource to be shared is used for indicating the second terminal to play the multimedia data, controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data arrives, and controlling the second terminal to stop vibrating when the stopping time point of the vibration signal in the vibration data arrives.
8. The method of claim 7, wherein the vibration signal has a corresponding vibration intensity; the method further comprises the following steps:
receiving vibration data including the vibration intensity, which is acquired by the first terminal;
the issuing the multimedia resource to the second terminal includes: and issuing the multimedia resource comprising the vibration intensity to the second terminal.
9. The method of claim 7, wherein the sharing request is a live request; the receiving of the multimedia data and the vibration data collected by the first terminal includes:
receiving vibration data sent by the first terminal through long connection; and (c) a second step of,
and receiving multimedia data and an audio coding signaling of the first terminal plug flow, wherein the audio coding signaling is written with the unique data identifier of the vibration data.
10. The method of claim 9, wherein the issuing the multimedia resource to the second terminal comprises:
sending the vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, streaming the multimedia data and the audio coding signaling to the second terminal.
11. The method according to claim 9 or 10, further comprising:
receiving a stop time point of the vibration signal sent by the first terminal through long connection when the first terminal detects that the vibration signal stops;
and sending the stop time point of the vibration signal to the second terminal through long connection.
12. The method of claim 7, wherein the sharing request is a resource request; the receiving of the multimedia data and the vibration data collected by the first terminal includes:
and receiving multimedia data acquired by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal.
13. An apparatus for sharing a multimedia resource, comprising:
the multimedia data acquisition module is configured to execute a sharing instruction received in response to acquire multimedia data acquired by a first terminal, wherein the multimedia data carries an acquisition starting time point of the multimedia data; the multimedia data is audio and video data which are recorded based on game resources being played by the first terminal and need to be shared;
the vibration data generation module is configured to generate vibration data according to a starting time point of a vibration signal when the first terminal is detected to generate the vibration signal; the vibration data has a unique data identifier, and the vibration signal is a signal generated when the first terminal triggers an internal vibrator to vibrate according to the scene of the playing game resource;
a time recording module configured to perform recording a stop time point of a vibration signal in vibration data corresponding to the vibration signal when the vibration signal of the first terminal is detected to stop;
the data sending module is configured to execute sending of the multimedia data and the vibration data to a target server, the multimedia data and the vibration data are used for indicating the target server to generate multimedia resources to be shared, the multimedia resources to be shared are used for indicating to obtain the multimedia resources to be shared through the target server, the second terminal plays the multimedia data, the second terminal is controlled to generate vibration when the starting time point of the vibration signal in the vibration data reaches, and the second terminal is controlled to stop vibrating when the stopping time point of the vibration signal in the vibration data reaches.
14. The apparatus of claim 13, further comprising a vibration intensity acquisition module configured to perform:
and when the first terminal generates the vibration signal, acquiring the vibration intensity of the vibration signal, recording the vibration intensity of the vibration signal in the vibration data corresponding to the vibration signal, wherein the vibration intensity is used for controlling the second terminal to generate vibration with corresponding intensity according to the vibration intensity of the vibration signal in the vibration data.
15. The apparatus according to claim 13 or 14, wherein the sharing instruction is a live instruction; the data transmission module is further configured to perform:
and transmitting an audio coding signaling to the target server, writing a data identifier corresponding to the vibration signal into the audio coding signaling when detecting that the first terminal generates the vibration signal, wherein the audio coding signaling is used for indicating that the second terminal which acquires the multimedia resource to be shared through the target server plays the multimedia data, and reading the corresponding vibration data according to the data identifier in the audio coding signaling.
16. The apparatus of claim 15, wherein the data transmission module is further configured to perform: and starting from the detection that the first terminal generates the vibration signal, continuously writing a data identifier corresponding to the vibration signal into the audio coding signaling within a preset time period, and pushing the audio coding signaling written with the data identifier to the target server.
17. The apparatus of claim 15, wherein the target servers comprise a content distribution network server and a live server; the data transmission module is further configured to perform:
and pushing the multimedia data to the content distribution network server, and sending the vibration data to the live broadcast server through a long connection.
18. The apparatus according to claim 13 or 14, wherein the sharing instruction is a screen recording instruction; the data transmission module is further configured to perform:
and when the screen recording instruction is detected to be finished, sending the multimedia data and the vibration data acquired in the recording process to the target server.
19. A sharing apparatus for multimedia resources, comprising:
the data receiving module is configured to execute receiving of multimedia data and vibration data collected by a first terminal, wherein the vibration data are generated according to a starting time point of a vibration signal when the first terminal generates the vibration signal, the vibration data have a unique data identifier, and a stopping time point when the vibration signal of the first terminal stops is recorded in the vibration data; the multimedia data carries the collection starting time point of the multimedia data; the multimedia data is audio and video data which are recorded based on game resources being played by the first terminal and need to be shared; the vibration signal is a signal generated when the first terminal triggers an internal vibrator to vibrate according to the scene of the playing game resource;
the to-be-shared multimedia resource generation module is configured to execute generation of the to-be-shared multimedia resource according to the multimedia data and the vibration data;
the data sending module is configured to execute a sharing request of the multimedia resource to be shared based on a second terminal, send the multimedia resource to the second terminal, and the multimedia resource to be shared is used for indicating the second terminal to play the multimedia data, controlling the second terminal to generate vibration when the starting time point of the vibration signal in the vibration data arrives, and controlling the second terminal to stop vibrating when the stopping time point of the vibration signal in the vibration data arrives.
20. The apparatus of claim 19, wherein the vibration signal has a corresponding vibration intensity; the data receiving module is further configured to perform:
receiving vibration data including the vibration intensity, which is acquired by the first terminal;
the issuing the multimedia resource to the second terminal includes: and issuing the multimedia resource comprising the vibration intensity to the second terminal.
21. The apparatus of claim 19, wherein the sharing request is a live request; the data receiving module is further configured to perform:
receiving vibration data sent by the first terminal through long connection; and the number of the first and second groups,
and receiving multimedia data and audio coding signaling pushed by the first terminal, wherein the audio coding signaling is written with the unique data identifier of the vibration data.
22. The apparatus of claim 21, wherein the data transmission module is configured to perform:
sending the vibration data to a second terminal which is positioned in the same live broadcast room as the first terminal through long connection; and, streaming the multimedia data and the audio coding signaling to the second terminal.
23. The apparatus of claim 21 or 22,
the data receiving module is further configured to perform: receiving a stop time point of the vibration signal sent by the first terminal through long connection when the first terminal detects that the vibration signal stops;
the data transmission module is further configured to perform: and sending the stop time point of the vibration signal to the second terminal through long connection.
24. The apparatus of claim 19, wherein the sharing request is a resource request; the data receiving module is further configured to perform:
and receiving multimedia data collected by the first terminal and vibration data generated by the first terminal according to the starting time point and the stopping time point of the vibration signal.
25. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the sharing method of multimedia resources according to any one of claims 1 to 6.
26. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of sharing of multimedia resources according to any of claims 7 to 12.
27. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor, enable execution of the method of sharing of a multimedia resource according to any one of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110813554.3A CN113542773B (en) | 2021-07-19 | 2021-07-19 | Multimedia resource sharing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110813554.3A CN113542773B (en) | 2021-07-19 | 2021-07-19 | Multimedia resource sharing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113542773A CN113542773A (en) | 2021-10-22 |
CN113542773B true CN113542773B (en) | 2022-12-27 |
Family
ID=78100175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110813554.3A Active CN113542773B (en) | 2021-07-19 | 2021-07-19 | Multimedia resource sharing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113542773B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8581954B2 (en) * | 2008-09-05 | 2013-11-12 | Sk Telecom Co., Ltd. | Mobile communication terminal that delivers vibration information, and method thereof |
KR20110101587A (en) * | 2010-03-09 | 2011-09-16 | 삼성전자주식회사 | Apparatus and method for video call in mobile communication system |
JP5937831B2 (en) * | 2012-01-28 | 2016-06-22 | 株式会社ミクシィ | TERMINAL DEVICE, TERMINAL DEVICE CONTROL METHOD, AND TERMINAL DEVICE CONTROL PROGRAM |
KR101934024B1 (en) * | 2012-12-11 | 2018-12-31 | 삼성전자주식회사 | Apparatus and method for transceiving data of mobile terminal |
CN103686250A (en) * | 2013-12-24 | 2014-03-26 | 深圳市龙视传媒有限公司 | Method for sharing fragment of media file and relevant devices |
CN112261624B (en) * | 2019-12-31 | 2022-01-11 | 华为技术有限公司 | Method, electronic equipment and system for transmitting file in application |
CN112104883A (en) * | 2020-08-06 | 2020-12-18 | 北京达佳互联信息技术有限公司 | Live broadcast room sharing method, device and system and server |
-
2021
- 2021-07-19 CN CN202110813554.3A patent/CN113542773B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113542773A (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112218103B (en) | Live broadcast room interaction method and device, electronic equipment and storage medium | |
CN106105246B (en) | Display methods, apparatus and system is broadcast live | |
CN106911961B (en) | Multimedia data playing method and device | |
CN109348239B (en) | Live broadcast fragment processing method and device, electronic equipment and storage medium | |
EP3174053A1 (en) | Method, apparatus and system for playing multimedia data, computer program and recording medium | |
CN106941624B (en) | Processing method and device for network video trial viewing | |
CN111182318B (en) | Contribution score generation method and device in live broadcast, electronic equipment and storage medium | |
CN111970533A (en) | Interaction method and device for live broadcast room and electronic equipment | |
CN106911967B (en) | Live broadcast playback method and device | |
CN109660817B (en) | Video live broadcast method, device and system | |
CN111343476A (en) | Video sharing method and device, electronic equipment and storage medium | |
JP2016535351A (en) | Video information sharing method, apparatus, program, and recording medium | |
CN111583952B (en) | Audio processing method, device, electronic equipment and storage medium | |
CN106792173B (en) | Video playing method and device and non-transitory computer readable storage medium | |
CN103916711A (en) | Method and device for playing video signals | |
CN104104986A (en) | Audio frequency and subtitle synchronizing method and device | |
CN109729372A (en) | Method for switching between, device, terminal, server and storage medium is broadcast live | |
CN111866531A (en) | Live video processing method and device, electronic equipment and storage medium | |
CN106412665A (en) | Synchronous playing control method, device and system for multimedia | |
CN112468873A (en) | Picture display method, device, system, electronic equipment, server and medium | |
CN106572397B (en) | Interactive approach and device in net cast application | |
CN110620956A (en) | Live broadcast virtual resource notification method and device, electronic equipment and storage medium | |
CN114268823A (en) | Video playing method and device, electronic equipment and storage medium | |
CN106034214A (en) | Video data recording method and apparatus thereof | |
CN110769275B (en) | Method, device and system for processing live data stream |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |