Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The embodiment provides a method for adjusting a state of an internet of things terminal device, which is applied to a first terminal, fig. 1 is a flowchart (one) of the method for adjusting the state of the internet of things terminal device according to the embodiment of the present invention, and as shown in fig. 1, the method for adjusting the state of the internet of things terminal device in the embodiment includes:
s102, acquiring first sound information, wherein the first sound information comprises first loudness of sound played by a first terminal;
and S104, generating video request information at least according to the first sound information, and sending the video request information to the server so as to instruct the server to return video data according to the video request information.
It should be further noted that, in this embodiment, the first terminal is a terminal used by a user to receive or play a video, and the first terminal may be a mobile phone, a tablet, a PC, a television, or another terminal or device with a video playing function, which is not limited in this disclosure. The video data in this embodiment may be video data that a user directly requests to play from a video content providing platform through a terminal, for example, the user instructs to play a corresponding video on a corresponding video APP through a mobile phone, or may be video data that the user obtains from other terminals through the terminal, for example, the user obtains video data shot by a monitoring camera through the mobile phone; the invention is not limited in this regard.
In step S102, the first sound information indicates sound information corresponding to the video played by the first terminal, and specifically, the first loudness included in the first sound information is a loudness value of the sound corresponding to the video played by the first terminal. The manner of acquiring the first sound information by the first terminal may be that the first terminal directly extracts audio data in the video in the playing state from a corresponding unit of the processor to acquire the first loudness according to parameter information corresponding to the audio data and by combining with a preset playing volume of the first terminal. The loudness is the volume, and is used to indicate the size or intensity of the sound, and under the condition that the sound object is determined, the manner of obtaining the loudness according to the parameters corresponding to the sound object can be implemented according to a known scheme, for example, the loudness of the sound is measured by adopting a digital audio stream analysis manner, and the like, which is not described herein again.
In the invention, except for loudness, any parameter or information which can represent the volume degree or intensity of sound can be used as the equivalent technical characteristic of the first loudness in the invention.
According to the method for adjusting the state of the terminal device of the internet of things in the embodiment, the first sound information including the first loudness of sound played by the first terminal can be obtained through the first terminal, and the video request information is generated and sent to the server at least according to the first sound information so as to instruct the server to return video data according to the video request information. Therefore, the method for adjusting the state of the terminal device of the internet of things in the embodiment can solve the problem that the terminal in the related art cannot transmit video data according to the requirements of users, so that the video transmission bandwidth is excessively occupied, and the effect of transmitting corresponding video data according to the requirements of the users to reduce unnecessary bandwidth resources is achieved.
In an optional embodiment, the method further includes: acquiring second sound information, wherein the second sound information comprises second loudness of sound in the environment where the first terminal is located;
in the step S104, generating video request information at least according to the first sound information, and sending the video request information to the server to instruct the server to return video data according to the video request information, including: and generating video request information according to the relation between the first sound information and the second sound information, and sending the video request information to the server so as to instruct the server to return video data according to the video request information.
It should be further noted that, in the foregoing optional embodiment, the second sound information is information corresponding to an environmental sound in an environment where the terminal is located, and specifically, the second loudness included in the second sound information is a loudness value of the environmental sound in the environment where the second terminal is located. The second terminal can obtain the second sound information by obtaining the environmental sound in the environment where the first terminal is located through the microphone of the first terminal or the corresponding unit module, and further determining the second loudness of the environment where the first terminal is located so as to obtain the second sound information. The microphone or the corresponding unit module of the first terminal acquires the ambient sound in the environment where the first terminal is located, and further determines the second loudness of the environment where the first terminal is located, which may be implemented according to a known scheme, for example, the microphone or other unit acquires the external sound of the terminal to generate a corresponding sound wave, and further analyzes the sound wave to obtain sound data, and further determines the second loudness of the sound by means of digital audio stream analysis and the like.
In an optional embodiment, the generating and sending the video request information to the server according to the relationship between the first sound information and the second sound information includes:
under the condition that the first loudness included in the first sound information is greater than or equal to the second loudness included in the second sound information, generating first video request information and sending the first video request information to a server so as to instruct the server to return first video data according to the first video request information, wherein the first video data comprises image data and audio data; or,
and under the condition that the first loudness included in the first sound information is smaller than the second loudness included in the second sound information, generating second video request information and sending the second video request information to the server so as to instruct the server to return second video data according to the second video request information, wherein the second video data includes image data.
It should be further noted that, in the above case that the first loudness included in the first sound information is greater than or equal to the second loudness included in the second sound information, that is, the loudness of the sound instructing the first terminal to play the video is greater than or equal to the loudness of the ambient sound in the environment where the first terminal is located, so that the user can clearly hear the sound of the video played by the first terminal in this case. In this case, the first terminal may request the server for the first video data including the image data and the audio data through the first video data.
In the above case that the first loudness included in the first sound information is smaller than the second loudness included in the second sound information, that is, the loudness of the sound indicating that the first terminal plays the video is smaller than the loudness of the ambient sound in the environment where the first terminal is located, so that the user cannot clearly hear the sound of the video played by the first terminal in this case. In this case, the first terminal may request the server for the second video data including the image data through the second video data. In this case, the audio data that cannot be acquired by the user is not included in the video data transmission process, so that the occupied bandwidth in the video data transmission is effectively reduced.
In an optional embodiment, the obtaining the second sound information includes:
acquiring third sound information, wherein the third sound information comprises loudness of a sound set acquired by the first terminal;
and filtering the first sound information contained in the third sound information to obtain the second sound information.
It should be further noted that the third sound information indicates loudness corresponding to all sounds acquired by the first terminal, specifically, the manner in which the first terminal acquires the third sound information may be that all sounds which can be collected within a receiving range of the first terminal are acquired by a microphone of the first terminal or a corresponding unit module, where the sounds are sound sets in the optional embodiment, and the information corresponding to the sound sets is the third sound information.
The sound set includes sound of the video played by the terminal and environmental sound of the environment where the terminal is located, so that the third sound information is a set of the first sound information and the second sound information, and the corresponding second sound information can be obtained after the first sound information included in the third sound information is filtered out in the optional embodiment.
In an optional embodiment, the step S104 of generating and sending video request information to the server according to at least the first sound information includes:
under the condition that the first loudness contained in the first sound signal is 0, generating third video request information and sending the third video request information to the server so as to instruct the server to return third video data according to the second video request information;
wherein the third video data comprises image data.
It should be further noted that, in the case where the first loudness included in the first sound signal is 0, the volume of the first terminal is indicated to be 0, and in this case, the user actively sets the first terminal not to generate sound, so that the server may be instructed to return only the third video data including the image data without determining the second sound information. The third video data may be the same as the second video data or may be different from the second video data.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 2 is a flowchart (ii) of a method for adjusting a state of an internet of things terminal device according to an embodiment of the present invention, and as shown in fig. 2, the method for adjusting a state of an internet of things terminal device in this embodiment includes:
s202, receiving video request information sent by a first terminal, and returning video data according to the video request information; the video request information is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal.
It should be further noted that the server may be a server for storing video content for a video data transmission platform (such as a video content providing platform or an information interaction platform), or may be a server for providing data interaction between two terminals in an intelligent home; correspondingly, the video data can be the video data which is directly requested to be played by the user from the video data transmission platform through the terminal, for example, the user indicates to play the corresponding video on the corresponding video APP through the mobile phone, or the video data transmitted by other terminals can be acquired by the user through the terminal, for example, the user acquires the video data shot by the monitoring camera through the mobile phone; the invention is not limited in this regard. In addition, the first terminal in this embodiment is a terminal used by a user to receive or play a video, and the first terminal may be a mobile phone, a tablet, a PC, a television, or another terminal or device having a video playing function, which is not limited in this disclosure.
In step S202, the first sound information indicates sound information corresponding to the video played by the first terminal, and specifically, the first loudness included in the first sound information is a loudness value of the sound corresponding to the video played by the first terminal. The manner in which the first terminal obtains the first sound information is described in embodiment 1 above, and is not described herein again.
According to the method for adjusting the state of the terminal equipment of the Internet of things, the video request information sent by the first terminal can be received through the server, and the video data are returned according to the video request information; the video request information is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal. Therefore, the method for adjusting the state of the terminal device of the internet of things in the embodiment can solve the problem that the terminal in the related art cannot transmit video data according to the requirements of users, so that the video transmission bandwidth is excessively occupied, and the effect of transmitting corresponding video data according to the requirements of the users to reduce unnecessary bandwidth resources is achieved.
In an alternative embodiment, the video request information is generated by the first terminal according to a relationship between the first sound information and the second sound information; wherein the second sound information comprises a second loudness of the sound within the environment in which the first terminal is located.
It should be further noted that the second sound information in the foregoing optional embodiment is information corresponding to an ambient sound in an environment where the terminal is located, and specifically, the second loudness included in the second sound information is a loudness value of the ambient sound in the environment where the second terminal is located. The manner in which the second terminal obtains the second sound information refers to the foregoing embodiment 1, and the present invention is not described herein again.
In an optional embodiment, the video request information includes:
first video request information, wherein the first video request information is generated by the first terminal in a case where a first loudness included in the first sound information is greater than or equal to a second loudness included in the second sound information; the first video request information is used for indicating the server to return first video data to the first terminal, and the first video data comprises image data and audio data;
second video request information, wherein the second video request information is generated by the first terminal in a case where the first loudness included in the first sound information is smaller than the second loudness included in the second sound information; the second video request information is used for indicating the server to return second video data to the first terminal, and the second video data comprises image data.
It should be further noted that, in the above case that the first loudness included in the first sound information is greater than or equal to the second loudness included in the second sound information, that is, the loudness of the sound instructing the first terminal to play the video is greater than or equal to the loudness of the ambient sound in the environment where the first terminal is located, so that the user can clearly hear the sound of the video played by the first terminal in this case. In this case, the first terminal may request the server for the first video data including the image data and the audio data through the first video data.
In the above case that the first loudness included in the first sound information is smaller than the second loudness included in the second sound information, that is, the loudness of the sound indicating that the first terminal plays the video is smaller than the loudness of the ambient sound in the environment where the first terminal is located, so that the user cannot clearly hear the sound of the video played by the first terminal in this case. In this case, the first terminal may request the server for the second video data including the image data through the second video data. In this case, the audio data that cannot be acquired by the user is not included in the video data transmission process, so that the occupied bandwidth in the video data transmission is effectively reduced.
In an optional embodiment, the second sound information is obtained by filtering, by the first terminal, the first sound information included in the third sound information; and the third sound information comprises the third loudness of the sound set acquired by the first terminal.
It should be further noted that the third sound information indicates loudness corresponding to all sounds acquired by the first terminal, specifically, the manner in which the first terminal acquires the third sound information may be that all sounds which can be collected within a receiving range of the first terminal are acquired by a microphone of the first terminal or a corresponding unit module, where the sounds are sound sets in the optional embodiment, and the information corresponding to the sound sets is the third sound information. The sound set includes sound of the video played by the terminal and environmental sound of the environment where the terminal is located, so that the third sound information is a set of the first sound information and the second sound information, and the corresponding second sound information can be obtained after the first sound information included in the third sound information is filtered out in the optional embodiment.
In an alternative embodiment, the video request information includes: second video request information;
wherein the second video request information is generated by the first terminal in a case where a first loudness included in the first sound signal is 0; the second video request information is used for indicating the server to return second video data to the first terminal; wherein the second video data comprises image data.
It should be further noted that, in the case where the first loudness included in the first sound signal is 0, the volume of the first terminal is indicated to be 0, and in this case, the user actively sets the first terminal not to generate sound, so that the server may be instructed to return only the third video data including the image data without determining the second sound information. The third video data may be the same as the second video data or may be different from the second video data.
In an optional embodiment, after receiving the video request information sent by the first terminal in step S202, the method further includes:
generating video type information according to the video request information, and sending the video type information to a second terminal;
the video type information is used for indicating the second terminal to generate corresponding video data and returning the video data to the server.
It should be further noted that the second terminal is a terminal that can transmit video data to the first terminal through the server, for example, the second terminal may be a monitoring camera, and the first terminal is a display device such as a mobile phone for a user to obtain a monitoring video. In the above optional embodiment, the video type information corresponds to the video request information, for example, when the video request information is the first video request information, the video type information also correspondingly indicates that the video type acquired by the second terminal is image data and audio data, and when the video request information is the second video request information, the video type information also correspondingly indicates that the video type acquired by the second terminal is image data.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
To further explain the method for adjusting the state of the terminal device in the internet of things in this embodiment, the method for adjusting the state of the terminal device in the internet of things in this embodiment is further explained through a video processing flow in video monitoring. Fig. 3 is a flowchart of a method for adjusting a state of an internet of things terminal device according to a specific embodiment of the present invention, and as shown in fig. 3, the specific embodiment includes:
step 101, an intelligent terminal receives a video playing instruction of a user;
the intelligent terminal can be a terminal device such as an intelligent mobile phone and a tablet, and a user triggers a video playing instruction by controlling a control of an APP on the intelligent terminal; here, the APP may be an APP that supports video playing operation at will, and in this embodiment, the APP may be a video playing terminal APP of video monitoring.
102, detecting whether the loudness of the environmental sound is greater than the loudness of a video played by a terminal by intelligent terminal equipment;
the intelligent terminal firstly determines the preset volume of the terminal, and if the preset volume is 0, namely the intelligent terminal is in a mute state, the intelligent terminal can directly determine that the loudness of the environment sound is greater than the loudness of the video played by the terminal. If the preset volume is not 0, further determining whether the loudness of the ambient sound is greater than the loudness of the video played by the terminal, specifically:
firstly, determining the loudness of audio played by a video S1; and secondly, acquiring ambient sound data by collecting noise of the surrounding environment of the intelligent terminal through a microphone, analyzing the ambient sound data, and determining the loudness of the ambient sound S2.
If S2 is smaller than S1, it is determined that the loudness of the ambient sound is smaller than the loudness of the terminal play video, whereas if S2 is larger than S1, it is determined that the loudness of the ambient sound is larger than the loudness of the terminal play video.
And 103, when the loudness of the environmental sound is determined to be smaller than the loudness of the video played by the terminal, sending a first video acquisition instruction to the server, and after receiving the video acquisition instruction, synthesizing the image information acquired by the monitoring camera and the audio information acquired by the microphone by the server to obtain a first video file. It should be noted that the image information and the audio information are respectively collected by a camera and a microphone in the monitoring device and are sent to the server for processing,
and 104, the server pushes the first video file to the intelligent terminal.
And 105, the intelligent terminal plays the first video file through the player.
And 106, when the loudness of the environmental sound is determined to be greater than the loudness of the video played by the terminal, sending a second video acquisition instruction to the server, and after receiving the video acquisition instruction, the server encodes the image information acquired by the camera to obtain a second video file.
And step 107, the server sends the second video file to the intelligent terminal.
And 108, the intelligent terminal plays the second video file through the player.
Example 3
The embodiment also provides a method for adjusting a state of an internet of things terminal device, which is applied to a second terminal, fig. 4 is a flowchart (iii) of the method for adjusting the state of the internet of things terminal device provided by the embodiment of the present invention, and as shown in fig. 4, the method for adjusting the state of the internet of things terminal device in the embodiment includes:
s302, receiving video type information sent by a server, and acquiring corresponding video data according to the video type information; the video type information is generated by the server according to a video request message sent by the first terminal, the video request message is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal;
s304, returning the video data to the server so as to send the video data to the first terminal through the server.
It should be further noted that the second terminal is a terminal that can transmit video data to the first terminal through the server, for example, the second terminal may be a monitoring camera, and the first terminal is a display device such as a mobile phone that a user obtains a monitoring video. In the above-mentioned alternative embodiment, the video type information corresponds to the video request information, for example, when the object requested by the video request information is image data and audio data, the video type information also corresponds to the video type indicating the second terminal to acquire image data and audio data, and when the object requested by the video request information is image data, the video type information also corresponds to the video type indicating the second terminal to acquire image data.
In the method for adjusting the state of the terminal device in the internet of things of this embodiment, other optional embodiments and technical effects related to the server and the first terminal are all corresponding to the method for adjusting the state of the terminal device in the internet of things in embodiment 2, and therefore are not described herein again.
In an alternative embodiment, the video request information is generated by the first terminal according to a relationship between the first sound information and the second sound information; wherein the second sound information comprises a second loudness of the sound within the environment in which the first terminal is located.
In an alternative embodiment, the video request information includes:
first video request information, wherein the first video request information is generated by the first terminal in a case where a first loudness included in the first sound information is greater than or equal to a second loudness included in the second sound information; the first video request information is used for indicating the server to return first video data to the first terminal, and the first video data comprises image data and audio data;
second video request information, wherein the second video request information is generated by the first terminal in a case where the first loudness included in the first sound information is smaller than the second loudness included in the second sound information; the second video request information is used for indicating the server to return second video data to the first terminal, and the second video data comprises image data.
In an optional embodiment, the second sound information is obtained by filtering, by the first terminal, the first sound information included in the third sound information; and the third sound information comprises the third loudness of the sound set acquired by the first terminal.
In an alternative embodiment, the video request information includes: second video request information;
wherein the second video request information is generated by the first terminal in a case where a first loudness included in the first sound signal is 0; the second video request information is used for indicating the server to return second video data to the first terminal; wherein the second video data comprises image data.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 4
Fig. 5 is a schematic view of an operating system for adjusting a state of an internet of things terminal device according to an embodiment of the present invention, and as shown in fig. 5, the operating system for adjusting a state of an internet of things terminal device in this embodiment includes:
a first terminal 402 configured to acquire first sound information and generate video request information at least according to the first sound information; the first sound information comprises first loudness of sound played by the first terminal;
the server 404 is configured to receive the video request information sent by the first terminal 402, and return video data to the first terminal 402 according to the video request information.
In an optional embodiment, the system further includes:
a second terminal 406 configured to acquire video data and send the video data to the first terminal 402 through the server 404;
the server 404 is further configured to send video type information to the second terminal 406 according to the video request information; the second terminal 406 is further configured to obtain video data according to the video type information and return the corresponding video data to the server 404.
In the operating system for adjusting the state of the terminal device of the internet of things in this embodiment, other optional technical solutions and technical effects of the first terminal and the server correspond to the method for adjusting the state of the terminal device of the internet of things in embodiments 1 and 2, and therefore are not described herein again.
Example 5
The embodiment also provides a device for adjusting the state of the terminal equipment of the internet of things, which is applied to the first terminal, and the device is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram (one) of a structure of an apparatus for adjusting a state of an internet of things terminal device according to an embodiment of the present invention, and as shown in fig. 6, the apparatus for adjusting a state of an internet of things terminal device in the embodiment includes:
an obtaining module 502, configured to obtain first sound information, where the first sound information includes a first loudness of a sound played by a first terminal;
and the request module 504 is configured to generate video request information at least according to the first sound information and send the video request information to the server, so as to instruct the server to return video data according to the video request information.
The remaining optional embodiments and technical effects of the apparatus for adjusting the state of the terminal device of the internet of things in this embodiment correspond to the method for adjusting the state of the terminal device of the internet of things in embodiment 1, and therefore are not described herein again.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 6
The embodiment also provides a device for adjusting the state of the terminal device of the internet of things, which is applied to a server, and the device is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram (ii) of a structure of an apparatus for adjusting a state of an internet of things terminal device according to an embodiment of the present invention, and as shown in fig. 7, the apparatus for adjusting a state of an internet of things terminal device in the embodiment includes:
a receiving module 602, configured to receive video request information sent by a first terminal, and return video data according to the video request information; the video request information is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal.
Other optional embodiments and technical effects of the apparatus for adjusting the state of the terminal device of the internet of things in this embodiment correspond to the method for adjusting the state of the terminal device of the internet of things in embodiment 2, and therefore are not described herein again.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 7
The embodiment also provides a device for adjusting the state of the terminal device of the internet of things, which is applied to the second terminal, and the device is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram (iii) of a structure of an apparatus for adjusting a state of an internet of things terminal device according to an embodiment of the present invention, and as shown in fig. 8, the apparatus for adjusting a state of an internet of things terminal device in the embodiment includes:
a type module 702, configured to receive video type information sent by a server, and obtain corresponding video data according to the video type information; the video type information is generated by the server according to a video request message sent by the first terminal, the video request message is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal.
A sending module 704, configured to return the video data to the server, so as to send the video data to the first terminal through the server.
Other optional embodiments and technical effects of the apparatus for adjusting a state of an internet of things terminal device in this embodiment correspond to the method for adjusting a state of an internet of things terminal device in embodiment 3, and therefore are not described herein again.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 8
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring first sound information, wherein the first sound information comprises a first loudness of sound played by the first terminal;
and S2, generating video request information at least according to the first sound information and sending the video request information to the server so as to instruct the server to return video data according to the video request information.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 9
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, receiving video request information sent by the first terminal, and returning video data according to the video request information; the video request information is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 10
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, receiving the video type information sent by the server, and acquiring corresponding video data according to the video type information; the video type information is generated by the server according to a video request message sent by the first terminal, the video request message is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal;
and S2, returning the video data to the server so as to send the video data to the first terminal through the server.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 11
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring first sound information, wherein the first sound information comprises a first loudness of sound played by the first terminal;
and S2, generating video request information at least according to the first sound information and sending the video request information to the server so as to instruct the server to return video data according to the video request information.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
Example 12
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving video request information sent by the first terminal, and returning video data according to the video request information; the video request information is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Example 13
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving the video type information sent by the server, and acquiring corresponding video data according to the video type information; the video type information is generated by the server according to a video request message sent by the first terminal, the video request message is generated by the first terminal at least according to first sound information, and the first sound information comprises first loudness of sound played by the first terminal;
and S2, returning the video data to the server so as to send the video data to the first terminal through the server.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.