Media content playback method and apparatus, and terminal device

By obtaining and using the playback status information of the media content to generate an independent second playback screen, the problem of playback mode coupling in the prior art is solved, achieving seamless switching and reducing iteration costs.

WO2024193552A1PCT designated stage expired Publication Date: 2024-09-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082488
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-19
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the existing technology, there is technical coupling between the second playback mode and the first playback mode, which affects the first playback mode during iterative updates, and cannot effectively support horizontal sliding of the page to switch videos or vertical sliding of data streams, which increases the number of iterations. cost.

Method used

By obtaining the playback status information of the media content, including capacity information and specification information, an independent playback screen corresponding to the second playback mode is generated, and the playback progress is determined based on the media content information to achieve seamless switching between the two modes and avoid hiding the controls. and display operations, reducing technical coupling.

Benefits of technology

The decoupling of the second playback mode and the first playback mode is achieved, ensuring that the user experience is not affected, reducing iteration costs, and reducing development complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082488_26092024_PF_FP
    Figure CN2024082488_26092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a media content playback method and apparatus, and a terminal device. The method comprises: in response to an operation instruction for switching from a first playback mode to a second playback mode triggered for currently played media content, acquiring playback state information corresponding to the media content; according to capacity information and specification information, generating a second playback picture corresponding to the second playback mode; determining a playback progress of the media content according to media content information and a storage player instance; and continuing to play back the media content according to the playback progress in the second playback picture.
Need to check novelty before this filing date? Find Prior Art

Description

Media content playing method, device and terminal equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to the Chinese patent application with application number 202310275045.9 and application date March 20, 2023. The disclosed content of the Chinese patent application is hereby introduced as a whole into this application. Technical Field

[0003] The embodiments of the present disclosure relate to the field of computer technology, and more particularly to a method, apparatus, and terminal device for playing media content. Background Art

[0004] The media content playback mode may include different viewing modes, and users can switch between different playback modes as needed.

[0005] Summary of the Invention

[0006] The present disclosure provides a method, apparatus, and terminal device for playing media content.

[0007] In a first aspect, the present disclosure provides a method for playing media content, comprising:

[0008] In response to an operation instruction triggering a switch from a first playback mode to a second playback mode for currently playing media content, obtaining playback status information corresponding to the media content, wherein the playback status information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content;

[0009] generating a second playback screen corresponding to a second playback mode according to the capacity information and the specification information;

[0010] Determine the playback progress of the media content based on the media content information and the storage player instance;

[0011] In the second playback screen, the media content continues to play according to the playback progress.

[0012] In a second aspect, the present disclosure provides a media content playback device, the device comprising:

[0013] a processing module, configured to, in response to an operation instruction triggered by switching from a first playback mode to a second playback mode for currently playing media content, obtain playback status information corresponding to the media content, wherein the playback status information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content;

[0014] A generating module, configured to generate a second playback picture corresponding to a second playback mode according to the capacity information and the specification information;

[0015] A determination module, configured to determine the playback progress of the media content based on the media content information and the stored player instance;

[0016] The display module is used to continue playing the media content according to the playing progress in the second playing screen.

[0017] According to a third aspect, a terminal device is provided, the terminal device comprising:

[0018] Memory for storing computer programs;

[0019] A processor, configured to implement the media content playback method according to any one of the embodiments of the first aspect when executing a program stored in the memory;

[0020] The display is used to continue playing the media content according to the playback progress in the second playback screen.

[0021] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a terminal device, a media content playback method as described in any embodiment of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] FIG1 is a schematic diagram of a playback screen corresponding to a non-focus mode provided by the present disclosure;

[0023] FIG2 is a schematic diagram of a playback screen corresponding to the focus mode provided by the present disclosure;

[0024] FIG3 is a flow chart of a method for playing media content provided by an embodiment of the present disclosure;

[0025] FIG4 is a schematic structural diagram of a media content playback device provided by an embodiment of the present disclosure;

[0026] FIG5 is a schematic structural diagram of a terminal device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0028] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0029] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the terminal device, application, server, or storage medium, that performs the operations of the disclosed technical solution, based on the prompt message.

[0030] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the terminal device.

[0031] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0032] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0033] To facilitate understanding of the embodiments of the present disclosure, further explanation will be given below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present disclosure.

