CN114338907A - Multimedia resource playing method and device, electronic equipment and storage medium - Google Patents

Multimedia resource playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114338907A
CN114338907A CN202111578482.5A CN202111578482A CN114338907A CN 114338907 A CN114338907 A CN 114338907A CN 202111578482 A CN202111578482 A CN 202111578482A CN 114338907 A CN114338907 A CN 114338907A
Authority
CN
China
Prior art keywords
time period
preset time
target vehicle
electronic device
multimedia resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111578482.5A
Other languages
Chinese (zh)
Inventor
杨宜坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111578482.5A priority Critical patent/CN114338907A/en
Publication of CN114338907A publication Critical patent/CN114338907A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The disclosure relates to a multimedia resource playing method, a multimedia resource playing device, electronic equipment and a storage medium, and relates to the technical field of internet. The technical problem that in the prior art, when the environment where the user is located is noisy, the voice control instruction sent by the user can not be accurately identified, so that whether the audio and video should be played or not can not be accurately determined, and the playing experience of the user is influenced is solved. The method comprises the following steps: determining the moving speed of the target vehicle in a first preset time period; determining the running state of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period; and when the running state of the target vehicle in the first preset time period is an abnormal state, controlling to play the multimedia resource. According to the method and the device, the electronic equipment controls the playing of the multimedia resources, whether the multimedia resources should be played or not can be accurately determined based on the driving state of the vehicle, and the playing experience of a user can be improved.

Description

