[go: up one dir, main page]

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

Video playback method, device, electronic device 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
playback
video file
display interface
video
input
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)
  • Television Signal Processing For Recording (AREA)
  • User Interface Of Digital Computer (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 playback method, device, electronic device and storage medium

技术领域technical field

本申请属于电子技术领域,具体涉及一种视频播放方法、装置、电子设备和存储介质。The present application belongs to the field of electronic technology, and specifically relates to a video playback method, device, electronic device and storage medium.

背景技术Background technique

分屏显示技术可以使用户在同一设备上同时使用至少两个应用程序。但是一旦用户使用至少两个多媒体播放应用程序时,就会发生多媒体播放焦点的抢夺,比如后开启的应用程序中的视频的播放,会导致之前已经在播放中的视频被暂停。Split-screen technology enables users to use at least two applications simultaneously on the same device. However, once the user uses at least two multimedia playback applications, the grabbing of the multimedia playback focus will occur, for example, the playback of a video in a later-opened application will cause the previously played video to be paused.

因此,如何提出一种保证一个视频播放行为的持续执行,避免播放焦点抢夺的方法,成为亟需解决的问题。Therefore, how to propose a method to ensure the continuous execution of a video playback behavior and avoid the grabbing of the playback focus has become an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种视频播放方法,能够优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺。The purpose of the embodiments of the present application is to provide a video playback method, which can give priority to the playback behavior of the first video file, and avoid the scramble of the playback focus by the playback requirements of other video files.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种视频播放方法,该方法包括:In a first aspect, an embodiment of the present application provides a video playback method, the method comprising:

接收用户对第一视频文件的第一输入;receiving a first input from a user to the first video file;

响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;In response to the first input, the first video file is played in the first play mode on the first display interface, and the second video file is played in the second play mode on the second display interface;

其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式。Wherein, the first play mode is a fixed play mode in which the focus of multimedia play does not change, and the second play mode is a play mode without applying for the focus of multimedia play.

第二方面,本申请实施例提供了一种视频播放装置,该装置包括:In a second aspect, an embodiment of the present application provides a video playback device, the device comprising:

第一接收模块,用于接收用户对第一视频文件的第一输入;The first receiving module is used for receiving the first input of the user to the first video file;

第一播放模块,用于响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;a first playing module, configured to, in response to the first input, play the first video file in the first play mode on the first display interface, and play the second video file in the second play mode on the second display interface;

其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式。Wherein, the first play mode is a fixed play mode in which the focus of multimedia play does not change, and the second play mode is a play mode without applying for the focus of multimedia play.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, 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, and implement the first aspect the method described.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

附图说明Description of drawings

图1是本申请实施例提供的视频播放方法的流程示意图;1 is a schematic flowchart of a video playback method provided by an embodiment of the present application;

图2是本申请实施例提供的视频播放方法示意图之一;Fig. 2 is one of the schematic diagrams of the video playback method provided by the embodiment of the present application;

图3是本申请实施例提供的视频播放方法示意图之二;3 is a second schematic diagram of a video playback method provided by an embodiment of the present application;

图4是本申请实施例提供的视频播放方法示意图之三;4 is a third schematic diagram of a video playback method provided by an embodiment of the present application;

图5是本申请实施例提供的提示信息显示示意图;5 is a schematic diagram of prompt information display provided by an embodiment of the present application;

图6是本申请实施例提供的视频播放装置的结构示意图;6 is a schematic structural diagram of a video playback device provided by an embodiment of the present application;

图7是本申请实施例提供的电子设备的硬件结构示意图之一;7 is one of the schematic diagrams of the hardware structure of the electronic device provided by the embodiment of the present application;

图8是本申请实施例提供的电子设备的硬件结构示意图之二。FIG. 8 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频播放方法及装置进行详细地说明。The video playback method and device provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

图1是本申请实施例提供的视频播放方法的流程示意图,如图1所示,所述方法包括如下步骤:FIG. 1 is a schematic flowchart of a video playback method provided by an embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:

步骤100,接收用户对第一视频文件的第一输入;Step 100, receiving the first input of the user to the first video file;

步骤110,响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;Step 110, in response to the first input, play the first video file in the first play mode on the first display interface, and play the second video file in the second play mode on the second display interface;

其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式。Wherein, the first play mode is a fixed play mode in which the focus of multimedia play does not change, and the second play mode is a play mode without applying for the focus of multimedia play.

具体地,在分屏状态下,可以同时开启多个应用程序,因此可能会出现多个视频同时申请多媒体播放焦点的情况出现。若用户只希望其中某一个应用程序持续进行媒体音视频播放行为,但是系统无法了解用户需要固定播放的到底是哪一个应用程序,具体播放行为完全取决于应用程序是否有申请多媒体焦点。一般来说,在后申请多媒体焦点的应用程序会进行播放,并中断此前正在播放的应用程序或与此前正在播放的应用程序同时进行播放,影响用户观看视频文件。Specifically, in the split-screen state, multiple applications can be opened at the same time, so it may happen that multiple videos apply for the focus of multimedia playback at the same time. If the user only wants one of the applications to continuously play media audio and video, but the system cannot know which application the user needs to play, the specific playback behavior depends entirely on whether the application has applied for multimedia focus. Generally speaking, the application that applies for the multimedia focus later will play, and interrupt the application that was playing before or play at the same time as the application that was playing before, which affects the user's viewing of the video file.

目前分屏应用场景下,无法实现对视频播放行为的控制,经常发生后播放的视频导致前面播放的视频停止的情况,比如,某些应用程序开启时会播放一段视频广告,因此会申请多媒体焦点,从而导致原本正在播放中的视频停止,使得用户希望观看的视频停止播放,而用户不希望观看的视频进行了播放。In the current split-screen application scenario, it is impossible to control the video playback behavior. It often happens that the video played later causes the video played earlier to stop. For example, when some applications are opened, a video advertisement will be played, so multimedia focus will be applied. , so that the video that was originally being played is stopped, so that the video that the user wants to watch is stopped, and the video that the user does not want to watch is played.

因此,可以接收用户的第一输入,确定在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件即可以确定用户希望对第一显示界面或者第一视频文件进行固定播放,即可以保证第一视频文件进行播放的过程中不被其他操作打扰或中断,降低对用户已有行为的干扰。Therefore, it is possible to receive the user's first input, determine to play the first video file in the first play mode on the first display interface, and play the second video file in the second play mode on the second display interface, so as to determine that the user wants The fixed playback of the first display interface or the first video file can ensure that the playback of the first video file is not disturbed or interrupted by other operations, thereby reducing interference to the existing behavior of the user.

具体地,接收到第一输入后,可以确定固定播放第一视频文件,则可以将多媒体播放焦点保持在第一视频文件,并对在所述第二显示界面播放的第二视频文件进行播放控制,即在第二显示界面以第二播放方式播放第二视频文件,比如控制第二视频文件不申请多媒体播放焦点,比如不播放或者停止播放,从而避免了多媒体播放焦点的抢夺,避免第一视频文件的播放行为被中断。Specifically, after receiving the first input, it can be determined that the first video file is to be played, the multimedia playback focus can be kept on the first video file, and the playback control of the second video file played on the second display interface is performed. , that is, play the second video file in the second playback mode on the second display interface, such as controlling the second video file not to apply for the multimedia playback focus, such as not playing or stopping playback, thereby avoiding the grabbing of the multimedia playback focus and avoiding the first video The playback behavior of the file was interrupted.

可选地,在确定固定播放第一视频文件时,可以通过开启第一显示界面的固定播放功能来确定固定播放第一显示界面中的第一视频文件,还可以通过开启第一显示界面中的第一应用程序的固定播放功能来确定固定播放该第一应用程序的第一视频文件。Optionally, when the fixed playback of the first video file is determined, the fixed playback function of the first display interface can be enabled to determine the fixed playback of the first video file in the first display interface. The fixed playback function of the first application program determines the fixed playback of the first video file of the first application program.

可选地,在开启第一显示界面中的第一应用程序的固定播放功能,来确定第一应用程序的第一视频文件时,在锁定后,不论该第一应用程序移动到哪一个显示界面,均处于固定播放,即均为第一播放方式进行播放,即其中的第一视频文件均采用第一播放方式进行播放,不被其他应用程序所中断。Optionally, when the fixed playback function of the first application in the first display interface is enabled to determine the first video file of the first application, after locking, no matter which display interface the first application moves to , are in fixed playback mode, that is, they are played in the first playback mode, that is, the first video files are played in the first playback mode without being interrupted by other application programs.

可选地,系统为了确定被固定播放的第一视频文件,可以标记播放第一视频文件的第一应用程序,比如可以记录该第一应用程序的唯一标识(比如包名)。Optionally, in order to determine the first video file to be played fixedly, the system may mark the first application program that plays the first video file, for example, may record the unique identifier (such as the package name) of the first application program.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

可选地,在所述第一显示界面为固定播放区域的情况下,所述第一输入包括:Optionally, when the first display interface is a fixed play area, the first input includes:

开启所述第一显示界面的固定播放功能的操作;以及,An operation of enabling the fixed playback 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.

具体地,可以提前设置第一显示界面为固定播放区域,相应地,第一输入可以包括开启所述第一显示界面的固定播放功能的操作,以及,将所述第一视频文件或所述第一视频文件对应的应用程序图标移动至所述第一显示界面的操作。Specifically, the first display interface may be set as a fixed playback area in advance, and accordingly, the first input may include an operation of enabling the fixed playback function of the first display interface, and setting the first video file or the first video file An operation of moving an application icon corresponding to a video file to the first display interface.

可选地,开启所述第一显示界面的固定播放功能的操作可以是一个特殊手势操作,以开启第一显示界面或视频播放应用程序的固定播放功能,比如可以是在预设时间段内连续四次点击第一显示界面的区域的操作,例如一秒内连续四次点击第一显示界面的区域。Optionally, the operation of enabling the fixed playback function of the first display interface may be a special gesture operation to enable the fixed playback function of the first display interface or the video playback application, for example, it may be continuous within a preset time period. The operation of clicking the area of the first display interface four times, for example, clicking the area of the first display interface four times continuously within one second.

本申请实施例中,提前设置第一显示界面为固定播放区域时,可以在设置中提供可以开启第一显示界面的固定播放功能的开关选项,在接收到用户打开可以开启第一显示界面的固定播放功能的开关的输入后,可以进一步接收用户的第一输入,开启第一显示界面的固定播放功能。In the embodiment of the present application, when the first display interface is set as a fixed play area in advance, a switch option that can turn on the fixed play function of the first display interface can be provided in the settings, and when it is received that the user turns on the fixed play function that can turn on the first display interface After the input of the switch of the play function, the first input from the user can be further received, and the fixed play function of the first display interface can be turned on.

可选地,开启所述第一显示界面的固定播放功能的操作可以是一个特殊手势操作,以开启第一显示界面或视频播放应用程序的固定播放功能,比如可以是点击开启第一显示界面的固定播放功能对应的按钮的操作。Optionally, the operation of enabling the fixed playback function of the first display interface may be a special gesture operation to enable the fixed playback function of the first display interface or the video playback application, such as clicking to open the first display interface. Fixed the operation of the button corresponding to the playback function.

可选地,将所述第一视频文件或所述第一视频文件对应的应用程序图标移动至所述第一显示界面的操作可以是长按第一视频文件或所述第一视频文件对应的应用程序图标后移动至第一显示界面的操作。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 to long press the first video file or the corresponding application icon of the first video file. The operation of moving to the first display interface after the application icon.

可选地,第一输入可以包括以下任一项:Optionally, the first input may include any of the following:

预设形状的滑动操作;Sliding operation of preset shapes;

预设时间段内预设次数的点击操作;Click operations for a preset number of times within a preset time period;

在中轴线位置滑动预设距离的操作。The operation of sliding a preset distance at the position of the central axis.

可选地,第一输入可以是特殊形状的滑动操作,比如在第一显示界面或者预设区域或者终端的显示界面的任意区域,接收到用户滑动输入预设形状,比如一个圆或者一个三角形等,则可以开启所述第一显示界面的固定播放功能。Optionally, the first input may be a sliding operation of a special shape, for example, on the first display interface or a preset area or any area of the display interface of the terminal, a user sliding input preset shape, such as a circle or a triangle, is received. , the fixed playback function of the first display interface can be enabled.

可选地,第一输入可以是预设时间段内的快速点击操作,比如在第一显示界面或者预设区域或者终端的显示界面的任意区域,接收到用户在预设时间段内点击操作超过预设次数的输入,比如接收到一秒内连续三次的快速点击输入等,则可以开启所述第一显示界面的固定播放功能。Optionally, the first input may be a quick click operation within a preset time period. The preset number of times of input, such as receiving three consecutive quick click inputs within one second, etc., can enable the fixed playback function of the first display interface.

可选地,第一输入可以是从上至下在中轴线位置滑动一段距离的操作,比如从中轴线位置从上至下滑动超过半屏的距离,则可以开启所述第一显示界面的固定播放功能,可以理解的是,一段距离可以接收用户的输入进行设置或者经验校调,本实施例对此不做限制。Optionally, the first input may be an operation of sliding a distance from top to bottom at the position of the central axis. For example, if the position of the central axis is slid from top to bottom for a distance of more than half a screen, the fixed playback of the first display interface can be started. It can be understood that a certain distance can receive user input for setting or empirical adjustment, which is not limited in this embodiment.

以终端为折叠屏终端,在终端屏幕包括第一显示界面A和第二显示界面B、且在所述第一显示界面正在播放第一视频文件为例,图2是本申请实施例提供的视频播放方法示意图之一,如图2所示,可以首先接收用户在设置项中打开可以开启第一显示界面的固定播放功能的开关的输入,例如接收用户设置第一显示界面A区域为视频固定播放区域的输入,并在A区域有第一视频文件的播放时(比如A区域本来就有第一视频文件正在播放,或者,接收用户对第一视频文件的输入以使第一视频文件在A区域进行播放),可以接收用户的第一输入,比如接收用户在中轴线位置从上至下滑动超过半屏的距离的输入,触发锁定播放功能的第一输入,以第一播放方式播放第一视频文件,并对第二显示界面B区域的视频播放文件的播放进行控制,以第二播放方式播放第二视频文件,保证第一显示界面A区域的第一视频文件的播放不会被中断。Taking the terminal as a folding screen terminal, 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 a video provided by an embodiment of the present application. One of the schematic diagrams of the playback method, as shown in FIG. 2 , can first receive the input of the user turning on the switch that can turn on the fixed playback function of the first display interface in the setting item, for example, receiving the user to set the first display interface A area as the fixed playback of the video area input, and when the first video file is being played in area A (for example, the first video file is already being played in area A, or the user's input to the first video file is received so that the first video file is in area A Play), can receive the first input of the user, such as receiving the input of the user sliding more than half of the screen from top to bottom at the position of the central axis, triggering the first input of the lock play function, and playing the first video in the first play mode file, and controls the playback of the video playback file in the area B of the second display interface, and plays the second video file in the second playback mode to ensure that the playback of the first video file in the area A of the first display interface will not be interrupted.

即A区域的第一视频文件在播放期间如果有其他应用同时产生播放视频的行为,被锁定固定播放的第一视频文件播放过程不会被打断,会一直播放,除非接收到用户主动停止或退出被固定播放的第一视频文件的操作。That is, if the first video file in area A is playing video at the same time, the playback process of the locked and fixed first video file will not be interrupted and will continue to play unless the user actively stops or The operation of exiting the first video file being played fixedly.

可以理解的是,接收用户的第一输入以使第一视频文件以第一播放方式播放时,第一输入还可以包括移动第一视频文件进入第一显示界面的操作或移动播放第一视频文件的应用程序图标进入第一显示界面的操作。It can be understood that, when receiving the first input from the user so that the first video file is played in the first playback mode, the first input may also include an operation of moving the first video file to enter the first display interface or moving the first video file to play. The operation of entering the first display interface of the application icon.

可选地,在固定播放区域未被设置的情况下,所述第一输入包括:Optionally, when the fixed play area is not set, the first input includes:

选择所述第一显示界面为固定播放区域的操作;以及,Selecting the first display interface is an operation of fixing the playback area; and,

开启所述第一显示界面的固定播放功能的操作。An operation of enabling the fixed playback function of the first display interface.

本申请实施例中,可以在设置中提供可以开启固定播放功能的开关选项,在接收到用户打开固定视频播放的开关的输入后,可以进一步接收用户的第一输入,选择所述第一显示界面为固定播放区域以及开启所述第一显示界面的固定播放功能,然后进行以第一播放方式播放第一视频文件。In this embodiment of the present application, a switch option that can turn on the fixed playback function may be provided in the settings, and after receiving the user's input to turn on the fixed video playback switch, the user may further receive the user's first input, and select the first display interface. In order to fix the playback area and enable the fixed playback function of the first display interface, the first video file is played in the first playback mode.

可选地,开启所述第一显示界面的固定播放功能的操作可以是特殊形状的滑动操作,比如在第一显示界面或者预设区域或者终端的显示界面的任意区域,接收到用户滑动输入预设形状,比如一个圆或者一个三角形等,则可以开启所述第一显示界面的固定播放功能。Optionally, the operation of enabling the fixed playback function of the first display interface may be a sliding operation of a special shape, for example, on the first display interface or a preset area or any area of the display interface of the terminal, receiving a user sliding input preset. If the shape is set, such as a circle or a triangle, etc., the fixed playback function of the first display interface can be enabled.

可选地,开启所述第一显示界面的固定播放功能的操作可以是预设时间段内的快速点击操作,比如在第一显示界面或者预设区域或者终端的显示界面的任意区域,接收到用户在预设时间段内点击操作超过预设次数的输入,比如接收到一秒内连续三次的快速点击输入等,则可以开启所述第一显示界面的固定播放功能。Optionally, the operation of enabling the fixed playback function of the first display interface may be a quick click operation within a preset time period, for example, on the first display interface or a preset area or any area of the display interface of the terminal, receiving the If the user clicks an input exceeding a preset number of times within a preset time period, such as receiving three consecutive quick clicks within one second, the fixed playback function of the first display interface can be enabled.

可选地,开启所述第一显示界面的固定播放功能的操作可以是从上至下在中轴线位置滑动一段距离的操作,比如从中轴线位置从上至下滑动超过半屏的距离,则可以开启所述第一显示界面的固定播放功能,可以理解的是,一段距离可以接收用户的输入进行设置或者经验校调,本实施例对此不做限制。Optionally, the operation of enabling the fixed playback function of the first display interface may be an operation of sliding a certain distance from top to bottom at the position of the central axis. When the fixed playback function of the first display interface is turned on, it can be understood that a certain distance can be set or adjusted empirically by receiving the user's input, which is not limited in this embodiment.

具体地,可以不依赖专门设置某一显示界面为固定显示界面,即不提前预设默认固定播放的第一显示界面或提前预设固定播放的视频播放应用程序,即可以在接收用户的第一输入时,基于第一输入的操作确定用户希望固定播放的第一显示界面或视频播放应用程序。Specifically, it is not necessary to specifically set a certain display interface as a fixed display interface, that is, without presetting the first display interface of default fixed playback or the video playback application program of fixed playback in advance, that is, after receiving the user's first display interface When inputting, the first display interface or video playback application that the user wishes to play fixedly is determined based on the operation of the first input.

具体地,在固定播放区域未被设置的情况下,可以显示可供用户选择固定播放区域的选择输入界面,并接收用户在选择输入界面的第一输入,确定用户希望对第一显示界面进行固定播放,即可以以第一播放方式播放第一视频文件,保证第一视频问价进行播放的过程中不被其他操作打扰或中断。Specifically, when the fixed play area is not set, a selection input interface for the user to select the fixed play area can be displayed, and the user's first input on the selection input interface can be received, and it is determined that the user wishes to fix the first display interface. Playing, that is, the first video file can be played in the first playing mode, so as to ensure that the first video is not disturbed or interrupted by other operations during the playing of the first video asking for the price.

可选地,第一输入可以包括以下任一项:Optionally, the first input may include any of the following:

对第一显示界面的点选输入。Click input to the first display interface.

可以理解的是,第一输入可以是用户对第一显示界面的点选输入,比如可以在每一个界面显示锁定固定播放的气泡,若用户的选择目标是第一显示界面,则可以接收用户对第一显示界面上的气泡的点选输入。It can be understood that the first input can be the user's click input on the first display interface. For example, a bubble for locking and fixed playback can be displayed on each interface. If the user's selection target is the first display interface, the user's feedback Click input of bubbles on the first display interface.

以终端为折叠屏终端,在终端屏幕包括第一显示界面A和第二显示界面B、且在所述第一显示界面正在播放第一视频文件为例,图3是本申请实施例提供的视频播放方法示意图之二,如图3所示,可以不依赖用户设置某一屏作为固定屏,在固定播放触发时提供固定播放界面或APP的选择界面比如固定播放锁定气泡,供用户对固定播放界面或APP选择。Taking the terminal as a folding screen terminal, the terminal screen includes a first display interface A and a second display interface B, and the first video file is being played on the first display interface as an example, FIG. 3 is a video provided by an embodiment of the present application. The second schematic diagram of the playback method, as shown in Figure 3, does not depend on the user to set a certain screen as a fixed screen, and provides a fixed playback interface or an APP selection interface such as a fixed playback lock bubble when the fixed playback is triggered. or APP selection.

具体地,可以对当前是否存在视频播放行为进行监听,当首次存在视频播放行为,且A区域和B区域存在不同的播放应用时,可以在A区域和B区域靠近中轴边界的区域显示可供用户点击操作的锁定播放气泡。Specifically, it is possible to monitor whether there is currently a video playback behavior. When there is a video playback behavior for the first time, and there are different playback applications in the A area and the B area, you can display in the area of the A area and the B area near the central axis boundary. Locked play bubble for user click action.

随后可以接收用户的第一输入,确定用户选中的锁定固定播放的气泡对应的显示界面或APP为固定播放,比如选中了A区域的气泡则A区域为第一显示界面,A区域播放的视频文件为第一视频文件,处于优先播放状态,即多媒体播放焦点会保持在第一视频文件不发生转移。Then, the user's first input can be received, and the display interface or APP corresponding to the bubble selected by the user to lock and play is determined to be fixed play. For example, if the bubble in area A is selected, area A is the first display interface, and the video file played in area A is the first display interface. It is the first video file and is in a priority playback state, that is, the focus of multimedia playback will remain on the first video file and will not be transferred.

具体地,若在显示可供用户点击操作的锁定播放气泡后的预设时间段内(比如5秒内)未收到用户的对气泡的具体操作,则可以默认遵循视频播放应用程序的表现形式,比如默认将多媒体播放焦点给到最后一个申请多媒体播放焦点的视频文件。Specifically, if the user's specific operation on the bubble is not received within a preset period of time (for example, within 5 seconds) after displaying the locked play bubble that can be clicked by the user, the expression form of the video playback application can be followed by default. , for example, by default, the multimedia playback focus is given to the last video file that applies for the multimedia playback focus.

具体地,若监听到A区域和B区域存在不同的播放应用的状态变为只有一个区域进行播放的状态,则正在播放的视频文件可以自动获得优先播放的权限,即通过第一播放方式进行播放;直到系统重新监听到A区域和B区域存在不同的播放应用的状态。Specifically, if the state of the existence of different playback applications in the A area and the B area becomes the state where only one area is playing, the video file being played can automatically obtain the priority of playing, that is, play through the first playback method. ; until the system re-monitors the status of different playback applications in area A and area B.

本实施例中,可以遵循用户意愿,使用户可以更加自由地选择固定播放的显示界面,更加方便用户的操作,且可以使用户快速切换固定播放模式,快速切换播放的应用,给予用户更加快捷方便的视频播放操作方式。In this embodiment, the user's wishes can be followed, so that the user can more freely choose the display interface for fixed playback, which is more convenient for the user's operation, and enables the user to quickly switch between the fixed playback mode and the playback application, which is more convenient for the user. video playback operation mode.

可选地,所述在第二显示界面以第二播放方式播放第二视频文件,包括:Optionally, the playing the second video file in the second playing mode on the second display interface includes:

在第二显示界面不播放所述第二视频文件;或Do not play the second video file on the second display interface; or

在所述第二显示界面静音播放所述第二视频文件。The second video file is played in mute 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:

不播放所述第二视频文件,即直接不执行第二视频文件的播放行为,也不启动对第二视频文件的播放;或Do not play the second video file, that is, do not directly perform the playback behavior of the second video file, and do not start the playback of the second video file; or

在所述第二显示界面静音播放所述第二视频文件;Play the second video file muted on the second display interface;

在固定播放区域未被设置的情况下,在第二显示界面以第二播放方式播放第二视频文件,可以包括:When the fixed play area is not set, playing the second video file in the second play mode on the second display interface may include:

不播放所述第二视频文件,即直接不执行第二视频文件的播放行为,也不启动对第二视频文件的播放;或Do not play the second video file, that is, do not directly perform the playback behavior of the second video file, and do not start the playback of the second video file; or

停止播放所述第二视频文件,比如第二视频文件已经在播放的情况下,自动停止或暂停第二视频文件的播放行为;或Stop playing the second video file, for example, when the second video file is already playing, automatically stop or pause the playback behavior of the second video file; or

在所述第二显示界面静音播放所述第二视频文件。The second video file is played in mute on the second display interface.

具体地,在所述第一显示界面为固定播放区域的情况下,为了实现第二显示界面播放的第二视频文件的播放不中断以第一播放方式播放的第一视频文件,可以对在第二显示界面播放的第二视频文件进行播放控制,使其不进行多媒体播放焦点的抢夺。Specifically, in the case where the first display interface is a fixed playback area, in order to realize that the playback of the second video file played on the second display interface does not interrupt the first video file played in the first playback mode, the The second video file played on the second display interface is controlled to be played so that it does not compete for the focus of multimedia playback.

具体地,在第二显示界面以第二播放方式播放第二视频文件时,可以不响应第二视频文件的播放请求,即不播放第二视频文件。Specifically, when the second video file is played in the second playback mode on the second display interface, the playback request of the second video file may not be responded to, that is, the second video file may not be played.

具体地,在固定播放区域未被设置的情况下,可以对当前是否存在视频播放行为进行监听,具体可以对当前是否有同时播放多个视频文件进行监听,为了实现第二显示界面播放的第二视频文件的播放不中断以第一播放方式播放的第一视频文件,可以在监听到第二显示界面有播放的第二视频文件时对第二视频文件进行播放控制,以第二播放方式播放第二视频文件,使其不进行多媒体播放焦点的抢夺。Specifically, in the case where the fixed playback area is not set, it is possible to monitor whether there is currently a video playback behavior, and specifically to monitor whether multiple video files are currently being played at the same time. The playback of the video file does not interrupt the first video file played in the first playback mode, and can control the playback of the second video file when monitoring the second video file being played on the second display interface, and play the second video file in the second playback mode. Two video files, so that it does not snatch the focus of multimedia playback.

具体地,在以第二播放方式播放第二视频文件时,可以直接停止第二视频文件的播放。Specifically, when playing the second video file in the second playing mode, the playing of the second video file can be directly stopped.

在所述第一显示界面为固定播放区域的情况下,或,在固定播放区域未被设置的情况下,为了保证多媒体焦点不被抢夺,还可以静音播放未锁定的第二视频文件,在不影响第一视频文件播放的情况下同时播放第二视频文件。In the case that the first display interface is a fixed play area, or, in the case that the fixed play area is not set, in order to ensure that the multimedia focus is not robbed, the unlocked second video file can also be played silently. Play the second video file at the same time while affecting the playback of the first video file.

可以理解的是,本申请中所提到的第二视频文件并不是特指某一个视频文件,可以是一个或多个没有以第一播放方式播放的视频文件。It can be understood that the second video file mentioned in this application does not specifically refer to a certain video file, but may be one or more video files that are not played in the first playback mode.

本实施例可以实现对第二视频文件的多种播放状态的控制,以第二播放方式播放第二视频文件,在保证不中断第一视频文件的播放的情况下,给予用户尽量多的播放状态的选择,充分满足用户的各种需求。This embodiment can control multiple playback states of the second video file, play the second video file in the second playback mode, and give the user as many playback states as possible without interrupting the playback of the first video file. choice to fully meet the various needs of users.

本实施例除了能够达到保证不中断第一视频文件的播放的效果外,还提供了一种适时变化的固定播放方式,方便用户修改固定播放屏幕的选项,简化操作步骤,适应更多场景。In addition to the effect of ensuring that the playback of the first video file is not interrupted, this embodiment also provides a fixed playback mode that changes in time, which facilitates the user to modify the options of the fixed playback screen, simplifies the operation steps, and adapts to more scenarios.

可选地,所述在所述第二显示界面静音播放所述视频文件之前,所述方法还包括:Optionally, before the video file is played in mute on the second display interface, the method further includes:

接收用户允许同步播放第一视频文件和第二视频文件的第二输入;receiving a second input that the user allows to play the first video file and the second video file synchronously;

响应于所述第二输入,开启在所述第二显示界面静音播放所述第二视频文件的功能。In response to the second input, the function of playing the second video file in silent mode on the second display interface is enabled.

具体地,还可以提供开关供用户选择是否允许同步播放第一视频文件和第二视频文件,若接收用户允许同步播放第一视频文件和第二视频文件的第二输入,则可以同时播放第一视频文件和第二视频文件,但不处于固定播放的第二视频文件的声音不被播出。Specifically, a switch can also be provided for the user to choose whether to allow the first video file and the second video file to be played synchronously. The video file and the second video file, but the sound of the second video file that is not in fixed playback is not played.

因此,可以接收用户允许同步播放第一视频文件和第二视频文件的第二输入,确定允许同时播放后,在固定播放的第一视频文件正在播放且接收到第二视频文件的播放需求的情况下,在第二显示界面静音播放所述第二视频文件。Therefore, it is possible to receive a second input from the user that allows the simultaneous playback of the first video file and the second video file, and after determining that simultaneous playback is allowed, when the first video file that is being played at a fixed level is being played and a playback request of the second video file is received next, the second video file is played in mute on the second display interface.

本实施例中,可以实现多视频同步播放,但只播放其中以第一播放方式播放的第一视频文件的音频,可以满足用户的多视频同步播放的需求,并且不影响以第一播放方式播放的第一视频文件的播放行为,也避免了播放焦点的抢夺。In this embodiment, synchronous playback of multiple videos can be realized, but only the audio of the first video file played in the first playback mode is played, which can meet the user's requirement for synchronous playback of multiple videos, and does not affect the playback in the first playback mode. The playback behavior of the first video file also avoids the grabbing of the playback focus.

可选地,所述方法还包括:Optionally, the method further includes:

接收用户关闭所述第一显示界面的固定播放功能的第三输入;receiving a third input from the user to disable the fixed playback function of the first display interface;

响应于所述第三输入,关闭所述第一显示界面的固定播放功能。In response to the third input, the fixed play function of the first display interface is turned off.

具体地,用户可能存在关闭第一视频文件的固定播放功能的需求,因此还可以接收用户的第三输入,关闭所述第一显示界面的固定播放功能,即关闭第一视频文件的固定播放功能,允许第二视频文件的播放中断第一视频文件。Specifically, the user may have a need to turn off the fixed playback function of the first video file, so a third input from the user may also be received to turn off the fixed playback function of the first display interface, that is, to turn off the fixed playback function of the first video file. , allowing the playback of the second video file to interrupt the first video file.

比如在关闭所述第一显示界面的固定播放功能后,在第一视频文件正在播放的情况下,收到第二视频文件的播放请求,则可以正常播放第二视频文件,而第一视频文件的播放行为可以被中断或与第二视频文件同时播放。For example, after the fixed playback function of the first display interface is turned off, when the first video file is being played and a playback request of the second video file is received, the second video file can be played normally, while the first video file can be played normally. The playback behavior can be interrupted or played simultaneously with the second video file.

第三输入可以是用户的滑动操作或者是对是否取消锁定的选择界面的点选操作。The third input may be a user's sliding operation or a click operation on the selection interface of whether to cancel the lock.

比如,可以接收用户从下至上滑动中轴线的操作,关闭所述第一显示界面的固定播放功能。For example, the user's operation of sliding the central axis from bottom to top may be received, and the fixed play function of the first display interface may be turned off.

可选地,所述方法还包括:Optionally, the method further includes:

将所述第二视频文件的播放方式改变为第一播放方式。The playing mode of the second video file is changed to the first playing mode.

可选地,关闭所述第一显示界面的固定播放功能之后,可以开启固定播放第二视频文件,即将所述第二视频文件的播放方式改变为第一播放方式。Optionally, after the fixed playback function of the first display interface is disabled, the fixed playback of the second video file may be enabled, that is, the playback mode of the second video file is changed to the first playback mode.

比如,接收用户从下至上滑动中轴线的操作,解除对第一视频文件的锁定后,第二显示界面的第二视频文件可以播放,第一显示界面的第一视频文件播放暂停;进一步地,还可以在第二视频文件播放结束后自动恢复第一视频文件的播放;进一步地,若没有接收到用户关闭固定播放状态功能的输入,则可以判断是否开启允许同时播放的开关,若开启则第二视频文件可以和第一视频文件同时进行播放,但是只播放第一视频文件当前的声音,若没有开启则不进行第二视频文件的视频播放行为。For example, after receiving the user's operation of sliding the central axis from bottom to top, after unlocking the first video file, the second video file on the second display interface can be played, and the playing of the first video file on the first display interface is paused; further, It is also possible to automatically resume the playback of the first video file after the second video file is played; further, if no input from the user to turn off the fixed playback state function is received, it can be judged whether to turn on the switch that allows simultaneous playback, and if turned on, the first video file is turned on. The second video file can be played simultaneously with the first video file, but only the current sound of the first video file is played. If it is not enabled, the video playback behavior of the second video file will not be performed.

图4是本申请实施例提供的视频播放方法示意图之三,如图4所示,在第一显示界面以第一播放方式播放第一视频文件时,若有第二显示界面的第二视频文件的播放需求,则可以在第二显示界面弹出锁定固定播放的气泡,在接收到用户对第二显示界面的锁定固定播放的气泡的点击操作后,则可以关闭第一视频文件的固定播放功能,即关闭所述第一显示界面的固定播放功能,并且以第一播放方式播放第二视频文件。FIG. 4 is a third schematic diagram of a video playback method provided by an embodiment of the present application. As shown in FIG. 4 , when the first video file is played in the first playback mode on the first display interface, if there is a second video file on the second display interface If the playback requirements are met, the bubbles for locking and fixed playback can pop up on the second display interface, and after receiving the user's click operation on the bubbles for locking and fixed playback on the second display interface, the fixed playback function of the first video file can be turned off. That is, the fixed playback function of the first display interface is turned off, and the second video file is played in the first playback mode.

具体地,在第一显示界面是预先设置的情况下,关闭所述第一显示界面的固定播放功能后,则可以允许第二视频文件的播放中断第一视频文件的播放,因此在有第二视频文件播放需求时,可以在第二显示界面播放第二视频文件(包括播放视频和同步的音频)。Specifically, in the case where the first display interface is preset, after the fixed playback function of the first display interface is turned off, the playback of the second video file can be allowed to interrupt the playback of the first video file. When a video file is required to be played, a second video file (including playing video and synchronized audio) can be played on the second display interface.

可选地,所述方法还包括:Optionally, the method further includes:

所述接收用户关闭所述第一显示界面的固定播放功能的第三输入之前,所述方法还包括:Before receiving the third input from the user for turning off the fixed playback function of the first display interface, the method further includes:

在接收到用户对第二显示界面的第四输入的情况下,显示提示信息;In the case of receiving the fourth input from the user to the second display interface, displaying prompt information;

其中,所述提示信息用于提示所述第一显示界面的固定播放功能已开启;Wherein, the prompt information is used to prompt that the fixed playback function of the first display interface has been turned on;

所述第四输入是触发第二视频文件在所述第二显示界面进行播放的操作。The fourth input is an operation of triggering the second video file to be played on the second display interface.

具体地,可以接收到用户对第二显示界面的第四输入,触发第二视频文件在所述第二显示界面进行播放,则可以确定用户有在第二显示界面播放第二视频文件的需求,则可以显示提示信息,提示用户第一视频文件为固定播放。Specifically, the fourth input from the user on the second display interface may be received, and the second video file may be triggered to be played on the second display interface, and it may be determined that the user has a demand to play the second video file on the second display interface, Then, prompt information may be displayed, prompting the user that the first video file is for fixed playback.

图5是本申请实施例提供的提示信息显示示意图,如图5所示,提示信息可以是弹出的文字提示信息;还可以是中轴线闪烁,以提示用户第一视频文件为固定播放。FIG. 5 is a schematic diagram of displaying prompt information provided by an embodiment of the present application. As shown in FIG. 5 , the prompt information may be pop-up text prompt information; or the central axis flashes to prompt the user that the first video file is fixed to play.

进一步地,在显示提示信息,提示用户第一视频文件为固定播放后,还可以进一步提示用户是否需要解除锁定,因此可以进一步接收用户的输入,比如接收用户关闭第一视频文件固定播放功能的输入或者关闭第一视频文件的固定播放功能并打开第二显示界面的固定播放功能的输入。Further, after the prompt information is displayed, prompting the user that the first video file is for fixed playback, the user can be further prompted whether the lock needs to be unlocked, so the user's input can be further received, such as receiving the user's input to turn off the fixed playback function of the first video file. Or turn off the fixed playback function of the first video file and enable the input of the fixed playback function of the second display interface.

进一步地,在显示提示信息提示用户第一视频文件开启为固定播放功能后,并进一步提示用户是否需要关闭所述第一显示界面的固定播放功能,若在预设时间段内比如5秒内没有收到用户进一步输入,则可以默认遵循此前的固定播放设置或者遵循已有三方应用的表现形式。Further, after the prompt information is displayed to prompt the user that the first video file is turned on as the fixed playback function, and the user is further prompted whether the fixed playback function of the first display interface needs to be turned off, if there is no fixed playback function within a preset time period, such as 5 seconds, After further input from the user is received, the previous fixed playback settings can be followed by default or the expressions of existing third-party applications can be followed.

本实施例利用分屏场景的特点进行视频文件播放行为的控制,可以在播放视频时优秀保证主要播放行为,其他播放行为与其冲突时,提醒用户是否需要暂停在前播放的视频文件,保证新视频播放行为的执行。This embodiment utilizes the characteristics of split-screen scenarios to control the playback behavior of video files, which can ensure the main playback behavior during video playback. The execution of the playback behavior.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

需要说明的是,本申请实施例提供的视频播放方法,执行主体可以为视频播放装置,或者该视频播放装置中的用于执行加载视频播放方法的控制模块。本申请实施例中以视频播放装置执行加载视频播放方法为例,说明本申请实施例提供的视频播放装置。It should be noted that, in the video playback method provided by the embodiments of the present application, the execution body may be a video playback device, or a control module in the video playback device for executing the loading video playback method. In the embodiment of the present application, the video playing device provided by the embodiment of the present application is described by taking the video playing device executing the method for loading a video playing as an example.

图6是本申请实施例提供的视频播放装置的结构示意图,如图6所示,所述装置包括:第一接收模块610和第一播放模块620;其中:FIG. 6 is a schematic structural diagram of a video playback device provided by an embodiment of the present application. As shown in FIG. 6 , the device includes: a first receiving module 610 and a first playing module 620; wherein:

第一接收模块610用于接收用户对第一视频文件的第一输入;The first receiving module 610 is configured to receive the first input of the user to the first video file;

第一播放模块620用于响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件。The first playing module 620 is configured to, in response to the first input, play the first video file in the first play mode on the first display interface, and play the second video file in the second play mode on the second display interface.

具体地,视频播放装置通过第一接收模块610接收用户的第一输入,随后通过第一播放模块620响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件。Specifically, the video playback device receives the user's first input through the first receiving module 610, and then responds to the first input through the first playback module 620, and plays the first video in the first playback mode on the first display interface file, and play the second video file in the second play mode on the second display interface.

在此需要说明的是,本发明实施例提供的上述装置,能够实现上述信息传输方法实施例所实现的所有方法步骤,且能够达到相同的技术效果,在此不再对本实施例中与方法实施例相同的部分及有益效果进行具体赘述。It should be noted here that the above-mentioned device provided by the embodiment of the present invention can realize all the method steps realized by the above-mentioned information transmission method embodiment, and can achieve the same technical effect, and the method in this embodiment will not be implemented here. The same parts and beneficial effects of the examples will be described in detail.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

可选地,在所述第一显示界面为固定播放区域的情况下,所述第一输入包括:Optionally, when the first display interface is a fixed play area, the first input includes:

开启所述第一显示界面的固定播放功能的操作;以及,An operation of enabling the fixed playback 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, when the fixed play area is not set, the first input includes:

选择所述第一显示界面为固定播放区域的操作;以及,Selecting the first display interface is an operation of fixing the playback area; and,

开启所述第一显示界面的固定播放功能的操作。An operation of enabling the fixed playback function of the first display interface.

可选地,所述第一播放模块还用于:Optionally, the first playback module is also used for:

在第二显示界面不播放所述第二视频文件;或Do not play the second video file on the second display interface; or

在所述第二显示界面静音播放所述第二视频文件。The second video file is played in mute on the second display interface.

可选地,所述在所述第二显示界面静音播放所述视频文件之前,所述装置还包括:Optionally, before the video file is played in mute on the second display interface, the apparatus further includes:

第二接收模块,用于接收用户允许同步播放第一视频文件和第二视频文件的第二输入;a second receiving module, configured to receive a second input from the user that allows the first video file and the second video file to be played synchronously;

第一开启模块,用于响应于所述第二输入,开启在所述第二显示界面静音播放所述第二视频文件的功能。The first opening module is configured to, in response to the second input, enable the function of playing the second video file in silent mode on the second display interface.

可选地,所述装置还包括:Optionally, the device further includes:

第三接收模块,用于接收用户关闭所述第一显示界面的固定播放功能的第三输入;a third receiving module, configured to receive a third input from the user to turn off the fixed playback function of the first display interface;

第一关闭模块,用于响应于所述第三输入,关闭所述第一显示界面的固定播放功能。A first closing module, configured to close the fixed play function of the first display interface in response to the third input.

可选地,所述装置还包括:Optionally, the device further includes:

第二播放模块,用于在关闭所述第一显示界面的固定播放功能之后,将所述第二视频文件的播放方式改变为第一播放方式。The second playing module is configured to change the playing mode of the second video file to the first playing mode after the fixed playing function of the first display interface is turned off.

可选地,所述装置还包括:Optionally, the device further includes:

第二显示模块,用于在接收用户关闭所述第一显示界面的固定播放功能的第三输入之前,在接收到用户对第二显示界面的第四输入的情况下,显示提示信息;The second display module is configured to display prompt information in the case of receiving the fourth input from the user on the second display interface before receiving the third input from the user to turn off the fixed playback function of the first display interface;

其中,所述提示信息用于提示所述第一显示界面的固定播放功能已开启;Wherein, the prompt information is used to prompt that the fixed playback function of the first display interface has been turned on;

所述第四输入是触发第二视频文件在所述第二显示界面进行播放的操作。本申请实施例中的视频播放装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digitalassistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network AttachedStorage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The fourth input is an operation of triggering the second video file to be played on the second display interface. The video playback device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., the embodiment of the present application There is no specific limitation.

本申请实施例中的视频播放装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The video playback device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的视频播放装置能够实现图1至图5的方法实施例中视频播放装置实现的各个过程,为避免重复,这里不再赘述。The video playback apparatus provided by the embodiments of the present application can implement each process implemented by the video playback apparatus in the method embodiments of FIG. 1 to FIG. 5 , and to avoid repetition, details are not repeated here.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

可选的,图7是本申请实施例提供的电子设备的硬件结构示意图之一,如图7所示,包括处理器702,存储器701,存储在存储器701上并可在所述处理器702上运行的程序或指令,该程序或指令被处理器702执行时实现上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, FIG. 7 is one of the schematic diagrams of the hardware structure of the electronic device provided by the embodiment of the present application. As shown in FIG. 7 , it includes a processor 702 and a memory 701 , which are stored in the memory 701 and can be stored in the processor 702 The running program or instruction, when the program or instruction is executed by the processor 702, implements each process of the above-mentioned video playback method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.

需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

图8是本申请实施例提供的电子设备的硬件结构示意图之二。FIG. 8 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。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, etc. part.

本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .

应理解的是,本申请实施例中,输入单元804可以包括图形处理器(GraphicsProcessing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042. camera) to process the image data of still pictures or videos. The display unit 806 may include a display panel 8061, which 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 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

本申请实施例中,射频单元801获取信息后给处理器810处理。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。In this embodiment of the present application, the radio frequency unit 801 obtains the information and then processes the information to the processor 810 . Generally, the 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.

存储器809可用于存储软件程序或指令以及各种数据。存储器809可主要包括存储程序或指令区和存储数据区,其中,存储程序或指令区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。Memory 809 may be used to store software programs or instructions as well as 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 required for at least one function (such as a sound playback function, an image playback function, etc.) and the like. In addition, the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, wherein the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM) , PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. For example at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.

处理器810可包括一个或多个处理单元;可选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序或指令等,调制解调处理器主要处理无线通信,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, application programs or instructions, etc., Modem processors mainly deal with wireless communications, such as baseband processors. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.

其中,用户输入单元807用于接收用户对第一视频文件的第一输入;Wherein, the user input unit 807 is used for receiving the first input of the user to the first video file;

处理器810用于响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;The processor 810 is configured to, in response to the first input, play the first video file in the first play mode on the first display interface, and play the second video file in the second play mode on the second display interface;

其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式。Wherein, the first play mode is a fixed play mode in which the focus of multimedia play does not change, and the second play mode is a play mode without applying for the focus of multimedia play.

可选地,在所述第一显示界面为固定播放区域的情况下,所述第一输入包括:Optionally, when the first display interface is a fixed play area, the first input includes:

开启所述第一显示界面的固定播放功能的操作;以及,An operation of enabling the fixed playback 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, when the fixed play area is not set, the first input includes:

选择所述第一显示界面为固定播放区域的操作;以及,Selecting the first display interface is an operation of fixing the playback area; and,

开启所述第一显示界面的固定播放功能的操作。An operation of enabling the fixed playback function of the first display interface.

可选地,处理器810用于:Optionally, processor 810 is used to:

在第二显示界面不播放所述第二视频文件;或Do not play the second video file on the second display interface; or

在所述第二显示界面静音播放所述第二视频文件。The second video file is played in mute on the second display interface.

可选地,用户输入单元807用于:接收用户允许同步播放第一视频文件和第二视频文件的第二输入;Optionally, the user input unit 807 is configured to: receive a second input from the user allowing to play the first video file and the second video file synchronously;

处理器810用于:响应于所述第二输入,开启在所述第二显示界面静音播放所述第二视频文件的功能。The processor 810 is configured to: in response to the second input, enable the function of playing the second video file in silence on the second display interface.

可选地,用户输入单元807用于:接收用户关闭所述第一显示界面的固定播放功能的第三输入,处理器810用于:Optionally, the user input unit 807 is configured to: receive a third input from the user for turning off the fixed playback function of the first display interface, and the processor 810 is configured to:

响应于所述第三输入,关闭所述第一显示界面的固定播放功能。In response to the third input, the fixed play function of the first display interface is turned off.

可选地,所述关闭所述第一显示界面的固定播放功能之后,处理器810用于:Optionally, after disabling the fixed playback function of the first display interface, the processor 810 is configured to:

将所述第二视频文件的播放方式改变为第一播放方式。Changing the play mode of the second video file to the first play mode.

可选地,所述接收用户关闭所述第一显示界面的固定播放功能的第三输入之前,处理器810用于:Optionally, before receiving the third input from the user for turning off the fixed playback function of the first display interface, the processor 810 is configured to:

在接收到用户对第二显示界面的第四输入的情况下,显示提示信息;In the case of receiving the fourth input from the user to the second display interface, displaying prompt information;

其中,所述提示信息用于提示所述第一显示界面的固定播放功能已开启;Wherein, the prompt information is used to prompt that the fixed playback function of the first display interface has been turned on;

所述第四输入是触发第二视频文件在所述第二显示界面进行播放的操作。The fourth input is an operation of triggering the second video file to be played on the second display interface.

在本申请实施例中,通过以第一播放方式播放第一视频文件,以此实现多个应用同时进行视频播放行为时,优先第一视频文件的播放行为,避免其他视频文件的播放需求对播放焦点的抢夺,保证不中断第一视频文件的播放。In the embodiment of the present application, by playing the first video file in the first playback mode, when multiple applications perform video playback behaviors at the same time, the playback behavior of the first video file is prioritized, so as to avoid the playback requirements of other video files. The grabbing of the focus ensures that the playback of the first video file is not interrupted.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above video playback method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 the above video playback method embodiments. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (8)

1.一种视频播放方法,其特征在于,包括:1. a video playback method, is characterized in that, comprises: 接收用户对第一视频文件的第一输入;receiving a first input from a user to the first video file; 响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;In response to the first input, the first video file is played in the first play mode on the first display interface, and the second video file is played in the second play mode on the second display interface; 其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式;Wherein, the first playback mode is a fixed playback mode in which the focus of multimedia playback does not change, and the second playback mode is a playback mode without applying for the focus of multimedia playback; 其中,在所述第一显示界面为固定播放区域的情况下,所述第一输入包括:Wherein, when the first display interface is a fixed play area, the first input includes: 开启所述第一显示界面的固定播放功能的操作;以及,An operation of enabling the fixed playback function of the first display interface; and, 将所述第一视频文件或所述第一视频文件对应的应用程序图标移动至所述第一显示界面的操作,以使所述第一视频文件在第一显示界面进行固定播放;The operation of moving the first video file or the application icon corresponding to the first video file to the first display interface, so that the first video file is fixedly played on the first display interface; 其中,所述在第二显示界面以第二播放方式播放第二视频文件,包括:Wherein, the playing the second video file in the second playing mode on the second display interface includes: 在第二显示界面暂停所述第二视频文件。Pause the second video file on the second display interface. 2.根据权利要求1所述的视频播放方法,其特征在于,在固定播放区域未被设置的情况下,所述第一输入包括:2. The video playback method according to claim 1, wherein, when the fixed playback area is not set, the first input comprises: 选择所述第一显示界面为固定播放区域的操作;以及,Selecting the first display interface is an operation of fixing the playback area; and, 开启所述第一显示界面的固定播放功能的操作。An operation of enabling the fixed playback function of the first display interface. 3.根据权利要求1所述的视频播放方法,其特征在于,所述在所述第二显示界面静音播放所述视频文件之前,所述方法还包括:3. The video playback method according to claim 1, wherein before the video file is played in mute on the second display interface, the method further comprises: 接收用户允许同步播放第一视频文件和第二视频文件的第二输入;receiving a second input that the user allows to play the first video file and the second video file synchronously; 响应于所述第二输入,开启在所述第二显示界面静音播放所述第二视频文件的功能。In response to the second input, the function of playing the second video file in silent mode on the second display interface is enabled. 4.根据权利要求1至3任一项所述的视频播放方法,其特征在于,所述方法还包括:4. The video playback method according to any one of claims 1 to 3, wherein the method further comprises: 接收用户关闭所述第一显示界面的固定播放功能的第三输入;receiving a third input from the user to disable the fixed playback function of the first display interface; 响应于所述第三输入,关闭所述第一显示界面的固定播放功能。In response to the third input, the fixed play function of the first display interface is turned off. 5.根据权利要求4所述的视频播放方法,其特征在于,所述接收用户关闭所述第一显示界面的固定播放功能的第三输入之前,所述方法还包括:5 . The video playback method according to claim 4 , wherein, before receiving the third input from the user for turning off the fixed playback function of the first display interface, the method further comprises: 6 . 在接收到用户对第二显示界面的第四输入的情况下,显示提示信息;In the case of receiving the fourth input from the user to the second display interface, displaying prompt information; 其中,所述提示信息用于提示所述第一显示界面的固定播放功能已开启;Wherein, the prompt information is used to prompt that the fixed playback function of the first display interface has been turned on; 所述第四输入是触发第二视频文件在所述第二显示界面进行播放的操作。The fourth input is an operation of triggering the second video file to be played on the second display interface. 6.根据权利要求1所述的视频播放方法,其特征在于,所述方法还包括:6. The video playback method according to claim 1, wherein the method further comprises: 将所述第二视频文件的播放方式改变为第一播放方式。The playing mode of the second video file is changed to the first playing mode. 7.一种视频播放装置,其特征在于,包括:7. A video playback device, characterized in that, comprising: 第一接收模块,用于接收用户对第一视频文件的第一输入;The first receiving module is used for receiving the first input of the user to the first video file; 第一播放模块,用于响应于所述第一输入,在第一显示界面以第一播放方式播放所述第一视频文件,并在第二显示界面以第二播放方式播放第二视频文件;a first playing module, configured to, in response to the first input, play the first video file in a first play mode on the first display interface, and play the second video file in a second play mode on the second display interface; 其中,所述第一播放方式为多媒体播放焦点不会发生变化的固定播放方式,所述第二播放方式为不申请多媒体播放焦点的播放方式;Wherein, the first playback mode is a fixed playback mode in which the focus of multimedia playback does not change, and the second playback mode is a playback mode without applying for the focus of multimedia playback; 其中,在所述第一显示界面为固定播放区域的情况下,所述第一输入包括:Wherein, when the first display interface is a fixed play area, the first input includes: 开启所述第一显示界面的固定播放功能的操作;以及,An operation of enabling the fixed playback function of the first display interface; and, 将所述第一视频文件或所述第一视频文件对应的应用程序图标移动至所述第一显示界面的操作,以使所述第一视频文件在第一显示界面进行固定播放;The operation of moving the first video file or the application icon corresponding to the first video file to the first display interface, so that the first video file is fixedly played on the first display interface; 其中,所述第一播放模块还用于:Wherein, the first playback module is also used for: 在第二显示界面暂停所述第二视频文件。Pause the second video file on the second display interface. 8.一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的视频播放方法的步骤。8. An electronic device, characterized in that it comprises a processor, a memory, and a program or instruction that is stored on the memory and can be run on the processor, and is implemented when the program or instruction is executed by the processor The steps of the video playback method according to any one of claims 1-6.
CN202110120059.4A 2021-01-28 2021-01-28 Video playback method, device, electronic device 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 playback method, device, electronic device 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 playback method, device, electronic device 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 playback method, device, electronic device 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
JP7628140B2 (en) Sharing methods, devices and electronic equipment
US11127398B2 (en) Method for voice controlling, terminal device, cloud server and system
WO2022089483A1 (en) Audio playback control method and apparatus, and electronic device
CN112383817B (en) Volume adjustment method and device
WO2022057881A1 (en) Operation method and apparatus
WO2017152621A1 (en) Temperature control method and device
WO2022156662A1 (en) Method and apparatus for switching audio playing mode, and electronic device and storage medium
CN111601065A (en) Video call control method and device and electronic equipment
CN107302724A (en) A kind of video playing control method, device and electronic equipment
CN114422465B (en) Message processing method, device, equipment and storage medium
CN113784192B (en) Screen projection method, screen projection device and electronic equipment
CN113194450A (en) Bluetooth device management method and device
WO2022121877A1 (en) Message processing method, apparatus, and electronic device
CN112269505B (en) Audio and video control method and device and electronic equipment
US20240095049A1 (en) Control Method, Electronic Device, and Non-Transitory Readable Storage Medium
WO2022048491A1 (en) Application running method and apparatus and electronic device
US11397596B2 (en) Method and device for controlling pop-up window, electronic device, and storage medium
CN111694490A (en) Setting method and device and electronic equipment
CN108874450B (en) Method and device for waking up voice assistant
WO2022237669A1 (en) Display control method and apparatus
CN112099682B (en) Icon display method and device and electronic equipment
CN112887479B (en) Video playback method, device, electronic device and storage medium
US20120294436A1 (en) Method and apparatus for switching call mode
WO2022161243A1 (en) Information display method and apparatus, and electronic device
CN115718581A (en) Information display method and device, electronic equipment and storage medium

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