[0034] Before introducing the embodiments of the present disclosure, the following contents are introduced first:

[0035] The media content playback mode can include different viewing modes. For example, in one viewing mode, all interactive elements on the page are included, such as search controls, search boxes, like controls, comment controls, etc. Compared with the above viewing modes, there may also be another viewing mode, such as switching the screen to an unobstructed state, displaying only a few interactive buttons in the non-media content area of ​​the page, that is, hiding as many elements that obstruct the screen as possible, so that users are in an immersive content consumption mode.

[0036] As described above, among the different viewing (playback) modes, one playback mode, for example, referred to as the first playback mode, is specifically shown in FIG1 . The page displayed in FIG1 includes numerous controls, such as a search control 101, a search box 102, a settings control 103, a like control 104, a comment control 105, and a favorites control 106. Another playback mode, for example, referred to as the second playback mode, is shown in FIG2 , which may include a "small window mode" icon control 201, a progress bar 202, a speed control 203, a pause control 204, and an exit control 205. In the second playback mode, the controls shown in FIG1 are largely hidden, allowing the user to immerse themselves in a focused viewing experience. Of course, FIG2 may also include fast forward and rewind functions (not shown in FIG2 ) to enhance the user's viewing experience in the second playback mode. As can be seen from FIG1 and FIG2 , there are certain differences in the controls and page layout between the second playback mode and the first playback mode. In the related art, the switching of the second playback mode is completed by showing and hiding the page elements, which can also achieve continuous playback of the picture and simple differentiated interaction. However, for the demand of switching videos by sliding the page horizontally or using independent vertical sliding to switch data streams in the second playback mode, there is no simple and effective support solution. Moreover, if the controls are changed on the same page according to different viewing modes of media content, it is bound to have a significant impact on the viewing mode of media content. For example, if the user switches from the first playback mode to the second playback mode, that is, some controls in the first playback mode need to be hidden, and some controls in the second playback mode need to be displayed. Once the technology continues to iterate and update, the changes made will not only be these contents, but the changes may be even greater.

[0037] As far as current technology is concerned, the second playback mode and the first playback mode are technically coupled, but as technology continues to iterate and update, the difference between the second playback mode and the first playback mode will become greater and greater. When differentiated adjustments are performed on the controls in the second playback mode (compared to the first playback mode), it is bound to have a greater impact on the first playback mode.

[0038] To prevent unnecessary impacts on subsequent technology iterations, a new technical solution is needed. This decouples the second playback mode from the first, allowing each mode to use separate, independent pages. Even if further technical adjustments are made to the second playback mode, this will not affect the structure and data of the first. Furthermore, the cost of subsequent iterations of the second playback mode will be much lower.

[0039] To facilitate understanding of the embodiments of the present disclosure, the following specific embodiments will be further explained in conjunction with the accompanying drawings, which do not constitute a limitation of the embodiments of the present disclosure.

[0040] FIG3 is a flow chart of a method for playing media content provided by an embodiment of the present disclosure. The method includes:

[0041] In operation S310 , in response to an operation instruction for switching from a first play mode to a second play mode triggered by currently played media content, play status information corresponding to the media content is acquired.

[0042] Specifically, in some embodiments, the operation instruction may include executing an operation of zooming in / out on the first playback screen of the media content, wherein the media content includes but is not limited to video sources, pictures, and the like.

[0043] For example, when a user zooms in on the image of the currently playing media content in the first playback screen, the terminal device determines, in response to the operation instruction, that the user desires to switch the currently playing media content from the first playback mode to the second playback mode. Therefore, the terminal device first obtains playback status information corresponding to the media content. The playback status information may include, for example, capacity information of the first playback screen corresponding to the first playback mode, specification information of the container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content.

[0044] In some embodiments, the capacity information may include, for example, the width, height, and position information of the TextureView (texture view) corresponding to the first playback screen on the screen, such as the coordinate data on the x-axis and y-axis, where the coordinate origin is a preset position on the screen. Specification information, such as the width and height of the container view (view), and the position information of the container on the screen. Similarly, the position information may also include the coordinate data on the x-axis and y-axis. The reason for obtaining these two types of information is to facilitate the subsequent construction of the second playback screen corresponding to the second playback mode, so that the second playback screen can be aligned with the first playback screen. The shared storage player instance is used to obtain the playback progress of the current media content, and to ensure that when the media content is played on the second playback screen, it can be synchronized with the media content played on the first playback screen. The media content information may include the source data information of the media content currently being played, such as the name of the media content, the author's name, the background music in the media content, the media content, and other information.

