CN112887479B - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112887479B
CN112887479B CN202110120059.4A CN202110120059A CN112887479B CN 112887479 B CN112887479 B CN 112887479B CN 202110120059 A CN202110120059 A CN 202110120059A CN 112887479 B CN112887479 B CN 112887479B
Authority
CN
China
Prior art keywords
playing
video file
display interface
input
video
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.)
Active
Application number
CN202110120059.4A
Other languages
Chinese (zh)
Other versions
CN112887479A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110120059.4A priority Critical patent/CN112887479B/en
Publication of CN112887479A publication Critical patent/CN112887479A/en
Application granted granted Critical
Publication of CN112887479B publication Critical patent/CN112887479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video playing method and device, electronic equipment and a storage medium, and belongs to the technical field of electronics. The method comprises the following steps: receiving a first input of a user to a first video file; responding to the first input, playing the first video file in a first playing mode on a first display interface, and playing a second video file in a second playing mode on a second display interface; the first playing mode is a fixed playing mode in which the multimedia playing focus cannot change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied. According to the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications play videos at the same time, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is guaranteed not to be interrupted.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a video playing method and device, electronic equipment and a storage medium.
Background
Split screen display technology may enable a user to use at least two applications simultaneously on the same device. However, once the user uses at least two multimedia playback applications, robbery of the multimedia playback focus, such as playback of video in a later-opened application, may occur, resulting in the video that was previously playing being paused.
Therefore, how to provide a method for ensuring the continuous execution of a video playing behavior and avoiding the robbing of the playing focus is a problem to be solved urgently.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video playing method, which can prioritize a playing behavior of a first video file, and avoid robbing a playing focus by playing requirements of other video files.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video playing method, where the method includes:
receiving a first input of a user to a first video file;
responding to the first input, playing the first video file in a first playing mode on a first display interface, and playing a second video file in a second playing mode on a second display interface;
the first playing mode is a fixed playing mode in which the multimedia playing focus does not change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied.
In a second aspect, an embodiment of the present application provides a video playing apparatus, where the apparatus includes:
the first receiving module is used for receiving first input of a user to the first video file;
the first playing module is used for responding to the first input, playing the first video file in a first playing mode on a first display interface and playing the second video file in a second playing mode on a second display interface;
the first playing mode is a fixed playing mode in which the multimedia playing focus cannot change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications play videos at the same time, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
Drawings
Fig. 1 is a schematic flowchart of a video playing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a video playing method according to an embodiment of the present application;
fig. 3 is a second schematic view illustrating a video playing method according to an embodiment of the present application;
fig. 4 is a third schematic view of a video playing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a prompt message display provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The following describes in detail a video playing method and apparatus provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a video playing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 100, receiving a first input of a user to a first video file;
step 110, responding to the first input, playing the first video file in a first playing mode on a first display interface, and playing a second video file in a second playing mode on a second display interface;
the first playing mode is a fixed playing mode in which the multimedia playing focus does not change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied.
Specifically, in the split-screen state, multiple applications can be simultaneously started, so that a situation that multiple videos simultaneously apply for a multimedia play focus may occur. If the user only wants one of the application programs to continuously play the media audio/video, but the system cannot know which application program the user needs to fixedly play, and the specific playing behavior completely depends on whether the application program applies for a multimedia focus or not. Generally, an application program that applies for a multimedia focus later plays, and interrupts an application program that is being played before or plays the application program that is being played before, which affects a user to view a video file.
At present, in a split-screen application scene, control over video playing behavior cannot be achieved, and a situation that a video played later causes a video played in front to stop often occurs, for example, some application programs can play a section of video advertisement when being started, so that a multimedia focus can be applied, and the video which is played originally is stopped, so that the video which a user wants to watch stops playing, and the video which the user does not want to watch is played.
Therefore, a first input of a user can be received, the first video file is determined to be played in the first display interface in the first playing mode, the second video file is played in the second display interface in the second playing mode, and the fact that the user wants to play the first display interface or the first video file fixedly can be determined, namely the fact that the first video file is not disturbed or interrupted by other operations in the playing process can be guaranteed, and interference on existing behaviors of the user is reduced.
Specifically, after receiving the first input, it may be determined that the first video file is fixedly played, and then the multimedia play focus may be maintained at the first video file, and the second video file played on the second display interface is controlled to be played, that is, the second video file is played in the second display interface in the second play mode, for example, the second video file is controlled not to apply for the multimedia play focus, for example, the second video file is not played or is stopped to be played, so that the multimedia play focus is prevented from being seized, and the play behavior of the first video file is prevented from being interrupted.
Optionally, when it is determined that the first video file is fixedly played, the first video file in the first display interface may be determined to be fixedly played by opening a fixed playing function of the first display interface, and the first video file of the first application program may also be determined to be fixedly played by opening a fixed playing function of the first application program in the first display interface.
Optionally, when the fixed play function of the first application program in the first display interface is started to determine the first video file of the first application program, after the first video file is locked, no matter which display interface the first application program moves to, the first video file is in fixed play, that is, the first video file is played in a first play mode, that is, the first video file is played in the first play mode without being interrupted by other application programs.
Optionally, in order to determine the first video file that is fixedly played, the system may mark the first application program playing the first video file, for example, may record a unique identifier (such as a package name) of the first application program.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications perform video playing behaviors simultaneously, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
Optionally, in a case that the first display interface is a fixed play area, the first input includes:
opening the fixed playing function of the first display interface; and (c) a second step of,
and moving the first video file or the application program icon corresponding to the first video file to the first display interface.
Specifically, a first display interface may be set as a fixed play area in advance, and accordingly, the first input may include an operation of opening a fixed play function of the first display interface and an operation of moving the first video file or an application icon corresponding to the first video file to the first display interface.
Optionally, the operation of opening the fixed play function of the first display interface may be a special gesture operation to open the fixed play function of the first display interface or the video play application, for example, the operation may be an operation of clicking a region of the first display interface four times in a preset time period, for example, clicking the region of the first display interface four times in one second.
In the embodiment of the application, when the first display interface is set as the fixed playing area in advance, a switch option capable of starting the fixed playing function of the first display interface can be provided in the setting, and after the input that the user opens the switch capable of starting the fixed playing function of the first display interface is received, the first input of the user can be further received, and the fixed playing function of the first display interface is started.
Optionally, the operation of opening the fixed play function of the first display interface may be a special gesture operation to open the fixed play function of the first display interface or the video play application, for example, the operation may be an operation of clicking a button corresponding to the fixed play function of the first display interface.
Optionally, the operation of moving the first video file or the application icon corresponding to the first video file to the first display interface may be an operation of long-pressing the first video file or the application icon corresponding to the first video file and then moving the first video file or the application icon corresponding to the first video file to the first display interface.
Optionally, the first input may comprise any one of:
sliding operation of a preset shape;
clicking operation for preset times within a preset time period;
and sliding the central axis for a preset distance.
Optionally, the first input may be a sliding operation with a special shape, for example, in the first display interface or a preset area or in any area of the display interface of the terminal, when a user slides a preset shape, for example, a circle or a triangle, etc., to input, the fixed play function of the first display interface may be turned on.
Optionally, the first input may be a quick click operation within a preset time period, for example, in any area of the first display interface, or a preset area, or a display interface of the terminal, an input that the user clicks more than a preset number of times within the preset time period is received, for example, a quick click input that continues for three times within one second is received, and then a fixed play function of the first display interface may be started.
Optionally, the first input may be an operation of sliding for a certain distance from top to bottom on the central axis position, for example, if the sliding exceeds the distance of the half screen from top to bottom on the central axis position, the fixed play function of the first display interface may be started, and it may be understood that the first input may be set or adjusted empirically by receiving an input from a user for a certain distance, which is not limited in this embodiment.
Taking a terminal as a folding screen terminal, where the terminal screen includes a first display interface a and a second display interface B, and a first video file is being played on the first display interface as an example, fig. 2 is one of schematic diagrams of video playing methods provided in this embodiment of the present application, and as shown in fig. 2, an input of a user to open a switch capable of opening a fixed playing function of the first display interface in a setting item may be received first, for example, an input of the user to set an area a of the first display interface as a video fixed playing area is received, and when there is a playing of the first video file in the area a (for example, the area a has the first video file being played originally, or an input of the user to the first video file is received to cause the first video file to be played in the area a), the first input of the user may be received, for example, an input of the user sliding a distance exceeding half a screen from top to bottom at a central axis position is received, and triggering a first input of a locking play function, playing the first video file in a first play mode, controlling the playing of the video play file in the area B of the second display interface, playing the second video file in a second play mode, and ensuring that the playing of the first video file in the area A of the first display interface cannot be interrupted.
That is, if there is a behavior that other applications simultaneously generate a playing video during the playing of the first video file in the area a, the playing process of the first video file locked and fixedly played will not be interrupted and will be played all the time unless an operation that the user actively stops or quits the first video file fixedly played is received.
It is to be understood that, when receiving a first input from a user to cause the first video file to be played in the first playing mode, the first input may further include an operation of moving the first video file into the first display interface or an operation of moving an application icon playing the first video file into the first display interface.
Optionally, in a case that the fixed play area is not set, the first input includes:
selecting the first display interface as a fixed playing area; and the number of the first and second groups,
and starting the operation of the fixed playing function of the first display interface.
In the embodiment of the application, a switch option capable of starting a fixed playing function can be provided in the setting, after the input of a user for opening a switch for fixed video playing is received, a first input of the user can be further received, the first display interface is selected to be a fixed playing area and the fixed playing function of the first display interface is started, and then the first video file is played in a first playing mode.
Optionally, the operation of starting the fixed play function of the first display interface may be a sliding operation in a special shape, for example, if a preset shape, such as a circle or a triangle, is received by a user sliding input in the first display interface or a preset region or in any region of the display interface of the terminal, the fixed play function of the first display interface may be started.
Optionally, the operation of starting the fixed play function of the first display interface may be a quick click operation within a preset time period, for example, in the first display interface, or in a preset area or in any area of the display interface of the terminal, an input that a user clicks more than a preset number of times within the preset time period is received, for example, a quick click input for three consecutive times within one second is received, and then the fixed play function of the first display interface may be started.
Optionally, the operation of starting the fixed play function of the first display interface may be an operation of sliding a distance from top to bottom in the central axis position, for example, sliding the distance from the central axis position to top beyond the half-screen distance, the fixed play function of the first display interface may be started, it may be understood that the distance may receive an input of a user to perform setting or experience calibration, which is not limited in this embodiment.
Specifically, it may not be required to specifically set a certain display interface as a fixed display interface, that is, a default fixed-play first display interface or a fixed-play video playing application program is not preset in advance, that is, when a first input of a user is received, the first display interface or the video playing application program that the user wants to fixedly play may be determined based on an operation of the first input.
Specifically, under the condition that the fixed playing area is not set, a selection input interface allowing a user to select the fixed playing area can be displayed, a first input of the user on the selection input interface is received, the user wants to play the first display interface in a fixed mode is determined, namely, the first video file can be played in a first playing mode, and it is guaranteed that the playing process of the first video ask is not disturbed or interrupted by other operations.
Optionally, the first input may comprise any one of:
and clicking and inputting the first display interface.
It is to be understood that the first input may be a user's selection input for the first display interface, for example, a bubble locked to play may be displayed on each interface, and if the user's selection target is the first display interface, the user's selection input for the bubble on the first display interface may be received.
The terminal is taken as a folding screen terminal, the terminal screen comprises a first display interface A and a second display interface B, the first display interface A plays a first video file for example, fig. 3 is a second schematic diagram of a video playing method provided by the embodiment of the application, and as shown in fig. 3, a certain screen can be set as a fixed screen without depending on a user, and a fixed playing interface or an APP selection interface such as a fixed playing locking bubble is provided when the fixed playing is triggered, so that the user can select the fixed playing interface or the APP.
Specifically, whether a video playing behavior exists at present or not can be monitored, and when the video playing behavior exists for the first time and different playing applications exist in the area a and the area B, locked playing bubbles which can be clicked by a user can be displayed in the areas of the area a and the area B, which are close to the middle axis boundary.
And then, a first input of the user can be received, and it is determined that the display interface or the APP corresponding to the bubble selected by the user to lock the fixed play is the fixed play, for example, if the bubble of the area a is selected, the area a is the first display interface, and the video file played in the area a is the first video file, and is in a preferential play state, that is, the multimedia play focus is kept in the first video file without transfer.
Specifically, if the specific operation of the user on the bubble is not received within a preset time period (for example, within 5 seconds) after the locked play bubble which can be clicked by the user is displayed, the presentation form of the video play application program can be followed by default, for example, the multimedia play focus is given to the last video file applying for the multimedia play focus by default.
Specifically, if it is monitored that the different playing application states exist in the area a and the area B and are changed into a state in which only one area plays, the video file being played can automatically obtain the priority playing permission, that is, the video file is played in the first playing mode; until the system again hears that there are different states of the playing application in the a area and the B area.
In the embodiment, the user's will can be followed, so that the user can more freely select the display interface of the fixed playing, the user's operation is more convenient, the user can quickly switch the fixed playing mode and the playing application, and the user is given a more quick and convenient video playing operation mode.
Optionally, the playing the second video file in the second display interface in the second playing manner includes:
the second video file is not played on a second display interface; or
And playing the second video file in a mute manner on the second display interface.
Optionally, when the first display interface is a fixed play area, playing the second video file in the second play mode on the second display interface may include:
the second video file is not played, namely the playing behavior of the second video file is not executed directly, and the playing of the second video file is not started; or
The second video file is played on the second display interface in a mute mode;
in a case that the fixed playing area is not set, playing the second video file in the second playing mode on the second display interface may include:
the second video file is not played, namely the playing behavior of the second video file is not executed directly, and the playing of the second video file is not started; or
Stopping playing the second video file, for example, automatically stopping or pausing the playing behavior of the second video file in the case that the second video file is already being played; or
And playing the second video file in a mute manner on the second display interface.
Specifically, under the condition that the first display interface is a fixed playing area, in order to enable the playing of the second video file played on the second display interface to be uninterrupted with the playing of the first video file played in the first playing manner, the playing of the second video file played on the second display interface may be controlled, so that the multimedia playing focus is not seized.
Specifically, when the second display interface plays the second video file in the second playing mode, the second display interface may not respond to the playing request of the second video file, that is, the second video file is not played.
Specifically, under the condition that fixed broadcast region is not set up, can monitor whether there is the video playback action at present, specifically can monitor whether there is a plurality of video files of broadcast simultaneously at present, in order to realize that the broadcast of the second video file of second display interface broadcast does not interrupt the first video file broadcast with first broadcast mode, can monitor the second display interface and have the broadcast of the second video file when control the broadcast of second video file, broadcast the second video file with the second broadcast mode, make it not carry out the snatching of multimedia broadcast focus.
Specifically, when the second video file is played in the second playing mode, the playing of the second video file may be directly stopped.
Under the condition that the first display interface is a fixed playing area or the fixed playing area is not set, in order to ensure that the multimedia focus is not robbed, the unlocked second video file can be played in a mute manner, and the second video file can be played simultaneously under the condition that the playing of the first video file is not influenced.
It is understood that the second video file mentioned in the present application is not specific to a certain video file, and may be one or more video files that are not played in the first playing manner.
The embodiment can realize the control of multiple playing states of the second video file, play the second video file in the second playing mode, and give the user the choice of the playing states as many as possible under the condition of ensuring that the playing of the first video file is not interrupted, thereby fully meeting various requirements of the user.
The embodiment can achieve the effect of ensuring that the playing of the first video file is not interrupted, and also provides a fixed playing mode which changes timely, so that a user can conveniently modify options of a fixed playing screen, operation steps are simplified, and the method is suitable for more scenes.
Optionally, before the second display interface mutes playing of the video file, the method further includes:
receiving a second input which allows the first video file and the second video file to be played synchronously by the user;
and responding to the second input, and starting a function of playing the second video file in a mute manner on the second display interface.
Specifically, a switch may be further provided for a user to select whether to allow the first video file and the second video file to be played synchronously, and if a second input that the user allows the first video file and the second video file to be played synchronously is received, the first video file and the second video file may be played simultaneously, but the sound of the second video file that is not in the fixed play is not played.
Therefore, a second input that the user allows the first video file and the second video file to be played synchronously can be received, and after the simultaneous playing is determined to be allowed, the second video file is played in a mute mode on the second display interface under the condition that the first video file which is fixedly played is playing and the playing requirement of the second video file is received.
In this embodiment, the multi-video synchronous playing can be realized, but only the audio of the first video file played in the first playing mode is played, so that the requirement of the user on multi-video synchronous playing can be met, the playing behavior of the first video file played in the first playing mode is not influenced, and the robbery of a playing focus is avoided.
Optionally, the method further comprises:
receiving a third input of closing the fixed playing function of the first display interface by the user;
and responding to the third input, and closing the fixed playing function of the first display interface.
Specifically, the user may have a need to close the fixed play function of the first video file, and therefore, a third input of the user may be received, and the fixed play function of the first display interface is closed, that is, the fixed play function of the first video file is closed, and the playing of the second video file is allowed to interrupt the first video file.
For example, after the fixed play function of the first display interface is closed, when the first video file is being played, and a play request of the second video file is received, the second video file can be normally played, and the play behavior of the first video file can be interrupted or played simultaneously with the second video file.
The third input may be a slide operation by the user or a click operation on the selection interface whether to cancel the lock.
For example, an operation that the user slides the central axis from bottom to top may be received, and the fixed play function of the first display interface is closed.
Optionally, the method further comprises:
and changing the playing mode of the second video file into a first playing mode.
Optionally, after the fixed play function of the first display interface is closed, a fixed play second video file may be opened, that is, the play mode of the second video file is changed into the first play mode.
For example, receiving an operation of sliding the central axis from bottom to top by a user, and after the locking of the first video file is released, the second video file of the second display interface can be played, and the playing of the first video file of the first display interface is paused; furthermore, the playing of the first video file can be automatically recovered after the playing of the second video file is finished; further, if the input that the user closes the fixed play state function is not received, it may be determined whether to turn on the switch that allows simultaneous play, if so, the second video file may be played simultaneously with the first video file, but only play the current sound of the first video file, and if not, the video play behavior of the second video file is not performed.
Fig. 4 is a third schematic view of a video playing method provided in the embodiment of the present application, and as shown in fig. 4, when a first video file is played on a first display interface in a first playing manner, if there is a playing requirement for a second video file on a second display interface, a bubble for locking fixed playing may be popped up on the second display interface, and after a click operation of a user on the bubble for locking fixed playing on the second display interface is received, a fixed playing function of the first video file may be closed, that is, a fixed playing function of the first display interface is closed, and the second video file is played in the first playing manner.
Specifically, under the condition that the first display interface is preset, after the fixed play function of the first display interface is closed, the play of the second video file can be allowed to interrupt the play of the first video file, so that when a second video file play requirement exists, the second video file (including a play video and a synchronous audio) can be played on the second display interface.
Optionally, the method further comprises:
before the receiving a third input that the user closes the fixed play function of the first display interface, the method further includes:
displaying prompt information under the condition that fourth input of the user on the second display interface is received;
the prompt information is used for prompting that the fixed playing function of the first display interface is started;
the fourth input is an operation of triggering a second video file to be played on the second display interface.
Specifically, a fourth input of the user to the second display interface may be received, the second video file is triggered to be played on the second display interface, and then it may be determined that the user has a need to play the second video file on the second display interface, and then a prompt message may be displayed, so as to prompt the user that the first video file is fixedly played.
Fig. 5 is a schematic diagram illustrating a prompt message display provided in an embodiment of the present application, and as shown in fig. 5, the prompt message may be a popup text prompt message; and the central axis can also flash to prompt the user that the first video file is played fixedly.
Further, after the prompt information is displayed to prompt the user that the first video file is fixedly played, the user can be further prompted whether the user needs to unlock, so that the input of the user can be further received, for example, the input of the user for closing the fixed playing function of the first video file or the input of closing the fixed playing function of the first video file and opening the fixed playing function of the second display interface is received.
Further, after the prompt message is displayed to prompt the user that the first video file is started to be the fixed play function, and further prompt the user whether the fixed play function of the first display interface needs to be closed, if no further input is received by the user within a preset time period, such as 5 seconds, the current fixed play setting can be followed by default or the expression form of the existing three-party application can be followed.
The video playing behavior is controlled by using the characteristics of the split screen scene, so that the main playing behavior can be excellently ensured when the video is played, and when other playing behaviors conflict with the main playing behavior, a user is reminded whether to pause the previously played video file or not, and the execution of the new video playing behavior is ensured.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications perform video playing behaviors simultaneously, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
It should be noted that, in the video playing method provided in the embodiment of the present application, the execution main body may be a video playing device, or a control module in the video playing device, which is used for executing the loaded video playing method. In the embodiment of the present application, a video playing device is taken as an example to execute a method for loading a video for playing.
Fig. 6 is a schematic structural diagram of a video playing apparatus provided in an embodiment of the present application, and as shown in fig. 6, the apparatus includes: a first receiving module 610 and a first playing module 620; wherein:
the first receiving module 610 is configured to receive a first input of a first video file from a user;
the first playing module 620 is configured to, in response to the first input, play the first video file in a first playing manner on a first display interface, and play the second video file in a second playing manner on a second display interface.
Specifically, the video playing apparatus receives a first input from a user through the first receiving module 610, and then responds to the first input through the first playing module 620, and plays the first video file in a first playing manner on the first display interface, and plays the second video file in a second playing manner on the second display interface.
It should be noted that, the apparatus provided in the embodiment of the present invention can implement all the method steps implemented by the embodiment of the information transmission method, and can achieve the same technical effect, and detailed descriptions of the same parts and beneficial effects as those of the embodiment of the method are omitted here.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications play videos at the same time, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
Optionally, in a case that the first display interface is a fixed play area, the first input includes:
opening the fixed playing function of the first display interface; and (c) a second step of,
and moving the first video file or the application program icon corresponding to the first video file to the first display interface.
Optionally, in a case where the fixed play area is not set, the first input includes:
selecting the first display interface as a fixed playing area; and the number of the first and second groups,
and starting the operation of the fixed playing function of the first display interface.
Optionally, the first playing module is further configured to:
not playing the second video file on a second display interface; or
And playing the second video file in a mute manner on the second display interface.
Optionally, before the second display interface mutes playing of the video file, the apparatus further includes:
the second receiving module is used for receiving a second input which allows the user to synchronously play the first video file and the second video file;
and the first starting module is used for responding to the second input and starting the function of playing the second video file in a mute manner on the second display interface.
Optionally, the apparatus further comprises:
the third receiving module is used for receiving a third input of closing the fixed playing function of the first display interface by a user;
and the first closing module is used for responding to the third input and closing the fixed playing function of the first display interface.
Optionally, the apparatus further comprises:
and the second playing module is used for changing the playing mode of the second video file into the first playing mode after the fixed playing function of the first display interface is closed.
Optionally, the apparatus further comprises:
the second display module is used for displaying prompt information under the condition of receiving fourth input of the user on the second display interface before receiving third input of closing the fixed playing function of the first display interface by the user;
the prompt information is used for prompting that the fixed playing function of the first display interface is started;
the fourth input is an operation of triggering a second video file to be played on the second display interface. The video playing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The video playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video playing device provided in the embodiment of the present application can implement each process implemented by the video playing device in the method embodiments of fig. 1 to fig. 5, and for avoiding repetition, details are not repeated here.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications perform video playing behaviors simultaneously, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
Optionally, fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device includes a processor 702, a memory 701, and a program or an instruction stored in the memory 701 and capable of running on the processor 702, where the program or the instruction is executed by the processor 702 to implement each process of the video playing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power supply (e.g., a battery) for supplying power to the various components, and the power supply may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
In the embodiment of the present application, the radio frequency unit 801 obtains information and then processes the information to the processor 810. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Memory 809 may be used to store software programs or instructions and various data. The memory 809 may mainly include a storage program or instruction area and a storage data area, wherein the storage program or instruction area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. In addition, the Memory 809 can include a high-speed random access Memory, and can also include a nonvolatile Memory, wherein the nonvolatile Memory can be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), or a flash Memory. Such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Processor 810 may include one or more processing units; alternatively, the processor 810 may integrate an application processor, which primarily handles operating systems, user interfaces, and applications or instructions, etc., and a modem processor, which primarily handles wireless communications, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Wherein, the user input unit 807 is used for receiving a first input of the first video file by the user;
the processor 810 is configured to respond to the first input, play the first video file in a first playing manner on a first display interface, and play the second video file in a second playing manner on a second display interface;
the first playing mode is a fixed playing mode in which the multimedia playing focus cannot change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied.
Optionally, in a case that the first display interface is a fixed play area, the first input includes:
opening the fixed playing function of the first display interface; and (c) a second step of,
and moving the first video file or the application program icon corresponding to the first video file to the first display interface.
Optionally, in a case where the fixed play area is not set, the first input includes:
selecting the first display interface as a fixed playing area; and (c) a second step of,
and starting the operation of the fixed playing function of the first display interface.
Optionally, the processor 810 is configured to:
the second video file is not played on a second display interface; or
And playing the second video file in a mute manner on the second display interface.
Optionally, the user input unit 807 is for: receiving a second input which allows the user to synchronously play the first video file and the second video file;
the processor 810 is configured to: and responding to the second input, and starting a function of playing the second video file in a mute manner on the second display interface.
Optionally, the user input unit 807 is for: receiving a third input of the user to close the fixed play function of the first display interface, where the processor 810 is configured to:
and responding to the third input, and closing the fixed playing function of the first display interface.
Optionally, after the fixed play function of the first display interface is turned off, the processor 810 is configured to:
and changing the playing mode of the second video file into a first playing mode.
Optionally, before receiving a third input that the user closes the fixed play function of the first display interface, the processor 810 is configured to:
displaying prompt information under the condition that fourth input of the user on the second display interface is received;
the prompt information is used for prompting that the fixed playing function of the first display interface is started;
the fourth input is an operation of triggering a second video file to be played on the second display interface.
In the embodiment of the application, the first video file is played in the first playing mode, so that when a plurality of applications play videos at the same time, the playing behavior of the first video file is prioritized, the playing requirements of other video files are prevented from robbing a playing focus, and the playing of the first video file is ensured not to be interrupted.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video playing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (8)

