Streaming media vibration processing method and device, equipment and storage medium
By identifying and processing the timestamps of multimedia and vibration fragments in streaming media transmission, the synchronous playback of multimedia and vibration under streaming media transmission is realized, which solves the problem that the existing technology cannot provide vibration effects through streaming media, and improves the application Scenarios and interactive experiences.
Patent Information
- Application Number
- CN202310318881.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
The existing technology cannot provide vibration effects for objects through streaming media transmission, which limits the expansion of vibration application scenarios and the synchronization of multimedia playback.
By receiving the streaming media data of the multimedia object, the target multimedia fragment and the vibration fragment are determined, and the matching vibration fragment is found according to the playback timestamp, and the corresponding vibration processing is performed to realize the synchronous playback of multimedia and vibration in streaming media transmission.
The vibration application scenarios are expanded, the error rate during multimedia collaborative vibration playback is reduced, and the interactive experience is improved.
Smart Images

Figure CN118694845A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for vibration processing of streaming media. Background Art
[0002] With the vigorous development of computer technology, vibration, as a new way of perception, is increasingly widely used, and the design effects are becoming more and more complex, which can create a better and better interactive experience for objects. At present, vibration is mainly used as a basic capability of terminal devices to provide corresponding vibration effects for objects. For example, in the alarm function provided by the terminal device, the alarm effect can be achieved through vibration. For example, when the object interacts through the interactive interface displayed in the terminal device, the terminal device can provide trigger feedback through vibration. However, it is currently impossible to provide vibration effects for objects based on the transmission method of streaming media. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device, storage medium and computer program product for processing vibration of streaming media, which can perform vibration control through the transmission of streaming media.
[0004] On the one hand, an embodiment of the present application provides a method for processing vibration of streaming media, including:
[0005] Receiving streaming media data of multimedia objects;
[0006] Determine a target multimedia segment from the received streaming media data; the target multimedia segment will start playing at the time indicated by the play timestamp of the target multimedia segment;
[0007] Searching for a target vibration segment from the received streaming media data according to the play timestamp to obtain a search result, wherein the play duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment;
[0008] The vibration processing is performed according to the search result; different vibration processing is performed for different search results.
[0009] On the one hand, an embodiment of the present application provides a vibration processing device for streaming media, including:
[0010] A receiving unit, used for receiving streaming media data of a multimedia object;
[0011] A processing unit, configured to determine a target multimedia segment from the received streaming media data; the target multimedia segment will start playing at a time indicated by a play timestamp of the target multimedia segment;
[0012] The processing unit is further used to search for a target vibration segment from the received streaming media data according to the playback timestamp, and obtain a search result, wherein the playback duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment;
[0013] The processing unit is further used to perform vibration processing according to the search result; different vibration processing is performed for different search results.
[0014] On the one hand, an embodiment of the present application provides a vibration processing device for streaming media, characterized in that the vibration processing device for streaming media includes an input interface and an output interface, and further includes:
[0015] a processor adapted to implement one or more instructions; and,
[0016] A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the above-mentioned streaming media vibration processing method.
[0017] On the one hand, an embodiment of the present application provides a computer storage medium, characterized in that the computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to execute the above-mentioned vibration processing method for streaming media.
[0018] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer storage medium; a processor of a vibration processing device for streaming media reads the computer program from the computer storage medium, and the processor executes the computer program, so that the vibration processing device for streaming media executes the above-mentioned vibration processing method for streaming media.
[0019] In the embodiment of the present application, a target multimedia segment can be determined from the streaming media data of the received multimedia object, and then the target vibration segment can be searched from the received streaming media data according to the play timestamp indicating the play start time of the target multimedia segment, and vibration processing can be performed according to the search result. The complete multimedia and the vibration segment used to achieve the vibration effect of the multimedia can be segmented in sequence and encoded for transmission, and the vibration data can be transmitted through the transmission mode of streaming media, and the vibration effect for multimedia playback can be achieved, and the application scenarios of vibration can be expanded. Moreover, by setting the timestamp in the streaming media segment and the vibration segment as a reference for vibration control, the error rate during multimedia collaborative vibration playback can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a structural diagram of a streaming media transmission system provided in an embodiment of the present application;
[0022] Figure 2 It is a flow chart of a vibration processing method of streaming media provided in an embodiment of the present application;
[0023] Figure 3 It is a flowchart of another vibration processing method for streaming media provided in an embodiment of the present application;
[0024] Figure 4a is a schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application;
[0025] Figure 4b is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application;
[0026] Figure 4c is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application;
[0027] Figure 4d is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application;
[0028] Figure 5a is a schematic diagram of comparison between a multimedia segment and a vibration segment obtained by parsing provided in an embodiment of the present application;
[0029] Figure 5b is another schematic diagram of comparison between a multimedia segment and a vibration segment obtained by parsing provided in an embodiment of the present application;
[0030] Figure 6 It is a flowchart of another vibration processing method for streaming media provided in an embodiment of the present application;
[0031] Figure 7 It is a judgment schematic diagram of a vibration processing method for streaming media provided in an embodiment of the present application;
[0032] Figure 8 is a structural schematic diagram of a vibration processing device for streaming media provided in an embodiment of the present application;
[0033] Fig. 9It is a structural schematic diagram of a vibration processing device for streaming media provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] An embodiment of the present application provides a vibration processing solution for streaming media, which can determine a target multimedia segment from the streaming media data of a received multimedia object, and then search for the target vibration segment from the received streaming media data based on a playback timestamp indicating the playback start time of the target multimedia segment, and perform vibration processing based on the search result; wherein different vibration processing is performed for different search results.
[0036] In one embodiment, the multimedia object may be multimedia with vibration effects, that is, during the playback of the multimedia, it may be accompanied by vibrations with different effects; further, the multimedia object may be a video object or an audio object, etc., and the video object here may be a video with vibration effects, that is, during the playback of the video, it may be accompanied by vibrations with different effects; the audio object here may be audio with vibration effects, that is, during the playback of the audio, it may be accompanied by vibrations with different effects.
[0037] Furthermore, since the multimedia object can be multimedia with vibration effects, the multimedia object can correspond to a multimedia file and a vibration effect file. The multimedia can be played by running the multimedia file, and the vibration can be played by running the vibration effect file. In order to transmit the multimedia object based on streaming media transmission, the sending end can stream the multimedia file and the vibration effect file, that is, the sending end can sequentially encode the multimedia indicated by the multimedia file in segments, and sequentially transmit the encoded data of each multimedia segment obtained by encoding; the receiving end can decode and play the encoded data of the received multimedia segment. Similarly, the sending end can stream the vibration effect file, that is, the sending end can sequentially encode a vibration indicated by the vibration effect file in segments, and sequentially transmit the encoded data of each vibration segment obtained by encoding; the receiving end can decode and play the encoded data of the received vibration segment. Among them, the vibration segment obtained by segmenting when the vibration indicated by the vibration effect file is sequentially segmented can be called an event, which is a unit for describing vibration, similar to the concept of a frame in a video. A vibration effect can be described independently by a vibration segment, or a vibration effect can be described by multiple continuous vibration segments. The encoded data of the multimedia segment received by the receiving end can also be called streaming data of the multimedia segment, the encoded data of the vibration segment can also be called streaming data of the vibration segment, and the streaming data of the multimedia segment received by the receiving end and the streaming data of the vibration segment can be collectively referred to as streaming data of the multimedia object; that is, the streaming data of the received multimedia object mentioned in the above-mentioned vibration processing scheme of streaming media is the streaming data of the received multimedia segment and the streaming data of the vibration segment.
[0038] In one embodiment, a multimedia segment corresponds to a timestamp (i.e., the above-mentioned play timestamp) for indicating the start time of playing the corresponding multimedia segment, and a vibration segment corresponds to a timestamp for indicating the start time of playing the corresponding vibration segment. Further, the play duration of the multimedia indicated by the multimedia file matches the vibration duration (i.e., the play duration) of a vibration segment indicated by the vibration effect file, and the play duration of the multimedia segment matches the vibration duration of the vibration segment. Here, the play duration of the multimedia matches the vibration duration of a corresponding vibration segment, which may refer to the play duration of the multimedia and the vibration duration of a corresponding vibration segment being the same. Here, the play duration of the multimedia segment matches the vibration duration of the vibration segment, which may refer to the play duration of the multimedia segment and the vibration duration of the vibration segment being the same; wherein, the play duration of the multimedia segment is the segment duration when the multimedia indicated by the multimedia file is sequentially segmented and encoded, and the vibration duration of the vibration segment is the segment duration when the vibration indicated by the vibration effect file is sequentially segmented and encoded, and the play duration of the multimedia segment and the vibration duration of the vibration segment can be set according to specific needs. For example, when the multimedia is audio, since the audio is usually played according to sampling points during playback, the vibration duration of the vibration segment can be set to the interval duration of the sampling points; for example, assuming that the interval duration of the audio sampling points is 200ms (i.e., sampling is performed at intervals of 200ms), then it can be considered that the playback duration of the multimedia segment (i.e., the audio segment) is 200ms, so the vibration duration of the vibration segment can be set to 200ms. For example, when the multimedia is a video, since the duration of a single frame is related to the frame rate during video playback, the vibration duration of the vibration segment should also be related to the frame rate, and can usually be set to an integer multiple of the duration of a single frame; further optionally, since the shortest vibration duration that humans can perceive is generally between 50-200ms, the vibration duration of the vibration segment can also be further set within this range; for example, for a 90-frame video, the duration of a single frame is 1000ms / 90=11.1ms, so the vibration duration of the vibration segment can be set to 111ms, and the playback duration of the corresponding multimedia segment (i.e., the video segment) can also be set to 111ms, and a video segment includes multiple video frames. By setting the vibration duration of the vibration segment to be consistent with the playback duration of the multimedia segment, it is to ensure the correspondence between the vibration segment and the multimedia segment, thereby maintaining the synchronous playback between the multimedia and the vibration.
[0039] In one embodiment, based on the above-mentioned streaming media vibration processing solution, the present application embodiment provides a streaming media transmission system. Figure 1 , is a structural diagram of a streaming media transmission system provided in an embodiment of the present application; Figure 1The streaming media transmission system shown may include a terminal device 101 and a streaming media server 102. Among them, the terminal device 101 may include any one or more of a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart car, a smart wearable device, and a multimedia playback device. The streaming media server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal device 101 and the streaming media server 102 can be directly or indirectly connected in communication via wired or wireless communication, and this application is not limited here.
[0040] In one embodiment, the streaming media server 102 can be used to encode and obtain streaming media data of multimedia objects and transmit them, and the terminal device 101 can be used to receive the streaming media data of multimedia objects and decode and play them; in a specific implementation, the streaming media server 102 is used as a sending end, and can sequentially encode the multimedia indicated by the multimedia file in segments, and sequentially transmit the encoded data of each multimedia segment obtained by encoding (i.e., streaming media data of the multimedia segment), and can sequentially encode a vibration indicated by the vibration effect file in segments, and sequentially transmit the encoded data of each vibration segment obtained by encoding (i.e., streaming media data of the vibration segment). The terminal device 101 is used as a receiving end, and can receive the streaming media data of the multimedia object (i.e., receive the streaming media data of the multimedia segment and the streaming media data of the vibration segment), determine the target multimedia segment from the received streaming media data of the multimedia object, and then can search for the target vibration segment from the received streaming media data according to the playback timestamp used to indicate the playback start time of the target multimedia segment, and perform vibration processing according to the search result.
[0041] It is particularly important to note that in the specific implementation of the present application, when it involves object-related data, such as multimedia uploaded by the object, when the embodiment of the present application is applied to a specific product or technology, it is necessary to obtain the permission or consent of the object, and the collection, use and processing of the relevant data must comply with local laws, regulations and standards. In addition, during the collection, use and processing of data, the relevant objects can be notified through an interactive interface, and subsequent processing will only be carried out after receiving an operation confirming that it can be collected, used or processed on the interactive interface.
[0042] Based on the above streaming media vibration processing solution, the present application embodiment provides a streaming media vibration processing method. Figure 2, which is a flow chart of a vibration processing method for streaming media provided in an embodiment of the present application. Figure 2 The vibration processing method of streaming media shown can be executed by a terminal device. Figure 2 The vibration processing method of streaming media shown may include the following steps:
[0043] S201, receiving streaming media data of a multimedia object.
[0044] In one embodiment, the streaming media data received by the terminal device may be sent by a streaming media server, and may include streaming media data of multimedia segments and streaming media data of vibration segments; when the multimedia is audio, it may include streaming media data of audio segments and streaming media data of vibration segments; when the multimedia is video, it may include streaming media data of video segments and streaming media data of vibration segments; the processing process of the terminal device for audio and video is similar. For the sake of ease of explanation, the subsequent embodiments of this application will be explained using multimedia as video as an example.
[0045] S202: Determine a target multimedia segment from the received streaming media data.
[0046] The target multimedia segment will start playing at the time indicated by the playing timestamp of the target multimedia segment.
[0047] In one embodiment, after receiving the streaming media data of the multimedia object, the terminal device may parse the received streaming media data, that is, decode the received streaming media data to obtain a multimedia segment and a vibration segment; specifically, the streaming media data of the received multimedia segment may be parsed to obtain the multimedia segment, and the streaming media data of the received vibration segment may be parsed to obtain the vibration segment; further, the target multimedia segment determined by the terminal device from the received streaming media data is determined from the parsed multimedia segment. After the terminal device parses the multimedia segment, it may obtain information carried by the multimedia segment, and the information carried by the multimedia segment may include: a play timestamp for indicating the start time of playing the target multimedia segment. Further, the target multimedia segment determined by the terminal device is the multimedia segment to be played currently determined from the parsed multimedia segment; wherein the multimedia segment to be played currently is the multimedia segment with the earliest time indicated by the play timestamp in the play sequence among the unplayed multimedia segments among the parsed multimedia segments.
[0048] In one embodiment, after parsing the multimedia segments, the terminal device may add the parsed multimedia segments to the multimedia segment queue, and specifically, may add the parsed multimedia segments to the multimedia segment queue from front to back in the order of the time indicated by the play timestamps of the parsed multimedia segments. The terminal device may play the multimedia segments in the multimedia segment queue in turn to play the corresponding multimedia; optionally, the multimedia segments that have been played in the multimedia segment queue may be deleted from the multimedia segment queue. Based on this, the target multimedia segment may be the multimedia segment to be played currently determined from the multimedia segment queue, and specifically may be the multimedia segment whose play timestamp indicates the earliest time in the play sequence among the multimedia segments that have not been played in the multimedia segment queue; when the multimedia segments that have been played in the multimedia segment queue are to be deleted from the multimedia segment queue, the target multimedia segment may be the multimedia segment whose play timestamp indicates the earliest time in the play sequence in the multimedia segment queue. For example, if the playback duration of a multimedia segment is 100ms, the multimedia segment queue includes 4 multimedia segments, and the times indicated by the playback timestamps of the 1st to 4th multimedia segments are 100ms, 200ms, 300ms and 400ms respectively, then the target multimedia segment is the multimedia segment whose time indicated by the playback timestamp is 100ms. Accordingly, the multimedia segment will start playing when the playback time reaches 100ms.
[0049] S203, searching for a target vibration segment from the received streaming media data according to the play timestamp, and obtaining a search result.
[0050] In one embodiment, after receiving the streaming media data of the multimedia object, the terminal device may parse the received streaming media data, that is, decode the received streaming media data to obtain multimedia segments and vibration segments; specifically, the streaming media data of the received vibration segment may be parsed to obtain the vibration segment; further, the terminal device searches for the target vibration segment from the received streaming media data according to the play timestamp, and specifically, searches from the vibration segment obtained by parsing. After parsing the vibration segment, the terminal device may obtain information carried by the vibration segment, and the information carried by the vibration segment may include: a timestamp for indicating the play start time of the vibration segment (i.e., the timestamp of the vibration segment). Further, the terminal device searches for the target vibration segment according to the play timestamp, in order to search for the vibration segment to be currently played from the vibration segments obtained by parsing; wherein, the vibration segment to be currently played should be the vibration segment with the smallest time difference between the timestamp and the play timestamp of the target multimedia segment among the vibration segments obtained by parsing and not played.
[0051] In one embodiment, after the terminal device parses and obtains the vibration segment, it can add the parsed vibration segment to the vibration segment queue, and specifically, it can add the parsed vibration segment to the vibration segment queue from front to back in the order of the time indicated by the timestamps of the parsed vibration segments. The terminal device can play the vibration segments in the vibration segment queue in turn to play a vibration corresponding to the multimedia; optionally, the vibration segments that have been played in the vibration segment queue can be deleted from the vibration segment queue. Based on this, the target vibration segment can be the vibration segment to be played currently determined from the vibration segment queue, and specifically, it can be the vibration segment with the smallest time difference between the timestamp and the play timestamp of the target multimedia segment among the vibration segments that have not been played in the vibration segment queue; when the vibration segments that have been played in the vibration segment queue will be deleted from the vibration segment queue, the vibration segments in the vibration segment queue are all vibration segments that have not been played, and then, at this time, the target vibration segment can be the vibration segment with the smallest time difference between the timestamp and the play timestamp of the target multimedia segment in the vibration segment queue. For example, if the playback duration of a multimedia segment is 100ms, and the vibration duration of a vibration segment is 100ms; the multimedia segment queue includes 4 multimedia segments, and the times indicated by the playback timestamps of the first to fourth multimedia segments are 100ms, 200ms, 300ms, and 400ms, respectively; the target multimedia segment is a multimedia segment whose playback timestamp indicates a time of 100ms; the vibration segment queue includes 4 vibration segments, and the times indicated by the timestamps of the first to fourth vibration segments are 100ms, 200ms, 300ms, and 400ms, respectively; and the target vibration segment is a vibration segment whose timestamp indicates a time of 100ms.
[0052] S204, performing vibration processing according to the search result.
[0053] Among them, the vibration processing performed for different search results is different; searching for the target vibration segment from the received streaming media data according to the playback timestamp and performing vibration processing according to the search result is to use the playback timestamp of the multimedia as the synchronization reference, that is, to use the playback status of the multimedia as a reference to perform vibration processing, that is, to adjust and synchronize the playback status of the vibration, in order to achieve the effect of synchronized playback of multimedia and vibration.
[0054] In one embodiment, if the search result indicates that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in terms of playback timing, that is, the vibration effect of the target vibration segment is the vibration effect corresponding to the target multimedia segment, then when the playback time reaches the time indicated by the playback timestamp of the target multimedia segment, vibration processing is started on the target vibration segment, that is, playback of the target vibration segment is started. At this time, synchronous playback of the target multimedia segment and the target vibration segment can be achieved, so that the vibration effect of the target vibration segment is present during playback of the target multimedia segment.
[0055] Furthermore, if the search result indicates that the target vibration segment is found, but the time indicated by the timestamp of the target vibration segment lags significantly behind the time indicated by the playback timestamp in terms of the playback timing, then vibration synchronization processing is required to achieve synchronous playback of the multimedia and a vibration segment corresponding to the multimedia. For example, if the playback duration of the multimedia segment is 100ms, the vibration duration of the vibration segment is 100ms, and the time indicated by the playback timestamp of the target multimedia segment is 800ms, then the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the time indicated by the timestamp of the target vibration segment is 100ms, then the terminal device will play the vibration segment corresponding to 100ms to 200ms. At this time, if it is considered that the target vibration segment lags significantly behind the target multimedia segment, then vibration synchronization processing is required so that when playing the multimedia segment, the vibration segment with the corresponding vibration effect can be played.
[0056] Furthermore, if the search result indicates that the target vibration segment is found, but the time indicated by the timestamp of the target vibration segment is ahead of the time indicated by the playback timestamp in the playback timing, it is necessary to pause the vibration processing and perform vibration processing on the target vibration segment (i.e., play the target vibration segment) when the playback time reaches the time indicated by the timestamp of the target vibration segment. For example, if the playback duration of the multimedia segment is 100ms, the vibration duration of the vibration segment is 100ms, and the time indicated by the playback timestamp of the target multimedia segment is 800ms, the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the time indicated by the timestamp of the target vibration segment is 1000ms, the terminal device will play the vibration segment corresponding to 1000ms to 1100ms, but the multimedia segment corresponding to 800ms to 900ms should correspond to the vibration segment corresponding to 800ms to 900ms, that is, the playback time of the vibration segment corresponding to 1000ms to 1100ms has not yet been reached, that is, at this time it can be considered that the target vibration segment is ahead of the target multimedia segment, and it is necessary to suspend the vibration processing, and perform vibration processing on the target vibration segment when the playback time reaches 1000ms.
[0057] Furthermore, if the search result indicates that the target vibration segment is not found, it means that the vibration segment cannot be parsed from the received streaming media data of the multimedia object, that is, the vibration segment is not included in the vibration segment team, which further indicates that the streaming media server has a delay in sending the streaming media data of the vibration segment. The terminal device can continue to search for the target vibration segment from the received streaming media data according to the playback timestamp until the search result is obtained or the next playback timestamp arrives, that is, until the target vibration segment is found within the playback time of the target multimedia segment, or until the next multimedia segment of the target multimedia segment is processed. At this time, the target vibration segment will be searched from the received streaming media data according to the playback timestamp of the next multimedia segment of the target multimedia segment (that is, the next multimedia segment of the target multimedia segment is used as the new target multimedia segment, and the corresponding operation is repeated).
[0058] In the embodiment of the present application, a target multimedia segment can be determined from the streaming media data of the received multimedia object, and then the target vibration segment can be searched from the received streaming media data according to the play timestamp indicating the play start time of the target multimedia segment, and vibration processing can be performed according to the search result. The complete multimedia and the vibration segment used to achieve the vibration effect of the multimedia can be segmented in sequence and encoded for transmission, and the vibration data can be transmitted through the transmission mode of streaming media, and the vibration effect for multimedia playback can be achieved, and the application scenarios of vibration can be expanded. Moreover, by setting the timestamp in the streaming media segment and the vibration segment as a reference for vibration control, the error rate during multimedia collaborative vibration playback can be reduced.
[0059] Based on the above-mentioned embodiments of the vibration processing method for streaming media, the present application provides another vibration processing method for streaming media. Figure 3 , which is a flow chart of another vibration processing method for streaming media provided in an embodiment of the present application. Figure 3 The vibration processing method of streaming media shown can be executed by a terminal device. Figure 3 The vibration processing method of streaming media shown may include the following steps:
[0060] S301, receiving streaming media data of a multimedia object.
[0061] The streaming media data received by the terminal device may be sent by a streaming media server, and may include streaming media data of multimedia segments and streaming media data of vibration segments; the relevant process of step S301 is similar to the relevant process of the above-mentioned step S201, and will not be repeated here.
[0062] S302: parse and process the received streaming media data to obtain multimedia segments and vibration segments.
[0063] In one embodiment, after receiving the streaming media data of the multimedia object, the terminal device can parse and process the received streaming media data, that is, decode the received streaming media data to obtain a multimedia segment and a vibration segment; specifically, the streaming media data of the received multimedia segment can be parsed and processed to obtain the multimedia segment, and the streaming media data of the received vibration segment can be parsed and processed to obtain the vibration segment; wherein the playback duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment, in other words, the playback duration of the multimedia segment transmitted via the streaming media data matches the vibration duration of the vibration segment transmitted via the streaming media data; more specifically, the playback duration of the multimedia segment and the vibration duration of the vibration segment match here, which can mean that the playback duration of the multimedia segment and the vibration duration of the vibration segment are the same, that is, the playback duration of the multimedia segment and the vibration duration of the vibration segment obtained by parsing the received streaming media data are the same. Furthermore, after the terminal device parses the multimedia segment, it can add the parsed multimedia segment to the multimedia segment queue, and the multimedia segment that has been played in the multimedia queue can be deleted from the multimedia queue; after the terminal device parses the vibration segment, it can add the parsed vibration segment to the vibration segment queue, and the vibration segment that has been played in the vibration segment queue can be deleted from the vibration segment queue; the relevant process of step S302 is similar to the relevant process involved in the above-mentioned steps S202 and S203, and will not be repeated here; the embodiments of the present application are subsequently explained by taking the multimedia segment that has been played in the multimedia segment queue can be deleted from the multimedia segment queue, and the vibration segment that has been played in the vibration segment queue can be deleted from the vibration segment queue as an example.
[0064] S303: Determine a target multimedia segment from the received streaming media data.
[0065] The target multimedia segment will start playing at the time indicated by the play timestamp of the target multimedia segment. The target multimedia segment can be: among the multimedia segments obtained by parsing, among the multimedia segments that have not been played, the multimedia segment whose play timestamp indicates the earliest time in the play sequence, that is, among the multimedia segments that have not been played in the multimedia segment queue, the multimedia segment whose play timestamp indicates the earliest time in the play sequence; the relevant process of step S303 is similar to the relevant process of the above step S202, and will not be repeated here.
[0066] S304, searching for a target vibration segment from the received streaming media data according to the play timestamp to obtain a search result.
[0067] In one embodiment, the terminal device searches for a target vibration segment from the received streaming media data according to a playback timestamp, which may include: determining the target vibration segment from the vibration segments parsed from the received streaming media data according to the playback timestamp; the time difference between the timestamp of the target vibration segment and the playback timestamp of the target multimedia segment is the smallest, and the target vibration segment has not been subjected to vibration processing; further, the target vibration segment may be: among the vibration segments obtained by parsing, the vibration segment having the smallest time difference between the timestamp and the playback timestamp of the target multimedia segment among the vibration segments that have not been played; that is, it may be among the vibration segments in the vibration segment queue, the vibration segment having the smallest time difference between the timestamp and the playback timestamp of the target multimedia segment. For example, if the playback duration of a multimedia segment is 100ms, and the vibration duration of a vibration segment is 100ms; the multimedia segment queue includes 4 multimedia segments, and the times indicated by the playback timestamps of the first to fourth multimedia segments are 100ms, 200ms, 300ms, and 400ms, respectively; the target multimedia segment is a multimedia segment whose playback timestamp indicates a time of 100ms; the vibration segment queue includes 4 vibration segments, and the times indicated by the timestamps of the first to fourth vibration segments are 100ms, 200ms, 300ms, and 400ms, respectively; and the target vibration segment is a vibration segment whose timestamp indicates a time of 100ms.
[0068] S305, performing vibration processing according to the search result; different vibration processing is performed for different search results.
[0069] In one embodiment, the terminal device performs vibration processing according to the search result, which may include: if it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the play timestamp in the play timing, then the vibration processing of the target vibration segment is started when the time indicated by the play timestamp arrives. Wherein, when the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the play timestamp in the play timing, it indicates that the vibration effect achieved by the target vibration segment should be the vibration effect that needs to be achieved corresponding to the target multimedia segment. Therefore, the vibration processing of the target vibration segment can be started when the time indicated by the play timestamp arrives, that is, the vibration processing of the target vibration segment can be started when the play time reaches the time indicated by the play timestamp of the target multimedia segment, that is, the vibration processing of the target vibration segment can be started when the play of the target multimedia segment starts (that is, the play of the target vibration segment is started), and at this time, the synchronous play of the target multimedia segment and the target vibration segment can be achieved, so that the vibration effect of the target vibration segment is achieved during the play of the target multimedia segment.
[0070] For example, see Figure 4a , which is a schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application; if the playback duration of the multimedia segment is 100ms, and the vibration duration of the vibration segment is 100ms, as shown in the mark 401, the image is used to indicate the playback status of the multimedia to which the multimedia segment belongs, and the playback status of a vibration segment corresponding to the multimedia; if the time indicated by the playback timestamp of the target multimedia segment is 800ms, the time indicated in the playback timing of the corresponding multimedia is as shown in the mark 402, and the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the time indicated by the timestamp of the target vibration segment is 800ms, the terminal device will play the vibration segment corresponding to 800ms to 900ms, then when the time indicated by the playback timestamp arrives, vibration processing is performed on the target vibration segment, and the playback status of the multimedia to which the corresponding multimedia segment belongs, and the playback status of a vibration segment corresponding to the multimedia can be as shown in the mark 403.
[0071] In one embodiment, the terminal device performs vibration processing according to the search result, which may include: if it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, then when the time indicated by the playback timestamp arrives, pausing the vibration processing; when the playback time reaches the time indicated by the timestamp of the target vibration segment, performing vibration processing on the target vibration segment. Among them, the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, that is, the time indicated by the timestamp of the target vibration segment is ahead of the time indicated by the playback timestamp in the playback timing; indicating that the effect achieved by the target vibration segment should be the vibration effect that needs to be achieved corresponding to a multimedia segment whose playback time is after the target multimedia segment. Therefore, when the time indicated by the playback timestamp arrives, it is not necessary to play the target vibration segment, and the vibration processing can be suspended. When the playback time reaches the time indicated by the timestamp of the target vibration segment, the vibration processing is performed on the target vibration segment to achieve synchronous playback of the target vibration segment and the multimedia segment corresponding to the target vibration segment starting from the time indicated by the timestamp when the playback time reaches the target vibration segment.
[0072] For example, see Figure 4b, which is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application; if the playing duration of the multimedia segment is 100ms, and the vibration duration of the vibration segment is 100ms, as shown in the mark 411, the image is used to indicate the playing status of the multimedia to which the multimedia segment belongs, and the playing status of a vibration corresponding to the multimedia; if the time indicated by the playing timestamp of the target multimedia segment is 800ms, and the time indicated in the playing timing of the corresponding multimedia is as shown in the mark 412, then the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the time indicated by the timestamp of the target vibration segment is 800ms, the time indicated in the playing timing of the corresponding multimedia is as shown in the mark 412, then the terminal device will play the multimedia segment corresponding to 800ms to 900ms; If the playing time is 1000ms, the terminal device will play the vibration segment corresponding to 1000ms to 1100ms, but the multimedia segment corresponding to 800ms to 900ms should play the vibration segment corresponding to 800ms to 900ms, that is, the playing time of the vibration segment corresponding to 1000ms to 1100ms has not yet been reached, that is, the vibration processing can be suspended at this time, and the vibration processing is performed on the target vibration segment only when the playing time reaches 1000ms. The playing status of the multimedia to which the corresponding multimedia segment belongs, and the playing status of a vibration segment corresponding to the multimedia can be shown as marked 413.
[0073] In one embodiment, the terminal device performs vibration processing according to the search result, which may include: if the target vibration segment is found according to the search result, and the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than the first duration threshold, then the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp; according to the synchronization timestamp, a new target vibration segment is searched from the received streaming media data; wherein the first duration threshold can be set according to specific needs. Furthermore, the terminal device can also delete the lagging vibration segment from the received streaming media data; the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback sequence.
[0074] Among them, the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval time is greater than the first time threshold, that is, the time indicated by the timestamp of the target vibration segment is significantly behind the time indicated by the playback timestamp in the playback sequence; indicating that the vibration effect achieved by the target vibration segment should be the vibration effect that needs to be achieved corresponding to a multimedia segment whose playback time is before the target multimedia segment, and the playback time is already at the time when the target multimedia segment is about to be played, that is, the terminal device no longer needs to play the target vibration segment at this time, that is, the playback of a vibration corresponding to the multimedia has significantly lagged behind the playback of the multimedia; therefore, vibration synchronization processing is required to re-achieve the synchronous playback of the multimedia and the vibration corresponding to the multimedia. In specific implementation, the timestamp of the next multimedia segment of the target multimedia segment can be determined as the synchronization timestamp; the new target vibration segment is searched from the received streaming media data according to the synchronization timestamp; and the lagging vibration segment is deleted from the received streaming media data, and the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback sequence. It is expected that when processing a new target multimedia segment indicated by the synchronization timestamp, a new target vibration segment whose time indicated by the timestamp is the same as the time indicated by the synchronization timestamp can be obtained, and when playing the new target multimedia segment indicated by the synchronization timestamp, the new target vibration segment is played synchronously; deleting the lagging vibration segment from the received streaming media data is to delete the vibration segment that has already caused a play delay; further, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and the new target vibration segment is searched from the received streaming media data according to the synchronization timestamp. After obtaining a new search result, vibration processing can be performed according to the new search result. This process is similar to the related process of searching for the target vibration segment from the received streaming media data according to the play timestamp of the target vibration segment, obtaining the search result, and performing vibration processing according to the search result, and will not be repeated here.
[0075] For example, see Figure 4c, which is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application; if the playback duration of the multimedia segment is 100ms, and the vibration duration of the vibration segment is 100ms, as shown in the mark 421, the image is used to indicate the playback status of the multimedia to which the multimedia segment belongs, and the playback status of a vibration corresponding to the multimedia; if the time indicated by the playback timestamp of the target multimedia segment is 800ms, and the time indicated in the playback timing of the corresponding multimedia is as shown in the mark 422, the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the time indicated by the timestamp of the target vibration segment is 100ms, the terminal device will play the vibration segment corresponding to 100ms to 200ms; at this time, if it is determined that the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and the interval duration is greater than the first duration threshold, the timestamp of the next multimedia segment of the target multimedia segment can be set. It is determined to be a synchronization timestamp, that is, the time indicated by the synchronization timestamp is 900ms; then, the terminal device can delete the lagging vibration segment from the received streaming media data, and specifically delete the lagging vibration segment from the vibration segment queue. If the vibration segment queue only includes the vibration segment with the time indicated by the timestamp being 100ms, the vibration segment will be deleted; if within the playback time of the target multimedia segment, the terminal device receives vibration segments with the times indicated by the timestamp being 200ms to 1000ms, respectively, the terminal device can delete the vibration segments with the times indicated by the timestamp being 200ms to 800ms, respectively, from the vibration segment queue, and determine the vibration segment with the time indicated by the timestamp being 900ms as a new target vibration segment; and only when the playback time reaches 900ms, the vibration processing is performed on the new target vibration segment, and the playback status of the multimedia to which the corresponding multimedia segment belongs, and the playback status of a vibration segment corresponding to the multimedia can be shown as marked 423.
[0076] In one embodiment, if the search result indicates that the target vibration segment is not found, it means that the vibration segment cannot be parsed from the streaming media data of the received multimedia object, that is, the vibration segment is not included in the vibration segment team, which further indicates that the streaming media data of the vibration segment sent by the streaming media server is delayed. Then the terminal device can continue to search for the target vibration segment from the received streaming media data according to the play timestamp until the search result is obtained or the next play timestamp arrives. If the target vibration segment is found before the next play timestamp arrives, the vibration processing can be performed according to the corresponding search result; it is worth noting that if the time indicated by the timestamp of the found target vibration segment is the same as the time indicated by the play timestamp of the target multimedia segment in the play sequence, since the play time has already reached the play timestamp of the target multimedia segment, the target vibration segment can be played immediately until the next play timestamp arrives. Furthermore, while the terminal device continues to search for the target vibration segment from the received streaming media data according to the playback timestamp, the vibration processing can continue to be performed on the reference vibration segment according to the time extension rule; wherein the reference vibration segment refers to: a vibration segment that performs vibration processing before the time indicated by the playback timestamp, and the time extension rule can be set according to specific needs. For example, the time extension rule can indicate that the reference vibration segment is repeatedly played until a certain duration threshold is reached, or the search result is obtained.
[0077] In a specific implementation, the terminal device performs vibration processing according to the search result, which may include: if it is determined according to the search result that the target vibration segment is not found, and the time when the target vibration segment is not found is less than or equal to the second time threshold, then continue to perform vibration processing on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: the vibration segment that performs vibration processing before the time indicated by the play timestamp. Further, in the process of continuing to perform vibration processing on the reference vibration segment according to the time extension rule, if the target vibration segment is found, then perform vibration processing on the target vibration segment until the time indicated by the next play timestamp arrives. Among them, the interval between the time when the target vibration segment is not found and the time indicated by the playback timestamp, that is, the time consumed by the above-mentioned terminal device to continuously search for the target vibration segment from the received streaming media data according to the playback timestamp, and the second time threshold here can be set according to specific needs; the time extension rule can be set according to specific needs, for example, the time extension rule can indicate that the reference vibration segment is repeatedly played until a certain time threshold is reached, or the search result is obtained; or it can indicate that the reference vibration segment is scaled and played, specifically, the same waveform is played, but the time is extended. Furthermore, in the process of continuing to perform vibration processing on the reference vibration segment according to the time extension rule, if the target vibration segment is found, the vibration processing can be performed on the target vibration segment according to the corresponding search result until the time indicated by the next playback timestamp arrives. If the search result indicates that the time indicated by the timestamp of the found target vibration segment is the same as the time indicated by the playback timestamp of the target multimedia segment in terms of playback timing, since the playback time has already reached the playback timestamp of the target multimedia segment, the target vibration segment can be immediately started to be played until the next playback timestamp arrives, that is, the target vibration segment can be scaled and played until the time indicated by the next playback timestamp arrives. The scaled playback here should be playing the same waveform but shortening the time.
[0078] For example, see Figure 4d, which is another schematic diagram of realizing multimedia vibration effect provided by an embodiment of the present application; if the playing duration of the multimedia segment is 100ms, and the vibration duration of the vibration segment is 100ms, the image as shown in the mark 431 is used to indicate the playing status of the multimedia to which the multimedia segment belongs, and the playing status of a vibration segment corresponding to the multimedia; if the time indicated by the playing timestamp of the target multimedia segment is 800ms, and the time indicated in the playing timing of the corresponding multimedia is as shown in the mark 432, the terminal device will play the multimedia segment corresponding to 800ms to 900ms; if the target vibration segment is not obtained, the terminal device can continue to search for the target vibration segment from the received streaming media data according to the playing timestamp, and Continue to perform vibration processing on the reference vibration segment according to the time extension rule; if the target vibration segment is found at 850ms, and the corresponding search result indicates: the time indicated by the timestamp of the found target vibration segment is the same as the time indicated by the play timestamp of the target multimedia segment in terms of playback timing, since the playback time has already reached the play timestamp of the target multimedia segment, the target vibration segment can be played immediately until the next play timestamp arrives; that is, in the time period from 850ms to 900ms, the vibration segment corresponding to 800ms to 900ms is played; the playback status of the multimedia to which the corresponding multimedia segment belongs, and the playback status of a vibration segment corresponding to the multimedia can be shown as marked 433.
[0079] In one embodiment, since the terminal device can continuously receive the streaming media data sent by the streaming media server, when the streaming media data of the multimedia segment and the streaming media data of the vibration segment in the streaming media data are sent separately, the terminal device can perform transmission synchronization processing. That is, when the streaming media server sends the streaming media data of the multimedia segment and the streaming media data of the vibration segment, the streaming media data of the multimedia segment and the streaming media data of the vibration segment corresponding to the multimedia segment can be packaged into the same streaming media package for transmission, that is, the streaming media data of the multimedia segment and the streaming media data of the vibration segment with the same time indicated by the timestamp are packaged into the same streaming media package for transmission. In this case, the terminal device can simultaneously receive the streaming media data of the multimedia segment and the streaming media data of the vibration segment with the same time indicated by the timestamp, without the need to perform transmission synchronization processing. However, when the streaming media data of the multimedia segment and the streaming media data of the vibration segment in the streaming media data are sent separately, that is, the streaming media data of the multimedia segment and the streaming media data of the vibration segment are transmitted through different streaming media packages, it may cause the streaming media data of the multimedia segment and the streaming media data of the vibration segment received by the terminal device to be out of sync, and it is necessary to perform transmission synchronization processing under the out of sync situation.
[0080] In one embodiment, if there is a leading multimedia segment among the multimedia segments obtained by parsing, the vibration segment is given priority according to the priority rule; wherein the time indicated by the playback timestamp of the leading multimedia segment is later than the time indicated by the timestamp of the vibration segment in the parsed vibration segment in terms of the playback timing. The priority rule can be set according to specific needs, for example, the priority rule can be used to indicate: when giving priority to the vibration segment, the streaming media data of the vibration segment is received first, and the streaming media data of the vibration segment is decoded first. wherein, there is a leading multimedia segment among the multimedia segments obtained by parsing, that is, there is a time indicated by the playback timestamp, which is later than the time indicated by the timestamp of the vibration segment in the parsed vibration segment in terms of the playback timing; this indicates that the reception of the streaming media data of the vibration segment lags behind the reception of the streaming media data of the multimedia segment, and therefore the vibration segment can be given priority, for example, the streaming media data of the vibration segment is received first, and the streaming media data of the vibration segment is decoded first. For example, see Figure 5a , is a schematic diagram of a comparison between a multimedia segment and a vibration segment obtained by parsing provided in an embodiment of the present application, wherein the multimedia is a video; if the multimedia segment obtained by parsing includes, from the beginning to the end according to the time indicated by the play timestamp, a multimedia segment 1 (i.e., video segment 1) composed of video frames F1 and F2, a multimedia segment 2 composed of video frames F3 and F4, a multimedia segment 3 composed of video frames F5 and F6, and a multimedia segment 4 composed of video frames F6 and F7; the vibration segment obtained by parsing includes, from the beginning to the end according to the time indicated by the timestamp, a vibration segment 1 corresponding to multimedia segment 1, a vibration segment 2 corresponding to multimedia segment 2, and a vibration segment 3 corresponding to multimedia segment 3, and there is a leading multimedia segment, i.e., multimedia segment 4, then the terminal device can preferentially receive the streaming media data of the vibration segment, and preferentially decode the streaming media data of the vibration segment. Further optionally, the terminal device can send a prompt message to the streaming media server so that the streaming media server preferentially sends the streaming media data of the vibration segment.
[0081] In one embodiment, if there is a leading vibration segment in the vibration segments obtained by parsing, the leading vibration segment is cached in the vibration segment queue; wherein the time indicated by the timestamp of the leading vibration segment is later than the time indicated by the play timestamp of the multimedia segments in the multimedia segments obtained by parsing in terms of the play timing. When the play time reaches the time indicated by the timestamp of the leading vibration segment, the corresponding leading vibration segment is played. For example, see Figure 5b, which is another schematic diagram for comparing multimedia segments and vibration segments obtained by parsing provided in an embodiment of the present application, wherein the multimedia is a video; if the multimedia segments obtained by parsing include, from front to back according to the time indicated by the playback timestamp, multimedia segment 1 (i.e., video segment 1) composed of video frames F1 and video frames F2, multimedia segment 2 composed of video frames F3 and video frames F4, and multimedia segment 3 composed of video frames F5 and video frames F6; the vibration segments obtained by parsing include, from front to back according to the time indicated by the timestamp, vibration segment 1 corresponding to multimedia segment 1, vibration segment 2 corresponding to multimedia segment 2, vibration segment 3 corresponding to multimedia segment 3, and vibration segment 4 corresponding to multimedia segment 4, and there is a leading vibration segment, i.e., vibration segment 4, then the terminal device can cache the leading vibration segment and the vibration segment that has not yet been cached in the vibration segment queue into the vibration segment queue.
[0082] In one embodiment, if the number of vibration segments in the vibration segment queue is greater than a preset number threshold, a prompt message is sent; the prompt message is used to prompt the sending end of the streaming media data to suspend sending the vibration segments through the streaming media data. The preset number threshold can be set according to specific needs, and the sending end of the streaming media data can be a streaming media server. When the number of vibration segments in the vibration segment queue is greater than the preset number threshold, it can be prompted that the buffer of the vibration segment queue is too large, and the transmission of the streaming media data of the multimedia segment is delayed, for example, it may be a network failure that causes the transmission delay, and then a prompt message can be sent to make the streaming media server suspend sending the vibration segments through the streaming media data, that is, the streaming media server suspends sending the streaming media data of the vibration segments. Further optionally, the prompt message can be sent after the terminal device can normally receive the streaming media data of the multimedia segment; further optionally, the prompt message can be sent after the terminal device receives the streaming media data of the multimedia segment corresponding to the last vibration segment, so that the streaming media server resumes sending the streaming media data of the vibration segment; the last vibration segment here refers to the last vibration segment received when prompting the streaming media server to suspend sending the streaming media data of the vibration segment.
[0083] In the embodiment of the present application, the target vibration segment can be searched from the received streaming media data according to the playback timestamp to obtain the search result, so as to perform vibration processing in a targeted manner. It is shown that the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in the playback timing; the time indicated by the timestamp of the target vibration segment is ahead of the time indicated by the playback timestamp in the playback timing; the time indicated by the timestamp of the target vibration segment is significantly behind the time indicated by the playback timestamp in the playback timing; and the vibration processing method in various situations such as the target vibration segment is not found; the time indicated by the timestamp of the target vibration segment is ahead of the time indicated by the playback timestamp in the playback timing; or is significantly behind the time indicated by the playback timestamp; or the target vibration segment is not found, etc. In the case of various multimedia playback and vibration playback being out of sync, the synchronous playback of multimedia and vibration can be achieved to improve the interactive experience. In addition, a synchronization method in the streaming media transmission process of multimedia segments and vibration segments is also shown to achieve synchronous transmission of multimedia segments and vibration segments.
[0084] In the above-mentioned streaming media transmission process, after receiving the streaming media data of the multimedia object, the terminal device can parse and process the received streaming media data, that is, decode the received streaming media data to obtain multimedia segments and vibration segments; specifically, the streaming media data of the received vibration segment can be parsed and processed to obtain the vibration segment; further, after parsing and obtaining the vibration segment, the terminal device can obtain the information carried by the vibration segment. The information carried by the vibration segment at least includes: the timestamp of the vibration segment, the vibration duration of the vibration segment; further, the information carried by the vibration segment can also include vibration parameters, and the vibration parameters include: one or more of the segment type of the vibration segment, the vibration intensity of the vibration segment, and the vibration frequency of the vibration segment; wherein the vibration parameters at least include the segment type of the vibration segment.
[0085] In one embodiment, the segment type of the vibration segment may include one or more of an empty segment type, an independent segment type, a key segment type, a common segment type, and an ending segment type. Among them, (1) the empty segment type is used to indicate: a vibration segment with a vibration intensity of zero, that is, a vibration segment of the empty segment type does not vibrate. (2) the independent segment type is used to indicate: a vibration segment used to achieve a vibration effect, that is, a complete vibration effect can be achieved by playing only a vibration segment of the independent segment type. (3) the key segment type is used to indicate: the first vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect; that is, when a vibration effect needs to be achieved by using a plurality of vibration segments, the segment type of the first vibration segment among the plurality of vibration segments is defined as a key segment type. (4) the ending segment type is used to indicate: the last vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect; that is, when a vibration effect needs to be achieved by using a plurality of vibration segments, the segment type of the last vibration segment among the plurality of vibration segments is defined as an ending segment type. (5) the common segment type is used to indicate: other vibration segments except the first vibration segment and the last vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect. The introduction of the empty segment type is because too much vibration may have a negative impact on the interactive experience. Therefore, vibration can be performed only during a specific multimedia playback period, and no vibration is performed at other times. The no vibration situation can be achieved through the vibration segment class of the empty segment type.
[0086] In one embodiment, when the segment type of the vibration segment is represented by the event_Type field, the independent segment type can be represented by "1", the empty segment type can be represented by "2", the key segment type can be represented by "3", the common segment type can be represented by "4", and the ending segment type can be represented by "5". The streaming media data of a vibration segment provided by an embodiment of the present application (i.e., the encoded data of the vibration segment) can be as follows:
[0087]
[0088]
[0089]
[0090] The vibration segments corresponding to the different segment types may have different control logics when performing vibration processing; based on this, the embodiment of the present application provides another vibration processing method for streaming media, see Figure 6 , which is a flow chart of another vibration processing method for streaming media provided in an embodiment of the present application. Figure 6 The vibration processing method of streaming media shown can be executed by a terminal device. Figure 6 The vibration processing method of streaming media shown may include the following steps:
[0091] S601, receiving streaming media data of a multimedia object.
[0092] S602: Determine a target multimedia segment from the received streaming media data.
[0093] The target multimedia segment will start playing at the time indicated by the playing timestamp of the target multimedia segment.
[0094] S603, searching for a target vibration segment from the received streaming media data according to the play timestamp, and obtaining a search result.
[0095] The relevant processes of step S601 to step S603 are similar to the relevant processes of the above-mentioned steps S301 to step S304 and step S201 to step S203, and will not be repeated here.
[0096] S604: If it is determined according to the search result that the target vibration segment is found, it is determined whether the segment type of the target vibration segment is an empty segment type.
[0097] S605: If the segment type of the target vibration segment is an empty segment type, then the vibration processing for the target vibration segment is ignored.
[0098] In one embodiment, since the empty segment type is used to indicate a vibration segment with a vibration intensity of zero, that is, a vibration segment of the empty segment type does not vibrate, then, here, when the segment type of the target vibration segment is the empty segment type, the terminal device ignores performing vibration processing on the target vibration segment, that is, it does not vibrate during the time required to play the target vibration segment, so as to achieve the effect of ignoring performing vibration processing on the target vibration segment.
[0099] S606: If the segment type of the target vibration segment is not an empty segment type, determine whether the time indicated by the timestamp of the target vibration segment is later than the time indicated by the play timestamp in the play sequence.
[0100] S607, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, then when the time indicated by the playback timestamp arrives, the vibration processing is suspended, and when the playback time arrives at the time indicated by the timestamp of the target vibration segment, the vibration processing is performed on the target vibration segment.
[0101] In one embodiment, the terminal device performs the relevant processing of step S607 as described above. Figure 4bAs shown, the relevant processing process when the time indicated by the timestamp of the target vibration segment of the terminal device is ahead of the time indicated by the playback timestamp in terms of playback timing is similar and will not be repeated here.
[0102] S608, if the time indicated by the timestamp of the target vibration segment is not later than the time indicated by the playback timestamp in the playback sequence, determine whether the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and whether the interval duration is greater than a first duration threshold.
[0103] S609, if the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than the first duration threshold, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and a new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
[0104] In one embodiment, the terminal device performs the relevant processing of step S609 as described above. Figure 4c As shown, the relevant processing process of the terminal device when the time indicated by the timestamp of the target vibration segment is significantly behind the time indicated by the playback timestamp in the playback timing is similar, that is, similar to the vibration synchronization processing process, which will not be repeated here. Further, in this case, the terminal device can also delete the lagging vibration segment from the received streaming media data; wherein, the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback timing.
[0105] S610, if the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is less than or equal to the first duration threshold, or the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in the playback sequence, then the segment type of the target vibration segment is detected.
[0106] S611 , performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type.
[0107] In one embodiment, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: if the detected segment type is an independent segment type, then when the playback time reaches the time indicated by the timestamp of the target vibration segment, performing vibration processing on the target vibration segment.
[0108] In one embodiment, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: if the detected segment type is an independent segment type, but the playback time has not reached the time indicated by the timestamp of the target vibration segment, the vibration processing can be paused, and when the playback time reaches the time indicated by the timestamp of the target vibration segment, the vibration processing is performed on the target vibration segment.
[0109] In one embodiment, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: when the detected segment type is an independent segment type, if the time when the target vibration segment is found is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the second duration threshold, then continue to perform vibration processing on the reference vibration segment according to the time extension rule; wherein the reference vibration segment refers to: the vibration segment that performs vibration processing before the time indicated by the playback timestamp. The terminal device performs the relevant processing of step S611, which is the same as the above Figure 4d As shown, when the terminal device determines that the target vibration segment is not found, the interval between the time indicated by the play timestamp is less than or equal to the second time threshold, that is, the time consumed by the terminal device to continuously search for the target vibration segment from the received streaming media data according to the play timestamp is less than or equal to the second time threshold, the relevant processing process is similar, and will not be repeated here. Further, the terminal device can perform vibration processing on the target vibration segment according to the search result of the target vibration segment until the time indicated by the next play timestamp arrives. If the search result indicates that the time indicated by the timestamp of the target vibration segment found is the same as the time indicated by the play timestamp of the target multimedia segment in the play timing, because the time when the target vibration segment is found is later than the time indicated by the play timestamp in the play timing, that is, the play time has already reached the play timestamp of the target vibration segment, then the target vibration segment can be immediately started to be played until the next play timestamp arrives.
[0110] In one embodiment, when the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, if the detected segment type is a key segment type, the corresponding processing logic is similar to the processing logic when the detected segment type is an independent segment type, and also includes the following processing logic. At this time, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: if the detected segment type is a key segment type, then at the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment. Due to the particularity of the underlying hardware principle for realizing vibration, it takes time to start and stop the hardware when realizing vibration; therefore, at the end of multiple vibration segments that realize the same vibration effect, if the hardware is turned off to stop running, and then restarted at the beginning of the next vibration segment to restart running, then there will be a sense of lag between the vibration segments due to the hardware start and stop.
[0111] Based on this, in a plurality of continuous vibration segments used to achieve a vibration effect, each vibration segment needs to be smoothed to ensure the continuity of the vibration effect. Specifically, for the first vibration segment, i.e., a vibration segment of the key segment type, since it is associated with the next vibration segment, it can be smoothed at its vibration end time point to achieve a smooth connection with the next vibration segment. For other vibration segments except the first vibration segment and the last vibration segment, i.e., vibration segments of the common segment type, since they are associated with the previous vibration segment and the next vibration segment, they can be smoothed at their vibration start time point or before the vibration processing is performed to achieve a smooth connection with the previous vibration segment; and at their vibration end time point, they can be smoothed to achieve a smooth connection with the next vibration segment. For the last vibration segment, i.e., a vibration segment of the ending segment type, since it is associated with the previous vibration segment, it can be smoothed at its vibration start time point or before the vibration processing is performed to achieve a smooth connection with the previous vibration segment. In a feasible implementation, when smoothing a vibration segment at the end time of the vibration, it can be achieved by keeping the hardware required for the vibration turned on, that is, not turning off the hardware required for the vibration, and further maintaining the vibration intensity, so as to achieve a smooth connection with the next vibration segment; when smoothing a vibration segment at the start time of the vibration or before performing the vibration processing, it can be achieved by adjusting the vibration intensity to the vibration intensity maintained at the end of the previous vibration segment to achieve a smooth connection with the previous vibration segment. Based on this, when the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, if the detected segment type is a key segment type, the target vibration segment can be smoothed at the end time of the vibration of the target vibration segment to achieve a smooth connection with the next vibration segment of the target vibration segment. Furthermore, since the vibration segment of the independent segment type is not associated with other vibration segments, it is not necessary to smooth the vibration segment of the independent segment type.
[0112] In one embodiment, when the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, if the detected segment type is an ending segment type, the corresponding processing logic is similar to the processing logic when the detected segment type is an independent segment type, and also includes the following processing logic. At this time, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: if the detected segment type is an ending segment type, before the target vibration segment performs vibration processing, according to the vibration end state of the previous vibration segment of the target vibration segment, the target vibration segment is smoothed to achieve smooth connection with the previous vibration segment. Further optionally, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may also include: when the detected segment type is an ending segment type, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the play timestamp in the play timing, and the corresponding interval duration is less than or equal to the reference duration threshold, then the target vibration segment is subjected to scaling vibration processing to reduce the vibration duration of the target vibration segment. Among them, the reference duration threshold can be set according to specific needs; if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the reference duration threshold, it can be said that the time indicated by the timestamp of the target vibration segment is slightly ahead of the time indicated by the playback timestamp in the playback timing, and since the segment type of the target vibration segment is a common segment type, in this case, if the vibration processing is suspended, it will cause discontinuous vibration. In order to ensure that the synchronization of vibration and multimedia is restored as soon as possible, it is necessary to perform scaling vibration processing on the target vibration segment to reduce the vibration duration of the target vibration segment, that is, play the same waveform but shorten the time.
[0113] In one embodiment, when the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, if the detected segment type is a common segment type, the corresponding processing logic is similar to the processing logic when the detected segment type is an independent segment type, and also includes the following processing logic. At this time, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may include: if the detected segment type is a common segment type, before the target vibration segment performs vibration processing, according to the vibration end state of the previous vibration segment of the target vibration segment, smoothing the target vibration segment to achieve smooth connection with the previous vibration segment; at the vibration end time point of the target vibration segment, smoothing the target vibration segment to achieve smooth connection with the next vibration segment of the target vibration segment. Further optionally, the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, which may also include: when the detected segment type is a common segment type, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, and the corresponding interval duration is less than or equal to the reference duration threshold, then performing scaling vibration processing on the target vibration segment to reduce the vibration duration of the target vibration segment; this process is similar to the processing logic when the detected segment type is the ending segment type mentioned above, and will not be repeated here. Optionally, for vibration segments of the common segment type, if a delay occurs, mandatory synchronization may not be performed unless an excessively long inconsistency occurs, such as a vibration delay relative to the multimedia of more than 1 second.
[0114] See also Figure 7 , which is a judgment schematic diagram of a vibration processing method for streaming media provided by an embodiment of the present application; after the terminal device determines that the target vibration segment is found according to the search result, it can determine whether the segment type of the target vibration segment is an empty segment type; if the segment type of the target vibration segment is an empty segment type, the vibration processing of the target vibration segment is ignored; otherwise, it is determined whether the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence. If the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, the vibration processing is suspended when the time indicated by the playback timestamp arrives, and the vibration processing is performed on the target vibration segment when the playback time arrives at the time indicated by the timestamp of the target vibration segment; otherwise, it is determined whether the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and whether the interval duration is greater than the first duration threshold.
[0115] If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than the first duration threshold, vibration synchronization processing is performed, that is, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and a new target vibration segment is searched from the received streaming media data according to the synchronization timestamp; otherwise, the segment type of the target vibration segment is detected, and vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the detected segment type.
[0116] Furthermore, when the terminal device performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, it can first detect whether the segment type of the target vibration segment is an independent segment type. If so, the vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the independent segment type. Otherwise, it is detected whether the segment type of the target vibration segment is a key segment type. If so, the vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the key segment type. Otherwise, it is detected whether the segment type of the target vibration segment is an ending segment type. If so, the vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the ending segment type. Otherwise, it can be determined that the segment type of the target vibration segment is a common segment type, and then the vibration processing can be performed on the target vibration segment according to the vibration rule corresponding to the common segment type.
[0117] In one embodiment, the vibration processing method of streaming media proposed in the present application can realize the synchronous playback of multimedia and vibration in the streaming media transmission scenario; accordingly, the method can also be applied to the local playback scenario of multimedia to realize the synchronous playback of multimedia and vibration. When the method is applied to the local playback scenario of multimedia, such as the local playback of video, the local playback of audio and other scenarios, the above method can be used to realize the synchronous playback of multimedia and vibration based on the multimedia segment queue and the vibration segment queue obtained by re-encoding the multimedia file and the vibration description file.
[0118] In the embodiment of the present application, multiple segment types of vibration segments are proposed, which may include: an empty segment type, an independent segment type, a key segment type, a common segment type, and an ending segment type. According to the characteristics of vibration segments of different segment types, processing logics for vibration processing of vibration segments of various segment types can be proposed in a targeted manner, which can improve the vibration effect and the interactive experience. For example, for vibration segments of key segment types, common segment types, and ending segment types, smoothing processing needs to be performed to ensure smooth links between vibration segments, further ensure smooth transition of vibration effects, and improve vibration effects.
[0119] Based on the above embodiments related to the method for processing vibration of streaming media, the present application embodiment provides a device for processing vibration of streaming media. Figure 8 , is a schematic diagram of the structure of a vibration processing device for streaming media provided in an embodiment of the present application. The vibration processing device for streaming media may include an acquisition unit 801 and a processing unit 802. Figure 8 The vibration processing device of the streaming media shown can be used to perform the following operations:
[0120] A receiving unit 801 is used to receive streaming media data of a multimedia object;
[0121] The processing unit 802 is used to determine a target multimedia segment from the received streaming media data; the target multimedia segment will start playing at the time indicated by the playing timestamp of the target multimedia segment;
[0122] The processing unit 802 is further configured to search for a target vibration segment from the received streaming media data according to the playback timestamp, and obtain a search result, wherein the playback duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment;
[0123] The processing unit 802 is further configured to perform vibration processing according to the search result; different vibration processing is performed for different search results.
[0124] In one embodiment, when the processing unit 802 searches for the target vibration segment from the received streaming media data according to the playback timestamp, the processing unit 802 specifically performs the following operations:
[0125] According to the play timestamp, a target vibration segment is determined from the vibration segments parsed from the received streaming media data; the time difference between the timestamp of the target vibration segment and the play timestamp of the target multimedia segment is the smallest, and the target vibration segment is not subjected to vibration processing.
[0126] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0127] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in terms of playback timing, vibration processing is performed on the target vibration segment when the time indicated by the playback timestamp arrives.
[0128] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0129] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is later than the time indicated by the play timestamp in the play sequence, then when the time indicated by the play timestamp arrives, the vibration processing is suspended;
[0130] When the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
[0131] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0132] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and the interval duration is greater than the first duration threshold, then the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp;
[0133] A new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
[0134] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0135] The lagging vibration segments are deleted from the received streaming media data; the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback timing.
[0136] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0137] If it is determined according to the search result that the target vibration segment is not found, and the interval between the time when the target vibration segment is not found and the time indicated by the playback timestamp is less than or equal to the second duration threshold, vibration processing is continued to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
[0138] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0139] In the process of continuously performing vibration processing on the reference vibration segment according to the time extension rule, if a target vibration segment is found, vibration processing is performed on the target vibration segment until the time indicated by the next play timestamp arrives.
[0140] In one embodiment, the processing unit 802 is further configured to:
[0141] Parsing and processing the received streaming media data to obtain multimedia segments and vibration segments;
[0142] If there is a leading multimedia segment among the multimedia segments obtained by parsing, the vibration segment is processed preferentially according to the priority rule;
[0143] The time indicated by the play timestamp of the leading multimedia segment is later than the time indicated by the timestamp of the vibration segment in the vibration segment obtained by parsing in terms of the play timing.
[0144] In one embodiment, the processing unit 802 is further configured to:
[0145] If there is a leading vibration segment in the vibration segments obtained by analysis, the leading vibration segment is cached in a vibration segment queue;
[0146] The time indicated by the timestamp of the leading vibration segment is later than the time indicated by the play timestamp of the multimedia segment in the multimedia segment obtained by parsing in terms of play timing.
[0147] In one embodiment, the processing unit 802 is further configured to:
[0148] If the number of vibration segments in the vibration segment queue is greater than a preset number threshold, a prompt message is sent; the prompt message is used to prompt the transmitter of the streaming media data to suspend sending the vibration segments through the streaming media data.
[0149] In one embodiment, the information carried by the vibration segment includes at least: a timestamp of the vibration segment, a vibration duration of the vibration segment;
[0150] The information carried by the vibration segment also includes vibration parameters, and the vibration parameters include: one or more of the segment type of the vibration segment, the vibration intensity of the vibration segment, and the vibration frequency of the vibration segment.
[0151] In one embodiment, the information carried by the vibration segment includes the segment type of the vibration segment, and the segment type of the vibration segment includes: one or more of an empty segment type, an independent segment type, a key segment type, a common segment type, and an ending segment type;
[0152] The empty segment type is used to indicate: a vibration segment with zero vibration intensity;
[0153] The independent segment type is used to indicate: a vibration segment for realizing a vibration effect;
[0154] The key segment type is used to indicate: a first vibration segment among a plurality of continuous vibration segments for realizing a vibration effect;
[0155] The ending segment type is used to indicate: the last vibration segment among a plurality of continuous vibration segments for realizing a vibration effect;
[0156] The common segment type is used to indicate: other vibration segments except the first vibration segment and the last vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect.
[0157] In one embodiment, when the processing unit 802 performs vibration processing according to the search result, the processing unit 802 specifically performs the following operations:
[0158] If it is determined according to the search result that the target vibration segment is found, determining whether the segment type of the target vibration segment is the empty segment type;
[0159] If the segment type of the target vibration segment is the empty segment type, the vibration processing for the target vibration segment is ignored.
[0160] In one embodiment, the processing unit 802 is further configured to:
[0161] If the segment type of the target vibration segment is not the empty segment type, determining whether the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing sequence;
[0162] If the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, the vibration processing is suspended when the time indicated by the playback timestamp arrives, and the vibration processing is performed on the target vibration segment when the playback time arrives at the time indicated by the timestamp of the target vibration segment.
[0163] In one embodiment, the processing unit 802 is further configured to:
[0164] If the time indicated by the timestamp of the target vibration segment is not later than the time indicated by the playback timestamp in the playback timing, then determining whether the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and whether the interval duration is greater than a first duration threshold;
[0165] If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than a first duration threshold, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and a new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
[0166] In one embodiment, the processing unit 802 is further configured to:
[0167] If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is less than or equal to the first duration threshold, or the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in the playback sequence, then detecting the segment type of the target vibration segment;
[0168] Vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the detected segment type.
[0169] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0170] If the detected segment type is the independent segment type, when the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
[0171] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0172] In the case where the detected segment type is the independent segment type, if the time when the target vibration segment is found is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the second duration threshold, then vibration processing continues to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
[0173] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0174] If the detected segment type is the key segment type, then at the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
[0175] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0176] If the detected segment type is the ending segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to the vibration ending state of a previous vibration segment of the target vibration segment to achieve smooth connection with the previous vibration segment.
[0177] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0178] If the detected segment type is the common segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to a vibration end state of a previous vibration segment of the target vibration segment, so as to achieve a smooth connection with the previous vibration segment;
[0179] At the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
[0180] In one embodiment, when the processing unit 802 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processing unit 802 specifically performs the following operations:
[0181] In the case where the detected segment type is the common segment type or the ending segment type, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the reference duration threshold, scaling vibration processing is performed on the target vibration segment to reduce the vibration duration of the target vibration segment.
[0182] According to one embodiment of the present application, Figure 2 , Figure 3 as well as Figure 6 The steps involved in the vibration processing method of the streaming media shown can be performed by Figure 8 The vibration processing of the streaming media shown is performed by various units in the device. For example, Figure 2Step S201 shown can be performed by Figure 8 The acquisition unit 801 in the vibration processing device of the streaming media shown is executed, Figure 2 Steps S202 to S204 shown in FIG. Figure 8 The processing unit 802 in the vibration processing device of the streaming media shown in the figure is executed. Figure 3 Step S301 shown can be performed by Figure 8 The acquisition unit 801 in the vibration processing device of the streaming media shown is executed, Figure 3 Steps S302 to S305 shown in FIG. Figure 8 The processing unit 802 in the vibration processing device of the streaming media shown in the figure is executed. Figure 6 Step S601 shown can be performed by Figure 8 The acquisition unit 801 in the vibration processing device of the streaming media shown is executed, Figure 6 Steps S602 to S611 shown in FIG. Figure 8 The vibration processing of the streaming media is executed by the processing unit 802 in the device for processing the streaming media.
[0183] According to another embodiment of the present application, Figure 8 The various units in the vibration processing device of the streaming media shown can be separately or completely combined into one or several other units to constitute, or one (some) of the units can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. For example, the functions realized by the above-mentioned units can be realized by one processing unit. In other embodiments of the present application, the vibration processing device of the streaming media divided based on logical functions can also include other units. In practical applications, these functions can also be realized with the assistance of other units, and can be realized by the collaboration of multiple units.
[0184] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2 , Figure 3 as well as Figure 6 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 8The vibration processing device of the streaming media shown in the embodiment of the present application is used to implement the vibration processing method of the streaming media of the present application. The computer program can be recorded on a computer-readable storage medium, for example, and loaded into the above-mentioned computing device through the computer-readable storage medium and run therein.
[0185] In the embodiment of the present application, a target multimedia segment can be determined from the streaming media data of the received multimedia object, and then the target vibration segment can be searched from the received streaming media data according to the play timestamp indicating the play start time of the target multimedia segment, and vibration processing can be performed according to the search result. The complete multimedia and the vibration segment used to achieve the vibration effect of the multimedia can be segmented in sequence and encoded for transmission, and the vibration data can be transmitted through the transmission mode of streaming media, and the vibration effect for multimedia playback can be achieved, and the application scenarios of vibration can be expanded. Moreover, by setting the timestamp in the streaming media segment and the vibration segment as a reference for vibration control, the error rate during multimedia collaborative vibration playback can be reduced.
[0186] Based on the above-mentioned embodiments of the vibration processing method for streaming media and the embodiments of the vibration processing device for streaming media, the present application also provides a streaming media vibration processing device, which is the receiving end of the streaming media data, that is, the terminal device in the above-mentioned streaming media transmission system. Fig. 9 , which is a structural diagram of a vibration processing device for streaming media provided in an embodiment of the present application. Fig. 9 The streaming media vibration processing device shown may include at least a processor 901, an input interface 902, an output interface 903, and a computer storage medium 904. The processor 901, the input interface 902, the output interface 903, and the computer storage medium 904 may be connected via a bus or other means.
[0187] The computer storage medium 904 can be stored in the memory of the vibration processing device for streaming media. The computer storage medium 904 is used to store a computer program. The computer program includes program instructions. The processor 901 is used to execute the program instructions stored in the computer storage medium 904. The processor 901 (or CPU (Central Processing Unit)) is the computing core and control core of the vibration processing device for streaming media, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the above-mentioned vibration processing method flow or corresponding functions of streaming media.
[0188] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device in the vibration processing device of the streaming media, used to store programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor 901 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed random access memory (RAM) memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.
[0189] In one embodiment, the processor 901 may load and execute one or more instructions stored in the computer storage medium to implement the above-mentioned Figure 2 , Figure 3 as well as Figure 6 In the corresponding steps of the method in the embodiment of the method for processing vibration of streaming media, in a specific implementation, one or more instructions in the computer storage medium are loaded by the processor 901 and the following steps are executed:
[0190] Receiving streaming media data of multimedia objects;
[0191] Determine a target multimedia segment from the received streaming media data; the target multimedia segment will start playing at the time indicated by the play timestamp of the target multimedia segment;
[0192] Searching for a target vibration segment from the received streaming media data according to the play timestamp to obtain a search result, wherein the play duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment;
[0193] The vibration processing is performed according to the search result; different vibration processing is performed for different search results.
[0194] In one embodiment, when the processor 901 searches for a target vibration segment from the received streaming media data according to the playback timestamp, the processor 901 specifically performs the following operations:
[0195] According to the play timestamp, a target vibration segment is determined from the vibration segments parsed from the received streaming media data; the time difference between the timestamp of the target vibration segment and the play timestamp of the target multimedia segment is the smallest, and the target vibration segment is not subjected to vibration processing.
[0196] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0197] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in terms of playback timing, vibration processing is performed on the target vibration segment when the time indicated by the playback timestamp arrives.
[0198] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0199] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is later than the time indicated by the play timestamp in the play sequence, then when the time indicated by the play timestamp arrives, the vibration processing is suspended;
[0200] When the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
[0201] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0202] If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and the interval duration is greater than the first duration threshold, then the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp;
[0203] A new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
[0204] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0205] The lagging vibration segments are deleted from the received streaming media data; the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback timing.
[0206] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0207] If it is determined according to the search result that the target vibration segment is not found, and the interval between the time when the target vibration segment is not found and the time indicated by the playback timestamp is less than or equal to the second duration threshold, vibration processing is continued to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
[0208] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0209] In the process of continuously performing vibration processing on the reference vibration segment according to the time extension rule, if a target vibration segment is found, vibration processing is performed on the target vibration segment until the time indicated by the next play timestamp arrives.
[0210] In one embodiment, the processor 901 is further configured to:
[0211] Parsing and processing the received streaming media data to obtain multimedia segments and vibration segments;
[0212] If there is a leading multimedia segment among the multimedia segments obtained by parsing, the vibration segment is processed preferentially according to the priority rule;
[0213] The time indicated by the play timestamp of the leading multimedia segment is later than the time indicated by the timestamp of the vibration segment in the vibration segment obtained by parsing in terms of the play timing.
[0214] In one embodiment, the processor 901 is further configured to:
[0215] If there is a leading vibration segment in the vibration segments obtained by analysis, the leading vibration segment is cached in a vibration segment queue;
[0216] The time indicated by the timestamp of the leading vibration segment is later than the time indicated by the play timestamp of the multimedia segment in the multimedia segment obtained by parsing in terms of play timing.
[0217] In one embodiment, the processor 901 is further configured to:
[0218] If the number of vibration segments in the vibration segment queue is greater than a preset number threshold, a prompt message is sent; the prompt message is used to prompt the transmitter of the streaming media data to suspend sending the vibration segments through the streaming media data.
[0219] In one embodiment, the information carried by the vibration segment includes at least: a timestamp of the vibration segment, a vibration duration of the vibration segment;
[0220] The information carried by the vibration segment also includes vibration parameters, and the vibration parameters include: one or more of the segment type of the vibration segment, the vibration intensity of the vibration segment, and the vibration frequency of the vibration segment.
[0221] In one embodiment, the information carried by the vibration segment includes the segment type of the vibration segment, and the segment type of the vibration segment includes: one or more of an empty segment type, an independent segment type, a key segment type, a common segment type, and an ending segment type;
[0222] The empty segment type is used to indicate: a vibration segment with zero vibration intensity;
[0223] The independent segment type is used to indicate: a vibration segment for realizing a vibration effect;
[0224] The key segment type is used to indicate: a first vibration segment among a plurality of continuous vibration segments for realizing a vibration effect;
[0225] The ending segment type is used to indicate: the last vibration segment among a plurality of continuous vibration segments for realizing a vibration effect;
[0226] The common segment type is used to indicate: other vibration segments except the first vibration segment and the last vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect.
[0227] In one embodiment, when the processor 901 performs vibration processing according to the search result, the processor 901 specifically performs the following operations:
[0228] If it is determined according to the search result that the target vibration segment is found, determining whether the segment type of the target vibration segment is the empty segment type;
[0229] If the segment type of the target vibration segment is the empty segment type, the vibration processing for the target vibration segment is ignored.
[0230] In one embodiment, the processor 901 is further configured to:
[0231] If the segment type of the target vibration segment is not the empty segment type, determining whether the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing sequence;
[0232] If the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, the vibration processing is suspended when the time indicated by the playback timestamp arrives, and the vibration processing is performed on the target vibration segment when the playback time arrives at the time indicated by the timestamp of the target vibration segment.
[0233] In one embodiment, the processor 901 is further configured to:
[0234] If the time indicated by the timestamp of the target vibration segment is not later than the time indicated by the playback timestamp in the playback timing, then determining whether the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and whether the interval duration is greater than a first duration threshold;
[0235] If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than a first duration threshold, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and a new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
[0236] In one embodiment, the processor 901 is further configured to:
[0237] If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is less than or equal to the first duration threshold, or the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in the playback sequence, then detecting the segment type of the target vibration segment;
[0238] Vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the detected segment type.
[0239] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0240] If the detected segment type is the independent segment type, when the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
[0241] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0242] In the case where the detected segment type is the independent segment type, if the time when the target vibration segment is found is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the second duration threshold, then vibration processing continues to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
[0243] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0244] If the detected segment type is the key segment type, then at the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
[0245] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0246] If the detected segment type is the ending segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to the vibration ending state of a previous vibration segment of the target vibration segment to achieve smooth connection with the previous vibration segment.
[0247] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0248] If the detected segment type is the common segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to a vibration end state of a previous vibration segment of the target vibration segment, so as to achieve a smooth connection with the previous vibration segment;
[0249] At the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
[0250] In one embodiment, when the processor 901 performs vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type, the processor 901 specifically performs the following operations:
[0251] In the case where the detected segment type is the common segment type or the ending segment type, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the reference duration threshold, scaling vibration processing is performed on the target vibration segment to reduce the vibration duration of the target vibration segment.
[0252] The embodiment of the present application provides a computer program product, which includes a computer program stored in a computer storage medium; a processor of a vibration processing device for streaming media reads the computer program from the computer storage medium, and the processor executes the computer program, so that the vibration processing device for streaming media performs the above-mentioned Figure 2 , Figure 3 as well as Figure 6 The computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0253] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for processing vibration of streaming media, characterized in that: include: Receiving streaming media data of multimedia objects; determining a target multimedia segment from the received streaming media data; The target multimedia segment starts playing at the time indicated by the playing timestamp of the target multimedia segment; Searching for a target vibration segment from the received streaming media data according to the play timestamp to obtain a search result, wherein the play duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment; The vibration processing is performed according to the search result; different vibration processing is performed for different search results.
2. The method according to claim 1, characterized in that The step of searching the target vibration segment from the received streaming media data according to the playback timestamp includes: According to the play timestamp, a target vibration segment is determined from the vibration segments parsed from the received streaming media data; the time difference between the timestamp of the target vibration segment and the play timestamp of the target multimedia segment is the smallest, and the target vibration segment is not subjected to vibration processing.
3. The method according to claim 2, characterized in that The performing vibration processing according to the search result includes: If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in terms of playback timing, vibration processing is performed on the target vibration segment when the time indicated by the playback timestamp arrives.
4. The method according to claim 2, characterized in that The performing vibration processing according to the search result includes: If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is later than the time indicated by the play timestamp in the play sequence, then when the time indicated by the play timestamp arrives, the vibration processing is suspended; When the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
5. The method according to claim 2, characterized in that The performing vibration processing according to the search result includes: If it is determined according to the search result that the target vibration segment is found, and the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and the interval duration is greater than the first duration threshold, then the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp; A new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
6. The method according to claim 5, characterized in that The performing vibration processing according to the search result also includes: The lagging vibration segments are deleted from the received streaming media data; the time indicated by the timestamp of any lagging vibration segment is earlier than the time indicated by the synchronization timestamp in the playback timing.
7. The method according to claim 2, characterized in that The performing vibration processing according to the search result includes: If it is determined according to the search result that the target vibration segment is not found, and the interval between the time when the target vibration segment is not found and the time indicated by the playback timestamp is less than or equal to the second duration threshold, vibration processing is continued to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
8. The method according to claim 7, characterized in that The performing vibration processing according to the search result also includes: In the process of continuously performing vibration processing on the reference vibration segment according to the time extension rule, if a target vibration segment is found, vibration processing is performed on the target vibration segment until the time indicated by the next play timestamp arrives.
9. The method according to claim 1, characterized in that The method further comprises: Parsing and processing the received streaming media data to obtain multimedia segments and vibration segments; If there is a leading multimedia segment among the multimedia segments obtained by parsing, the vibration segment is processed preferentially according to the priority rule; The time indicated by the play timestamp of the leading multimedia segment is later than the time indicated by the timestamp of the vibration segment in the vibration segment obtained by parsing in terms of the play timing.
10. The method according to claim 9, characterized in that The method further comprises: If there is a leading vibration segment in the vibration segments obtained by analysis, the leading vibration segment is cached in a vibration segment queue; The time indicated by the timestamp of the leading vibration segment is later than the time indicated by the play timestamp of the multimedia segment in the multimedia segment obtained by parsing in terms of play timing.
11. The method according to claim 10, characterized in that The method further comprises: If the number of vibration segments in the vibration segment queue is greater than a preset number threshold, a prompt message is sent; the prompt message is used to prompt the sender of the streaming media data to suspend sending the vibration segments through the streaming media data.
12. The method according to any one of claims 1 to 11, characterized in that: The information carried by the vibration segment includes at least: a timestamp of the vibration segment and a vibration duration of the vibration segment; The information carried by the vibration segment also includes vibration parameters, and the vibration parameters include: one or more of the segment type of the vibration segment, the vibration intensity of the vibration segment, and the vibration frequency of the vibration segment.
13. The method according to any one of claims 1 to 11, characterized in that: The information carried by the vibration segment includes the segment type of the vibration segment, and the segment type of the vibration segment includes one or more of an empty segment type, an independent segment type, a key segment type, a common segment type, and an ending segment type; The empty segment type is used to indicate: a vibration segment with zero vibration intensity; The independent segment type is used to indicate: a vibration segment for realizing a vibration effect; The key segment type is used to indicate: a first vibration segment among a plurality of continuous vibration segments for realizing a vibration effect; The ending segment type is used to indicate: the last vibration segment among a plurality of continuous vibration segments for realizing a vibration effect; The common segment type is used to indicate: other vibration segments except the first vibration segment and the last vibration segment among a plurality of continuous vibration segments used to achieve a vibration effect.
14. The method according to claim 13, characterized in that The performing vibration processing according to the search result comprises: If it is determined according to the search result that the target vibration segment is found, determining whether the segment type of the target vibration segment is the empty segment type; If the segment type of the target vibration segment is the empty segment type, the vibration processing for the target vibration segment is ignored.
15. The method according to claim 14, characterized in that The method further comprises: If the segment type of the target vibration segment is not the empty segment type, determining whether the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing sequence; If the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback sequence, the vibration processing is suspended when the time indicated by the playback timestamp arrives, and the vibration processing is performed on the target vibration segment when the playback time arrives at the time indicated by the timestamp of the target vibration segment.
16. The method according to claim 15, characterized in that The method further comprises: If the time indicated by the timestamp of the target vibration segment is not later than the time indicated by the playback timestamp in the playback timing, then determining whether the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback timing, and whether the interval duration is greater than a first duration threshold; If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is greater than a first duration threshold, the timestamp of the next multimedia segment of the target multimedia segment is determined as the synchronization timestamp, and a new target vibration segment is searched from the received streaming media data according to the synchronization timestamp.
17. The method according to claim 16, characterized in that The method further comprises: If the time indicated by the timestamp of the target vibration segment is earlier than the time indicated by the playback timestamp in the playback sequence, and the interval duration is less than or equal to the first duration threshold, or the time indicated by the timestamp of the target vibration segment is the same as the time indicated by the playback timestamp in the playback sequence, then detecting the segment type of the target vibration segment; Vibration processing is performed on the target vibration segment according to the vibration rule corresponding to the detected segment type.
18. The method according to claim 17, characterized in that The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: If the detected segment type is the independent segment type, when the playing time reaches the time indicated by the timestamp of the target vibration segment, vibration processing is performed on the target vibration segment.
19. The method according to claim 17, characterized in that The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: In the case where the detected segment type is the independent segment type, if the time when the target vibration segment is found is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the second duration threshold, then vibration processing continues to be performed on the reference vibration segment according to the time extension rule; the reference vibration segment refers to: a vibration segment on which vibration processing is performed before the time indicated by the playback timestamp.
20. The method of claim 17, wherein: The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: If the detected segment type is the key segment type, then at the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
21. The method of claim 17, wherein: The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: If the detected segment type is the ending segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to the vibration ending state of a previous vibration segment of the target vibration segment to achieve smooth connection with the previous vibration segment.
22. The method of claim 17, wherein: The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: If the detected segment type is the common segment type, before the target vibration segment performs vibration processing, the target vibration segment is smoothed according to a vibration end state of a previous vibration segment of the target vibration segment, so as to achieve a smooth connection with the previous vibration segment; At the vibration end time point of the target vibration segment, the target vibration segment is smoothed to achieve a smooth connection with the next vibration segment of the target vibration segment.
23. The method of claim 17, wherein: The performing vibration processing on the target vibration segment according to the vibration rule corresponding to the detected segment type includes: In the case where the detected segment type is the common segment type or the ending segment type, if the time indicated by the timestamp of the target vibration segment is later than the time indicated by the playback timestamp in the playback timing, and the corresponding interval duration is less than or equal to the reference duration threshold, scaling vibration processing is performed on the target vibration segment to reduce the vibration duration of the target vibration segment.
24. A vibration processing device for streaming media, characterized in that: include: A receiving unit, used for receiving streaming media data of a multimedia object; A processing unit, configured to determine a target multimedia segment from the received streaming media data; The target multimedia segment starts playing at the time indicated by the playing timestamp of the target multimedia segment; The processing unit is further used to search for a target vibration segment from the received streaming media data according to the playback timestamp, and obtain a search result, wherein the playback duration of the multimedia segment in the received streaming media data matches the vibration duration of the vibration segment; The processing unit is further used to perform vibration processing according to the search result; different vibration processing is performed for different search results.
25. A vibration processing device for streaming media, characterized in that: The vibration processing device for streaming media includes an input interface and an output interface, and also includes: a processor adapted to implement one or more instructions; and, A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the vibration processing method for streaming media as described in any one of claims 1-23.
26. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to execute the vibration processing method for streaming media as described in any one of claims 1-23.
