Multimedia content playing method, device, electronic device and storage medium
By creating multiple players in different layers of the multimedia content playback area, multiple multimedia content is played at the same time without compression, which solves the problem of inconsistent picture quality on different devices in existing technologies. Operation and improve the playing efficiency.
Patent Information
- Application Number
- CN202311705234.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-12
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2043-12-12
AI Technical Summary
In the prior art, the same video has different image quality due to different resolutions, code rate, compression method and packaging format on different devices, and users cannot observe different picture performances at the same time, and a single device only supports playing a single video.
By creating the first player and the second player in the first layer and second layer of the multimedia content playback area, the number of multimedia content is played at the same time without compression, simplifying operation and improving playback efficiency.
The multimedia content is played at the same time without compression, simplified operations, and improved the playback efficiency of multimedia content and user information acquisition efficiency.
Smart Images

Figure CN117714770B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multimedia content playing method, device, electronic device and storage medium. Background Art
[0002] With the popularity of mobile devices, a large number of users have chosen them as their preferred video viewing platform, making video players a must-have application on mobile devices. However, due to differences in resolution, bit rate, compression method and packaging format, the same video has different image quality on different devices, giving users different viewing experiences. In the existing technology, a single device only supports playing a single video, and users cannot or cannot simultaneously observe different screen performances under different settings. Summary of the invention
[0003] In response to the above problems, the example of the present application provides a multimedia content playback method, device, electronic device and storage medium, which can play multiple multimedia contents simultaneously without compression, simplifying related operations, improving the playback efficiency of multimedia content, and improving the user's information acquisition efficiency.
[0004] To achieve the above-mentioned objectives, in a first aspect, an embodiment of the present application provides a media content playback method, which is applied to a first terminal, and the first terminal includes a touch screen. The method includes: displaying a multimedia content playback area, and the multimedia content playback area includes a first layer and a second layer; wherein a first player is created on the first layer, and a second player is created on the second layer, the first layer is above the second layer, and the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0005] It can be seen that by creating a first player in the first layer and a second player in the second layer, different types and effects of multimedia contents can be played in the first layer and the second layer through different players. There is no need to use compression operations such as split screen. Instead, the first multimedia content and the second multimedia content are played simultaneously in the multimedia content playback area through the first layer and the second layer, which simplifies the related operations that need to play multiple multimedia contents, improves the playback efficiency of multimedia contents, and improves the user's information acquisition rate.
[0006] In combination with the first aspect, in a possible embodiment, the multimedia content playback area includes a first area and a second area, the first layer plays the first multimedia content in the first area according to a first transparency parameter, the first layer plays the first multimedia content in the second area according to a second transparency parameter, the second layer plays the second multimedia content in the first area according to a third transparency parameter, and the second layer plays the second multimedia content in the second area according to a fourth transparency parameter; wherein the first transparency parameter is less than or equal to the third transparency parameter, and the second transparency parameter is greater than the fourth transparency parameter.
[0007] It can be seen that by dividing the first area and the second area, the first multimedia content and the second multimedia content are played in the first area and the second area according to different transparency parameters, so that different multimedia contents are displayed in different layers. The user can also observe part of the multimedia content in the lower layer through the multimedia content in the upper layer, thereby improving the user's information acquisition rate.
[0008] In combination with the first aspect, in a possible embodiment, the multimedia content playback area also includes a target control, the target control belongs to a control layer, and the control layer is above the first layer. The method also includes: in response to a drag operation on the target control, adjusting the display area of at least one of the first layer or the second layer so that the multimedia content playback area simultaneously displays part of the first multimedia content and part of the second multimedia content.
[0009] It can be seen that by adjusting the first layer and the second layer in response to the dragging operation on the target control, the first layer and the second layer can be changed to the area size required by the user, thereby improving the playback effect and improving the user's efficiency in obtaining information on multimedia content.
[0010] In combination with the first aspect, in a possible embodiment, the method further includes: in response to a first click operation on the target area, switching the first multimedia content or the second multimedia content.
[0011] It can be seen that the first multimedia content and the second multimedia content are quickly switched through the first click operation, and the user does not need to go through other related selections and confirmation operations to switch the first multimedia content and the second multimedia content, which further reduces related operations and improves playback efficiency.
[0012] In combination with the first aspect, in a possible embodiment, the target area is the first layer or the second layer; or the target area is a file list area, and the file list area is used to display the file name corresponding to the first multimedia content or the second multimedia content.
[0013] It can be seen that by displaying the text names corresponding to the first multimedia content and the second multimedia content in the file list area, the user can select the multimedia content to be played through the file list area, thereby reducing the related operations of switching multimedia content and improving the playback efficiency.
[0014] In combination with the first aspect, in a possible embodiment, when the target area is a file list area, the method further includes: reading files stored in a preset storage directory, and importing files in a preset format under the preset storage directory into the file list area.
[0015] It can be seen that by reading the files stored in the preset storage directory and importing the preset format files under the preset storage directory into the file list area, the recognition efficiency of playable files is improved, thereby simplifying related operations and improving playback efficiency.
[0016] In combination with the first aspect, in a possible embodiment, the first terminal further includes a gyroscope, and the method further includes: in response to a rotation operation on the gyroscope, switching a play mode of the multimedia content play area, the play mode including a horizontal screen play mode and a vertical screen play mode.
[0017] It can be seen that the user can change the playback mode of multimedia content by rotating the gyroscope, which simplifies the related operations that require targeting control controls to change the playback mode of multimedia content and improves the efficiency of image quality comparison of playable files.
[0018] In combination with the first aspect, in a possible embodiment, the first multimedia content and the second multimedia content are the same media content.
[0019] In a second aspect, an embodiment of the present application provides a live content playback method, the method comprising: displaying a target live content playback area, the target live content playback area comprising a first layer and a second layer; wherein the first layer is used to play a first live content of a first anchor account, and the second layer is used to play a second live content of a second anchor account, and the first layer is above the second layer; in response to an interactive event for the first live content or the second live content, adjusting a display area of at least one of the first layer or the second layer so that the target live content playback area simultaneously displays part of the first live content and part of the second live content.
[0020] It can be seen that by playing different live content through the first layer and the second layer, the live screen cannot be fully displayed when the user is watching the live content. The user can increase the live content of interest through interactive events, which promotes the interaction between the audience and the anchor and increases the interest of the user in watching the live content.
[0021] In combination with the second aspect, in a possible embodiment, the target live content playback area also includes a first area, a second area and a target control, the first area corresponds to the display area of the first layer, the second area corresponds to the display area of the second layer, the target control is located between the first area and the second area, and the response to the interactive event for the first live content or the second live content, adjusting the display area of at least one of the first layer or the second layer includes: in response to the drag operation on the target control, displaying a live gift giving interface, the live gift giving interface includes at least one interactive gift; in response to at least one interactive gift giving operation for the first anchor account or the second anchor account, moving the target control to increase the area of the first area or the second area.
[0022] It can be seen that the user can use the target control to indicate that the first terminal executes an interactive event for the first live content or the second live content, which reduces the related operations of the user's interaction with the anchor and improves the interaction efficiency. At the same time, the area of the first area and the second area is changed according to the interactive event, which further promotes the interaction between the audience and the anchor and improves the user's interest in watching the live content.
[0023] In combination with the second aspect, in a possible embodiment, the interactive gift is a default gift or a random gift, and the method further includes: in response to a drag operation on the target control, giving the default gift or the random gift to the first anchor account or the second anchor account corresponding to the opposite direction of the drag operation, and increasing the area of the first area or the area of the second area.
[0024] In combination with the second aspect, in a possible embodiment, when the first live broadcast content includes a first anchor object and the second live broadcast content includes a second anchor object, the target live broadcast content playback area corresponds to a live broadcast interactive event, and the method further includes: in response to not detecting the first anchor object from the first live broadcast content and / or not detecting the second anchor object from the second live broadcast content, indicating that the live broadcast interactive event has ended.
[0025] It can be seen that through the operation of the user dragging the target control, the first terminal adjusts the area of the corresponding direction, and at the same time sends a default gift or a random gift to the corresponding anchor account, which further simplifies the operation and improves the interaction efficiency between the user and the anchor.
[0026] In a third aspect, an embodiment of the present application provides a device for comparing the image quality of a playable file, which is used to perform a method for comparing the image quality of a playable file, and the device includes:
[0027] Display unit: used to display a multimedia content playback area, the multimedia content playback area includes a first layer and a second layer; wherein the first layer is created with a first player, the second layer is created with a second player, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0028] In a fourth aspect, an embodiment of the present application provides a live content playback device for executing a live content playback method.
[0029] The device includes:
[0030] Display unit: used to display the target live content playback area, the target live content playback area includes a first layer and a second layer; wherein the first layer is used to play the first live content of the first anchor account, and the second layer is used to play the second live content of the second anchor account, and the first layer is above the second layer;
[0031] An adjustment unit: used to adjust the display area of at least one of the first layer or the second layer in response to an interactive event for the first live content or the second live content, so that the target live content playback area simultaneously displays part of the first live content and part of the second live content.
[0032] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and one or more instructions are suitable for being loaded by the processor and executing part or all of the method of the first aspect and / or the second aspect.
[0033] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the method of the first aspect and / or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of an application scenario of a multimedia content playback method provided in an embodiment of the present application;
[0036] Figure 2A flowchart of a multimedia content playback method provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a setting interface provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of an interface structure for multimedia content playback provided in an embodiment of the present application;
[0039] Figure 5 A display schematic diagram of a transparency control provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of displaying a first area and a second area provided in an embodiment of the present application;
[0041] Fig. 7A A schematic diagram of the structure of a file list area provided in an embodiment of the present application;
[0042] Figure 7B A schematic diagram of the structure of another file list area provided in an embodiment of the present application;
[0043] Fig. 8A A schematic diagram of a playback in a vertical screen playback mode provided in an embodiment of the present application;
[0044] Figure 8B A schematic diagram of a playback mode in a horizontal screen playback mode provided in an embodiment of the present application;
[0045] Fig. 9 A flowchart of another multimedia content playback method provided in an embodiment of the present application;
[0046] Fig.10 A schematic diagram of a playback in a parallel comparison mode provided in an embodiment of the present application;
[0047] Fig.11 A flow chart of a live content playback method provided in an embodiment of the present application;
[0048] Fig.12 A schematic diagram of the structure of a multimedia content playback device provided in an embodiment of the present application;
[0049] Fig.13 A schematic diagram of the structure of a live content playback device provided in an embodiment of the present application;
[0050] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0053] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0054] The data collection and processing in this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in practice, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0055] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0056] See also Figure 1 , Figure 1A schematic diagram of an application scenario of a multimedia content playback method provided in an embodiment of the present application, the application scenario 100 includes a first terminal 101, a second terminal 102 and a server 103. The first terminal 101 here is used to execute the multimedia content playback method, and can specifically be a terminal device such as a smart phone, a smart tablet computer, a notebook computer and a car terminal that can be installed with hardware such as touch screen hardware and wireless communication hardware. The second terminal 102 can specifically be a personal computer, a smart phone, a smart tablet computer and other terminal devices that can communicate. In actual application scenarios, in addition to the second terminal 102, more other terminals can be included. Here, only the case of one is taken as an example. The first terminal 101, the second terminal 102 and the server 103 can communicate with each other.
[0057] The first terminal 101 is used to display a multimedia content playback area, where the multimedia content may include video content, picture content, audio content, etc. The multimedia content playback area includes a first layer, a second layer, and a target control, wherein a first player is created on the first layer, a second player is created on the second layer, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0058] In addition, the first terminal 101 can also generate a quality evaluation file of the target file according to the user's input operation, where the quality evaluation file includes one or more of the target user's rating, comment, and description of the target file quality. The first terminal 101 can transmit the evaluation file to the second terminal 102 and the server 103 through communication transmission methods such as wireless transmission, Bluetooth transmission, and wired transmission.
[0059] It can be seen that by creating a first player in the first layer and a second player in the second layer, different types and effects of multimedia contents can be played in the first layer and the second layer through different players. There is no need to use compression operations such as split screen. Instead, the first multimedia content and the second multimedia content are played simultaneously in the multimedia content playback area through the first layer and the second layer, which simplifies the related operations that need to play multiple multimedia contents, improves the playback efficiency of multimedia contents, and improves the user's information acquisition rate.
[0060] See also Figure 2 , Figure 2 A flowchart of a multimedia content playback method provided in an embodiment of the present application can be based on Figure 1 The application scenario shown is implemented as follows Figure 2 As shown, including steps S201-S202:
[0061] S201: Display a multimedia content playback area, where the multimedia content playback area includes a first layer and a second layer; wherein a first player is created on the first layer, a second player is created on the second layer, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0062] Specifically, the multimedia content here can specifically refer to files such as pictures, videos, and audios that can be played through a player, which can also be called multimedia files. The first layer and the second layer are two layers at different heights. The first layer plays the first multimedia content through the first player, and the second layer plays the second multimedia content through the second player.
[0063] See also Figure 3 , Figure 3 A schematic diagram of a setting interface provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the user can set the player type, rendering type, high dynamic lighting rendering, contrast mode, etc. to the first player or the second player through the first terminal in the setting interface. Figure 3 It can be seen that in Figure 3 Under the setting, the corresponding player will use the first type of player, adopt the rendering method of the first rendering type, turn off high dynamic lighting rendering, and use the side-by-side comparison mode to play the multimedia file.
[0064] In addition, since the first layer and the second layer are two layers at different heights, the first layer and the second layer are distributed on the display screen of the first terminal according to the preset positions, and can also be adjusted according to the relevant operation instructions of the user. When the first layer and the second layer overlap, the layer at a higher layer height will cover the multimedia content of the layer at a lower layer in the overlapping area. In other words, the multimedia content of the layer at a higher layer height will be fully displayed.
[0065] S202: In response to a drag operation on a target control, adjusting a display area of at least one of the first layer or the second layer so that a multimedia content playback area simultaneously displays a portion of the first multimedia content and a portion of the second multimedia content, wherein the multimedia content playback area also includes the target control, and the target control belongs to a control layer, which is above the first layer.
[0066] Specifically, see Figure 4 , Figure 4 A schematic diagram of an interface structure for multimedia content playback provided in an embodiment of the present application, such as Figure 4As shown, there is a top-level control layer at the boundary between the first layer and the second layer, and the control layer mainly includes the target control, that is, the drag bar here. The user can adjust the area of the first layer or the second layer by directly dragging on the touch screen or dragging with the input device. In this example, since the first layer and the second layer display the same multimedia content respectively, a complete image is displayed from the display effect. If the layer height of the first layer is higher than that of the second layer, the drag bar is used to adjust the area of the first layer. If the layer height of the second layer is higher than that of the first layer, the drag bar is used to adjust the area of the second layer.
[0067] Taking the case where the height of the first layer is higher than that of the second layer, since the first layer and the second layer play the first multimedia content and the second multimedia content respectively through different first players and second players, the actual display effects of the first layer and the second layer are different according to the different settings of the first player and the second player. The user changes the area of the first layer by dragging the target control, so that the difference in the display effects of the first player and the second player at the same position can be repeatedly compared. In addition, the target control can also be used only to adjust the area size of the two layers without limitation here.
[0068] In addition, users can also change the playback settings of the first player and the second player through the settings interface to change the playback effects of different multimedia contents. Figure 5 , Figure 5 A display diagram of a transparency control provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the target user can set the player type, rendering type, high dynamic lighting rendering, contrast mode and other functions in the setting interface. The first terminal determines the player type, rendering type, high dynamic lighting rendering, contrast mode and other settings of the first terminal when playing the playable file by responding to the second selection operation of the target user. Figure 5 It can be seen that in the embodiment of the present application, by using the first type of player, adopting the rendering mode of the first rendering type, turning off high dynamic lighting rendering, and adopting the parallel comparison mode, the playback effect of the multimedia content is different under the set conditions.
[0069] It can be seen that by adjusting the first layer and the second layer in response to the dragging operation on the target control, the first layer and the second layer can be changed to the area size required by the user, thereby improving the playback effect and improving the user's efficiency in obtaining information on multimedia content.
[0070] In a possible embodiment, the multimedia content playback area includes a first area and a second area, the first layer plays the first multimedia content in the first area according to a first transparency parameter, the first layer plays the first multimedia content in the second area according to a second transparency parameter, the second layer plays the second multimedia content in the first area according to a third transparency parameter, and the second layer plays the second multimedia content in the second area according to a fourth transparency parameter; wherein the first transparency parameter is less than or equal to the third transparency parameter, and the second transparency parameter is greater than the fourth transparency parameter.
[0071] Specifically, the higher the transparency here, the more transparent the corresponding multimedia content is. When the transparency of the multimedia content at a higher layer is high enough, the user can see the multimedia content at a lower layer through the multimedia content at a higher layer. The transparency can be represented by a percentage, 0% represents that the corresponding multimedia content is completely opaque, and 100% represents that the corresponding multimedia content is completely transparent.
[0072] The first area and the second area here are areas on the touch screen of the first terminal, which can be two areas distributed up and down or left and right. The first multimedia content on the first layer and the second multimedia content on the second layer are displayed in different areas with different transparency parameters. The first multimedia content is played according to the first transparency parameter in the first area, and the second multimedia content is played according to the third transparency parameter. Since the first layer is above the second layer, the first transparency of a multimedia content in the first area is less than or equal to the second multimedia content, so that part of the first multimedia content is displayed in the first layer and the second multimedia content of the second layer will not affect the display of the first multimedia content of the first layer. The first multimedia content is played according to the second transparency parameter in the second area and the second multimedia content is played according to the fourth transparency parameter in the second area. Since the second transparency parameter is greater than the fourth transparency parameter, the first multimedia content in the second area will not affect the playback of the second multimedia content.
[0073] For example, see Figure 6 , Figure 6 A schematic diagram of displaying a first area and a second area provided in an embodiment of the present application, Figure 6 The first area is the upper area. Since the playback transparency of the first multimedia content in the first layer is lower than the playback transparency of the second multimedia content in the first layer, the first area mainly displays the first multimedia content in the first layer; the second area in the lower area mainly displays the second multimedia content in the second layer because the playback transparency of the first multimedia content in the second layer is higher than the playback transparency of the second multimedia content in the second layer.
[0074] It can be seen that by dividing the first area and the second area, the first multimedia content and the second multimedia content are played in the first area and the second area according to different transparency parameters, so that different multimedia contents are displayed in different layers. The user can also observe part of the multimedia content in the lower layer through the multimedia content in the upper layer, thereby improving the user's information acquisition rate.
[0075] In a possible embodiment, the method further includes: in response to a first click operation on the target area, switching the first multimedia content or the second multimedia content.
[0076] Specifically, the first click operation here may be for a switch control of the control layer, and the switch control may also exist outside the multimedia content display area, and the target area here may be the control layer area or an area outside the multimedia content display area, etc. The first multimedia content and the second multimedia content may be switched by the first click operation. In addition, the switching may be achieved by performing the first click operation in an area of the first layer or an area of the second layer, and the first click operation here may be double-clicking, dragging, and the like.
[0077] Exemplarily, if the first layer plays the first multimedia content through the first player, and the second layer plays the second multimedia content through the second player, when the user performs a first click operation, the first multimedia content and the second multimedia content are switched. At this time, the first layer plays the second multimedia content through the first player, and the second layer plays the first multimedia content through the second player.
[0078] It can be seen that the first multimedia content and the second multimedia content are quickly switched through the first click operation, and the user does not need to go through other related selections and confirmation operations to switch the first multimedia content and the second multimedia content, which further reduces related operations and improves playback efficiency.
[0079] In a possible embodiment, the target area is the first layer or the second layer; or the target area is a file list area, and the file list area is used to display the file name corresponding to the first multimedia content or the second multimedia content.
[0080] Specifically, the file list area here can be used to display the file names corresponding to the multimedia contents. If the first terminal stores other multimedia contents in addition to the first multimedia contents and the second multimedia contents, the file names corresponding to the other multimedia contents can be displayed simultaneously.
[0081] For example, see Fig. 7A , Fig. 7AA structural schematic diagram of a file list area provided for an embodiment of the present application shows that the file names of the first multimedia content, the second multimedia content and the third multimedia content exist in the file list area. The user can add a play mark to the multimedia content file name to be played through the operation instruction, and then operate the "play selected" control to play the multimedia content corresponding to the multimedia content file name with the play mark in the first layer and the second layer.
[0082] See also Figure 7B , Figure 7B A schematic diagram of the structure of another file list area provided in an embodiment of the present application; Figure 7B The target user can click on the switch control, i.e. the "file list" control here, to display the switch interface, which includes a thumbnail area on the left and the file names of the multimedia files on the right. The file list area is where the target files are arranged in a preset sort order, where the preset sort order can be the order of the first letters of the file names, or the order of the size of the files or in reverse order. After the switch interface is displayed, the first multimedia file and the second multimedia file currently being played in the multimedia content playback area will be automatically paused, and the target user can use the virtual button in the center of the screen, i.e. Figure 7B The triangle virtual button in the middle resumes the playback of the first playable file and stops displaying the switching interface.
[0083] It can be seen that by displaying the text names corresponding to the first multimedia content and the second multimedia content in the file list area, the user can select the multimedia content to be played through the file list area, thereby reducing the related operations of switching multimedia content and improving the playback efficiency.
[0084] In a possible embodiment, when the target area is a file list area, files stored in a preset storage directory are read, and files in a preset format under the preset storage directory are imported into the file list area.
[0085] Specifically, the preset storage directory here is a directory determined under the authorization of the target user, which can be a photo album directory of the first terminal, etc. The first terminal will automatically read the files stored in the storage directory and determine the preset format files as playable files. The preset formats here can be various formats of picture files and video files, such as PNG, MP4, AVI, etc.
[0086] The target user can also open the add interface by selecting an operation, and manually select the file selected by the target user as a playable file in the add interface. Here, the target user can select one or more files at a time, and determine the selected one or more files as playable files at the same time.
[0087] It can be seen that by reading the files stored in the preset storage directory and importing the preset format files under the preset storage directory into the file list area, the recognition efficiency of playable files is improved, thereby simplifying related operations and improving playback efficiency.
[0088] In a possible embodiment, the first terminal further includes a gyroscope, and in response to a rotation operation on the gyroscope, a play mode of the multimedia content play area is switched, where the play modes include a horizontal screen play mode and a vertical screen play mode.
[0089] Specifically, the play mode here can be determined by the first terminal according to the aspect ratio of the first multimedia content and the second multimedia content. The user can also change the play mode of the first multimedia content and the second multimedia content again during the play process by rotating the gyroscope. Specifically, the user can rotate the first terminal to achieve the rotation operation of the gyroscope. Exemplarily, when the target user rotates the first terminal placed horizontally to the vertical position, the horizontal screen play mode is adjusted to the vertical screen play mode; when the target user rotates the first terminal placed vertically to the horizontal position, the horizontal screen play mode is adjusted to the horizontal screen play mode.
[0090] See also Fig. 8A , Fig. 8A A schematic diagram of a vertical screen playback mode provided in an embodiment of the present application, wherein the first multimedia content and the second multimedia content are displayed in the first layer and the second layer respectively. The first layer and the second layer are arranged vertically. It can be seen that there is a difference in clarity between the first multimedia content and the second multimedia content. At this time, if the target user rotates the first terminal so that the placement direction of the first terminal changes to horizontal placement, the first terminal can adjust the playback mode to the horizontal screen playback mode. Please refer to Figure 8B , Figure 8B A playback schematic diagram of a horizontal screen playback mode is provided for an embodiment of the present application. At this time, the first layer and the second layer are changed to be distributed left and right. In addition, the direction of "end playback" and the playback direction of the first multimedia content and the second multimedia content will also be adjusted to horizontal display as the playback mode is adjusted to the horizontal screen playback mode.
[0091] Determine the play mode according to the aspect ratio of the multimedia content, specifically including, first, the frame height and frame width of the first multimedia content, the frame height of the first terminal here is used to characterize the number of single-column pixels of the multimedia file in the vertical direction, and the frame width is used to characterize the number of single-column pixels of the multimedia file in the horizontal direction. For example, the frame height of a 1920x1080 video multimedia file is 1080, and the frame width is 1920. Determine the play mode of the multimedia file according to the aspect ratio of the multimedia file. If the aspect ratio is greater than the preset ratio, the play mode of the multimedia file is determined to be the horizontal screen play mode, and if the aspect ratio is not greater than the preset ratio, the play mode of the multimedia file is determined to be the vertical screen play mode. Exemplarily, if the preset ratio is 4:3, and the aspect ratio of the multimedia file is 16:9, which is greater than the preset ratio, then the play mode of the multimedia file can be determined to be the horizontal screen play mode. If the preset ratio is 4:3, and the aspect ratio of the multimedia file is 4:3, which is not greater than the preset ratio, then the play mode of the multimedia file can be determined to be the vertical screen play mode, and the preset ratio here can be determined according to the aspect ratio of the touch screen of the first terminal.
[0092] It can be seen that the user can change the playback mode of multimedia content by rotating the gyroscope, which simplifies the related operations that require targeting control controls to change the playback mode of multimedia content and improves the efficiency of image quality comparison of playable files.
[0093] In a possible embodiment, the first multimedia content and the second multimedia content are the same media content.
[0094] Specifically, the first multimedia content and the second multimedia content may be the same content, and are played on the first layer and the second layer respectively by the first player and the second player. When the settings of the first player and the second player are different, different effects may be presented in the first layer and the second layer, so that the user can intuitively observe the difference in different playback effects brought about by different player settings.
[0095] By implementing the method in the above embodiment, it can be seen that the first terminal creates the first layer and the second layer in the multimedia content display area, and plays the first layer and the second layer with different effects in the first layer and the second layer according to different player parameters through the first player and the second player, thereby simplifying the relevant operations and improving the user's information acquisition efficiency. By setting the transparency of the first player and the second player, the first multimedia content and the second multimedia content are more in line with the user's viewing needs, further improving the user's information acquisition efficiency for the multimedia content. Through the first click operation, the relevant operations are further reduced and the playback efficiency is improved. The multimedia content to be played is selected through the file list area, and the files stored in the preset storage directory are read. Through the rotation operation of the gyroscope, the playback mode of the multimedia content is changed, thereby reducing the relevant operations of switching the multimedia content and improving the playback efficiency.
[0096] The above embodiment describes the case where the first multimedia content is played on the first layer and the second multimedia layer is played on the second layer. Based on this, when the areas of the first layer and the second layer do not need to be adjusted, the embodiment of the present application also provides another multimedia content playing method. Fig. 9 , Fig. 9 A flowchart of another multimedia content playback method provided in an embodiment of the present application can be based on Figure 1 The application scenario shown is implemented as follows Fig. 9 As shown, steps S901-S903 are included:
[0097] S901: In response to a user's selection operation on first multimedia content and second multimedia content, determine the play type of the first multimedia content and the second multimedia content.
[0098] Specifically, the playback mode here refers to the type of layer division in the multimedia content playback area, which may be the mask playback mode of the first layer and the second layer at different heights in the aforementioned embodiment. The parallel playback mode in this embodiment already includes only a single-column playback mode of a single layer, etc.
[0099] S902: If the playback mode includes a parallel playback type, a multimedia content playback area is displayed, and the multimedia content playback area includes a first layer, a second layer, and a target control; wherein a first player is created on the first layer, and a second player is created on the second layer. The first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0100] Specifically, the playback area here is used to play the target file. When there is only one target file to be played, all the space in the playback area can be used to play the target file. If there are multiple target files, the playback area needs to be divided into a first layer and a second layer, which are used to play different target files respectively. Different from the previous embodiment, in this embodiment, there is no need to divide the height of the first layer and the second layer, including that the first layer and the second layer will not overlap each other, but the first multimedia content and the complete content and the second multimedia content and the complete content will be played at the same time. Please refer to Fig.10 , Fig.10 A schematic diagram of a playback in a parallel comparison mode provided by an embodiment of the present application. As shown in the figure, the playback area for playing the target file is divided into a first layer and a second layer, which can be used to play different target files respectively.
[0101] S903: The first terminal adjusts the play state of the target file in response to the touch operation on the play state adjustment control, where the play state adjustment includes at least one of the following: zooming, progress adjustment, play pause, or play resume.
[0102] Specifically, the zoom pointer here refers to the reduction and enlargement of the multimedia content being played. Specifically, the user can click the zoom virtual button to zoom in or out, or use gesture instructions to zoom in by dragging two fingers away, or zoom out by dragging two fingers closer.
[0103] The progress adjustment here is for the multimedia content being played, mainly the adjustment of the playback progress of video-type multimedia content. Specifically, the user can click virtual buttons such as fast forward and fast rewind, drag the virtual progress bar to adjust, or use gesture commands to drag from left to right to fast forward and from right to left to rewind at any position on the touch screen.
[0104] The pause and resume operations here are for the multimedia content being played. Specifically, the user can click the virtual buttons for pause and resume to switch between the pause state and the play state, or double-click the touch screen to switch between the pause state and the play state.
[0105] In a possible embodiment, the method further includes: respectively obtaining an aspect ratio of the first multimedia file and an aspect ratio of the second multimedia file; if the aspect ratio of the first multimedia file and the aspect ratio of the second multimedia file are the same, determining a first layer and a second layer with the same area in the multimedia content playback area; if the aspect ratio of the first multimedia file and the aspect ratio of the second multimedia file are different, calculating the number of pixels of the first multimedia file and the number of pixels of the second multimedia file; obtaining an area ratio of the first multimedia file and an area ratio of the second multimedia file according to the number of pixels of the first multimedia file and the number of pixels of the second multimedia file, the area ratio being the ratio of the total area occupied in the multimedia content playback area; determining a first layer and a second layer in the multimedia content playback area according to the area ratio of the first multimedia file and the area ratio of the second multimedia file.
[0106] Specifically, when determining the first layer and the second layer in the multimedia content playback area, the first layer and the second layer of different areas can also be determined by fitting the aspect ratio and pixel count of the second multimedia file according to the first query. If the aspect ratio of the first multimedia file and the second multimedia file are the same, the first multimedia file and the second multimedia file are usually obtained by the same source file through different rendering methods or player processing. In this case, setting the area of the first layer and the second layer to be the same can achieve the best playback effect.
[0107] If the aspect ratio of the first multimedia file is different from that of the second multimedia file, it proves that the contents of the first multimedia file and the second multimedia file are also different. In this case, it is necessary to infer more reasonable areas of the first layer and the second layer based on the number of pixels of the first multimedia file and the number of pixels of the second multimedia file. Here, the area in the display area can be allocated based on the ratio of the number of pixels of the first multimedia file and the number of pixels of the second multimedia file. If the ratio of the number of pixels of the first multimedia file and the number of pixels of the second multimedia file is 2:1, it is determined that the area of the first multimedia file accounts for 2 / 3 and the area of the second multimedia file accounts for 1 / 3.
[0108] In addition, the area allocated in the display area can also determine the area of the corresponding layer according to the aspect ratio of the target file with a larger number of pixels, so that the determined layer is more in line with the aspect ratio of the target file, reducing the stretching of the target file. For example, if the number of pixels of the first multimedia file is large and the aspect ratio is 4:3. First, determine the area of the first layer of the first multimedia file. If the aspect ratio of the display area is 16:8, and the first layer and the second layer are distributed up and down. Then the area ratio of the first multimedia file is determined to be 37.5%, and the rest is determined as the second display area, and the area ratio of the second multimedia file is 62.5%, so that when the first multimedia file is played, the first area belongs to the aspect ratio of 4:3 when played vertically to fit the aspect ratio of the first multimedia file. In the second multimedia file played on the second layer, it is possible that the aspect ratio of the second layer does not match the second multimedia file, and the second multimedia file needs to be stretched.
[0109] It can be seen that when the aspect ratios of the first multimedia file and the second multimedia file are the same, the first layer and the second layer are determined according to the same area; when the aspect ratios of the first multimedia file and the second multimedia file are different, the area ratio of the first multimedia file and the area ratio of the second multimedia file are determined according to the number of pixels of the first multimedia file and the number of pixels of the second multimedia file, and then the first layer and the second layer are determined, thereby solving the problem of deterioration in stretched picture quality due to aspect ratio mismatch when the playable file is played on the first terminal, thereby improving the playback efficiency and playback effect.
[0110] The present application also provides a method for playing live content. Fig.11 , Fig.11 A flow chart of a live content playback method provided in an embodiment of the present application, such as Fig.11 As shown, including steps S1101-S1105:
[0111] S1101: The first terminal displays a target live content playback area, where the target live content playback area includes a first layer and a second layer; wherein the first layer is used to play a first live content of a first anchor account, and the second layer is used to play a second live content of a second anchor account, and the first layer is above the second layer.
[0112] Specifically, the first layer here is above the second layer, that is, the multimedia content displayed on the first layer above the overlapping part of the first layer and the second layer will block the multimedia content displayed on the second layer. The first layer is used to play the first live content of the first anchor account, and the second layer is used to play the second live content corresponding to the second anchor account. The first live content and the second live content here are the instant or pre-generated multimedia content such as videos, pictures, and audio generated by the first anchor end and the second anchor end according to the instructions of the first anchor and the second anchor. The first anchor end and the second anchor end here can be Figure 1 The second terminal shown in .
[0113] S1102: The first anchor terminal sends the first live broadcast content to the server.
[0114] S1103: The second anchor terminal sends the second live broadcast content to the server.
[0115] Specifically, the first anchor terminal and the second anchor terminal here are other terminals different from the first terminal. The first terminal, the first anchor terminal and the second anchor terminal are respectively connected to the server through their own networks, and can communicate through the server. The first anchor terminal and the second anchor terminal usually include input devices such as cameras and microphones to generate the first live content and the second live content by shooting and recording the first anchor and the second anchor respectively. In actual application scenarios, steps S1102 and S1103 can be performed multiple times in any order. This is only an example and should not be understood as a limitation on this application.
[0116] S1104: The first terminal obtains the first live broadcast content and the second live broadcast content sent by the server according to the user's instruction.
[0117] Specifically, the user can send instructions to the first terminal through a touch screen or other input device to determine the first anchor account and the second anchor account corresponding to the live broadcast content played on the first layer and the second layer; after the first terminal determines the first anchor account and the second anchor account, it sends a request to the server to obtain the first live broadcast content of the first anchor account and the second live broadcast content of the second anchor account, and receives the first live broadcast content sent from the first anchor terminal and the second live broadcast content sent from the second anchor terminal forwarded by the server. In this way, the first live broadcast content is played on the first layer of the first terminal and the second live broadcast content is played on the second layer.
[0118] Furthermore, if the first anchor account and the second anchor account are in an interactive relationship, after the user determines the live broadcast content played on the first layer as any one of the first live broadcast content and the second live broadcast content according to the first terminal, the live broadcast content corresponding to another anchor account with which the anchor account of the determined live broadcast content is in an interactive relationship is played on the second layer. That is to say, if the first anchor account and the second anchor account are in an interactive relationship, when the live broadcast content played on the first layer is determined by the user as the first live broadcast content, the first terminal directly obtains the second live broadcast content while obtaining the first live broadcast content from the server, and plays the first live broadcast content on the first layer and the second live broadcast content on the second layer.
[0119] S1105: In response to an interactive event for the first live content or the second live content, the first terminal adjusts a display area of at least one of the first layer or the second layer so that a target live content playback area simultaneously displays a portion of the first live content and a portion of the second live content.
[0120] Specifically, the interactive event here refers to the interactive event that the first terminal gives virtual gifts, sends comments, etc. to the anchor account of other terminals according to the instructions sent by the user through input devices such as touch screens, thereby affecting the live broadcast content generated by the terminal of the interacted anchor account, such as adding the comments sent by the first terminal to the live broadcast content, increasing the virtual points and virtual popularity of the interacted anchor account.
[0121] While the first terminal affects the live broadcast content of the interacted anchor account, the first terminal simultaneously adjusts the display area of at least one of the first layer or the second layer. For example, when the first terminal executes an interactive event for the first anchor account according to the instruction sent by the user through an input device such as a touch screen, the display area of the first layer of the first live broadcast content of the first anchor account is adjusted according to the interactive event. For example, if the interactive event is sending a comment, the display area of the first layer is increased by 10%, and if the interactive event is giving a virtual gift, the display area of the first layer is increased by 30%.
[0122] It can be seen that by playing different live content through the first layer and the second layer, the live screen cannot be fully displayed when the user is watching the live content. The user can increase the live content of interest through interactive events, which promotes the interaction between the audience and the anchor and increases the interest of the user in watching the live content.
[0123] In a possible embodiment, the target live content playback area also includes a first area, a second area and a target control, the first area corresponds to the display area of the first layer, the second area corresponds to the display area of the second layer, the target control is located between the first area and the second area, and in response to interactive events for the first live content or the second live content, the display area of at least one of the first layer or the second layer is adjusted, including: in response to a drag operation on the target control, displaying a live gift giving interface, the live gift giving interface includes at least one interactive gift; in response to at least one interactive gift giving operation for the first anchor account or the second anchor account, moving the target control to increase the area of the first area or the second area.
[0124] Specifically, the target live content playback area here is the area where the touch screen or display screen of the first terminal can display the live content, which is divided into a first area and a second area. The first area and the second area respectively play the first live content of the first layer and the second live content of the second layer through different playback transparency. Different live content can be displayed in different areas. For example, the first live content is played at a higher playback transparency in the first layer, and the second live content is played at a higher transparency in the second layer. As a result, the first area mainly plays the first live content, and the user can see part of the second live content through the first live content; the second area mainly plays the second live content, and the user can see part of the first live content through the second live content.
[0125] The user can use the target control to instruct the first terminal to execute an interactive event for the first live broadcast content or the second live broadcast content. For example, according to the first terminal, virtual gifts or comments are given to the first live broadcast account and the second live broadcast account, thereby increasing or changing the area of the first area and the second area, thereby observing the entire screen of the first live broadcast content or the entire screen of the second live broadcast content.
[0126] It can be seen that the user can use the target control to indicate that the first terminal executes an interactive event for the first live content or the second live content, which reduces the related operations of the user's interaction with the anchor and improves the interaction efficiency. At the same time, the area of the first area and the second area is changed according to the interactive event, which further promotes the interaction between the audience and the anchor and improves the user's interest in watching the live content.
[0127] In a possible embodiment, the interactive gift is a default gift or a random gift, and the method further includes: in response to a drag operation on a target control, sending a default gift or a random gift to a first anchor account or a second anchor account corresponding to the opposite direction of the drag operation, and increasing the area of the first area or the area of the second area.
[0128] Specifically, the default gift here is a gift type determined by the user, and the random gift is any one of a plurality of virtual gift types, for example, the gift type here may be virtual flowers, virtual sports cars, virtual airplanes, etc. The user may change the area of the first area or the second area according to the interactive event, specifically, by dragging the target control, and the first terminal executes the interactive event to the first anchor account or the second anchor account corresponding to the opposite direction of the dragging operation.
[0129] Exemplarily, if the user drags the target control in the direction of the first area, an interactive event is executed towards the second anchor account, and the area of the second area is increased while the area of the first area is reduced; if the user drags the target control in the direction of the second area, an interactive event is executed towards the first anchor account, and the area of the first area is increased while the area of the second area is reduced.
[0130] It can be seen that through the operation of the user dragging the target control, the first terminal adjusts the area of the corresponding direction, and at the same time sends a default gift or a random gift to the corresponding anchor account, which further simplifies the operation and improves the interaction efficiency between the user and the anchor.
[0131] In a possible embodiment, when the first live broadcast content includes a first anchor object and the second live broadcast content includes a second anchor object, the target live broadcast content playback area corresponds to a live broadcast interactive event, and the method further includes: in response to not detecting the first anchor object from the first live broadcast content and / or not detecting the second anchor object from the second live broadcast content, indicating that the live broadcast interactive event has ended.
[0132] Specifically, the first anchor object here refers to the first anchor in the first live content, and the second anchor object refers to the second anchor in the second live content. The failure to detect the first anchor object from the first live content, and / or the failure to detect the second anchor object from the second live content, means that the area of the first area for playing the first live content or the second area for playing the second live content is equal to the area of the target live content playback area. The first terminal executes the entire screen of the first live content or the second live content of the interactive event according to the user's instructions. The above situation may be due to the user's instructions causing the area of the first area or the second area to increase to the upper limit. At this time, since the first terminal only displays the first live content or the second live content, it indicates that the live interactive event is over, and then the first area and the second area can be merged into one area, and the live content corresponding to the detectable anchor object is played in the merged area.
[0133] It can be seen that by detecting the first anchor object and the second anchor object in the first live content and the second live content, when only one anchor object can be detected, it indicates that the live interactive event has ended. The first terminal can only play the live content corresponding to the only anchor object, which increases the interactive content and improves the fun of the interaction between the user and the anchor.
[0134] Based on the description of the above configuration method embodiment, the present application also provides a multimedia content playback device 1200, which can be a computer program (including program code) running in a terminal. The multimedia content playback device 1200 can be applied to Figure 1 See the application scenario shown in Fig.12 , Fig.12 The structure diagram of a multimedia content playback device provided in an embodiment of the present application is as follows. The multimedia content playback device 1200 includes:
[0135] The first display unit 1201 is used to display a multimedia content playback area, and the multimedia content playback area includes a first layer and a second layer; wherein the first layer is created with a first player, and the second layer is created with a second player, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0136] In a possible embodiment, the multimedia content playback area includes a first area and a second area, the first layer plays the first multimedia content in the first area according to a first transparency parameter, the first layer plays the first multimedia content in the second area according to a second transparency parameter, the second layer plays the second multimedia content in the first area according to a third transparency parameter, and the second layer plays the second multimedia content in the second area according to a fourth transparency parameter; wherein the first transparency parameter is less than or equal to the third transparency parameter, and the second transparency parameter is greater than the fourth transparency parameter.
[0137] In a possible embodiment, the multimedia content playback area also includes a target control, the target control belongs to the control layer, the control layer is above the first layer, and the first display unit 1201 is further specifically used to: in response to a drag operation on the target control, adjust the display area of at least one of the first layer or the second layer so that the multimedia content playback area simultaneously displays part of the first multimedia content and part of the second multimedia content.
[0138] In a possible embodiment, the multimedia content playback device 1200 further includes a switching unit 1202 configured to switch the first multimedia content or the second multimedia content in response to a first click operation on the target area.
[0139] In a possible embodiment, the target area is the first layer or the second layer; or the target area is a file list area, and the file list area is used to display the file name corresponding to the first multimedia content or the second multimedia content.
[0140] In a possible embodiment, when the target area is a file list area, the first display unit 1201 is further specifically configured to: read files stored in a preset storage directory, and import files in a preset format under the preset storage directory into the file list area.
[0141] In a possible embodiment, the first terminal further includes a gyroscope, and the switching unit 1202 is further specifically used to: in response to a rotation operation on the gyroscope, switch a play mode of the multimedia content play area, where the play modes include a horizontal play mode and a vertical play mode.
[0142] In a possible embodiment, the first multimedia content and the second multimedia content are the same media content.
[0143] Based on the description of the above configuration method embodiment, the present application also provides a live content playback device 1300, which can be a computer program (including program code) running in a terminal. The live content playback device 1300 can be applied to Figure 1 See the application scenario shown in Fig.13 , Fig.13 The structure diagram of a live content playback device provided in an embodiment of the present application is as follows. The live content playback device 1300 includes:
[0144] The second display unit 1301 is used to display the target live content playback area, which includes a first layer and a second layer; wherein the first layer is used to play the first live content of the first anchor account, and the second layer is used to play the second live content of the second anchor account, and the first layer is above the second layer;
[0145] Responding unit 1302: used to adjust the display area of at least one of the first layer or the second layer in response to an interactive event for the first live content or the second live content, so that the target live content playback area simultaneously displays part of the first live content and part of the second live content.
[0146] In a possible embodiment, the target live content playback area also includes a first area, a second area and a target control, the first area corresponds to the display area of the first layer, the second area corresponds to the display area of the second layer, the target control is located between the first area and the second area, and in response to an interactive event for the first live content or the second live content, the display area of at least one of the first layer or the second layer is adjusted. The response unit 1302 is also specifically used to: in response to a drag operation on the target control, display a live gift giving interface, the live gift giving interface includes at least one interactive gift; in response to at least one interactive gift giving operation for the first anchor account or the second anchor account, move the target control to increase the area of the first area or the second area.
[0147] In a possible embodiment, the interactive gift is a default gift or a random gift, and the response unit 1302 is further specifically used to: in response to a drag operation on a target control, send a default gift or a random gift to the first anchor account or the second anchor account corresponding to the opposite direction of the drag operation, and increase the area of the first area or the area of the second area.
[0148] In a possible embodiment, when the first live broadcast content includes a first anchor object and the second live broadcast content includes a second anchor object, the target live broadcast content playback area corresponds to a live broadcast interactive event, and the response unit 1302 is further specifically used to: in response to not detecting the first anchor object from the first live broadcast content and / or not detecting the second anchor object from the second live broadcast content, indicate that the live broadcast interactive event has ended.
[0149] Based on the description of the above method embodiment and device embodiment, please refer to Fig.14 , Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.14 As shown, the electronic device 1400 described in this embodiment includes a processor 1401, a memory 1402, a communication interface 1403, and one or more programs. The one or more programs are stored in the memory in the form of application code and are configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0150] A multimedia content playback area is displayed, and the multimedia content playback area includes a first layer and a second layer; wherein a first player is created on the first layer, a second player is created on the second layer, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
[0151] In a possible embodiment, the multimedia content playback area includes a first area and a second area, the first layer plays the first multimedia content in the first area according to a first transparency parameter, the first layer plays the first multimedia content in the second area according to a second transparency parameter, the second layer plays the second multimedia content in the first area according to a third transparency parameter, and the second layer plays the second multimedia content in the second area according to a fourth transparency parameter; wherein the first transparency parameter is less than or equal to the third transparency parameter, and the second transparency parameter is greater than the fourth transparency parameter.
[0152] In a possible embodiment, the multimedia content playback area also includes a target control, the target control belongs to a control layer, and the control layer is above the first layer. The method also includes: in response to a drag operation on the target control, adjusting the display area of at least one of the first layer or the second layer so that the multimedia content playback area simultaneously displays part of the first multimedia content and part of the second multimedia content.
[0153] In a possible embodiment, the method further includes: in response to a first click operation on the target area, switching the first multimedia content or the second multimedia content.
[0154] In a possible embodiment, the target area is the first layer or the second layer; or the target area is a file list area, and the file list area is used to display the file name corresponding to the first multimedia content or the second multimedia content.
[0155] In a possible embodiment, when the target area is a file list area, the method further includes: reading files stored in a preset storage directory, and importing files in a preset format under the preset storage directory into the file list area.
[0156] In a possible embodiment, the first terminal further includes a gyroscope, and the method further includes: in response to a rotation operation on the gyroscope, switching a play mode of the multimedia content play area, the play mode including a horizontal screen play mode and a vertical screen play mode.
[0157] In a possible embodiment, the first multimedia content and the second multimedia content are the same media content.
[0158] A target live content playback area is displayed, where the target live content playback area includes a first layer and a second layer; wherein the first layer is used to play a first live content of a first anchor account, and the second layer is used to play a second live content of a second anchor account, and the first layer is above the second layer; in response to an interactive event for the first live content or the second live content, a display area of at least one of the first layer or the second layer is adjusted so that the target live content playback area simultaneously displays part of the first live content and part of the second live content.
[0159] In a possible embodiment, the target live content playback area also includes a first area, a second area and a target control, the first area corresponds to the display area of the first layer, the second area corresponds to the display area of the second layer, the target control is located between the first area and the second area, and in response to interactive events for the first live content or the second live content, the display area of at least one of the first layer or the second layer is adjusted, including: in response to a drag operation on the target control, displaying a live gift giving interface, the live gift giving interface includes at least one interactive gift; in response to at least one interactive gift giving operation for the first anchor account or the second anchor account, moving the target control to increase the area of the first area or the second area.
[0160] In a possible embodiment, the interactive gift is a default gift or a random gift, and the method further includes: in response to a drag operation on a target control, sending a default gift or a random gift to a first anchor account or a second anchor account corresponding to the opposite direction of the drag operation, and increasing the area of the first area or the area of the second area.
[0161] In a possible embodiment, when the first live broadcast content includes a first anchor object and the second live broadcast content includes a second anchor object, the target live broadcast content playback area corresponds to a live broadcast interactive event, and the method further includes: in response to not detecting the first anchor object from the first live broadcast content and / or not detecting the second anchor object from the second live broadcast content, indicating that the live broadcast interactive event has ended.
[0162] Exemplarily, the electronic device may include but is not limited to a processor, a memory, a communication interface, and one or more programs, and may also include memory, a power supply, an application user terminal module, etc. Those skilled in the art will appreciate that the schematic diagram is merely an example of an electronic device and does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or different components.
[0163] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device in an information processing device, an information sending device, or an information receiving device, for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-volatile Memory), such as at least one disk memory; optionally, it can also be at least one computer storage medium located away from the aforementioned processor. In one embodiment, the processor can load and execute one or more instructions stored in the computer storage medium to implement the corresponding steps of the above-mentioned method for comparing the image quality of playable files.
[0164] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A multimedia content playing method, characterized in that: Applied to a first terminal, the first terminal includes a touch screen, and the method includes: Obtaining the aspect ratio of the first multimedia content and the aspect ratio of the second multimedia content; if the aspect ratio of the first multimedia file and the aspect ratio of the second multimedia content are the same, determining a first layer and a second layer with the same area in the multimedia content playback area; if the aspect ratio of the first multimedia content and the aspect ratio of the second multimedia content are different, calculating the number of pixels of the first multimedia content and the number of pixels of the second multimedia content; obtaining the area ratio of the first multimedia content and the area ratio of the second multimedia content according to the number of pixels of the first multimedia content and the number of pixels of the second multimedia content, where the area ratio is the ratio of the total area occupied in the multimedia content playback area; determining the first layer and the second layer in the multimedia content playback area according to the area ratio of the first multimedia content and the area ratio of the second multimedia content; A multimedia content playback area is displayed, wherein the multimedia content playback area includes a first layer and a second layer; wherein a first player is created on the first layer, a second player is created on the second layer, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
2. The method according to claim 1, characterized in that The multimedia content playback area includes a first area and a second area, the first layer plays the first multimedia content in the first area according to a first transparency parameter, the first layer plays the first multimedia content in the second area according to a second transparency parameter, the second layer plays the second multimedia content in the first area according to a third transparency parameter, and the second layer plays the second multimedia content in the second area according to a fourth transparency parameter; wherein the first transparency parameter is less than or equal to the third transparency parameter, and the second transparency parameter is greater than the fourth transparency parameter.
3. The method according to claim 1, characterized in that The multimedia content playback area also includes a control layer, and the control layer includes a target control. In response to a drag operation on the target control, a display area of at least one of the first layer or the second layer is adjusted.
4. The method according to any one of claims 1 to 3, characterized in that: The multimedia content playback area also includes a target area, and the method further includes: In response to a first click operation on the target area, the second multimedia content is played through the first player on the first layer, and the first multimedia content is played through the second player on the second layer.
5. The method according to claim 4, characterized in that The target area is the first layer or the second layer; or the target area is a file list area, and the file list area is used to display the file name corresponding to the first multimedia content or the second multimedia content.
6. The method according to claim 5, characterized in that In the case where the target area is a file list area, the method further includes: Read the files stored in the preset storage directory, and import the files in the preset format under the preset storage directory into the file list area.
7. The method according to claim 1, characterized in that The first terminal further includes a gyroscope, and the method further includes: In response to the rotation operation of the gyroscope, the play mode of the multimedia content play area is switched, and the play mode includes a horizontal screen play mode and a vertical screen play mode.
8. The method according to claim 1, characterized in that The first multimedia content and the second multimedia content are the same media content.
9. A method for playing live content, characterized in that: The method comprises: Display a target live content playback area, wherein the target live content playback area includes a first layer and a second layer; wherein the first layer is used to play a first live content of a first anchor account, and the second layer is used to play a second live content of a second anchor account, and the first layer is above the second layer; In response to an interactive event for the first live content or the second live content, adjusting a display area of at least one of the first layer or the second layer so that the target live content playback area simultaneously displays a portion of the first live content and a portion of the second live content; The target live content playback area includes a first area and a second area, wherein the playback transparency of the first layer playing the first live content in the first area is less than or equal to the playback transparency of the second layer playing the second live content in the first area, and the playback transparency of the first layer playing the first live content in the second area is greater than the playback transparency of the second layer playing the second live content in the second area; The target live content playback area further includes a first area, a second area and a target control, wherein the target control is located between the first area and the second area; and in response to an interactive event for the first live content or the second live content, adjusting a display area of at least one of the first layer or the second layer includes: In response to a drag operation on the target control, displaying a live gift giving interface, wherein the live gift giving interface includes at least one interactive gift; In response to a drag operation on the target control, the interactive gift is presented to the first anchor account or the second anchor account corresponding to the opposite direction of the drag operation, and the area of the first area or the area of the second area is increased.
10. The method according to claim 9, characterized in that When the first live broadcast content includes a first anchor object, and the second live broadcast content includes a second anchor object, and the target live broadcast content playback area corresponds to a live broadcast interactive event, the method further includes: In response to not detecting the first anchor object from the first live content, and / or not detecting the second anchor object from the second live content, it is indicated that the live interactive event has ended.
11. A multimedia content playback device, characterized in that: The multimedia content playback device is used to execute the multimedia content playback method, belongs to a first terminal, the first terminal includes a touch screen, and the device is used to execute the method according to any one of claims 1 to 8, and the device includes: Display unit: used to display a multimedia content playback area, the multimedia content playback area includes a first layer and a second layer; wherein the first layer is created with a first player, the second layer is created with a second player, the first layer is above the second layer, the first player is used to play the first multimedia content, and the second player is used to play the second multimedia content.
12. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Interface display method, electronic equipment and medium
CN111381924A
Video superposition information updating method and device thereof, electronic equipment and storage medium
CN112929684A
Display method and device and electronic equipment
CN117193914A