Multimedia resource playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a multimedia resource playing method and apparatus, an electronic device, and a storage medium.
Background
At present, a user can control playing of related audio and video in a mobile phone by sending a voice control instruction to the mobile phone through a voice control function.
However, when the environment where the user is located is noisy, the mobile phone may not be able to accurately identify the voice control instruction sent by the user, so that it may not be able to accurately determine whether to play the audio/video, which affects the playing experience of the user.
Disclosure of Invention
The disclosure provides a multimedia resource playing method, a multimedia resource playing device, an electronic device and a storage medium, and solves the technical problem that in the prior art, when an environment where a user is located is noisy, a voice control instruction sent by the user may not be accurately identified, so that the user cannot accurately determine whether audio and video should be played, and playing experience of the user is affected.
The technical scheme of the embodiment of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a multimedia asset playing method is provided. The method can comprise the following steps: determining the moving speed of the target vehicle in a first preset time period; determining the running state of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period, wherein the running state comprises a normal state and an abnormal state; and when the running state of the target vehicle in the first preset time period is an abnormal state, controlling to play the multimedia resource.
Optionally, the determining, according to the moving speed of the target vehicle within the first preset time period, the driving state of the target vehicle within the first preset time period specifically includes: and when the moving speed is less than or equal to a speed threshold value, determining that the running state of the target vehicle in the first time period is an abnormal state.
Optionally, the determining the moving speed of the target vehicle within the first preset time period includes: acquiring the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period; and determining the moving speed of the target vehicle in the first preset time period according to the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period.
Optionally, the method for playing multimedia resources further includes: determining a vibration energy value corresponding to the electronic equipment in a second preset time period, wherein the vibration energy value is used for representing the vibration amplitude of the electronic equipment in the second preset time period; when the vibration energy value is smaller than or equal to an energy value threshold value, determining that the running state of the target vehicle in the second preset time period is an abnormal state; and when the running state of the target vehicle in the second preset time period is an abnormal state, controlling to play the multimedia resource.
Optionally, the determining the vibration energy value corresponding to the electronic device in the second preset time period specifically includes: acquiring at least one section of vibration signal wave based on the acceleration sensor, wherein the at least one section of vibration signal wave is used for representing the acceleration of the electronic equipment in at least one direction, and the at least one section of vibration signal wave comprises a plurality of signal points; according to the frequencies of the signal points, filtering the signal points to obtain a signal value of at least one signal point, wherein the frequency of the at least one signal point is within a preset range; the vibration energy value is determined from the signal value of the at least one signal point.
Optionally, the target vehicle includes an automatic driving mode, and the multimedia resource playing method further includes: and when the target vehicle enters the automatic driving mode within a second preset time period, determining that the running state of the target vehicle within the second preset time period is an abnormal state.
Optionally, the method for playing multimedia resources further includes: and when the target vehicle releases the automatic driving mode within the second preset time period, stopping playing the multimedia resource.
According to a second aspect of the embodiments of the present disclosure, a multimedia asset playing device is provided. The apparatus may include: a determining module and a processing module;
the determination module is configured to determine the moving speed of the target vehicle in a first preset time period;
the determination module is further configured to determine a driving state of the target vehicle within the first preset time period according to the moving speed of the target vehicle within the first preset time period, wherein the driving state comprises a normal state and an abnormal state;
the processing module is configured to control to play the multimedia resource when the driving state of the target vehicle in the first preset time period is an abnormal state.
Optionally, the determining module is specifically configured to determine that the driving state of the target vehicle in the first time period is an abnormal state when the moving speed is less than or equal to a speed threshold.
Optionally, the multimedia resource playing apparatus further includes an obtaining module, where the first preset time period includes a first time and a second time, the first time is a start time of the first preset time period, and the second time is an end time of the first preset time period;
the acquisition module is configured to acquire the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period;
the determining module is specifically configured to determine the moving speed of the target vehicle within the first preset time period according to the position information corresponding to the first time, the position information corresponding to the second time, and the duration of the first preset time period.
Optionally, the determining module is further configured to determine a vibration energy value corresponding to the electronic device in a second preset time period, where the vibration energy value is used to characterize a vibration amplitude of the electronic device in the second preset time period;
the determination module is further configured to determine that the running state of the target vehicle in the second preset time period is an abnormal state when the vibration energy value is smaller than or equal to an energy value threshold;
the processing module is further configured to control to play the multimedia resource when the driving state of the target vehicle in the second preset time period is an abnormal state.
Optionally, the acquiring module is configured to acquire at least one section of vibration signal wave based on the acceleration sensor, where the at least one section of vibration signal wave is used for characterizing acceleration of the electronic device in at least one direction, and the at least one section of vibration signal wave includes a plurality of signal points; the processing module is further configured to perform filtering processing on the plurality of signal points according to the frequencies of the plurality of signal points to obtain a signal value of at least one signal point, where the frequency of the at least one signal point is within a preset range; the determination module is particularly configured to determine the vibrational energy value from the signal value of the at least one signal point.
Optionally, the determining module is further configured to determine that the driving state of the target vehicle in a second preset time period is an abnormal state when the target vehicle enters the automatic driving mode in the second preset time period.
Optionally, the processing module is further configured to stop playing the multimedia resource when the target vehicle releases the automatic driving mode within the second preset time period.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, which may include: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the above-mentioned optional multimedia asset playing methods of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, where the instructions in the computer-readable storage medium, when executed by an electronic device, enable the electronic device to perform any one of the above-mentioned optional multimedia resource playing methods of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of optionally playing a multimedia asset as in any of the first aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
based on any one of the above aspects, in the present disclosure, the electronic device may determine a moving speed of a target vehicle within a first preset time period, and then determine a driving state of the target vehicle within the first preset time period according to the moving speed of the target vehicle within the first preset time period, where when the driving state of the target vehicle within the first preset time period is an abnormal state, it indicates that an abnormal condition occurs during the driving of the target vehicle within the first preset time period, so that the electronic device may control playing of the multimedia resource. In the embodiment of the disclosure, when the target vehicle is in an abnormal condition (for example, a traffic jam or a condition of waiting for other passengers) during the driving process, the electronic device controls the playing of the multimedia resource, and can accurately determine whether the multimedia resource should be played based on the driving state of the vehicle, so that the playing experience of a user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 3 is a schematic flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 7 is a flowchart illustrating a multimedia resource playing method provided by an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a multimedia resource playing apparatus provided in an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another multimedia resource playing apparatus provided in an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
The data to which the present disclosure relates may be data that is authorized by a user or sufficiently authorized by parties.
As described in the background art, in the prior art, when an environment where a user is located is noisy, a mobile phone may not be able to accurately identify a voice control instruction sent by the user, so that it may not be able to accurately determine whether to play an audio/video, which affects playing experience of the user. Based on this, the embodiment of the present disclosure provides a multimedia resource playing method, where when an abnormal situation (for example, a situation of traffic jam or waiting for other passengers) occurs in a driving process of a target vehicle, an electronic device controls playing of a multimedia resource, and can accurately determine whether the multimedia resource should be played based on a driving state of the vehicle, so as to improve playing experience of a user.
The multimedia resource playing method, the multimedia resource playing device, the electronic device and the storage medium provided by the embodiment of the disclosure are applied to a playing control scene of a multimedia resource (specifically, a scene for controlling the playing of the multimedia resource in a vehicle running process). When the electronic device determines the moving speed of the target vehicle within the first preset time period, the playing of the multimedia resource can be controlled according to the method provided by the embodiment of the disclosure.
The following describes an exemplary multimedia resource playing method provided by the embodiments of the present disclosure with reference to the accompanying drawings:
for example, the electronic device executing the multimedia resource playing method provided by the present disclosure may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, and other devices that can install and use a content community application, and the present disclosure does not particularly limit the specific form of the electronic device. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
As shown in fig. 1, a multimedia asset playing method provided by the embodiment of the present disclosure may include S101-S103.
S101, the electronic equipment determines the moving speed of the target vehicle in a first preset time period.
It should be understood that the moving speed may be a moving speed of the target vehicle at a certain moment in the first preset time period, or may be an average moving speed of the target vehicle in the first preset time period
S102, the electronic equipment determines the running state of the target vehicle in a first preset time period according to the moving speed of the target vehicle in the first preset time period.
Wherein the driving state includes a normal state and an abnormal state.
It should be understood that the target vehicle is the vehicle in which the electronic device is located. The normal state may be understood as that the target vehicle is in the process of normally traveling within the first preset time period, and the abnormal state may be understood as that the target vehicle is in the process of traveling within the first preset time period.
S103, when the running state of the target vehicle in the first preset time period is an abnormal state, the electronic equipment controls the playing of the multimedia resources.
In conjunction with the description of the above embodiments, it should be understood that when the running state of the target vehicle in the first preset time period is an abnormal state, it indicates that an abnormal situation occurs during the running of the target vehicle in the first preset time period. In the embodiment of the disclosure, when the target vehicle is in an abnormal condition during the driving process of the first preset time period, the electronic device may control to play the multimedia resource.
It is understood that the abnormal state in the present disclosure may be congestion of a target road, or may be that a driver of the target vehicle waits for other passengers in the target road, where the target road is a driving road corresponding to the target vehicle in the first preset time period.
It should be noted that the multimedia resources in the embodiments of the present disclosure may include video, audio, text, pictures, and the like.
In one implementation manner of the embodiment of the present disclosure, when the driving state of the target vehicle within the first preset time period is a normal state, the electronic device may control to pause playing the multimedia resource or stop playing the multimedia resource.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: from S101 to S103, the electronic device may determine a moving speed of the target vehicle within a first preset time period, and then determine a driving state of the target vehicle within the first preset time period according to the moving speed of the target vehicle within the first preset time period, where when the driving state of the target vehicle within the first preset time period is an abnormal state, it indicates that an abnormal condition occurs during the driving of the target vehicle within the first preset time period, so that the electronic device may control playing of the multimedia resource. In the embodiment of the disclosure, when the target vehicle is in an abnormal condition (for example, a traffic jam or a condition of waiting for other passengers) during the driving process, the electronic device controls the playing of the multimedia resource, and can accurately determine whether the multimedia resource should be played based on the driving state of the vehicle, so that the playing experience of a user can be improved.
With reference to fig. 1, as shown in fig. 2, in one implementation manner of the embodiment of the present disclosure, the determining the driving state of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period includes S1021.
And S1021, when the moving speed is smaller than or equal to the speed threshold value, the electronic equipment determines that the running state of the target vehicle in the first time period is an abnormal state.
It is understood that when the moving speed of the target vehicle in the first preset time period is less than or equal to the speed threshold, it indicates that the moving speed of the target vehicle in the first preset time period is smaller. The lower moving speed indicates that the target road may be congested to cause the target vehicle to run slowly or even stop running; it is also possible because the driver is waiting for other passengers, i.e., the target vehicle is in a stopped state (i.e., the moving speed is 0) for the first preset time period. In this way, the electronic device may determine that the driving state of the target vehicle within the first preset time period is an abnormal state.
In one implementation manner of the embodiment of the present disclosure, when the moving speed of the target vehicle in the first preset time period is greater than the speed threshold, it is indicated that the moving speed of the target vehicle in the first preset time period is greater, and at this time, the electronic device may determine that the driving state of the target vehicle in the first preset time period is a normal state.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S1021, when the moving speed of the target vehicle in the first preset time period is less than or equal to the speed threshold, it indicates that the moving speed of the target vehicle in the first preset time period is smaller, which may be caused by congestion of the target road or waiting for other passengers, so that the electronic device may determine that the driving state of the target vehicle in the first preset time period is an abnormal state. In the embodiment of the disclosure, the electronic device may accurately determine the driving state of the target vehicle within a certain preset time period (for example, a first preset time period) based on the moving speed of the target vehicle within the preset time period, and may further accurately control the playing of the multimedia resource.
With reference to fig. 1, as shown in fig. 3, in an implementation manner of the embodiment of the present disclosure, the first preset time period includes a first time and a second time, where the first time is a starting time of the first preset time period, and the second time is an ending time of the first preset time period; the determining of the moving speed of the target vehicle within the first preset time period may specifically include S1011 to S1012.
S1011, the electronic device obtains the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period.
It should be understood that the position information corresponding to the first time is the position information of the starting position of the target vehicle when the target vehicle travels in the first preset time period, and the position information corresponding to the second time is the position information of the ending position of the target vehicle when the target vehicle travels in the first preset time period. The duration of the first preset time period is the difference between the first time and the second time.
In one implementation manner of the embodiment of the present disclosure, the electronic device may acquire the position information corresponding to the first time and the position information corresponding to the second time based on a Global Positioning System (GPS) sensor.
S1012, the electronic device determines the moving speed of the target vehicle in the first preset time period according to the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period.
It is understood that the electronic device may determine the distance between the start position and the end position according to the position information corresponding to the first time and the position information corresponding to the second time, and then determine a ratio of the distance to the duration of the first preset time period as the moving speed of the target vehicle in the first preset time period.
In one implementation of the embodiment of the present disclosure, the electronic device may further acquire (or collect) position information of the target vehicle based on the heartbeat (e.g., 100ms (millisecond)) of the GPS sensor; then, the electronic device may determine a distance between the two consecutive acquired positions based on the position information of the two adjacent acquired positions, and further determine a moving speed of the target vehicle within the first preset time period in combination with the heartbeat (i.e., 100 ms).
The technical scheme provided by the embodiment can at least bring the following beneficial effects: from S1011 to S1012, the electronic device may obtain the position information corresponding to the first time (i.e., the starting time of the target vehicle within the first preset time period), the position information corresponding to the second time (i.e., the ending time of the target vehicle within the first preset time period), and the duration of the first preset time period, and then determine the moving speed of the target vehicle within the first preset time period according to the position information corresponding to the first time, the position information corresponding to the second time, and the duration of the first preset time period. In this disclosure, the electronic device may determine a corresponding movement distance between two moments included in the first preset time period and a time difference between the two moments, so as to determine a movement speed of the target vehicle in the first preset time period. The moving speed of the target vehicle in a certain preset time period (for example, a first preset time period) can be conveniently and quickly determined, and the determining efficiency of the running state of the target vehicle in the preset time period can be further improved.
With reference to fig. 1, as shown in fig. 4, the multimedia asset playing method provided by the embodiment of the present disclosure further includes S104-S106.
S104, the electronic equipment determines a vibration energy value corresponding to the electronic equipment in a second preset time period.
And the vibration energy value is used for representing the vibration amplitude of the electronic equipment in the second preset time period.
It is understood that vibrations are generated during the traveling of the target vehicle, and therefore the electronic devices in the target vehicle are also vibrated accordingly. In the embodiment of the disclosure, the electronic device may determine the vibration amplitude of the target vehicle within the second preset time period through the vibration amplitude of the electronic device within the second preset time period, so as to determine the driving state of the target vehicle within the second preset time period.
And S105, when the vibration energy value is smaller than or equal to the energy value threshold value, the electronic equipment determines that the running state of the target vehicle in a second preset time period is an abnormal state.
In conjunction with the above description of the embodiments, it should be understood that the vibration energy value is used to characterize the vibration amplitude of the electronic device during the second preset time period. When the vibration energy value is smaller than or equal to the capability value threshold, the vibration amplitude of the electronic device in the second preset time period is smaller, so that the electronic device can determine that the driving state of the target vehicle in the second preset time period is an abnormal state.
It is understood that a smaller amplitude of vibration of the electronic device indicates a smaller amplitude of vibration of the target vehicle. The small amplitude of the vibration of the target vehicle indicates that the target vehicle is in the process of traveling slowly (even stopping traveling), i.e., the target road may be congested, or the driver is waiting for other passengers (i.e., the target vehicle has stopped traveling). At this time, the electronic device may determine that the driving status is an abnormal status, and then control to play the multimedia resource.
In one implementation of the embodiment of the disclosure, when the vibration energy value is greater than the energy value threshold, it indicates that the vibration amplitude of the electronic device (and the target vehicle) is greater in the second preset time period. The electronic device may determine that the driving state of the target vehicle within the second preset time period is a normal state.
And S106, when the running state of the target vehicle in the second preset time period is an abnormal state, the electronic equipment controls the playing of the multimedia resources.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S104-S106, the electronic device may determine a vibration energy value corresponding to the electronic device within a second preset time period; since the vibration energy value can represent the vibration amplitude of the electronic device in the second preset time period, when the vibration energy value is less than or equal to the energy value threshold, the vibration amplitude is smaller. And because the electronic device is in the target vehicle, the smaller vibration amplitude of the electronic device in the second preset time period may indicate that the smaller vibration amplitude of the target vehicle in the second preset time period may be caused by a situation that a target road is congested or other passengers are waiting, so that the electronic device may determine that the driving state of the target vehicle in the preset time period is an abnormal state and control playing of the multimedia resource. In the embodiment of the disclosure, the electronic device may accurately determine the driving state of the target vehicle in a certain preset time period (for example, a second preset time period) based on the vibration energy value corresponding to the electronic device in the preset time period, and may accurately control the playing of the multimedia resource.
With reference to fig. 4, as shown in fig. 5, in an implementation manner of the embodiment of the present disclosure, the determining a vibration energy value corresponding to the electronic device in the second preset time period specifically includes S1041-S1043.
S1041, the electronic device obtains at least one section of vibration signal wave based on the acceleration sensor.
Wherein, the at least one section of vibration signal wave is used for representing the acceleration of the electronic equipment in at least one direction, and the at least one section of vibration signal wave comprises a plurality of signal points.
It should be understood that the electronic device may acquire the at least one section of vibration signal wave in the second preset time period, each signal point in the plurality of signal points represents a signal, and the plurality of signal points may constitute the at least one section of vibration signal wave.
Alternatively, the acceleration sensor may be a three-axis accelerometer in the electronic device. Namely, the electronic device can acquire three sections of signal waves on three coordinate axes of XYZ and used for representing three acceleration directions of the electronic device based on the three-axis accelerometer.
S1042, the electronic device performs filtering processing on the multiple signal points according to the frequencies of the multiple signal points to obtain a signal value of at least one signal point.
The at least one signal point is a signal point of the plurality of signal points, wherein the frequency of the signal point is within a preset range.
It should be understood that, in the case where the at least one section of vibration signal wave is acquired, specifically, the plurality of signal points are acquired, the electronic device may also acquire the frequencies of the plurality of signal points. The electronic device may specifically be understood as performing filtering processing on the plurality of signal points based on the preset range.
In the embodiment of the present disclosure, the electronic device performs filtering processing on the plurality of signal points, that is, signal points outside the preset range are removed from the plurality of signal points, and signal points within the preset range (that is, the at least one signal point) are reserved.
Alternatively, the vibration range in which the target vehicle travels may be positioned between 50HZ (hertz) and 300HZ, i.e., the above-mentioned preset range may be [50HZ,300HZ ]. The electronic equipment carries out filtering processing on a plurality of signal points, namely signal points within [50HZ,300HZ ] are reserved for extracting the signal points with the frequency less than 50HZ or more than 300 HZ.
It can be understood that, the electronic device may effectively eliminate the influence of the gravity wave by performing filtering processing on the plurality of signal points, and may further accurately determine the vibration energy value corresponding to the electronic device within the preset time period.
And S1043, the electronic device determines a vibration energy value according to the signal value of the at least one signal point.
In one implementation of the embodiment of the present disclosure, the electronic device may take an absolute value of the signal value of the at least one signal point, and then determine an average value of the at least one absolute value as a vibration energy value corresponding to the electronic device in the second preset time period.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as known from S1041-S1043, the electronic device may acquire, based on the acceleration sensor, at least one section of vibration signal wave for characterizing an acceleration of the electronic device in at least one direction, where the at least one section of vibration signal wave includes a plurality of signal points; then, according to the frequencies of the signal points, filtering the signal points to obtain a signal point (i.e. at least one signal point) of which the frequency is within a preset range; and then determining the vibration energy value corresponding to the electronic equipment in a second preset time period according to the signal value of the at least one signal point. In the embodiment of the disclosure, the electronic device may remove the signal points with the frequency outside the preset range, only the signal points within the preset range are reserved, and then the vibration energy value is determined according to the signal value of each signal point in at least one signal point within the preset range, so that the vibration energy value corresponding to the electronic device in the second preset time period can be accurately and reasonably determined, and further, the driving state of the target vehicle in the second preset time period can be accurately determined.
With reference to fig. 1, as shown in fig. 6, in an implementation manner of the embodiment of the present disclosure, the target vehicle includes an automatic driving mode, and the method for playing a multimedia resource provided by the embodiment of the present disclosure further includes S107.
And S107, when the target vehicle enters the automatic driving mode within a second preset time period, the electronic equipment determines that the running state of the target vehicle within the second preset time period is an abnormal state.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S107, when the target vehicle enters the automatic driving mode within the second preset time period, which indicates that the target vehicle does not need to be manually driven within the second preset time period, the electronic device may determine that the driving state of the target vehicle within the second preset time period is the abnormal state. The driving mode of the target vehicle in a certain preset time period can be based on, the running state of the target vehicle in the preset time period can be reasonably determined, and then the playing of the multimedia resources can be reasonably controlled.
With reference to fig. 6, as shown in fig. 7, the multimedia asset playing method provided by the embodiment of the present disclosure further includes S108.
And S108, when the target vehicle releases the automatic driving mode within a second preset time period, the electronic equipment stops playing the multimedia resources.
It can be understood that, when the target vehicle releases the automatic driving mode within the second preset time period, it indicates that the target vehicle has arrived at the destination, the target vehicle has an emergency braking situation, or the target vehicle is manually taken over (which may also be understood as a manually driven target vehicle), at this time, the electronic device may determine that the target vehicle is in a normal state within the second preset time period, and stop playing the multimedia resource.
Optionally, when the target vehicle releases the automatic driving mode within the second preset time period, the electronic device may also pause playing the multimedia resource.
The technical scheme provided by the embodiment can at least bring the following beneficial effects: as can be seen from S108, when the target vehicle releases the automatic driving mode within the second preset time period, it indicates that the target vehicle has arrived at the destination, the target vehicle has an emergency braking situation, or the target vehicle is manually taken over, and the electronic device may determine that the target vehicle is in a normal state within the second preset time period, and stop playing the multimedia resource. According to the method and the device, the electronic equipment can reasonably determine the running state of the target vehicle in a certain preset time period based on the driving mode of the target vehicle in the preset time period, and further reasonably control the playing of the multimedia resources.
It is understood that, in practical implementation, the electronic device according to the embodiment of the present disclosure may include one or more hardware structures and/or software modules for implementing the corresponding multimedia resource playing method, and the executing hardware structures and/or software modules may constitute an electronic device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Based on such understanding, the embodiment of the present disclosure further provides a multimedia resource playing device, and fig. 8 illustrates a schematic structural diagram of the multimedia resource playing device provided in the embodiment of the present disclosure. As shown in fig. 8, the multimedia asset playing apparatus 10 may include: a determination module 101 and a processing module 102.
The device comprises a determination module 101 configured to determine a moving speed of a target vehicle within a first preset time period.
The determining module 101 is further configured to determine a driving state of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period, where the driving state includes a normal state and an abnormal state.
And the processing module 102 is configured to control to play the multimedia resource when the driving state of the target vehicle in the first preset time period is an abnormal state.
Optionally, the determining module 101 is specifically configured to determine that the driving state of the target vehicle in the first time period is an abnormal state when the moving speed is less than or equal to a speed threshold.
Optionally, the multimedia resource playing apparatus 10 further includes an obtaining module 103, where the first preset time period includes a first time and a second time, the first time is a starting time of the first preset time period, and the second time is an ending time of the first preset time period.
An obtaining module 103 configured to obtain the position information corresponding to the first time, the position information corresponding to the second time, and the duration of the first preset time period.
The determining module 101 is specifically configured to determine a moving speed of the target vehicle within the first preset time period according to the position information corresponding to the first time, the position information corresponding to the second time, and the duration of the first preset time period.
Optionally, the determining module 101 is further configured to determine a vibration energy value corresponding to the electronic device in a second preset time period, where the vibration energy value is used to characterize a vibration amplitude of the electronic device in the second preset time period.
The determining module 101 is further configured to determine that the driving state of the target vehicle in the second preset time period is an abnormal state when the vibration energy value is less than or equal to an energy value threshold.
The processing module 102 is further configured to control to play the multimedia resource when the driving state of the target vehicle within the second preset time period is an abnormal state.
Optionally, the obtaining module 103 is configured to obtain at least one section of vibration signal wave based on the acceleration sensor, where the at least one section of vibration signal wave is used for characterizing acceleration of the electronic device in at least one direction, and the at least one section of vibration signal wave includes a plurality of signal points.
The processing module 102 is further configured to perform filtering processing on the plurality of signal points according to the frequencies of the plurality of signal points to obtain a signal value of at least one signal point, where the frequency of the at least one signal point is within a preset range.
The determining module 101 is specifically configured to determine the vibration energy value according to the signal value of the at least one signal point.
Optionally, the determining module 101 is further configured to determine that the running state of the target vehicle in a second preset time period is an abnormal state when the target vehicle enters the automatic driving mode in the second preset time period.
Optionally, the processing module 102 is further configured to stop playing the multimedia resource when the target vehicle releases the automatic driving mode within the second preset time period.
As described above, the embodiment of the present disclosure may perform the division of the functional modules on the multimedia resource playing apparatus according to the above method example. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be further noted that the division of the modules in the embodiments of the present disclosure is schematic, and is only a logic function division, and there may be another division manner in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
Regarding the multimedia resource playing apparatus in the foregoing embodiment, the specific manner in which each module performs operations and the beneficial effects thereof have been described in detail in the foregoing method embodiment, and are not described herein again.
Fig. 9 is a schematic structural diagram of another multimedia asset playing apparatus provided in the present disclosure. As shown in fig. 9, the multimedia asset playback device 20 may include at least one processor 201 and a memory 203 for storing processor-executable instructions. Wherein the processor 201 is configured to execute the instructions in the memory 203 to implement the multimedia resource playing method in the above-mentioned embodiment.
In addition, the multimedia asset playback device 20 may further include a communication bus 202 and at least one communication interface 204.
The processor 201 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.
The communication bus 202 may include a path that conveys information between the aforementioned components.
The communication interface 204 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 203 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 201. The processor 201 is configured to execute instructions stored in the memory 203 to implement the functions of the disclosed method.
In particular implementations, processor 201 may include one or more CPUs such as CPU0 and CPU1 in fig. 9 for one embodiment.
In one embodiment, the multimedia asset playback device 20 may comprise a plurality of processors, such as the processor 201 and the processor 207 in fig. 9. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In one embodiment, the multimedia asset playing apparatus 20 may further include an output device 205 and an input device 206. The output device 205 is in communication with the processor 201 and may display information in a variety of ways. For example, the output device 205 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 206 is in communication with the processor 201 and can accept user input in a variety of ways. For example, the input device 206 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of the multimedia asset playback device 20, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In addition, the present disclosure also provides a computer-readable storage medium, which includes instructions, when executed by an electronic device, cause the electronic device to execute the multimedia resource playing method provided in the above embodiment.
In addition, the present disclosure also provides a computer program product including instructions, which when executed by an electronic device, cause the electronic device to execute the multimedia resource playing method provided in the above embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A multimedia resource playing method is applied to electronic equipment, and is characterized by comprising the following steps:
determining the moving speed of the target vehicle in a first preset time period;
determining the running state of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period, wherein the running state comprises a normal state and an abnormal state;
and when the running state of the target vehicle in the first preset time period is an abnormal state, controlling to play the multimedia resource.
2. The method for playing the multimedia resource according to claim 1, wherein the determining the driving status of the target vehicle in the first preset time period according to the moving speed of the target vehicle in the first preset time period comprises:
when the moving speed is less than or equal to a speed threshold value, determining that the running state of the target vehicle in the first time period is an abnormal state.
3. The method for playing the multimedia resource according to claim 1 or 2, wherein the first preset time period includes a first time and a second time, the first time is a start time of the first preset time period, the second time is an end time of the first preset time period, and the determining the moving speed of the target vehicle in the first preset time period includes:
acquiring the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period;
and determining the moving speed of the target vehicle in the first preset time period according to the position information corresponding to the first moment, the position information corresponding to the second moment and the duration of the first preset time period.
4. The method for playing back a multimedia asset according to claim 1, further comprising:
determining a vibration energy value corresponding to the electronic equipment in a second preset time period, wherein the vibration energy value is used for representing the vibration amplitude of the electronic equipment in the second preset time period;
when the vibration energy value is smaller than or equal to an energy value threshold value, determining that the running state of the target vehicle in the second preset time period is an abnormal state;
and when the running state of the target vehicle in the second preset time period is an abnormal state, controlling to play the multimedia resource.
5. The method for playing the multimedia resource according to claim 4, wherein the determining the vibration energy value corresponding to the electronic device in the second preset time period comprises:
acquiring at least one section of vibration signal wave based on an acceleration sensor, wherein the at least one section of vibration signal wave is used for representing the acceleration of the electronic equipment in at least one direction, and the at least one section of vibration signal wave comprises a plurality of signal points;
according to the frequencies of the signal points, filtering the signal points to obtain a signal value of at least one signal point, wherein the frequency of the at least one signal point is within a preset range;
determining the vibration energy value according to the signal value of the at least one signal point.
6. The method of claim 1, wherein the target vehicle comprises an autonomous driving mode, the method further comprising:
when the target vehicle enters an automatic driving mode within a second preset time period, determining that the running state of the target vehicle within the second preset time period is an abnormal state.
7. A multimedia asset playback apparatus, comprising: a determining module and a processing module;
the determination module is configured to determine the moving speed of the target vehicle in a first preset time period;
the determination module is further configured to determine a driving state of the target vehicle within the first preset time period according to the moving speed of the target vehicle within the first preset time period, wherein the driving state comprises a normal state and an abnormal state;
the processing module is configured to control to play the multimedia resource when the running state of the target vehicle in the first preset time period is an abnormal state.
8. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the multimedia asset playback method of any of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions in the computer-readable storage medium, when executed by an electronic device, enable the electronic device to perform the multimedia asset playback method of any of claims 1-6.
10. A computer program product, characterized in that it comprises computer instructions which, when run on an electronic device, cause the electronic device to perform a multimedia asset playback method according to any of claims 1-6.
CN202111578482.5A 2021-12-22 2021-12-22 Multimedia resource playing method and device, electronic equipment and storage medium Pending CN114338907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111578482.5A CN114338907A (en) 2021-12-22 2021-12-22 Multimedia resource playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111578482.5A CN114338907A (en) 2021-12-22 2021-12-22 Multimedia resource playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114338907A true CN114338907A (en) 2022-04-12