1. A video playback method, comprising:
receiving a first input of a user to a first video file;
responding to the first input, playing the first video file in a first playing mode on a first display interface, and playing a second video file in a second playing mode on a second display interface;
the first playing mode is a fixed playing mode in which a multimedia playing focus cannot change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied;
wherein, in a case that the first display interface is a fixed play area, the first input includes:
opening the fixed playing function of the first display interface; and (c) a second step of,
moving the first video file or an application icon corresponding to the first video file to the first display interface so as to enable the first video file to be fixedly played on the first display interface;
wherein, the playing the second video file in the second display interface in the second playing mode includes:
pausing the second video file on a second display interface.
2. The video playback method according to claim 1, wherein in a case where a fixed playback area is not set, the first input includes:
selecting the first display interface as a fixed playing area; and (c) a second step of,
and starting the operation of the fixed playing function of the first display interface.
3. The video playing method according to claim 1, wherein before the second display interface mutes the video file, the method further comprises:
receiving a second input which allows the user to synchronously play the first video file and the second video file;
and responding to the second input, and starting a function of playing the second video file in a mute manner on the second display interface.
4. The video playback method according to any one of claims 1 to 3, wherein the method further comprises:
receiving a third input of closing the fixed playing function of the first display interface by the user;
and responding to the third input, and closing the fixed playing function of the first display interface.
5. The video playback method of claim 4, wherein before receiving a third input from the user to turn off the fixed playback function of the first display interface, the method further comprises:
displaying prompt information under the condition that fourth input of the user on the second display interface is received;
the prompt information is used for prompting that the fixed playing function of the first display interface is started;
and the fourth input is an operation of triggering a second video file to play on the second display interface.
6. The video playback method of claim 1, wherein the method further comprises:
and changing the playing mode of the second video file into a first playing mode.
7. A video playback apparatus, comprising:
the first receiving module is used for receiving first input of a user to the first video file;
the first playing module is used for responding to the first input, playing the first video file in a first playing mode on a first display interface and playing the second video file in a second playing mode on a second display interface;
the first playing mode is a fixed playing mode in which a multimedia playing focus cannot change, and the second playing mode is a playing mode in which the multimedia playing focus is not applied;
wherein, in the case that the first display interface is a fixed playing area, the first input includes:
opening the fixed playing function of the first display interface; and the number of the first and second groups,
moving the first video file or an application icon corresponding to the first video file to the first display interface so as to enable the first video file to be fixedly played on the first display interface;
wherein the first playing module is further configured to:
pausing the second video file on a second display interface.
8. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the video playback method as claimed in any one of claims 1 to 6.
CN202110120059.4A 2021-01-28 2021-01-28 Video playing method and device, electronic equipment and storage medium Active CN112887479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110120059.4A CN112887479B (en) 2021-01-28 2021-01-28 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110120059.4A CN112887479B (en) 2021-01-28 2021-01-28 Video playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112887479A CN112887479A (en) 2021-06-01
CN112887479B true CN112887479B (en) 2022-07-22

