CN115811560A - Playing control method and device, storage medium and electronic equipment - Google Patents

Playing control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115811560A
CN115811560A CN202111074831.XA CN202111074831A CN115811560A CN 115811560 A CN115811560 A CN 115811560A CN 202111074831 A CN202111074831 A CN 202111074831A CN 115811560 A CN115811560 A CN 115811560A
Authority
CN
China
Prior art keywords
telescopic
distance
multimedia file
display screen
scaling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111074831.XA
Other languages
Chinese (zh)
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111074831.XA priority Critical patent/CN115811560A/en
Publication of CN115811560A publication Critical patent/CN115811560A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a playing control method, a playing control device, a storage medium and electronic equipment. The play control method is applied to electronic equipment, the electronic equipment comprises a telescopic display screen, and the play control method comprises the following steps: acquiring telescopic parameters of the telescopic display screen; and playing and controlling the multimedia file according to the expansion parameter. This application can avoid causing the display screen to shelter from.

Description

Play control method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to a play control method and apparatus, a storage medium, and an electronic device.
Background
At present, electronic devices such as smart phones and tablet computers become necessary for life of people, for example, the electronic devices can listen to songs and watch videos. Taking watching a video as an example, when a user watches the video, if the user wants to perform play control on a video file, for example, adjust the play progress of a multimedia file, the volume of playing the multimedia file, and the like, the user needs to slide on a display screen with a finger, so that the display screen is shielded.
Disclosure of Invention
The embodiment of the application provides a playing control method and device, a storage medium and an electronic device, which can avoid shielding a display screen.
The embodiment of the application provides a play control method, which is applied to electronic equipment, wherein the electronic equipment comprises a telescopic display screen, and the play control method comprises the following steps:
acquiring telescopic parameters of the telescopic display screen;
and playing and controlling the multimedia file according to the expansion parameter.
The embodiment of the application provides a play controlling means, is applied to electronic equipment, electronic equipment includes scalable display screen, play controlling means includes:
the acquisition module is used for acquiring the telescopic parameters of the telescopic display screen;
and the control module is used for controlling the playing of the multimedia file according to the telescopic parameters.
An embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute a flow in a playback control method provided in an embodiment of the present application.
The embodiment of the present application further provides an electronic device, which includes a scalable display screen, a memory, and a processor, where the processor is configured to execute the process in the play control method provided in the embodiment of the present application by calling the computer program stored in the memory.
In the embodiment of the application, the expansion parameters of the expansion display screen are obtained; according to the telescopic parameters, the multimedia file is played and controlled, so that the multimedia file can be played and controlled by controlling the telescopic display screen to stretch out or shrink, the multimedia file does not need to be played and controlled by sliding on the display screen with fingers, and the display screen is prevented from being shielded.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a first structural schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 2 is a second schematic structural diagram of an electronic device provided in an embodiment of the present application;
FIG. 3 is a third structural diagram of an electronic device provided in an embodiment of the present application;
fig. 4 is a fourth structural schematic diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a fifth structural schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a first flowchart of a play control method according to an embodiment of the present application;
fig. 7 is a second flowchart of a play control method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a playback control apparatus according to an embodiment of the present application;
fig. 9 is a sixth schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a playing control method, a playing control device, a storage medium and an electronic device. The execution main body of the play control method may be the electronic device provided in the embodiment of the present application, and the play control apparatus may be implemented in a hardware or software manner.
It should be noted that the electronic device provided by the present application is configured with a retractable display screen, i.e. the retractable display screen can be extended or retracted. Wherein, this scalable display screen adopts flexible material for it can be crooked, curl and folding etc. thereby realizes the telescopic purpose. Based on this scalable display screen, electronic equipment can increase the visual area of scalable display screen through extending scalable display screen, promotes display effect, can also contract scalable display screen and reduce the visual area of scalable display screen, reduces the consumption.
Referring to fig. 1 to 3, an electronic device 100 includes a housing assembly 10, a retractable display 30, a driver 50, and a driving mechanism 70. The shell assembly 10 is a hollow structure; the components of the driver 50, the drive mechanism 70, and the camera 90 may all be disposed in the housing assembly 10. It is understood that the electronic device 100 of the embodiment of the present application includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet, or other portable electronic devices, and herein, the electronic device 100 is taken as a mobile phone as an example for description.
In the present embodiment, the housing assembly 10 includes a first housing 12 and a second housing 14, and the first housing 12 and the second housing 14 are relatively movable. Specifically, in the present embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 is slidable with respect to the first housing 12.
Specifically, referring to fig. 4 and 5, the first casing 12 and the second casing 14 together form an accommodating space 16. The accommodating space 16 can be used for accommodating components such as the driver 50, the camera 90 and the driving mechanism 70. The housing assembly 10 may further include a rear cover 18, and the rear cover 18 and the first and second housings 12 and 14 together form the accommodating space 16.
The driving element 50 is disposed on the second housing 14, one end of the retractable display screen 30 is disposed on the first housing 12, the retractable display screen 30 bypasses the driving element 50, and the other end of the retractable display screen is disposed in the accommodating space 16, so that a part of the retractable display screen is hidden in the accommodating space 16, and a part of the retractable display screen 30 hidden in the accommodating space 16 may not be lighted. The first housing 12 and the second housing 14 are relatively far away from each other, and the driving member 50 can drive the retractable display 30 to be unfolded, so that more retractable display 30 are exposed out of the accommodating space 16. The retractable display screen 30 exposed outside the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 becomes large.
The driving member 50 may be a rotating shaft structure with teeth 52 on the outer portion, the retractable display screen 30 is linked with the driving member 50 by means of meshing, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driving member 50 drives a portion of the retractable display screen 30 meshed with the driving member 50 to move and unfold.
It is understood that the driver 50 can also be a circular shaft without the belt 52, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driver 50 can stretch the part of the retractable display screen 30 wound on the driver 50, so that more retractable display screens 30 are exposed out of the accommodating space 16 and are in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14, and when the retractable display 30 is gradually opened, the driving member 50 can rotate along with the movement of the retractable display 30. In other embodiments, the driver 50 can be fixed on the second housing 14, and the driver 50 has a smooth surface. When the retractable display 30 is opened, the driver 50 is slidably contacted with the retractable display 30 through its smooth surface.
When the first housing 12 and the second housing 14 are relatively close to each other, the retractable display screen can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset component (not shown), one end of the retractable display screen, which is accommodated in the accommodating space 16, is linked with the reset component, when the first shell 12 and the second shell 14 are relatively close to each other, the reset component drives the retractable display screen 30 to reset, so that part of the retractable display screen 30 is retracted into the accommodating space 16.
In this embodiment, the driving mechanism 70 may be disposed in the accommodating space 16, the driving mechanism 70 may be linked with the second housing 14, and the driving mechanism 70 is configured to drive the second housing 14 to move away from the first housing 12, so as to drive the retractable display screen assembly 30 to extend. It will be appreciated that the drive mechanism 70 may be omitted and the user may directly move the first and second housings relative to one another, manually or the like.
Based on the electronic device provided above, the present application further provides a play control method applied to the electronic device.
As shown in fig. 6, fig. 6 is a first flowchart of a play control method provided in the embodiment of the present application, where the flowchart may include:
101. and acquiring telescopic parameters of the telescopic display screen.
As described above, the electronic device to which the play control method provided by the present application is applied includes the retractable display screen, and the retractable display screen can be extended or retracted. The expansion parameter may include parameters of the expandable display screen when expanding or contracting, such as expansion distance (expansion distance or contraction distance), expansion speed (expansion speed or contraction speed), expansion direction (expansion direction or contraction direction), and the like. The telescopic distance refers to a telescopic distance of the telescopic display screen in a corresponding telescopic direction when the telescopic display screen is telescopic. For example, in the case of vertical expansion, the expansion distance of the retractable display screen, that is, the distance that the retractable display screen increases or decreases in the longitudinal direction; in the case of lateral expansion, the expansion distance of the expandable display screen, i.e., the distance the expandable display screen increases or decreases in the lateral direction. For example, when the retractable display screen extends from the position A1 to the position A2, the retractable distance of the retractable display screen is the distance between the position A1 and the position A2. For another example, when the retractable display screen is retracted from the position A3 to the position A4, the retractable distance of the retractable display screen is the distance between the position A3 and the position A4. The stretching speed refers to the stretching speed of the stretchable display screen in the corresponding stretching direction when the stretchable display screen stretches. For example, assuming that the retractable display screen is extended at a speed V1, the retractable speed is V1. For example, assuming that the retractable display screen is retracted at a speed V2, the retraction speed is V2. The telescopic direction of the telescopic display screen is the telescopic direction of the telescopic display screen. For example, if the retractable display screen extends horizontally to the right, the retractable direction of the retractable display screen is horizontally to the right; if the telescopic display screen transversely contracts leftwards, the telescopic direction of the telescopic display screen is transversely leftwards; if the retractable display screen is retracted longitudinally upwards, the retractable direction of the retractable display screen is longitudinally upwards.
For example, after the electronic device plays the multimedia file according to the user operation, if the user controls the extension or the contraction of the retractable display screen, the electronic device may obtain the expansion parameter of the retractable display screen.
For example, when the retractable display screen is extended, the electronic device may obtain the extension distance of the retractable display screen.
102. And playing and controlling the multimedia file according to the expansion parameters.
The multimedia file may include a video file or an audio file, among others.
In this embodiment, after obtaining the scaling parameter of the scalable display screen, the electronic device may perform play control on the multimedia file according to the scaling parameter, for example, control a volume of playing the multimedia file, a play progress of the multimedia file, a play speed of the multimedia file, pause playing the multimedia file, and the like.
For example, the scaling parameter may include a scaling distance, and the electronic device may determine to adjust the volume according to the scaling distance. Then, the electronic device can adjust the playing volume of the multimedia file according to the adjusted volume. The telescopic distance is positively correlated with the adjusted volume, namely the longer the telescopic distance is, the larger the adjusted volume is, the shorter the telescopic distance is, and the smaller the adjusted volume is.
For example, the electronic device may preset a preset mapping relationship between the telescopic distance and the adjusted volume. The preset mapping relationship may include a one-to-one correspondence between a telescopic distance and an adjusted volume. The preset mapping relationship may include a one-to-one correspondence relationship between the telescopic distance interval and the adjusted volume. After the telescopic distance is obtained, the electronic device can determine to adjust the volume according to the telescopic distance and the preset mapping relation. Then, the electronic device can obtain the current playing volume of the multimedia file, and determine the target playing volume according to the current playing volume and the adjusted volume. After the target playing volume is obtained, the electronic equipment can adjust the playing volume of the multimedia file to the target playing volume. When the telescopic display screen is extended, the sum of the current playing volume and the adjusted volume is used as the target playing volume. And when the telescopic display screen is contracted, taking the difference between the current playing volume and the adjusted volume as the target playing volume. In some embodiments, the telescopic display screen is extended or retracted to correspond to the sum of the current playback volume and the adjusted volume as the target playback volume. In other embodiments, the extension or contraction of the retractable display screen corresponds to the difference between the current playback volume and the adjusted volume being the target playback volume.
For another example, the scaling parameter may include a scaling distance, and the electronic device may determine the target playing speed according to the scaling distance. Subsequently, the electronic device may adjust the play speed of the multimedia file to the target play speed. The stretching distance is positively correlated with the playing speed, namely the longer the stretching distance is, the faster the playing speed is, the shorter the stretching distance is, and the slower the playing speed is.
For example, the electronic device may preset a preset mapping relationship between the telescopic distance and the playing speed. The preset mapping relationship may include a one-to-one correspondence between a telescopic distance and a play speed. The preset mapping relationship may include a one-to-one correspondence relationship between the telescopic distance interval and the playing speed. After the telescopic distance is obtained, the electronic device can determine the target playing speed according to the telescopic distance and the preset mapping relation. Then, the electronic device can adjust the playing speed of the multimedia file to the target playing speed.
In the embodiment of the application, the expansion parameters of the expandable display screen are obtained; according to the telescopic parameters, the multimedia file is played and controlled, so that the multimedia file can be played and controlled by controlling the telescopic display screen to stretch out or shrink, the multimedia file does not need to be played and controlled by sliding on the display screen with fingers, and the display screen is prevented from being shielded.
In some embodiments, the scaling parameter includes a scaling distance, and the playing control of the multimedia file according to the scaling parameter may include:
(1) Determining an adjusting step length according to the telescopic distance;
(2) And adjusting the playing progress of the multimedia file according to the adjustment step length.
The adjustment step length is the length of the playing progress of the multimedia file adjusted each time. For example, assuming that the playing rate of the multimedia file is 20 minutes of playing and the adjustment step size is 5 seconds, after the playing rate of the multimedia file is adjusted once according to the adjustment step size, the playing rate of the multimedia file is 5 seconds of playing 20 minutes or 55 seconds of playing 19 minutes. The telescopic distance is positively correlated with the adjustment step length. That is, the longer the telescopic distance, the longer the adjustment step length; the shorter the telescopic distance, the shorter the adjustment step length.
For example, after the telescopic distance of the telescopic display screen is acquired, the electronic device may determine the adjustment step length according to the telescopic distance. After the adjustment step length is determined, the electronic device may adjust the playing progress of the multimedia file according to the adjustment step length, for example, perform fast forward or fast backward processing on the multimedia file according to the adjustment step length.
In some embodiments, the electronic device can fast forward the multimedia file in accordance with the adjustment step size when the retractable display screen is extended. When the telescopic display screen is contracted, the electronic equipment can perform fast-rewinding processing on the multimedia file according to the adjusting step length.
In other embodiments, the electronic device fast-forwards the multimedia file according to the adjustment step, whether the retractable display screen is extended or retracted. Or whether the telescopic display screen extends or contracts, the electronic equipment performs fast-rewinding processing on the multimedia file according to the adjusting step length.
In some embodiments, a touch button may be disposed on a side of the electronic device, and the touch button may be embedded in the electronic device. The electronic equipment can receive the touch operation of a user through the touch key, so that whether the multimedia file is subjected to fast forward processing or fast backward processing is judged according to the touch operation. For example, assuming that the touch operation includes a sliding operation, when the sliding direction of the sliding operation is a first preset direction, it is determined that the multimedia file is fast-forwarded, and when the sliding direction of the sliding operation is a second preset direction, it is determined that the multimedia file is fast-backed. Then, when the user wants to fast forward the multimedia file, the user may slide the finger on the touch key toward the first preset direction to trigger the electronic device to fast forward the multimedia file, and then the electronic device may obtain the telescopic distance of the telescopic display screen, determine an adjustment step length according to the telescopic distance, and adjust the playing progress of the multimedia file according to the adjustment step length. The first preset direction and the second preset direction are two different directions. The first preset direction and the second preset direction may be set according to practical situations, and are not particularly limited herein.
In some embodiments, determining the adjustment step size according to the telescopic distance may include:
(1) Acquiring a preset mapping relation between the telescopic distance and the adjustment step length;
(2) And determining the adjustment step length according to the telescopic distance and the preset mapping relation.
For example, the electronic device may preset a preset mapping relationship between the telescopic distance and the adjustment step length. The preset mapping relationship may include a one-to-one correspondence relationship between the telescopic distance interval and the adjustment step length. The preset mapping relationship may also include a one-to-one correspondence relationship between the telescopic distance and the adjustment step length.
After the telescopic distance of the telescopic display screen is acquired, the electronic device can acquire the preset mapping relation. Then, the electronic device may determine an adjustment step length according to the telescopic distance and the preset mapping relationship. For example, assuming that the telescopic distance is M1, and the telescopic distance M1 corresponds to the adjustment step length R1, the electronic device may determine that the adjustment step length is R1 according to the telescopic distance M1 and the preset mapping relationship.
In some embodiments, determining the adjustment step size according to the telescopic distance may include:
and when the telescopic distance is greater than the preset distance, determining the adjustment step length according to the telescopic distance.
In some cases, for example, when the retractable display screen extends to a certain extent, if the user accidentally touches the retractable display screen, the retractable display screen may also be retracted by a certain distance, and at this time, the user does not intend to play and control the multimedia file, so that, in order to avoid the occurrence of an error response, the electronic device may determine whether the retractable distance is greater than the preset distance after acquiring the retractable distance, and if the retractable distance is greater than the preset distance, the electronic device may determine the adjustment step length according to the retractable distance. If the telescopic distance is less than or equal to the preset distance, the electronic equipment does not need to process. The preset distance may be set according to actual conditions, and is not particularly limited herein. For example, the preset distance may be 3mm, 5mm, or 7mm, and so on.
In some embodiments, the scaling parameter includes a scaling speed, and the playing control of the multimedia file according to the scaling parameter may include:
(1) Determining an adjusting step length according to the stretching speed;
(2) And adjusting the playing progress of the multimedia file according to the adjustment step length.
Wherein, the stretching speed is positively correlated with the adjusting step length. That is, the faster the expansion and contraction speed, the faster the adjustment step length; the slower the telescoping speed, the slower the adjustment step length.
For example, after the expansion speed of the expandable display screen is acquired, the electronic device may determine the adjustment step length according to the expansion speed. After the adjustment step length is determined, the electronic device may adjust the playing progress of the multimedia file according to the adjustment step length, for example, control the multimedia file to fast forward or fast backward according to the adjustment step length, so that the user may control the adjustment step length for adjusting the playing progress of the multimedia file by controlling the expansion speed of the scalable display screen.
For example, after the expansion speed of the expandable display screen is obtained, the electronic device may determine the adjustment step length according to the expansion speed. After the adjustment step length is determined, the electronic device may adjust the playing progress of the multimedia file according to the adjustment step length, for example, perform fast forward or fast backward processing on the multimedia file according to the adjustment step length.
In some embodiments, the electronic device can fast forward the multimedia file in accordance with the adjustment step size when the scalable display screen is extended. When the telescopic display screen is contracted, the electronic equipment can perform fast-rewinding processing on the multimedia file according to the adjusting step length.
In other embodiments, the electronic device fast-forwards the multimedia file according to the adjustment step size whether the retractable display screen is extended or retracted. Or, whether the telescopic display screen is extended or contracted, the electronic equipment performs fast backward processing on the multimedia file according to the adjusting step length.
In some embodiments, a touch button may be disposed on a side of the electronic device, and the touch button may be embedded in the electronic device. The electronic equipment can receive the touch operation of a user through the touch key, so that whether the multimedia file is subjected to fast forward processing or fast backward processing is judged according to the touch operation. For example, assuming that the touch operation includes a sliding operation, when the sliding direction of the sliding operation is a first preset direction, it is determined that the multimedia file is fast-forwarded, and when the sliding direction of the sliding operation is a second preset direction, it is determined that the multimedia file is fast-backed. Then, when the user wants to fast forward the multimedia file, the user may slide the finger on the touch key toward the first preset direction to trigger the electronic device to fast forward the multimedia file, and then the electronic device may obtain the stretching speed of the stretchable display screen, determine an adjustment step length according to the stretching speed, and adjust the playing progress of the multimedia file according to the adjustment step length. The first preset direction and the second preset direction are two different directions. The first preset direction and the second preset direction may be set according to actual situations, and are not particularly limited herein.
In some embodiments, the telescoping parameters further include a telescoping distance, and determining the adjustment step size according to the telescoping speed may include:
and when the telescopic distance is greater than the preset distance, determining the adjustment step length according to the telescopic speed.
In some cases, for example, when the scalable display screen extends to a certain degree, if the user touches the scalable display screen carelessly, also can make the scalable display screen shrink a certain distance, user's intention is not to play control to the multimedia file this moment, therefore, in order to avoid the condition of wrong response, when the scalable display screen is flexible, electronic equipment can acquire the flexible distance of scalable display screen earlier, and judge whether flexible distance is greater than the preset distance, if flexible distance is greater than the preset distance, then electronic equipment can acquire the flexible speed of scalable display screen, and according to flexible speed, confirm to adjust the step length. If the telescopic distance is less than or equal to the preset distance, the electronic equipment does not need to process the telescopic distance. The preset distance may be set according to actual conditions, and is not particularly limited herein. For example, the preset distance may be 3mm, 5mm, or 7mm, and so on.
In some embodiments, determining the adjustment step size based on the telescoping speed may include:
(1) Acquiring a preset mapping relation between the stretching speed and the adjustment step length;
(2) And determining the adjustment step length according to the stretching speed and the preset mapping relation.
For example, the electronic device may preset a preset mapping relationship between the scaling speed and the adjustment step length. The preset mapping relationship may include a one-to-one correspondence relationship between the expansion speed interval and the adjustment step length. The preset mapping relationship may also include a one-to-one correspondence relationship between the stretching speed and the adjustment step length.
After the stretching speed of the stretchable display screen is obtained, the electronic device may obtain the preset mapping relationship. Then, the electronic device may determine an adjustment step length according to the stretching speed and the preset mapping relationship. For example, assuming that the stretching speed is V1, and the stretching speed V1 corresponds to the adjustment step length R1, the electronic device may determine that the adjustment step length is R1 according to the stretching speed V1 and the preset mapping relationship.
In some embodiments, the scaling parameter includes a scaling distance, and playing control of the multimedia file according to the scaling parameter may include:
(1) Determining the target playing progress of the multimedia file according to the telescopic distance;
(2) And adjusting the playing progress of the multimedia file to the target playing progress.
And when the multimedia file needs to be controlled to fast forward, the target playing progress = the adjustment progress + the current playing progress. For example, if the current playing schedule of the electronic device is played for 5 minutes, and the adjustment schedule is 2 minutes, the target playing schedule is played for 7 minutes. When the multimedia file needs to be controlled to fast backward, the target playing progress = the current playing progress-the adjusting progress. For example, if the current playing schedule of the electronic device is 5 minutes played, and the adjustment schedule is 2 minutes, the target playing schedule is 3 minutes played.
For example, when the multimedia file needs to be controlled to fast forward or fast backward, the user may control the retractable display screen to extend or retract, so that the electronic device may determine the adjustment progress according to the retraction distance. Then, the electronic device can determine a target playing progress of the multimedia file according to the adjustment progress and the current playing progress of the multimedia file. After the target playing progress is determined, the electronic equipment can adjust the playing progress of the multimedia file to the target playing progress, so that the user can control the playing progress of the multimedia file by controlling the telescopic distance of the telescopic display screen.
In some embodiments, the scaling parameters further include a scaling direction, and determining a target playing progress of the multimedia file according to the scaling distance may include:
and determining the target playing progress of the multimedia file according to the telescopic distance and the telescopic direction.
For example, the telescopic direction of the telescopic display screen is the extension direction to correspondingly control the fast forward of the multimedia file, and the telescopic direction of the telescopic display screen is the contraction direction to correspondingly control the fast backward of the multimedia file, so that when the user controls the extension of the display screen, the electronic equipment can determine that the telescopic direction is the extension direction, and then the electronic equipment can determine the adjustment progress according to the telescopic distance; then, the electronic device can calculate the sum of the adjustment progress and the current playing progress to obtain the target playing progress. The electronic equipment can adjust the playing progress of the multimedia file to the target playing progress; when the user controls the display screen to shrink, the electronic equipment can determine that the stretching direction is the shrinking direction, and then the electronic equipment can determine the adjusting progress according to the stretching distance; then, the electronic device can calculate the difference between the current playing progress and the adjusting progress to obtain the target playing progress. The electronic equipment can adjust the playing progress of the multimedia file to the target playing progress.
In some embodiments, the electronic device takes the sum of the current playback progress and the adjusted progress as the target playback progress regardless of whether the retractable display screen is extended or retracted. Or, whether the telescopic display screen extends or contracts, the electronic equipment takes the difference between the current playing progress and the adjusting progress as the target playing progress.
In other embodiments, a touch button may be disposed on a side of the electronic device, and the touch button may be embedded in the electronic device. The electronic equipment can receive the touch operation of a user through the touch key, so that whether the multimedia file is subjected to fast forward processing or fast backward processing is judged according to the touch operation. For example, assuming that the touch operation includes a sliding operation, when the sliding direction of the sliding operation is a first preset direction, it is determined that the multimedia file is fast-forwarded, and when the sliding direction of the sliding operation is a second preset direction, it is determined that the multimedia file is fast-backed. Then, when the user wants to fast forward the multimedia file, the user may slide a finger on the touch key in a first preset direction to trigger the electronic device to fast forward the multimedia file, and then the electronic device may obtain a telescopic distance of the telescopic display screen, and determine an adjustment progress according to the telescopic distance. The electronic equipment can take the sum of the adjusting progress and the current playing progress as a target playing progress, and adjust the playing progress of the multimedia file to the target playing progress. The first preset direction and the second preset direction are two different directions. The first preset direction and the second preset direction may be set according to practical situations, and are not particularly limited herein.
In some embodiments, the scaling parameters include a scaling speed and a scaling track, and the playing control of the multimedia file according to the scaling parameters may include:
and when the stretching speed is higher than the preset speed and the stretching track is matched with the preset track, stopping playing the multimedia file.
The preset speed and the preset trajectory may be set according to actual conditions, and are not limited herein.
For example, in the playing process of the multimedia file, the user may continuously control the retractable display screen to extend for a certain distance at a retracting speed greater than the preset speed, and then retract for a certain distance at a retracting speed greater than the preset speed, so that the electronic device detects that the retracting speed is greater than the preset speed, and the retracting track is matched with the preset track, and then the electronic device stops playing the multimedia file.
It can be understood that the play control method of the present application is applied to play control of a multimedia file by obtaining a scaling parameter of a scalable display screen when the scalable display screen is extended or retracted during a playing process of the multimedia file, and then, a display size of a content of the multimedia file played on the scalable display screen is adaptively adjusted along with the extension or retraction of the scalable display screen during the extension or retraction of the scalable display screen.
Referring to fig. 7, fig. 7 is a second process diagram of a play control method according to an embodiment of the present application, where the process may include:
201. and acquiring the telescopic distance of the telescopic display screen.
As described above, the electronic device to which the play control method provided by the present application is applied includes the retractable display screen, and the retractable display screen can be extended or retracted. The telescopic distance refers to a telescopic distance of the telescopic display screen in a corresponding telescopic direction when the telescopic display screen is telescopic. For example, in the case of vertical expansion, the expansion distance of the retractable display screen, i.e. the distance that the retractable display screen increases or decreases in the longitudinal direction; in the case of lateral expansion, the expansion distance of the expandable display screen, i.e., the distance the expandable display screen increases or decreases in the lateral direction. For example, when the retractable display screen extends from the position A1 to the position A2, the retractable distance of the retractable display screen is the distance between the position A1 and the position A2. For another example, when the retractable display screen is retracted from the position A3 to the position A4, the retractable distance of the retractable display screen is the distance between the position A3 and the position A4.
For example, during the process of playing the multimedia file by the electronic device, the user may control the retractable display screen to extend or retract, so that the electronic device may obtain the retractable distance of the retractable display screen.
202. And when the telescopic distance is greater than the preset distance, acquiring a preset mapping relation between the telescopic distance and the adjustment step length.
Wherein the telescopic distance is positively correlated with the adjustment step length. That is, the longer the telescopic distance, the faster the adjustment step length; the shorter the telescopic distance, the slower the adjustment step length.
For example, the electronic device may preset a preset mapping relationship between the telescopic distance and the adjustment step length. The preset mapping relationship may include a one-to-one correspondence relationship between the telescopic distance interval and the adjustment step length. The preset mapping relationship may also include a one-to-one correspondence relationship between the telescopic distance and the adjustment step length.
In this embodiment, after the telescopic distance is obtained, the electronic device may determine whether the telescopic distance is greater than a preset distance. When the telescopic distance is greater than the preset distance, the electronic device can acquire the preset mapping relation.
203. And determining the adjustment step length according to the telescopic distance and the preset mapping relation.
In this embodiment, after the preset mapping relationship is obtained, the electronic device may determine the adjustment step length according to the telescopic distance and the preset mapping relationship. For example, assuming that the telescopic distance is M1, and the telescopic distance M1 corresponds to the adjustment step length R1, the electronic device may determine that the adjustment step length is R1 according to the telescopic distance M1 and the preset mapping relationship.
204. And adjusting the playing progress of the multimedia file according to the adjusting step length.
In this embodiment, after the adjustment step length is determined, the electronic device may adjust the playing progress of the multimedia file according to the adjustment step length. For example, assuming that the adjustment step size is R1, the electronic device may adjust the playing progress of the multimedia file according to the adjustment step size R1.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a play control device according to an embodiment of the present application. The play control device is applied to an electronic device, the electronic device includes a retractable display screen, and the play control device 300 includes: an acquisition module 301 and a control module 302.
An obtaining module 301, configured to obtain a telescopic parameter of the telescopic display screen.
And the control module 302 is configured to perform play control on the multimedia file according to the scaling parameter.
In some embodiments, the scaling parameter includes a scaling distance, and the control module 302 may be configured to: determining an adjusting step length according to the telescopic distance; and adjusting the playing progress of the multimedia file according to the adjusting step length.
In some embodiments, the control module 302 may be configured to: acquiring a preset mapping relation between the telescopic distance and the adjustment step length; and determining an adjusting step length according to the telescopic distance and the preset mapping relation.
In some embodiments, the control module 302 may be configured to: and when the telescopic distance is greater than the preset distance, determining the adjustment step length according to the telescopic distance.
In some embodiments, the scaling parameters include scaling speed, and the control module 302 may be configured to: determining an adjusting step length according to the stretching speed; and adjusting the playing progress of the multimedia file according to the adjustment step length.
In some embodiments, the scaling parameter includes a scaling distance, and the control module 302 may be configured to: determining the target playing progress of the multimedia file according to the telescopic distance; and adjusting the playing progress of the multimedia file to the target playing progress.
In some embodiments, the scaling parameters further include a scaling direction, and the control module 302 may be configured to: and determining the target playing progress of the multimedia file according to the telescopic distance and the telescopic direction.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute a flow in a play control method as provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a scalable display screen, a memory and a processor, where the processor is configured to execute the flow in the play control method provided in this embodiment by calling the computer program stored in the memory.
In an alternative embodiment, referring to fig. 9, the electronic device 100 includes a housing assembly 10, a processor 20, a retractable display screen 30, a memory 40, a driver 50, a driving mechanism 70, and a camera 90.
The processor 20 in the present embodiment is a general purpose processor, such as an ARM architecture processor.
The memory 40 stores a computer program, which may be a high speed random access memory, and may also be a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 40 may also include a memory controller to provide the processor 20 access to the computer programs in the memory 40 to implement the following functions:
acquiring telescopic parameters of the telescopic display screen;
and playing and controlling the multimedia file according to the expansion parameter.
In some embodiments, the scaling parameter includes a scaling distance, and the processor 20 may perform, when performing the play control on the multimedia file according to the scaling parameter: determining an adjusting step length according to the telescopic distance; and adjusting the playing progress of the multimedia file according to the adjustment step length.
In some embodiments, the processor 20 may perform the determining to adjust the step length according to the telescopic distance by: acquiring a preset mapping relation between the telescopic distance and the adjustment step length; and determining an adjusting step length according to the telescopic distance and the preset mapping relation.
In some embodiments, the processor 20, when determining to adjust the step size according to the telescopic distance, may perform: and when the telescopic distance is greater than the preset distance, determining the adjustment step length according to the telescopic distance.
In some embodiments, the scaling parameter includes a scaling speed, and the processor 20 may perform the following steps when performing the play control on the multimedia file according to the scaling parameter: determining an adjusting step length according to the stretching speed; and adjusting the playing progress of the multimedia file according to the adjusting step length.
In some embodiments, the scaling parameter includes a scaling distance, and the processor 20 may perform, when performing the play control on the multimedia file according to the scaling parameter: determining the target playing progress of the multimedia file according to the telescopic distance; and adjusting the playing progress of the multimedia file to the target playing progress.
In some embodiments, the scaling parameters further include a scaling direction, and when the processor 20 determines the target playing progress of the multimedia file according to the scaling distance, it may perform: and determining the target playing progress of the multimedia file according to the telescopic distance and the telescopic direction.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the play control method, and are not described herein again.
The playback control device provided in the embodiment of the present application and the playback control method in the embodiments above belong to the same concept, and any method provided in the embodiments of the playback control method may be run on the playback control device, and a specific implementation process thereof is described in the embodiments of the playback control method in detail, and is not described herein again.
It should be noted that, for the play control method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the play control method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the play control method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the play control device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a method, an apparatus, a storage medium, and an electronic device for controlling playback provided in an embodiment of the present application, and specific examples are applied herein to explain principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A play control method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a telescopic display screen, and the play control method comprises the following steps:
acquiring telescopic parameters of the telescopic display screen;
and playing and controlling the multimedia file according to the expansion parameter.
2. The playback control method according to claim 1, wherein the scaling parameter includes a scaling distance, and the performing playback control on the multimedia file according to the scaling parameter includes:
determining an adjusting step length according to the telescopic distance;
and adjusting the playing progress of the multimedia file according to the adjustment step length.
3. The playback control method of claim 2, wherein the determining an adjustment step size according to the scaling distance comprises:
acquiring a preset mapping relation between the telescopic distance and the adjustment step length;
and determining an adjusting step length according to the telescopic distance and the preset mapping relation.
4. The playback control method of claim 2, wherein the determining an adjustment step size according to the scaling distance comprises:
and when the telescopic distance is greater than the preset distance, determining the adjustment step length according to the telescopic distance.
5. The playback control method according to claim 1, wherein the scaling parameter includes a scaling speed, and the performing playback control on the multimedia file according to the scaling parameter includes:
determining an adjusting step length according to the stretching speed;
and adjusting the playing progress of the multimedia file according to the adjustment step length.
6. The playback control method according to claim 1, wherein the scaling parameter includes a scaling distance, and the performing playback control on the multimedia file according to the scaling parameter includes:
determining the target playing progress of the multimedia file according to the telescopic distance;
and adjusting the playing progress of the multimedia file to the target playing progress.
7. The playback control method of claim 6, wherein the scaling parameters further include a scaling direction, and the determining the target playback progress of the multimedia file according to the scaling distance includes:
and determining the target playing progress of the multimedia file according to the telescopic distance and the telescopic direction.
8. The utility model provides a play controlling means, is applied to electronic equipment, its characterized in that, electronic equipment includes scalable display screen, play controlling means includes:
the acquisition module is used for acquiring the telescopic parameters of the telescopic display screen;
and the control module is used for controlling the playing of the multimedia file according to the telescopic parameters.
9. A storage medium having stored therein a computer program that, when run on a computer, causes the computer to execute the playback control method according to any one of claims 1 to 7.
10. An electronic device, comprising a scalable display, a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the playback control method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN202111074831.XA 2021-09-14 2021-09-14 Playing control method and device, storage medium and electronic equipment Pending CN115811560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111074831.XA CN115811560A (en) 2021-09-14 2021-09-14 Playing control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111074831.XA CN115811560A (en) 2021-09-14 2021-09-14 Playing control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115811560A true CN115811560A (en) 2023-03-17