Family

ID=81055468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111578482.5A Pending CN114338907A (en) 2021-12-22 2021-12-22 Multimedia resource playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338907A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130103236A1 (en) * 2011-09-03 2013-04-25 Behrang Mehrgan Use of smartphones, pocket size computers, tablets or other mobile personal computers as the main computer of computerized vehicles
CN104680791A (en) * 2015-03-24 2015-06-03 北方工业大学 Pedestrian violation information and advertisement networking play device based on video detection
CN106982102A (en) * 2016-01-19 2017-07-25 厦门歌乐电子企业有限公司 A kind of mobile unit and program broadcasting method
US20200106848A1 (en) * 2017-06-30 2020-04-02 Guangdong Oppo Mobile Telecommunications Corp. Ltd. Method for Pushing Multimedia Information, Non-Transitory Computer Readable Storage Medium, and Electronic Device
CN111754772A (en) * 2020-06-28 2020-10-09 蘑菇车联信息科技有限公司 Traffic road condition determining method and electronic equipment
CN113085898A (en) * 2021-04-27 2021-07-09 宝能(广州)汽车研究院有限公司 Method for activating application program and automatic driving vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130103236A1 (en) * 2011-09-03 2013-04-25 Behrang Mehrgan Use of smartphones, pocket size computers, tablets or other mobile personal computers as the main computer of computerized vehicles
CN104680791A (en) * 2015-03-24 2015-06-03 北方工业大学 Pedestrian violation information and advertisement networking play device based on video detection
CN106982102A (en) * 2016-01-19 2017-07-25 厦门歌乐电子企业有限公司 A kind of mobile unit and program broadcasting method
US20200106848A1 (en) * 2017-06-30 2020-04-02 Guangdong Oppo Mobile Telecommunications Corp. Ltd. Method for Pushing Multimedia Information, Non-Transitory Computer Readable Storage Medium, and Electronic Device
CN111754772A (en) * 2020-06-28 2020-10-09 蘑菇车联信息科技有限公司 Traffic road condition determining method and electronic equipment
CN113085898A (en) * 2021-04-27 2021-07-09 宝能(广州)汽车研究院有限公司 Method for activating application program and automatic driving vehicle