[0045] After obtaining this information and storing it in the Intent parameter (Android uses the special class Intent to switch between Activities), the information is passed through the Intent to the Activity corresponding to the second playback page (Activity means "activity" in Chinese and is one of the four major components in the Android system. In mobile application development, Android represents the screen displayed on the phone, referring to a complete page that occupies the entire screen).

[0046] In operation S320, a second play screen corresponding to the second play mode is generated according to the capacity information and the specification information.

[0047] Specifically, as described above, obtaining capacity and specifications information is used to create a second playback screen aligned with the first. That is, the specifications of the second playback screen are created based on the scale of the first. This ensures that even after switching to the second playback mode, the media content viewed remains consistent, ensuring a consistent viewing experience.

[0048] Specifically, it is necessary to determine the equivalent capacity information corresponding to the second playback mode based on the capacity information corresponding to the first playback mode, and create a structure view (TextureView) corresponding to the second playback mode based on the equivalent capacity information. Furthermore, it is necessary to determine the equivalent specification information corresponding to the second playback mode based on the specification information corresponding to the first playback mode, and create a container corresponding to the second playback mode based on the equivalent specification information. Finally, the second playback screen is created based on the TextureView corresponding to the second playback mode and the container corresponding to the second playback mode.

[0049] In operation S330 , the playback progress of the media content is determined according to the media content information and the stored player instance.

[0050] Specifically, as described above, media content information refers to the source data of the media content being played when the operation command is triggered. Based on this source data, the media content can be found. Then, based on the storage player instance, the playback progress of the media content at the time the operation command is triggered can be determined. Based on these two parameters, the playback progress of the media content being played when the operation command is triggered can be determined.

[0051] In operation S340 , the media content is continuously played according to the play progress in the second play screen.

[0052] Specifically, after determining the media content that needs to be played in the second playback screen and determining the playback progress, the media content can be directly continued to be played according to the playback progress. When playing the media content in the second playback screen according to the playback progress, it is already in the second playback mode. That is, it has switched from the first playback mode to the second playback mode. Considering that the first playback mode and the second playback mode use two different playback screens, that is, different page technologies are used to create the playback screen, the coupling of the two playback mode technologies is avoided. Even if the technology of the first playback mode / second playback mode is iteratively updated later, because the technologies used by the two are not coupled, it will not affect the other technology that needs to be iteratively updated.

[0053] Furthermore, because different pages are used, there is no need to hide the controls for one mode and then show the controls for another mode when switching between modes. This greatly reduces the amount of operational logic required, saving developers unnecessary trouble.

[0054] The media content playback method provided by the disclosed embodiment obtains playback status information corresponding to the media content in response to an operation instruction triggered by switching from a first playback mode to a second playback mode for the currently playing media content. The playback status information includes capacity information of the first playback screen corresponding to the first playback mode, specification information of the container carrying the first playback screen, a shared storage player instance, and media content information. Based on the capacity information and specification information, a second playback screen corresponding to the second playback mode is generated. In other words, the first playback screen and the second playback screen are identical, so that even if the mode is switched, the screen viewed by the user does not change, thereby avoiding affecting the user's viewing experience. Then, based on the media content information and the storage playback instance, the playback progress of the media content is determined. Then, in the second playback screen, the media content continues to be played according to the current playback progress. Throughout the entire process, the first playback mode and the second playback mode use different independent playback screens, and there is no coupling relationship. Therefore, while ensuring seamless switching between the two playback modes, the impact of different data flow methods during technical iteration is reduced.

[0055] Optionally, the playback status information also includes media content frame information of the media content frame being played when the operation instruction is triggered. A media content frame refers to a frame of media content. For example, if the media content is a video, the media content frame refers to the video frame. Media content frame information refers to video frame information. Video frame information may include, but is not limited to, image information corresponding to the video frame, i.e., the content displayed in the frame.

[0056] Considering that when the media content switches from the first playback screen to the second playback screen, it takes a certain amount of time to create the second playback screen. During this process, the screen will be black, which will cause a less user-friendly experience.

[0057] Therefore, the present disclosure may also include the following method operations:

[0058] Based on the media content frame information, the media content frame is displayed as the first frame.

[0059] Specifically, when the user triggers the switch from the first playback mode to the second playback mode, the system simultaneously records the currently playing media content frame and retains it. Before the second playback screen is created, the media content frame is drawn as the first frame and displayed in the activity corresponding to the second playback mode. After the second playback screen is created and the media content playback progress is determined, the media content continues to be displayed in the second playback screen.

[0060] Further optionally, it is considered that when switching the playback mode, there may be a "transition animation effect", such as sliding in sideways, sliding up, or gradual appearance. However, in the present disclosure, it is considered that the playback mode switching is completed without the user's "perception", which will provide a better user experience. Therefore, based on the media content frame information, when the media content frame is displayed as the first frame, it includes: displaying the first frame based on the media content frame information without any pre-configured playback effect.

[0061] Specifically, the system prohibits the execution of playback action commands corresponding to pre-configured playback modes. These playback action commands, such as the aforementioned slide-in, slide-up, or fade-in commands, prevent the animation effects corresponding to these playback action commands from occurring when the media content frame is introduced for display.

[0062] Because once the user notices that the media content frame appears in the form of some kind of animation effect, they will immediately realize that the media content has switched to another playback mode. If there is no animation effect and the current media content frame is simply displayed, the user will visually believe that "the media content is continuing to play." The creation of the second playback screen and the other preparations for the second playback mode take very little time. Therefore, if only the media content frame is used as the first frame and then naturally switches to the second playback mode to continue playing the media content, from a visual perspective, the user will not be aware of it, which can also ensure that the user's viewing experience is not affected.

[0063] In a specific embodiment, there may be certain differences in the playback images between the first playback mode and the second playback mode. For example, the first playback mode and the second playback mode are configured with different interaction methods and / or different interaction controls.

[0064] Therefore, in order to improve the user's viewing experience, the method also includes configuring interactive controls corresponding to the second playback mode in the second playback screen before continuing to play the media content according to the playback progress, and displaying the interactive controls at a preset position in the second playback screen.

[0065] In some embodiments, the interactive controls include one or more of the following: a control for accelerating playback progress, a control for retarding playback progress, a speed control, and a control for playing media content in a reduced window of a preset size.

[0066] Further optionally, when the media content is media content in a media content set, the interactive control further includes an identification control for indicating a playback progress, and the identification control is used to indicate the playback progress of each media content in the media content set.

[0067] As mentioned above, Figure 1 shows a structural diagram of the playback screen in the first playback mode. Figure 2 shows a structural diagram of the playback screen in the second playback mode. In order to facilitate users to enter the "immersive content consumption mode", the interactive controls included in Figure 1, such as comments, likes, media content information introduction, etc., will be hidden as much as possible in the playback screen of the second playback mode. In Figure 2, controls for playing media content in a reduced window of a preset size can be displayed, which is convenient for users to watch media content through a small window. The playback progress of media content can also be displayed. In particular, when the media content is media content in a media content set, the interactive control can also include an identification control for indicating the playback progress. The identification control is used to indicate the playback progress of each media content in the media content set. Please refer to Figure 2 for details.

[0068] As described above, the first play mode and the second play mode have different interactive controls displayed on the play screen, as well as other differences, such as interaction methods.

[0069] In some embodiments, for example, when the media content is media content in a media content collection, the method further includes:

[0070] In response to a trigger instruction of sliding along a first preset direction executed on the second play screen, other media content in the media content set except the currently played media content is played.

[0071] Specifically, the first preset direction is, for example, swiping left / right. Then, when the media content is currently in the second playback mode, in response to a trigger instruction of a user swiping left or right, other media content in the media content set other than the currently playing media content can be played. For example, swiping left plays other media content immediately to the left of the currently playing media content, and swiping right plays other media content immediately to the right of the currently playing media content.

[0072] In an optional embodiment, the method may further include:

[0073] In response to a trigger instruction of sliding along a second preset direction executed on the second playback screen, media content associated with the currently played media content is played.

[0074] That is, when the media content is currently in the second play mode, in response to a trigger instruction of sliding along the second preset direction executed on the second play screen, media content associated with the currently played media content is played.