Family

ID=85481531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111074831.XA Pending CN115811560A (en) 2021-09-14 2021-09-14 Playing control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115811560A (en)

Similar Documents

Publication Publication Date Title
EP3726820B1 (en) Automatic expansion and contraction of a flexible display screen
US10701817B2 (en) Electronic device and method for controlling display of electronic device
JP4837102B2 (en) Imaging device having an extendable lens
CN111988527A (en) Device control method, device, storage medium and electronic device
CN112269555A (en) Display control method, display control device, storage medium and electronic equipment
CN107608601B (en) Video playback method, mobile terminal and computer readable storage medium
CN111988453B (en) Lifting mechanism, camera device and mobile terminal
CN218162566U (en) Image capturing apparatus
CN110764575A (en) Display control method, display control device, and storage medium
CN114244931A (en) Electronic device
KR101531912B1 (en) Touch sensor and method for recognizing a touch
CN115811560A (en) Playing control method and device, storage medium and electronic equipment
WO2021232960A1 (en) Method and apparatus for displaying user interface, terminal and storage medium
CN111831060B (en) Mobile terminal, screen control method, device and storage medium
CN111835890B (en) Mobile terminal, screen control method, screen control device and storage medium
US20230077374A1 (en) Device control method, control apparatus, storage medium, and electronic device
JP2022510043A (en) Terminal device and audio output method
CN105049692A (en) Shooting method and device
WO2022022080A1 (en) Device control method and apparatus, storage medium, and electronic device
CN113824818A (en) Device control method, device, storage medium and electronic device
JP7139415B2 (en) Terminal device and audio output method
CN112887579A (en) Camera module control method and device and electronic equipment
CN113741778A (en) Device control method, device, storage medium and electronic device
CN113852713B (en) Device control method, device, storage medium and electronic device
CN115811559A (en) Image acquisition method, image acquisition device, storage medium and electronic equipment

Legal Events

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