Family

ID=76053171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110120059.4A Active CN112887479B (en) 2021-01-28 2021-01-28 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112887479B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2472519A1 (en) * 2011-01-04 2012-07-04 Samsung Electronics Co., Ltd. Multi-video rendering for enhancing user interface usability and user experience
CN106060627A (en) * 2016-06-15 2016-10-26 乐视控股(北京)有限公司 Audio processing method and device based on multi-way live broadcast
CN106155828A (en) * 2016-07-13 2016-11-23 微鲸科技有限公司 For play-back application resource control method and equipment
CN109388471A (en) * 2018-10-18 2019-02-26 维沃移动通信有限公司 A kind of air navigation aid and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2472519A1 (en) * 2011-01-04 2012-07-04 Samsung Electronics Co., Ltd. Multi-video rendering for enhancing user interface usability and user experience
CN106060627A (en) * 2016-06-15 2016-10-26 乐视控股(北京)有限公司 Audio processing method and device based on multi-way live broadcast
CN106155828A (en) * 2016-07-13 2016-11-23 微鲸科技有限公司 For play-back application resource control method and equipment
CN109388471A (en) * 2018-10-18 2019-02-26 维沃移动通信有限公司 A kind of air navigation aid and device

Also Published As

Publication number Publication date
CN112887479A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US20180121082A1 (en) Method and apparatus for split screen display
CN111913628B (en) Sharing method and device and electronic equipment
CN107562322B (en) Page switching method and device
JP6211721B2 (en) Button interaction method, apparatus, program, and recording medium
CN107124508B (en) Position adjusting method and device of suspension control, terminal and readable storage medium
CN110719515B (en) Video playing method, device and storage medium
CN105893136B (en) Multitask management method and device
US20190235745A1 (en) Method and device for displaying descriptive information
CN112383817B (en) Volume adjusting method and device
CN106528735B (en) Method and device for controlling browser to play media resources
US20220385981A1 (en) Video stream playback control method, device, and storage medium
EP3239827B1 (en) Method and apparatus for adjusting playing progress of media file
US20170052693A1 (en) Method and device for displaying a target object
US20210165670A1 (en) Method, apparatus for adding shortcut plug-in, and intelligent device
CN110851057A (en) Method and device for configuring configuration options of BIOS
CN112148163A (en) Screen recording method and device and electronic equipment
CN111694490B (en) Setting method and device and electronic equipment
CN106775624B (en) Method and device for determining application display sequence
CN110321042B (en) Interface information display method and device and electronic equipment
WO2024114571A1 (en) Information display method and apparatus, electronic device, and storage medium
CN112099682B (en) Icon display method and device and electronic equipment
CN112887479B (en) Video playing method and device, electronic equipment and storage medium
CN115202524B (en) Display method and device
CN115756238A (en) Component display method and device, electronic equipment and medium
CN112637409B (en) Content output method and device 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
GR01 Patent grant
GR01 Patent grant