[0075] The media content with a related relationship mentioned here may include media content that has a related relationship with the current media content. For example, media content belonging to the same theme, or media content belonging to the same type, or media content belonging to the same author, etc. Of course, the media content with a related relationship may also include media content belonging to the same media content set as the current media content.

[0076] In an optional embodiment, the above content describes entering the second play mode, and the operations performed or displayed content in the second play mode. The following further describes how to exit the second operation mode. For details, please refer to the following method:

[0077] In response to an action opposite to the operation instruction performed in the second play screen, the second play mode is exited.

[0078] Specifically, in one possible manner, as described above, the operation instruction includes executing an operation of zooming in / out on the image of the media content in the first playback screen.

[0079] Assume that if the operation of enlarging the image of the media content in the first play screen is performed to switch to the second operation mode, then the operation of reducing the image of the media content is performed to exit the second operation mode.

[0080] Alternatively, if performing an operation of reducing the image of the media content in the first play screen is switching to the second operation mode, then performing an operation of enlarging the image of the media content is exiting the second operation mode.

[0081] Furthermore, in addition to exiting the second operation mode in the above manner, if the currently playing media content is not a media content set but a single media content, the operation of exiting the second play mode may also include:

[0082] In response to a trigger instruction of sliding in any direction executed on the second play screen, the second play mode is exited.

[0083] The above is an embodiment of the media content playback method provided by the present disclosure. The following describes other embodiments of the media content playback provided by the present disclosure. Please refer to the following for details.

[0084] FIG4 is a schematic structural diagram of a media content playback device provided by an embodiment of the present disclosure. The device includes: a processing module 401 , a generating module 402 , a determining module 403 , and a display module 404 .

[0085] Processing module 401 is configured to, in response to an operation instruction triggering a switch from a first playback mode to a second playback mode for currently playing media content, obtain playback state information corresponding to the media content, wherein the playback state information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content;

[0086] A generating module 402 is configured to generate a second playback image corresponding to a second playback mode according to the capacity information and the specification information;

[0087] Determining module 403, for determining the playing progress of the media content according to the media content information and the storage player instance;

[0088] The display module 404 is configured to continue playing the media content according to the playing progress in the second playing screen.

[0089] Optionally, the generating module 402 is specifically configured to determine a structure view corresponding to the second playing mode according to the capacity information corresponding to the first playing mode;

[0090] Creating a container corresponding to the second playback mode according to the specification information corresponding to the first playback mode;

[0091] A second play screen is created based on the structural view corresponding to the second play mode and the container corresponding to the second play mode.

[0092] Optionally, the playback status information further includes media content frame information of the media content frame being played when the operation instruction is triggered;

[0093] The display module 404 is further configured to display the media content frame as the first frame based on the media content frame information.

[0094] Optionally, the processing module 401 is further configured to display the first frame based on the media content frame information without any preconfigured playback effect.

[0095] Optionally, the first play mode and the second play mode are configured with different interaction modes and / or are configured with different interaction controls.

[0096] Optionally, the processing module 401 is further configured to configure an interactive control corresponding to the second play mode;

[0097] The display module 404 is further configured to display the interactive control at a preset position on the second playback screen.

[0098] Optionally, the interactive control includes one or more of the following: a control for accelerating the playback progress, a control for retarding the playback progress, a speed control, and a control for playing media content in a reduced window of a preset size.

[0099] Optionally, when the media content is media content in a media content set, the interactive control further includes an identification control for indicating the playback progress, and the identification control is used to indicate the playback progress of each media content in the media content set.

[0100] Optionally, when the media content is media content in a media content set, the processing module 401 is further configured to respond to a trigger instruction of sliding along a first preset direction executed on the second playback screen;

[0101] The display module 404 is further configured to play other media content in the media content set except the currently played media content.

[0102] Optionally, the processing module 401 is further configured to respond to a trigger instruction of sliding along a second preset direction executed on the second playback screen;

[0103] The display module 404 is further configured to play media content associated with the currently played media content.

[0104] Optionally, the operation instruction includes: executing an operation of zooming in / out of an image of the media content on the first playback screen.

[0105] Optionally, the processing module 401 is further configured to exit the second playback mode in response to an action opposite to the operation instruction performed in the second playback screen.

[0106] Optionally, when the media content is not the media content in the media content set, the processing module 401 is further configured to exit the second play mode in response to a trigger instruction of sliding in any direction executed on the second play screen.

[0107] The functions performed by the various components in the media content playback device provided by the embodiments of the present disclosure have been described in detail in the above embodiments, and thus will not be repeated here.

[0108] The disclosed embodiments provide a media content playback device that, in response to an operation instruction triggered by switching from a first playback mode to a second playback mode for the currently playing media content, obtains playback status information corresponding to the media content. The playback status information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information. Based on the capacity information and specification information, a second playback screen corresponding to the second playback mode is generated. In other words, the first playback screen and the second playback screen are identical, ensuring that even if the mode switches, the screen viewed by the user does not change, thereby avoiding affecting the user's viewing experience. The playback progress of the media content is then determined based on the media content information and the storage playback instance. The media content is then played back in the second playback screen according to the current playback progress. Throughout the entire process, the first playback mode and the second playback mode use different independent playback screens, without any coupling relationship. Therefore, while ensuring seamless switching between the two playback modes, the impact of different data flow methods during technical iteration is reduced.

[0109] As shown in FIG5 , an embodiment of the present disclosure provides a terminal device including a processor 111 , a memory 112 , and a display 113 .

[0110] Memory 112, for storing computer programs;

[0111] In one embodiment of the present disclosure, the processor 111 is configured to implement the media content playback method provided by any one of the aforementioned method embodiments when executing a program stored in the memory 112. The method includes:

[0112] In response to an operation instruction triggering a switch from a first playback mode to a second playback mode for currently playing media content, obtaining playback status information corresponding to the media content, wherein the playback status information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content;

[0113] generating a second playback screen corresponding to a second playback mode according to the capacity information and the specification information;

[0114] The playback progress of the media content is determined based on the media content information and the stored player instance.

[0115] Optionally, generating a second playback screen corresponding to the second playback mode according to the capacity information and the specification information includes:

[0116] determining, according to the capacity information corresponding to the first play mode, a structural view corresponding to the second play mode;

[0117] Creating a container corresponding to the second playback mode according to the specification information corresponding to the first playback mode;

[0118] A second play screen is created based on the structural view corresponding to the second play mode and the container corresponding to the second play mode.

[0119] Optionally, the playback status information further includes media content frame information of the media content frame being played when the operation instruction is triggered; before generating the second playback screen corresponding to the second playback mode based on the capacity information and the specification information, the method further includes:

[0120] Based on the media content frame information, the media content frame is displayed as the first frame.

[0121] Optionally, based on the media content frame information, displaying the media content frame as the first frame includes:

[0122] Without any pre-configured playback effects, the first frame is displayed based on the media content frame information.

[0123] Optionally, the first play mode and the second play mode are configured with different interaction modes and / or are configured with different interaction controls.

[0124] Optionally, before continuing to play the media content according to the playback progress in the second playback screen, the method further includes:

[0125] Configure interactive controls corresponding to the second play mode and display the interactive controls at a preset position on the second play screen.

[0126] Optionally, the interactive control includes one or more of the following: a control for accelerating the playback progress, a control for retarding the playback progress, a speed control, and a control for playing media content in a reduced window of a preset size.

[0127] Optionally, when the media content is media content in a media content set, the interactive control further includes an identification control for indicating the playback progress, and the identification control is used to indicate the playback progress of each media content in the media content set.

[0128] Optionally, when the media content is media content in a media content set, the method further includes:

[0129] In response to a trigger instruction of sliding along a first preset direction executed on the second play screen, other media content in the media content set except the currently played media content is played.

[0130] Optionally, the method further includes:

[0131] In response to a trigger instruction of sliding along a second preset direction executed on the second playback screen, media content associated with the currently played media content is played.

[0132] Optionally, the operation instruction includes: executing an operation of zooming in / out of an image of the media content on the first playback screen.

[0133] Optionally, the method further includes:

[0134] In response to an action opposite to the operation instruction performed in the second play screen, the second play mode is exited.

[0135] Optionally, when the media content is not media content in the media content set, the second play mode is exited in response to a trigger instruction of sliding in any direction executed on the second play screen.

[0136] Display 113 is used to display all the content that needs to be displayed as described above on the second playback screen, for example, including continuing to play the media content according to the playback progress on the second playback screen; or displaying the media content frame as the first frame; or displaying interactive controls; or displaying other media content in the media content set, or media content that is associated with the currently playing media content, etc.

[0137] The embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a terminal device, the media content playback method provided in the aforementioned method embodiment is implemented.

[0138] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element.

[0139] The foregoing are merely specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not to be limited to the embodiments shown herein, but is to be construed in the broadest manner consistent with the principles and novel features claimed herein.

Claims

1. A method for playing media content, the method comprising: In response to an operation instruction for switching from a first playback mode to a second playback mode triggered by currently playing media content, obtaining playback state information corresponding to the media content, wherein the playback state information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content; generating a second playback screen corresponding to the second playback mode according to the capacity information and the specification information; Determining the playback progress of the media content according to the media content information and the storage player instance; In the second playback screen, the media content continues to be played according to the playback progress.

2. The method according to claim 1, wherein: The step of generating a second playback screen corresponding to the second playback mode according to the capacity information and the specification information includes: Determining a structural view corresponding to a second playback mode according to the capacity information corresponding to the first playback mode; Creating a container corresponding to the second playback mode according to the specification information corresponding to the first playback mode; A second play screen is created based on the structure view corresponding to the second play mode and the container corresponding to the second play mode.

3. The method according to claim 1, wherein: The playback state information also includes media content frame information of the media content frame being played when the operation instruction is triggered; before generating a second playback screen corresponding to the second playback mode according to the capacity information and the specification information, the method further includes: Based on the media content frame information, the media content frame is displayed as a first frame.

4. The method according to claim 3, wherein: The displaying the media content frame as the first frame based on the media content frame information includes: The first frame is displayed based on the media content frame information without any preconfigured playback effect.

5. The method according to any one of claims 1 to 4, wherein: The first play mode and the second play mode are configured with different interaction modes and / or are configured with different interaction controls.

6. The method according to claim 5, wherein: Before continuing to play the media content according to the play progress in the second play screen, the method further includes: Configure an interactive control corresponding to the second play mode, and display the second play screen at a preset position. The interactive control is displayed.

7. The method according to claim 5, wherein: When the media content is media content in a media content set, the method further includes: In response to a trigger instruction of sliding along a first preset direction executed in the second playing screen, other media content in the media content set except the media content currently being played is played.

8. The method according to claim 5, further comprising: In response to a trigger instruction of sliding along a second preset direction executed in the second playing screen, media content associated with the currently playing media content is played.

9. The method according to claim 5, wherein: The operation instruction includes: executing an operation of zooming in or out of an image of the media content in the first play screen.

10. The method according to claim 9, further comprising: In response to an action opposite to the operation instruction performed in the second playback screen, the second playback mode is exited.

11. The method according to claim 9, wherein: When the media content is not media content in a media content set, the method further includes: In response to a trigger instruction of sliding in any direction executed on the second playback screen, the second playback mode is exited.

12. A media content playing device, the device comprising: a processing module, configured to obtain, in response to an operation instruction triggered by switching from a first playback mode to a second playback mode for currently played media content, playback status information corresponding to the media content, wherein the playback status information includes capacity information of a first playback screen corresponding to the first playback mode, specification information of a container carrying the first playback screen, a shared storage player instance, and media content information corresponding to the media content; A generating module, configured to generate a second playing picture corresponding to the second playing mode according to the capacity information and the specification information; A determination module, configured to determine the playing progress of the media content according to the media content information and the storage player instance; The display module is used to continue playing the media content according to the playing progress in the second playing screen.

13. A terminal device, comprising: Memory, used to store computer programs; A processor, configured to implement the media content playing method according to any one of claims 1 to 11 when executing a program stored in the memory; The display is used to continue playing the media content according to the playing progress in the second playing screen.

14. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a terminal device, implements the media content playing method according to any one of claims 1 to 11.

15. A computer program, comprising instructions, which, when executed by a processor, implement the media content playing method according to any one of claims 1-11.

16. A computer program product, comprising instructions, which when executed by a processor implement the media content playing method according to any one of claims 1-11.

Citation Information

Patent Citations

  • Method and apparatus for playing media streams, computer device and storage medium

    CN108449641A

  • Video playing switching method and device, electronic equipment and storage medium

    CN111757164A

  • Content playing control method and device, electronic equipment and storage medium

    CN114764355A

  • Media content playing method and device, equipment, storage medium and program product

    CN115474085A

  • System and method for switching of media presentation

    US20040268262A1