Similar Documents

Publication Publication Date Title
EP3917180A1 (en) Resource scheduling method and apparatus, electronic device, and storage medium
US9854032B2 (en) Context-aware task offloading among multiple devices
CN106056841B (en) Safe early warning method, apparatus and system based on mobile terminal
JP2021145354A (en) Video conversation system and method using bidirectional transmission of visual or auditory effect
US9900389B2 (en) Information processing apparatus and execution management program
JP6978247B2 (en) Operation monitoring system
CN105262911B (en) The processing method, system and device of system telephone in voice communication
US11936605B2 (en) Message processing method, apparatus and electronic device
CN109693981B (en) Method and apparatus for transmitting information
CN109618216B (en) Method, device and equipment for displaying video loading state identification and storage medium
CN110062199B (en) Load balancing method and device and computer readable storage medium
KR102384518B1 (en) Method for processing message and electronic device implementing the same
CN114338907A (en) Multimedia resource playing method and device, electronic equipment and storage medium
CN116527980A (en) Animation playing method, device, medium and electronic equipment
US10864889B2 (en) Vehicle operating method and vehicle operating apparatus
EP4099668A2 (en) Method and apparatus for processing audio data based on vehicle networking, and electronic device
CN110764724A (en) Display equipment control method, device, equipment and storage medium
CN109951729A (en) Method and apparatus for handling data
JP2022153363A (en) Server device, information processing method, and server program
EP4007229A1 (en) Bandwidth determination method and apparatus, and terminal, and storage medium
CN115268821A (en) Audio playing method and device, equipment and medium
CN110852524B (en) Method, device and equipment for determining time window and storage medium
CN114298772A (en) Information display method, device, equipment and storage medium
JPWO2008126180A1 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION METHOD, COMMUNICATION PROGRAM, AND RECORDING MEDIUM
CN106568459A (en) Processing method and device of notification messages

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination