Method and related device for regulating and controlling volume of smart television
Technical Field
The embodiment of the application relates to the technical field of smart televisions, in particular to a method for regulating and controlling volume of a smart television and a related device.
Background
With the continuous development of the related technology of the smart television, the smart television can play not only the traditional television programs depending on the broadcast signaling, but also the network video through the broadband channel, which greatly improves the attention of the user to the smart television.
Most smart tvs in the market currently only have one volume channel, such as a High Definition Multimedia Interface (HDMI), on an electronic chip. When watching a video over a broadband connection, the volume factor of the video is first obtained. The volume bar value of the video is converted into a value between 0 and 1, the value is the volume coefficient of the video, and when a user watches the video through the intelligent television, the volume coefficient of the video can be obtained from the server. After the video to be played is played, the user can select to adjust the current playing volume of the smart television by using the terminal equipment or the remote controller. In the prior art, when a user a uses a remote controller to adjust the current playing volume, the current playing volume is increased or decreased along with an infrared signal command of the remote controller, however, in the process of adjusting the volume through the remote controller, the reference volume of the played video to be played is always unchanged. This causes the situation that the user B cannot up-adjust (down-adjust) the currently played volume when the user B subsequently uses the terminal device for adjustment.
For example, the current playing volume of the smart television is 10, the reference volume of the played video to be played is 20, and the user a adjusts the current playing volume to 20 through a remote controller. And subsequently, the user B adjusts the volume coefficient of the played video to be played from 0.5 to 0.8 through the terminal device, and at this time, the current playing volume of the smart television is the product 16 of the adjusted volume coefficient 0.8 and the reference volume 20. The user B does not reach the requirement of up-regulating the current playing volume.
In summary, a solution is needed to solve the problem of disordered volume adjustment when a user adjusts the current playing volume of the smart television.
Disclosure of Invention
The embodiment of the application provides a method and a related device for adjusting the volume of a smart television, which are used for solving the problem of disordered volume adjustment when a user adjusts the current playing volume of the smart television.
In a first aspect, an embodiment of the present application provides a method for adjusting a volume of a smart television, including receiving a volume coefficient adjustment command; the volume coefficient adjusting command comprises a target volume coefficient. And determining the historical playing volume of the video to be played, and if the current playing volume of the video to be played is determined to be different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume. Determining a first target playing volume according to the updated reference volume and the target volume coefficient; and playing the video to be played at the first target playing volume.
In a second aspect, an embodiment of the present application provides a device for adjusting volume of a smart television, including a transceiver unit, configured to receive a volume coefficient adjustment command after a video to be played has been played; wherein, the volume coefficient adjusting command comprises a target volume coefficient; the determining unit is used for determining the historical playing volume of the video to be played; if the current playing volume of the video to be played is different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume; and determining the first target playing volume according to the updated reference volume and the target volume coefficient. And the playing unit is used for playing the video to be played with the first target playing volume.
In a third aspect, an embodiment of the present application provides a computer storage medium, where instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the first aspect or the method in any possible implementation manner of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
In a fifth aspect, an embodiment of the present application provides a smart television, which includes a memory, a transceiver, and a processor, wherein: the memory is used for storing instructions; the processor is used for executing the instructions stored in the memory and controlling the transceiver to perform signal receiving and signal transmitting, and when the processor executes the instructions stored in the memory, the smart television is used for executing the method of the first aspect or the first aspect
In the embodiment of the application, a volume coefficient adjusting command is received; the volume coefficient adjusting command comprises a target volume coefficient. Determining the historical playing volume of the video to be played; if the current playing volume of the video to be played is different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume; and determining the first target playing volume according to the updated reference volume and the target volume coefficient. And playing the video to be played at the first target playing volume. The intelligent television can obtain the target playing volume according to the updated reference volume. Therefore, the problem that the volume adjustment is disordered when the user adjusts the current playing volume of the intelligent television can be solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a system architecture suitable for use in accordance with an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for controlling volume of a smart tv according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for controlling a volume of a smart television according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for controlling a volume of a smart television according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for controlling a volume of a smart television according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for controlling a volume of a smart television according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a method for controlling a volume of a smart television according to an embodiment of the present application;
fig. 8 is a schematic diagram illustrating an apparatus for volume control of a smart tv according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a smart television according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and beneficial effects of the present application more clear and more obvious, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 exemplarily shows a system architecture schematic diagram applicable to the embodiment of the present application, and as shown in fig. 1, the system architecture applicable to the embodiment of the present application includes a smart television 101, and two tuning devices, namely a remote controller 102 and a terminal device 103. In the embodiment of the application, a plurality of videos are displayed on a user interface, such as the video 104 in fig. 1, a user may select a video to be played through a remote controller, first select the video to be played through a cursor 105 of the smart television controlled by the remote controller 102, and then output a signal through a key on the remote controller to turn on the video to be played. Or, the user can also select the video to be played through the terminal device. And then playing the video to be played. The video can be tuned by two optional tuning modes through two tuning devices during playing.
In the first optional tuning mode, the terminal device 103 sends a volume coefficient adjustment command to the smart television 101, where the volume coefficient adjustment command includes a target volume coefficient, and the smart television adjusts the current playing volume of the video to be played according to the target volume coefficient.
In a second optional tuning mode, the remote controller 102 sends an infrared signal to the smart television 101 when tuning, the infrared signal includes key values, different key values represent different key information, and the volume is adjusted by the remote controller every time, and the current playing volume of the video to be played is increased or decreased by one.
For example, the current playing volume of a video to be played is 10, a user sends continuous infrared signals to the smart television through the remote controller, the key value in each sent infrared signal is that the volume is increased by one, and the current playing volume is increased by one unit every time the smart television receives the infrared signal containing the volume increased by one, so that the target playing volume of the user is finally reached.
Fig. 2 exemplarily shows a schematic structural diagram of a device for volume control of a smart television, where as shown in fig. 2, the smart television includes a browser module 201, a user interface module 202, and a control module 203. In the first tuning with the terminal device, in an optional embodiment, when the user tunes through the terminal device, the browser module 201 of the smart television performs volume adjustment according to the received target volume factor.
In the second tuning with the remote controller, in an optional implementation manner, when the user tunes with the remote controller, the user interface module 202 of the smart television performs adjustment according to the received infrared signal containing the key value of the remote controller.
The terminal device 103 may be a communication device capable of communicating with the smart television, such as a mobile phone, a tablet computer, and a personal computer.
Fig. 3 shows a flowchart of a method for volume control of a smart television according to an embodiment of the present application, where as shown in fig. 3, the method may include:
step 301, determining the current playing volume of the smart television;
step 302, acquiring a volume coefficient of a video to be played;
step 303, determining the initial playing volume of the video to be played according to the volume coefficient of the video to be played and the current playing volume of the smart television; the difference value between the initial playing volume of the video to be played and the current playing volume of the smart television is smaller than a preset threshold value;
step 304, playing the video to be played with the initial playing volume of the video to be played.
In the embodiment of the application, the current playing volume of the smart television is determined, the volume coefficient of a video to be played is obtained, the initial playing volume of the video to be played is determined according to the volume coefficient of the video to be played and the current playing volume of the smart television, and the difference value between the initial playing volume of the video to be played and the current playing volume of the smart television is smaller than a preset threshold value. And playing the video to be played at the initial playing volume of the video to be played. Due to the fact that the difference between the initial playing volume of the video to be played and the current playing volume of the smart television before the video to be played is small, the problem that the volume jumps when the smart television plays the video can be solved.
In step 301, in an optional implementation manner, the browser module of the smart television may send a current playing volume query request to the control module of the smart television, the control module of the smart television obtains the current playing volume and then sends the current playing volume to the browser module, and the browser module of the smart television may further obtain the current playing volume of the smart television through detection.
In an optional embodiment, the determined current playing volume of the smart television refers to the system volume of the smart television, and the smart television may be currently playing videos or television programs, or may not play any videos or television programs. If the smart television is currently playing the video or the television program, the current playing volume of the smart television is also the playing volume of the video or the television program currently played by the smart television. If the smart television does not play the video or the television program at present, the current playing volume of the smart television is the system volume of the smart television, and the volume may be the playing volume of the last video or television program played by the smart television or the system volume of the smart television, which is obtained after the user adjusts the playing volume of the smart television last time. Alternatively, the television program may be a conventional television program played by the smart television after receiving the broadcast signaling.
In the step 302, there are multiple ways to obtain the volume coefficient of the video to be played, in an optional implementation, the browser module of the smart television may obtain the volume coefficient of the video to be played from the control module of the smart television, and after the smart television determines the video to be played through a remote controller or a terminal device, the volume coefficient is obtained from the control module of the smart television, and the volume coefficient in this way may be a historical volume coefficient of the video to be played watched on the same smart television.
In another alternative embodiment, the browser module of the smart television may be obtained from a server that provides the video to be played. After the smart television determines a video to be played through a remote controller or terminal equipment, a browser module of the smart television sends a playing request to a server providing the video to be played, the playing request comprises an identifier of the video to be played, and after the server receives the playing request, the server sends a volume coefficient of the video to be played to the smart television according to the identifier of the video to be played. The volume coefficient provided by the server may be manually set by a worker at the server, and the volume coefficient of the video to be played may also be determined according to all the volume coefficients fed back by the terminal that has played the video to be played, for example, an average value of all the fed back volume coefficients is obtained, and the average value of the volume coefficients fed back by all the terminals within a preset time period may also be obtained as the volume coefficient provided by the server to the smart television.
After step 302 and before step 303, in an alternative embodiment, after the smart tv acquires the volume coefficient of the video to be played, the smart tv is further triggered to generate an initialization symbol, such as a number "1", where the initialization symbol indicates that the initial playing volume of the video to be played is not obtained according to the volume coefficient after the smart tv acquires the volume coefficient.
After step 302 and before step 303, in an optional implementation manner, the smart television may determine a volume coefficient of the obtained video to be played, and when the value of the volume coefficient is greater than 0, the browser module of the smart television sends a mute instruction to the play channel of the smart television, that is, the play channel is in a non-mute state. When the value of the volume coefficient is equal to 0, the playing channel is in a mute state, and at this time, after the smart television has to receive a mute instruction, for example, the smart television receives the mute instruction sent by the terminal device or the remote controller, the value of the volume coefficient is not equal to 0, so that the playing channel of the smart television is not in the mute state.
In an optional implementation manner, the browser module of the smart television may determine the reference volume of the video to be played according to a quotient of a current playing volume of the smart television and a volume coefficient of the video to be played.
In a scheme for determining the reference volume, a quotient of a current playing volume of the smart television and a volume coefficient of a video to be played may be subjected to some operations, for example, the quotient is multiplied by a weight to obtain the reference volume of the video to be played. The weight may be preset, such as by a user setting empirically.
In another scheme for determining the reference volume, the quotient of the current playing volume of the smart television and the volume coefficient of the video to be played is directly used as the reference volume. Alternatively, the reference volume may be determined according to equation (1):
in formula (1), P is the current playing volume of the smart television, B is the volume coefficient of the video to be played, and a is the reference volume.
In the embodiment of the application, the browser module of the smart television can determine the initial playing volume of the video to be played according to the product of the reference volume and the volume coefficient of the video to be played.
In a scheme for determining the initial play volume of a video to be played, some operations may be performed on the product of a reference volume and a volume coefficient of the video to be played, for example, the result is multiplied by a weight, so as to obtain the initial play volume of the video to be played. The weight may be preset, such as by a user setting empirically.
In another scheme for determining the initial playing volume of the video to be played, the product of the reference volume and the volume coefficient of the video to be played is directly used as the initial playing volume of the video to be played. Alternatively, the initial playing volume of the video to be played may be determined according to formula (2):
P0formula (2) of a × B … …
In formula (2), a is a multiple number, a is a reference volume, B is a volume coefficient of a video to be played, and P is0And the initial playing volume of the video which is not to be played.
In the prior art, the problem of volume jump occurs in the playing process of the smart television. For example, the playing volume of a video currently played by the smart television is 20, that is, the current playing volume of the smart television is 20, the user turns on another video after turning off the video, and after obtaining the volume coefficient 0.5 of the another video, the playing volume of the another video is recalculated by multiplying the current playing volume of the smart television 20 by the volume coefficient 0.5 of the another video to obtain the playing volume of the another video as 10, in which case, the smart television plays the another video at the playing volume of 10. It can be seen that the user switches from one video to another video, the playing volume of the smart television jumps from 20 to 10, but the user does not adjust the volume of the smart television.
In the embodiment of the application, the browser module of the smart television acquires that the volume coefficient of the video to be played is 0.5 from the server, and the determined current playing volume is 15, so that the reference volume of the video to be played is 30 according to the quotient of the current playing volume 15 of the smart television and the volume coefficient 0.5 of the video to be played, and then the initial playing volume of the video to be played is determined to be 15 according to the product of the reference volume 30 and the volume coefficient 0.5 of the video to be played. And the smart television plays the video to be played according to the determined initial playing volume 15 of the video to be played as the current playing volume of the video to be played. Therefore, the current playing volume of the smart television before the video to be played is the same as the initial playing volume of the video to be played, and no volume jump occurs.
In the above example, the current playing volume is the same as the initial playing volume of the video to be played, in an alternative embodiment, a quotient between the current playing volume of the smart television and the volume coefficient of the video to be played may be divided by a factor of two, and a mode of keeping a decimal number is adopted.
In an optional implementation manner, the browser module of the smart television may store the initial playing volume and the reference volume of the video to be played, and may also send the initial playing volume and the reference volume of the video to be played to the control module of the smart television for storage.
In an optional implementation manner, after the smart television plays the video to be played according to the initial playing volume of the video to be played, the initialization symbol changes from a digital "1" to a digital "0".
Fig. 4 shows a flowchart of a method for volume control of a smart television according to an embodiment of the present application, where as shown in fig. 4, the method may include:
step 401, a browser module of the smart television determines the current playing volume of the smart television;
step 402, a browser module of the smart television acquires a volume coefficient of a video to be played from a server;
step 403, the smart television generates an initialization symbol;
step 404, when the numerical value of the volume coefficient is larger than 0, the browser module of the smart television sends a mute command to a playing channel of the smart television;
step 405, the browser module of the smart television determines the reference volume of the video to be played according to the quotient of the current playing volume of the smart television and the volume coefficient of the video to be played;
step 406, the browser module of the smart television determines the initial playing volume of the video to be played according to the product of the reference volume and the volume coefficient of the video to be played;
step 407, the browser module of the smart television sends the initial playing volume of the played video and the reference volume of the played video to the control layer module of the smart television;
step 408, the smart television plays the video to be played at the initial playing volume of the video to be played;
in step 409, the intelligent television changes the initialization symbol.
After the step 304 or the step 409, the user may adjust the volume of the video to be played in the playing process in two ways, where the first way is that the user sends a target volume coefficient to the smart television through the terminal device, and the second way is that the user sends an infrared signal containing a key value to the smart television through the remote controller. And the intelligent television adjusts the playing volume according to the received target volume coefficient or the infrared signal containing the key value.
Fig. 5 shows a flowchart of a method for volume control of a smart television according to an embodiment of the present application, where as shown in fig. 5, the method may include:
step 501, receiving a volume coefficient adjustment command; wherein, the volume coefficient adjusting command comprises a target volume coefficient;
step 502, determining the historical playing volume of a video to be played;
step 503, if it is determined that the current playing volume of the video to be played is different from the historical playing volume, updating the reference volume value according to the current playing volume and the historical playing volume of the video to be played to obtain an updated reference volume;
step 504, determining a first target playing volume according to the updated reference volume and the target volume coefficient;
and step 505, playing the video to be played at the first target playing volume.
In step 501, the volume coefficient adjustment command may be sent by the terminal device to the browser module of the smart television.
In step 502, in an optional implementation manner, if the video to be played has been subjected to volume adjustment at least once after starting to be played in a manner of receiving a volume coefficient adjustment command, the historical playing volume is the playing volume of the video to be played after the volume of the video to be played has been adjusted recently according to the received volume coefficient adjustment command; if the volume adjustment is not performed after the video to be played starts to be played in a mode of receiving the volume coefficient adjustment command, the historical playing volume is the initial playing volume.
Specifically, if the volume adjustment is performed at least once after the video to be played starts to be played in a manner of receiving a volume coefficient adjustment command, that is, in a manner of tuning the terminal device, the historical playing volume of the video to be played is the current playing volume of the video to be played after the volume adjustment; if the volume adjustment is not performed in the manner of receiving the volume coefficient adjustment command after the video to be played starts to be played, that is, the volume adjustment is not performed in any manner or is performed once through a remote controller, the historical playing volume of the video to be played is the initial playing volume of the played video to be played.
In step 503, in an optional implementation manner, the browser module of the smart television updates the value of the reference volume according to the current playing volume of the video to be played and the historical playing volume of the video to be played, so as to obtain the updated reference volume.
For example, if the current playing volume is adjusted by the remote controller for the first time, the historical playing volume of the video to be played is the initial playing volume of the volume to be played during playing, when the volume of the smart television is adjusted by the terminal device for the second time, the current playing volume of the video to be played is the playing volume adjusted by the remote controller for the last time, the current playing volume of the video to be played is not equal to the historical playing volume of the video to be played, and the browser module of the smart television updates the value of the reference volume according to the current playing volume of the video to be played and the historical playing volume of the video to be played, so as to obtain the updated reference volume.
In an optional implementation manner, the browser module of the smart television determines that a quotient of a product of a current playing volume of the video to be played and the reference volume and a historical playing volume of the video to be played is the updated reference volume. Optionally, the updated reference volume is determined according to equation (3):
in formula (3), a is a multiplication number, a is a reference volume, and P is1Is the current playing volume, P, of the video to be played0For historical playing volume of the video to be played, A1Is the updated reference volume.
In the step 504, in an optional implementation manner, after the browser module of the smart television determines the updated reference volume, the first target play volume may be determined according to the updated reference volume and the target volume coefficient. When the target volume coefficient is tuned through the terminal equipment for the second time, the user sends the target volume coefficient to the smart television through the terminal equipment. Optionally, the first target playing volume may be obtained according to a product of the updated reference volume and the target volume coefficient. Alternatively, the first target playback volume may be determined according to equation (4):
P2=A1B1… … formula (4)
In formula (4), is a multiplication number, B1Is a target volume coefficient, A1Is the updated reference volume; p2The volume is played for the first target.
After the browser module of the smart television adjusts the volume through the terminal device to obtain the first target play volume, in an optional implementation manner, the value of the historical play volume may be updated by using the first target play volume, and the updated historical play volume is the first target play volume.
In an optional implementation manner, if it is determined that the current play volume of the video to be played is the same as the historical play volume, the second target play volume is determined according to the reference volume and the target volume coefficient. And playing the video to be played at the second target playing volume.
In an optional implementation manner, after the browser module of the smart television obtains the initial playing volume, the user adjusts the volume for the first time in a terminal device tuning manner, that is, the user sends the target volume coefficient to the smart television through the terminal device. Then the historical playing volume of the video to be played is the initial playing volume of the video to be played. At this time, the current playing volume of the video to be played during playing is the initial playing volume of the video to be played, so that the current playing volume of the video to be played during playing is the same as the historical playing volume of the video to be played, and the reference volume is not changed. Optionally, the browser module of the smart television determines the second target playing volume according to the reference volume and the target volume coefficient. In an alternative embodiment, the second target playback volume is a product of the reference volume and the target volume coefficient, and optionally, the second target playback volume may be determined according to equation (5):
P3=A*B2… … formula (5)
In formula (5), a is a reference volume; b is2Is the target volume coefficient, multiplied by the number, P3Is the second target volume.
And after the browser module of the smart television determines the second target playing volume, playing the video to be played at the second target playing volume. And meanwhile, obtaining the updated historical playing volume of the video to be played according to the second target playing volume, wherein the updated historical playing volume of the video to be played is the second target playing volume.
Fig. 6 shows a flowchart of a method for volume control of a smart television according to an embodiment of the present application, where as shown in fig. 6, the method may include:
step 601, receiving a volume coefficient adjustment command; wherein, the volume coefficient adjusting command comprises a target volume coefficient;
step 602, determining the historical playing volume of a video to be played; if the volume adjustment is carried out at least once after the video to be played starts to be played in a mode of receiving a volume coefficient adjustment command, the historical playing volume is the playing volume of the video to be played after the volume adjustment is carried out on the video to be played according to the received volume coefficient adjustment command at the latest time; if the volume adjustment is not performed in a mode of receiving a volume coefficient adjustment command after the video to be played starts to be played, the historical playing volume is the initial playing volume;
step 603, judging whether the current playing volume of the video to be played is the same as the historical playing volume; if not, go to step 604; if yes, go to step 606;
step 604, updating the reference volume value according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume;
step 605, determining a first target playing volume according to the updated reference volume and the target volume coefficient; and playing the video to be played at the first target playing volume.
Step 606, determining a second target playing volume according to the reference volume and the target volume coefficient; and playing the video to be played at the second target playing volume.
Fig. 7 shows a flowchart of a method for volume control of a smart television according to an embodiment of the present application, where as shown in fig. 7, the method may include:
step 701, judging whether the smart television is tuned through a remote controller;
step 702, under the condition that the smart television is tuned through a remote controller, a user interface module of the smart television adjusts the current playing volume of the smart television according to a received infrared signal containing a key value;
703, comparing the historical playing volume of the video to be played with the current playing volume of the video to be played by a browser module of the smart television under the condition that the smart television is not tuned by a remote controller;
step 704, under the condition that the historical playing volume of the video to be played is the same as the current playing volume of the video to be played, the browser module of the smart television determines a second target playing volume according to the target volume coefficient and the reference volume;
step 705, under the condition that the historical playing volume of the video to be played is different from the current playing volume of the video to be played, the browser module of the smart television determines the updated reference volume according to the historical playing volume of the video to be played, the current playing volume of the video to be played and the reference volume;
step 706, the browser module of the smart television determines a first target volume according to the target volume coefficient and the updated reference volume.
In an optional implementation manner, after receiving a target volume coefficient, such as a first target volume coefficient or a second target volume coefficient, sent by a terminal device, the smart television sends the target volume coefficient to a server providing a video to be played, so that the server serves as a reference when providing the volume coefficients for other smart televisions.
Based on the values of the above example, the reference volume is 30, the initial play volume is 15, and the history play volume is 15, for example:
example one: and after the initial playing volume of the intelligent television is obtained, tuning is carried out for the first time through the remote controller, and tuning is carried out for the second time through the terminal equipment.
After tuning is performed through the remote controller for the first time, the user interface module of the smart television determines that the current playing volume of the video to be played in playing is 24 according to the received infrared signal containing the key value, then plays the video to be played according to the current playing volume 24 of the video to be played, and sends the current playing volume of the video to be played to the control module of the smart television.
After the terminal device is tuned for the second time, the browser module of the smart television receives the first target volume coefficient 0.8 sent by the terminal device, sends the first target volume coefficient to the server, and compares the historical playing volume 15 of the video to be played with the current playing volume 24 of the video to be played. Because the historical playing volume of the video to be played is different from the current playing volume of the video to be played, the browser module of the smart television needs to recalculate the reference volume, and the updated reference volume, that is, 24 × 30/15 — 48, is obtained by the quotient of the product of the current playing volume of the video to be played and the reference volume and the historical playing volume. Then, the first target playing volume 48 × 0.8 is obtained as 38.4 according to the updated reference volume 48 and the first target volume coefficient 0.8, and the historical playing volume of the video to be played is updated to be 38.4 according to the first target playing volume. And then, the browser module of the smart television sends the first target playing volume, the historical playing volume of the video to be played and the updated reference volume to a control layer of the smart television. Therefore, the intelligent television recalculates the reference volume after the volume is adjusted through the remote controller, so that a subsequent user can directly adjust the volume up or down based on the updated reference volume through the terminal equipment tuning mode.
Example two: and after the initial playing volume of the intelligent television is obtained, tuning is carried out for the first time through the terminal equipment.
After the browser module of the smart television receives the second target volume coefficient 0.6 sent by the terminal device, because the historical playing volume of the video to be played and the current playing volume of the video to be played are both the same as the initial playing volume of the video to be played, the browser module of the smart television can obtain the second target playing volume 30 × 0.6 ═ 18 according to the reference volume and the second target volume coefficient, and obtain the updated historical playing volume of the video to be played according to the second target playing volume. And then, the browser module of the smart television sends the second target playing volume and the historical playing volume of the video to be played to a control layer of the smart television.
In another alternative implementation provided in this embodiment of the present application, step 504 in fig. 5 may be executed after step 602 in fig. 6, that is, after the current playing volume of the video to be played is obtained through tuning by the remote controller, an updated reference volume is directly obtained according to the current playing volume, the reference volume, and the historical playing volume of the video to be played,
for example, before tuning through the remote controller, the current playing volume of the video to be played is 15, the reference volume of the video to be played is 30, and when tuning through the remote controller for the first time obtains the current playing volume 24 of the video to be played, the updated reference volume 24 × 30/15 is obtained as 48 according to the quotient of the product of the current playing volume and the reference volume of the video to be played and the historical playing volume.
Optionally, the smart television may obtain an updated reference volume each time the smart television receives a red-out signal containing the key value. When the subsequent tuning is carried out through the terminal equipment, whether the historical playing volume of the video to be played is the same as the current playing volume of the video to be played does not need to be judged, and the target playing volume can be directly determined according to the reference volume and the target volume coefficient which are updated last time.
Due to the fact that the updated reference volume can be directly obtained after the remote controller is tuned, when the terminal device is subsequently tuned, whether the historical playing volume of the video to be played and the current playing volume of the video to be played are the same or not does not need to be judged, and if the user is tuned through the terminal device at the last time before the terminal device is tuned or the user does not use any mode, the browser module of the smart television can obtain the target playing volume according to the previous reference volume and the target volume coefficient.
Based on the above embodiments and the same concept, fig. 8 shows a schematic diagram of a device for controlling volume of a smart television according to an embodiment of the present application, and as shown in fig. 8, the device 800 for controlling volume may include a transceiver unit 801, a determination unit 802, and a playing unit 803. Optionally, the transceiver unit 801 and the determination unit 802 may also be disposed in the browser module 201, the user interface module 202, and the control module 203 of the smart television in fig. 2.
In an embodiment of the present application, the transceiver unit is configured to receive a volume coefficient adjustment command; the volume coefficient adjusting command comprises a target volume coefficient. The determining unit is used for determining the historical playing volume of the video to be played; and if the current playing volume of the video to be played is different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume. And determining the first target playing volume according to the updated reference volume and the target volume coefficient. And the playing unit is used for playing the video to be played with the first target playing volume.
In the embodiment of the application, a volume coefficient adjusting command is received; the volume coefficient adjusting command comprises a target volume coefficient. Determining the historical playing volume of the video to be played; if the current playing volume of the video to be played is different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume; and determining the first target playing volume according to the updated reference volume and the target volume coefficient. And playing the video to be played at the first target playing volume. The intelligent television can obtain the target playing volume according to the updated reference volume. Therefore, the problem that the volume adjustment is disordered when the user adjusts the current playing sound of the intelligent television can be solved.
In an optional implementation manner, the determining unit is specifically configured to: if the volume adjustment is carried out at least once after the video to be played starts to be played in a mode of receiving the volume coefficient adjustment command, the historical playing volume is the playing volume of the video to be played after the volume adjustment is carried out on the video to be played according to the received volume coefficient adjustment command at the latest time; if the volume adjustment is not performed after the video to be played starts to be played in a mode of receiving the volume coefficient adjustment command, the historical playing volume is the initial playing volume.
In an optional embodiment, the determining unit is further configured to: if the current playing volume of the video to be played is determined to be the same as the historical playing volume, determining a second target playing volume according to the reference volume and the target volume coefficient; and the playing unit is also used for playing the video to be played at the second target playing volume.
In an optional implementation manner, the determining unit is specifically configured to determine that a quotient of a product of a current play volume and a reference volume of the video to be played and the historical play volume is the updated reference volume.
In an optional implementation, the method further includes: the determining unit is further used for determining the current playing volume of the smart television; the acquisition unit is used for acquiring the volume coefficient of the video to be played; the determining unit is further used for determining the initial playing volume of the video to be played according to the volume coefficient of the video to be played and the current playing volume of the smart television; the difference value between the initial playing volume of the video to be played and the current playing volume of the smart television is smaller than a preset threshold value; and the playing unit is also used for playing the video to be played at the initial playing volume of the video to be played.
For specific description of the display device of the electronic map provided in the embodiment of the present application, reference may be made to the method for controlling the volume of the smart television provided in the above embodiment, which is not described herein again.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Fig. 9 schematically shows a structural diagram of an intelligent television provided by an embodiment of the present application. Based on the same concept, the embodiment of the present application provides a smart television 900, configured to perform any one of the above methods. As shown in fig. 4, the smart tv 900 includes a processor 901, a transceiver 902, a memory 903, and a communication interface 904; the processor 901, the transceiver 902, the memory 903, and the communication interface 904 are connected to each other via a bus 905.
The bus 905 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory 903 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile) such as a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 903 may also comprise a combination of memories of the kind described above.
The communication interface 904 may be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface may be, for example, AN Ethernet interface.
The processor 901 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP, the processor 901 may further include a hardware chip, which may be an application-specific integrated circuit (ASIC), a programmable logic device (P L D), or a combination thereof, the P L D may be a complex programmable logic device (CP L D), a field-programmable gate array (FPGA), a general array logic (GA L), or any combination thereof.
Optionally, the memory 903 may also be used to store program instructions, and the processor 901 calls the program instructions stored in the memory 903, and may perform one or more steps in the embodiments shown in the above schemes, or an alternative implementation manner thereof, so that the terminal device 900 implements the functions of the terminal device in the above methods.
The processor 901 is configured to execute the instructions stored in the memory and control the transceiver 902 to perform signal receiving and signal transmitting, and when the processor 901 executes the instructions stored in the memory, the smart tv 900 is configured to: receiving a volume coefficient adjustment command; wherein, the volume coefficient adjusting command comprises a target volume coefficient; and determining the historical playing volume of the video to be played. And if the current playing volume of the video to be played is different from the historical playing volume, updating the value of the reference volume according to the current playing volume and the historical playing volume of the video to be played to obtain the updated reference volume. And determining the first target playing volume according to the updated reference volume and the target volume coefficient. And playing the video to be played at the first target playing volume.
The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device, the instructions may be stored in a computer storage medium or transmitted from one computer storage medium to another computer storage medium, e.g., from one website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website, computer, server, or data center, the computer storage medium may be any available medium that can be accessed by the computer or an integrated server, data center, etc., including one or more available media, such as optical Disk storage (e.g., optical Disk, etc..
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by instructions. These instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.