Media content playing method and apparatus, and electronic device

By synchronously processing media content switching in a multi-threaded environment, the problem of discontinuous listening caused by media content switching in multimedia applications is solved, and the continuity of audio playback is achieved.

WO2025201372A1PCT designated stage Publication Date: 2025-10-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/084907
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-29
Filing Date
2025-03-26
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

In multimedia applications, when media content is switched, the playback of the media content recorded by the user is easily interrupted, resulting in discontinuous listening experience.

Method used

By playing the first media content and the second media content in a multi-threaded environment, and keeping the playback of the first media content uninterrupted during the process of switching from the second media content to the third media content, the switching of the media content is synchronously processed using multi-threaded technology to ensure the continuity of audio playback.

Benefits of technology

This ensures the continuity of audio playback during media content switching, improves user experience, and avoids interruption of listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025084907_02102025_PF_FP_ABST
    Figure CN2025084907_02102025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a media content playing method and apparatus, and an electronic device. The method comprises: playing first media content and second media content that corresponds to the first media content; and in response to a switching instruction for the second media content, switching the second media content to third media content, wherein during the switching from the second media content to the third media content, the first media content remains playing. Thus, during the switching from the second media content to the third media content, the first media content remains playing, such that the playing of the first media content is not affected by the switching from the corresponding second media content to the third content, thereby maintaining the auditory continuity of the first media content, and helping alleviate the problem in the relevant art of audio information heard by a user being interrupted during switching of media content.
Need to check novelty before this filing date? Find Prior Art

Description

Media content playing method, device and electronic device

[0001] This application claims priority to Chinese Patent Application No. 202410383246.5 filed on March 29, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] Embodiments of the present disclosure relate to a method, apparatus, and electronic device for playing media content. Background Art

[0003] Different applications running on a terminal device can implement different functions. In some application scenarios, the applications running on the terminal device may include multimedia applications. These multimedia applications can record and play media content. Summary of the Invention

[0004] Embodiments of the present disclosure provide a method, device, and electronic device for playing media content.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for playing media content, comprising: playing first media content and second media content corresponding to the first media content; switching the second media content to third media content in response to a switching instruction for the second media content; wherein, during the process of switching the second media content to the third media content, the first media content is kept played.

[0006] In a second aspect, an embodiment of the present disclosure provides a media content playback device, comprising: a first playback unit, configured to play first media content and second media content corresponding to the first media content; a first switching unit, configured to switch the second media content to third media content in response to a switching instruction for the second media content; wherein, during the process of switching the second media content to the third media content, the first media content is kept played.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0008] The memory stores computer-executable instructions;

[0009] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method of the first aspect and various possible designs of the first aspect.

[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method of the first aspect and various possible designs of the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method of the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0013] FIG1 is a schematic flow chart 1 of a method for playing media content provided by the present disclosure;

[0014] FIG2 is a second schematic flow chart of a media content playback method provided by the present disclosure;

[0015] Figure 3 is a schematic diagram of an application scenario;

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

[0017] FIG5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0018] 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.

[0019] Users can use multimedia applications to record their own media content. When using multimedia applications to record media content, users can also record their own audio information, such as recording a song they sing.

[0020] After recording media content, the user can save the media content. To make the recorded media content more expressive, video material can be configured for the media content. The multimedia application can provide the user with video material for selection. The user can configure a corresponding video for the media content using the provided video material. For example, the user's recorded media content can be combined with a video material to create a new media content.

[0021] After obtaining the first new media content, the first new media content can be played. In addition, the user can switch among multiple video materials to configure a suitable video for the media content recorded by himself.

[0022] In one embodiment, a multimedia application is usually run in a single thread. During the multimedia application playing the first new media content, the user cuts the video material for the media content recorded by the user. The above thread needs to pause the playback of the first new media content and instead generate the second new media content based on the switched video material and the media content recorded by the user. After the second new media content is generated, the second new media content can be played. Therefore, in the above process, the playback of the media content recorded by the user is in an interrupted state, that is, the continuity of the playback of the above media content is interrupted, and the user cannot smoothly listen to the audio information in the above media content, resulting in a discontinuous listening experience.

[0023] In the present disclosure, a first media content and a corresponding second media content can be played. In response to a switching instruction for the second media content, the second media content can be switched to a third media content. During the switching process, the first media content can be kept playing. This facilitates maintaining the continuous playback of the first media content when the user switches to other media content configured for the first media content. Therefore, the playback of the audio information corresponding to the first media content is not interrupted, thereby improving the problem of discontinuous listening caused by the interruption of media content playback during the media content switching process.

[0024] Please refer to Figure 1, which is a schematic flow chart of the media content playback method provided by the present disclosure. As shown in Figure 1, the method includes the following steps:

[0025] S101: Play first media content and second media content corresponding to the first media content.

[0026] In this embodiment, the execution subject of the media content playing method can be a terminal device, specifically a multimedia application client running in the terminal device. Schematically, the above multimedia application can be a singing application.

[0027] In some application scenarios, the first media content may be media content recorded by a user using the multimedia application client.

[0028] In some other application scenarios, the first media content may be media content synthesized by an electronic device, such as synthesized audio.

[0029] In some embodiments, the first media content may include a first video or a first audio.

[0030] In some application scenarios, the first media content includes a first video. The first video may include audio and images. The audio of the first video may include, for example, user audio and / or ambient audio. The image of the first video may include, for example, the ambient image during recording of the first media content, or may be a single-color image.

[0031] In some application scenarios, the first media content may include a first audio, which may include recorded user audio.

[0032] The second media content may be media content pre-configured for the first media content. The second media content includes a second video. The second video may be generated based on video material provided by a multimedia application, for example.

[0033] The multimedia application can play instructions to play the first media content and the second media content.

[0034] The above-mentioned play instruction may be issued by the user, or may be automatically issued by the multimedia application according to a program instruction.

[0035] As an illustrative example, when the first media content is played, the play of the second media content may be triggered, so that the first media content and the second media content are played simultaneously.

[0036] As an implementation, when the first media content is a first video, the first video may be played in the background, and the second media content may be played in the foreground, for example, a screen shot of the second media content may be played in the foreground without audio.

[0037] In some embodiments, a first thread and a second thread may be created. The first thread is used to play the first media content, and the second thread is used to play the second media content. Specifically, multimedia applications may be run in the first thread and the second thread, respectively. The multimedia application running in the first thread plays the first media content, and the multimedia application running in the second thread plays the second media content.

[0038] S102: In response to a switching instruction for the second media content, the second media content is switched to the third media content; wherein, during the process of switching the second media content to the third media content, the first media content is kept playing.

[0039] The switching instruction may be issued by a user, or may be issued by the client according to a program instruction.

[0040] After receiving the switching instruction, the execution subject may switch the second media content being played to the third media content, for example, switching the second media content being played by the foreground thread to the third media content.

[0041] The third media content may be a third video.

[0042] The first media content played in step S101 is kept playing during the process of switching from the second media content to the third media content according to the switching instruction. That is, the playing of the first media content is not affected during the process of switching from the second media content to the third media content according to the switching instruction.

[0043] From the listening experience, the first media content is continuously played without interruption during the process of switching from the second media content to the third media content.

[0044] In this embodiment, first media content and second media content corresponding to the first media content are played; in response to a switching instruction for the second media content, the second media content is switched to third media content. During the switching process, the first media content remains played. During the switching process, the first media content remains played, so that the playback of the first media content is not affected by the switching process. This maintains the auditory continuity of the first media content. This helps to improve the problem of interruption in the user's auditory experience during media content switching in related technologies.

[0045] In some embodiments, the first media content is a first video, and playing the first media content in step S101 includes:

[0046] The audio of the first video is played without displaying the picture of the first video.

[0047] In these embodiments, the execution entity can play the audio of the first video without displaying the first video image in the background. Specifically, when playing the first video, it can be selected to play only the audio without playing the video image. This allows the first video to be played without the image, that is, the audio of the first video can be played.

[0048] In these embodiments, by playing the first video without displaying the screen of the first video, occupied resources can be reduced.

[0049] Please refer to Figure 2, which is a schematic flow chart of the media content playback method provided by the present disclosure. As shown in Figure 2, the method includes the following steps:

[0050] S201: Play first media content and second media content corresponding to the first media content.

[0051] The execution subject of the information processing method in this embodiment may be a terminal device, in which a multimedia application client may be running.

[0052] The user can use the multimedia application client to record the first media content including audio or video. The first media content can be media content recorded in real time by the multimedia recording application or media content recorded in the past.

[0053] The first media content includes a first video or a first audio, and the second media content includes a second video.

[0054] The second media content can be played in the foreground, and the first media content can be played in the background. The second media content played in the foreground can provide a visual experience for the user. The first media content played in the background can provide an audio experience for the user.

[0055] In some embodiments, the second media content may be generated from a second media content material. For example, the second media content may be generated by supplementing or cutting the second media content material based on the time length of the first media content. For example, the second media content may be generated by supplementing or cutting the second video material to obtain the second media content with the same time length as the first media content.

[0056] In these embodiments, when the first media content and the second media content corresponding to the first media content are played, the two may be played synchronously, that is, the playing progress of the two on the timeline is consistent.

[0057] S202: Display multiple media content material identifiers, including a first media content material identifier and a second media content material identifier, wherein the first media content material identifier corresponds to a first media content material for generating a second media content; and the second media content material identifier corresponds to a second media content material for generating a third media content.

[0058] In some application scenarios, the first media content material may be a media content material determined for the first media content from a plurality of preset media content materials according to a preset rule. For example, the first media content material may be selected from a plurality of preset media content materials based on the style and genre of the first media content. Alternatively, the first media content material may be a media content material selected by a user from a plurality of preset media content materials.

[0059] In this implementation, after determining the first media content material from multiple preset media content materials, the above-mentioned execution entity can supplement or cut the first media content material according to the length of the first media content, and then align the supplemented or cut first media content material with the first media content on the timeline to obtain the second media content.

[0060] In this embodiment, a plurality of media content material identifiers may be displayed in the playback interface for playing the second media content. The media content material identifiers may include one or more of pictures, text, symbols, and graphics.

[0061] The multiple media content material identifiers include a first media content material identifier and a second media content material identifier. The first media content material identifier corresponds to a first media content material used to generate the second media content. The second media content material identifier corresponds to a second media content material used to generate the third media content. Specifically, the first media content material identifier indicates the first media content material used to generate the second media content, and the second media content material identifier indicates the second media content material used to generate the third media content.

[0062] Please refer to Figure 3, which is a schematic diagram of an application scenario. As shown in Figure 3, the second media content played in step S201 is generated by the first media content material "video material B". The playback interface 31 (the playback interface 31 can be the playback interface of a multimedia playback application) includes a display area 32 and a display area 33. The screen of the second media content can be displayed in the display area 32, and multiple media content (video) material identifiers, such as "video material A", "video material B" and "video material C", can be displayed in the display area 33. Among them, when the second media content is played, the video material identifier "video material B" corresponding to the second media content is in a selected state.

[0063] When the second media content corresponding to the first media content is being played, the media content material identifier corresponding to the second media content in the above playing interface is in a selected state, thereby facilitating the user to understand the currently used media content material.

[0064] S203: In response to the first media content material identifier being switched from a selected state to a non-selected state, and the second media content material identifier being switched from a non-selected state to a selected state, obtaining third media content.

[0065] In these embodiments, the user or the execution subject can perform a switching operation on the displayed media content material identifier. After the switching operation is completed, the first media content material identifier is switched from a selected state to a non-selected state, and the second media content material identifier is switched from a non-selected state to a selected state.

[0066] In some application scenarios, upon detecting that the first media content material identifier switches from a selected state to a non-selected state, and the second media content material identifier switches from a non-selected state to a selected state, the execution entity may determine the second media material based on the second media content material identifier, and then generate third media content from the second media material.

[0067] In other application scenarios, the execution entity may also send a media content generation request to the server. The media content generation request may include a second media content material identifier and duration information of the first media content. The server may determine the second media material based on the second media content material identifier and then generate third media content based on the second media material and the duration information in the media content generation request. The execution entity may then obtain the third media content from the server.

[0068] In some other application scenarios, the above-mentioned third media content can also be generated historically. The above-mentioned execution entity detects that the first media content material identifier switches from a selected state to a non-selected state, and the second media content material identifier switches from a non-selected state to a selected state, and the third media content can be obtained from the stored historically generated media content.

[0069] Taking Figure 3 as an example, the user can perform a switching operation on the multiple video materials displayed in the display area 33 in Figure 3, thereby triggering a switching instruction. As an illustrative example, the user can perform a switching operation on the media content material identifier by performing a sliding operation in the playback interface. Through the above switching operation, the originally selected media content material identifier can be switched from a selected state to an unselected state, and the originally unselected media content material identifier indicated by the switching operation can be switched from an unselected state to a selected state. For example, performing a sliding operation in the display area 33 in Figure 3 switches the currently selected video material B from a selected state to an unselected state, and switches the video material C from an unselected state to a selected state.

[0070] When the above switching operation is received, a switching instruction for switching the media content may be triggered.

[0071] Before switching the media content, if the third media content corresponding to the first media content has not been generated based on the second media content material, the third media content may be generated based on the second media content material first.

[0072] In some embodiments, the third media content is third media content aligned with the first media content, and the third media content is generated based on the following steps:

[0073] First, the second media content material is cut or supplemented according to the duration of the first media content to obtain the third media content.

[0074] Secondly, the start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content to obtain the third media content aligned with the first media content.

[0075] In order to obtain the third media content corresponding to the first media content based on the second media content material, it is necessary to first supplement or cut the second media content material based on the duration of the first media content.

[0076] In these embodiments, when the duration of the second media content material is longer than the duration of the first media content material, the execution entity may cut the second media content material according to a preset cutting rule. The preset cutting rule includes cutting from the last frame of the video from the back to the front, or cutting from the first frame from the front to the back. After the cutting, the duration of the third media content obtained is equal to the duration of the first media content.

[0077] When the duration of the second media content material is shorter than the duration of the first media content, the execution entity may copy at least a portion of the second media content material and splice the copied at least a portion of the content with the original second media content material. If the duration of the spliced ​​second media content material video material is still shorter than the duration of the first media content, the execution entity may continue to copy at least a portion of the second media content material and then splice the spliced ​​content. If the duration of the spliced ​​second media content material is longer than the duration of the first media content, the spliced ​​second media content material may be cut according to the preset cutting rules. The above operation results in third media content having the same duration as the first media content.

[0078] After obtaining the third media content, the first and third media content can be aligned on the timeline. The start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content, thereby obtaining the third media content aligned with the first media content. Optionally, the third media content can be saved.

[0079] In these embodiments, the third media content is obtained by supplementing and cutting the second media content material according to the duration of the first media content, and then the third media content is aligned with the first media content to generate the third media content, which helps to synchronize the third media content with the first media content when playing.

[0080] S204: Switch the second media content to the third media content. During the process of switching the second media content to the third media content, keep playing the first media content.

[0081] The second media content played along with the first media content may be switched to the third media content.

[0082] After the switching, the third media content may be played together with the first media content.

[0083] The first media content can be played in the background, and the third media content can be played in the foreground. The first media content provides audio to the user, and the third media content can provide video images.

[0084] In some embodiments, the above method further comprises:

[0085] Play the third media content according to the playback progress of the first media content.

[0086] Since the third media content needs to be generated based on the second media content material during the process of switching the second media content to the third media content, the switching process cannot be completed instantly and requires a certain amount of time.

[0087] After obtaining the third media content, the execution entity can obtain the current playback progress of the first media content and then fast-forward the third media content to the current playback progress. For example, the thread playing the third media content can access the thread playing the first media content through a preset interface to obtain the current playback progress of the first media content. The third media content is then played from the current playback progress, thereby ensuring synchronization between the playback of the third media content and the first media content.

[0088] In this way, when the user plays the first media content and switches the second media content to the third media content to change the visual display effect, the playback of the audio in the first media content does not stop, so that there is no interruption in the hearing.

[0089] Compared to the embodiment shown in FIG1 , this embodiment describes displaying multiple media content material identifiers in a playback interface for playing second media content. Based on the media content material identifier corresponding to the second media content switching from a selected state to an unselected state and the media content material identifier corresponding to the third media content switching from an unselected state to a selected state, the third media content is obtained, and then the media content played along with the first media content is switched from the second media content to the third media content. By displaying multiple media content material identifiers in the playback interface, the media content played along with the first media content can be switched by operating the media content material identifiers, providing convenience for the user to switch the media content configured for the first media content.

[0090] In some embodiments, the first media content further corresponds to target subtitles; and the method further includes:

[0091] Associating target subtitles with third media content;

[0092] Alternatively, for each frame of the target subtitle, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content to obtain the third media content including the subtitle.

[0093] In these embodiments, the subtitles may include text corresponding to the audio in the first media content. Specifically, the subtitles may include multiple sentences of text.

[0094] As an implementation method, the target subtitle may correspond to a subtitle screen with a preset transparency, and all text contents of the subtitle may be recorded in the subtitle screen.

[0095] In some application scenarios, the target subtitles can be associated with the third media content. After the target subtitles are associated with the third media content, when the third media content is played, the subtitle screen corresponding to the target subtitles can be displayed together with the screen of the third media content.

[0096] In some application scenarios, for each frame of the target subtitles, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content; the aligned target subtitle frame and the third media content frame are synthesized to obtain the third media content including the subtitles. Thus, each subtitle frame of the target subtitles is aligned with the corresponding frame of the third media content on the timeline, and then the target subtitles and the third media content are synthesized to obtain the third media content including the target subtitles. In these application scenarios, the target subtitles are embedded in the third content.

[0097] In these embodiments, by associating the target subtitles with the third media content, or synthesizing the target subtitles with the third media content, the target subtitles corresponding to the first media content can be displayed when the third media content is displayed, so that the user can browse the subtitles corresponding to the audio in the first media content in the displayed third media content, which is beneficial to the user's understanding of the audio of the first media content.

[0098] In some embodiments, the method further comprises:

[0099] In response to receiving a pause instruction instructing to pause the playing of the third media content, the playing of the first media content and the third media content is synchronously paused.

[0100] In these embodiments, since the first media content and the third media content corresponding to the first media content are played simultaneously, for example, the third media content is played in the foreground and the first media content is played in the background. From the user's perspective, when the user browses the third media content and listens to the audio corresponding to the first media content on the terminal device, the user can view the content image of the third media content and the audio of the first media content as a whole. When the user issues a pause instruction to pause the playback of the third media content, the user wishes to control the content image of the third media content and the audio of the first media content to be paused simultaneously, and therefore needs to synchronously control the playback of the first media content to be paused.

[0101] Specifically, the thread playing the third media content may transmit a pause instruction to the thread playing the first media content through a preset interface. After receiving the pause instruction, the thread playing the first media content pauses the playing of the first media content.

[0102] In these embodiments, after receiving the pause instruction for the third media content, the third media content and the first media content are synchronously paused, thereby achieving synchronous control of playback pause of the third media content and the first media content according to user needs.

[0103] It is understandable that when the third media content and the first media content are in a paused state, upon receiving a user instruction to continue playing the third media content, the third media content can be played and the first media content can be controlled to continue playing synchronously with the first media content.

[0104] Please continue to refer to Figure 3, which is a schematic diagram of an application scenario. As shown in Figure 3, a multimedia application is running in the terminal device. The user can record the user's audio (such as the audio of singing a song) through the multimedia application to obtain the first audio.

[0105] As shown in Figure 3, the playback interface 31 of the terminal device may include a display area 33, which may display different media content categories, such as "Recommended Backgrounds" and "My Works." Each media content category may include at least one video. A user may select the "Recommended Backgrounds" category, and the display area 33 may display the covers and logos of multiple video clips belonging to the "Recommended Backgrounds" category. These multiple video clips may include, for example, video clip A, video clip B, and video clip C. The user may select video clip B as the first media content clip.

[0106] After receiving the user's selection of "video material B," the multimedia application may cut or supplement "video material B" based on the duration of the first media content, so that the duration of the cut or supplemented video material B is equal to the duration of the first media content. The second media content is generated based on the cut or supplemented "video material B."

[0107] The first media content may have target subtitles, and the execution entity may associate the second media content with the target subtitles, or synthesize the second media content with the target subtitles to obtain the second media content including the target subtitles.

[0108] After obtaining the second media content, the second media content can be played. Two threads can be created: thread 1 and thread 2. Thread 1 and thread 2 can each run a multimedia application player. The player in thread 1 can play the first media content, while the player in thread 2 can play the second media content. Threads 1 and 2 can play the first and second media content synchronously.

[0109] As an implementation manner, thread 1 for playing the first media content may run in the background, and the thread for playing the second media content may run in the foreground.

[0110] The playback interface 31 includes a display area 32, which can display a content image of the second media content. The content image changes as the playback progresses.

[0111] During the playback of the first media content and the second media content, the user can also switch between video materials. For example, the user can switch between video materials of the same category in the display area 33 left and right.

[0112] For another example, the user can select a different video material category in the display area 33, such as the "My Works" category. The "My Works" category may include video material D, video material E, and video material F. After the user selects the "My Works" category, the display area 33 may display multiple video materials belonging to that category. For example, video material D, video material E, and video material F may be displayed. The user can select video material D in the display area 33.

[0113] After receiving the selection operation for video material D, the multimedia application may pause playback of the second media content. Thread 2, which was originally playing the second media content, may obtain the video data of video material D and, based on the duration of the first media content, cut or append the video data of video material D to obtain candidate third media content of the same duration as the first media content. Thread 2 may align the candidate third media content with the first media content on the timeline to generate the third media content.

[0114] In some application scenarios, the thread 2 may associate the third media content with the target subtitles of the first media content, or synthesize the target subtitles of the first media content with the third media content to obtain the third media content including the target subtitles.

[0115] After obtaining the third media content, thread 2, which was originally playing the second media content, can exchange information with thread 1, which was playing the first media content, to obtain the current playback progress of the first media content. Thread 2 can fast-forward the third media content to the current playback progress, and then play the third media content from the current playback progress at the same speed as the first media content, thereby achieving synchronized playback of the third media content and the first media content. The display area 32 can display a picture of the third media content. Specifically, the display area 32 starts playing the third media content from the picture corresponding to the current playback progress.

[0116] From the moment the user selects video material D to the moment the third media content derived from video material D is played, thread 1 does not stop playing the first media content; that is, the audio of the first media content continues to play. Therefore, during this process, the audio of the first media content played by the user is played continuously. This allows the user to smoothly listen to the audio of the first media content even when switching to other media content corresponding to the first media content in the foreground. This improves the problem in related technologies where the continuity of audio playback is interrupted during media content switching, preventing the user from smoothly listening to the audio content.

[0117] Corresponding to the media content playing method of the embodiment shown in FIG1 above, FIG4 is a structural block diagram of the media content playing device provided by the embodiment of the present disclosure. For the sake of convenience, only the parts related to the embodiment of the present disclosure are shown. Referring to FIG4, the device 40 includes: a first playing unit 401 and a first switching unit 402.

[0118] The first playback unit 401 is configured to play the first media content and the second media content corresponding to the first media content;

[0119] The first switching unit 402 is configured to switch the second media content to the third media content in response to a switching instruction for the second media content; wherein,

[0120] During the process of switching from the second media content to the third media content, the first media content is kept playing.

[0121] In some embodiments, the first media content includes a first video or a first audio, the second media content includes a second video, and the third media content includes a third video.

[0122] In some embodiments, the first media content includes a first video, and the first playback unit 401 is further configured to:

[0123] The audio of the first video is played without displaying the picture of the first video.

[0124] In some embodiments, the first playback unit 401 is further configured to:

[0125] Play the third media content according to the playback progress of the first media content.

[0126] In some embodiments, the device 40 further includes a display unit (not shown in the figure), which is configured to:

[0127] Displaying multiple media content material identifiers, the multiple media content material identifiers including a first media content material identifier and a second media content material identifier, wherein the first media content material identifier corresponds to a first media content material for generating a second media content; and the second media content material identifier corresponds to a second media content material for generating a third media content;

[0128] The first switching unit 402 is further configured to:

[0129] In response to the first media content material identifier being switched from a selected state to a non-selected state, and the second media content material identifier being switched from a non-selected state to a selected state, acquiring third media content;

[0130] The second media content is switched to the third media content.

[0131] In some embodiments, the third media content is third media content aligned with the first media content. The apparatus 40 further includes a media content generation unit (not shown in the figure), which is configured to generate the third media content aligned with the first media content based on the following steps:

[0132] Cutting or supplementing the second media content material according to the duration of the first media content to obtain third media content;

[0133] The start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content to obtain the third media content aligned with the first media content.

[0134] In some embodiments, the first media content also corresponds to target subtitles; the apparatus 40 further includes a subtitle processing unit (not shown in the figure). The subtitle processing unit is configured to:

[0135] Associating target subtitles with third media content;

[0136] Alternatively, for each frame of the target subtitle, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content to obtain the third media content including the subtitle.

[0137] In some embodiments, the apparatus 40 further includes a pause unit (not shown in the figure). The pause unit is configured to:

[0138] In response to receiving a pause instruction instructing to pause the playing of the third media content, the playing of the first media content and the third media content is synchronously paused.

[0139] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.

[0140] Referring to FIG5 , there is shown a schematic diagram of the structure of an electronic device 500 suitable for implementing an embodiment of the present disclosure. The electronic device 500 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG5 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0141] As shown in FIG5 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0142] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0143] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0144] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0145] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0146] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0147] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0148] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0150] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0151] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0152] In a first aspect, according to one or more embodiments of the present disclosure, a method for playing media content is provided, comprising:

[0153] Playing the first media content and the second media content corresponding to the first media content;

[0154] In response to a switching instruction for the second media content, the second media content is switched to the third media content; wherein,

[0155] During the process of switching from the second media content to the third media content, the first media content is kept playing.

[0156] According to one or more embodiments of the present disclosure, the first media content includes a first video or a first audio, the second media content includes a second video, and the third media content includes a third video.

[0157] According to one or more embodiments of the present disclosure, the first media content includes a first video, and playing the first media content includes:

[0158] Without displaying the first video image, playing the audio of the first video. According to one or more embodiments of the present disclosure, the method further includes:

[0159] Play the third media content according to the playback progress of the first media content.

[0160] According to one or more embodiments of the present disclosure, the method further includes:

[0161] Displaying multiple media content material identifiers, the multiple media content material identifiers including a first media content material identifier and a second media content material identifier, wherein the first media content material identifier corresponds to a first media content material for generating a second media content; and the second media content material identifier corresponds to a second media content material for generating a third media content;

[0162] and, in response to a switching instruction for the second media content, switching the second media content to third media content, comprising:

[0163] In response to the first media content material identifier being switched from a selected state to a non-selected state, and the second media content material identifier being switched from a non-selected state to a selected state, acquiring third media content;

[0164] The second media content is switched to the third media content.

[0165] According to one or more embodiments of the present disclosure, the third media content is the third media content aligned with the first media content, and the third media content aligned with the first media content is generated based on the following steps:

[0166] Cutting or supplementing the second media content material according to the duration of the first media content to obtain third media content;

[0167] The start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content to obtain the third media content aligned with the first media content.

[0168] According to one or more embodiments of the present disclosure, the first media content further corresponds to a target subtitle; and the method further includes:

[0169] Associating target subtitles with third media content;

[0170] Alternatively, for each frame of the target subtitle, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content to obtain the third media content including the subtitle.

[0171] According to one or more embodiments of the present disclosure, the method further includes:

[0172] In response to receiving a pause instruction instructing to pause the playing of the third media content, the playing of the first media content and the third media content is synchronously paused.

[0173] In a second aspect, according to one or more embodiments of the present disclosure, a media content playback device is provided, comprising:

[0174] A first playback unit, configured to play first media content and second media content corresponding to the first media content;

[0175] The first switching unit is configured to switch the second media content to the third media content in response to a switching instruction for the second media content; wherein,

[0176] During the process of switching from the second media content to the third media content, the first media content is kept playing.

[0177] According to one or more embodiments of the present disclosure, the first media content includes a first video or a first audio, the second media content includes a second video, and the third media content includes a third video.

[0178] According to one or more embodiments of the present disclosure, the first media content includes a first video, and the first playback unit is further configured to:

[0179] The audio of the first video is played without displaying the picture of the first video.

[0180] According to one or more embodiments of the present disclosure, the first playback unit is further configured to:

[0181] Play the third media content according to the playback progress of the first media content.

[0182] According to one or more embodiments of the present disclosure, the device further includes a display unit, which is configured to:

[0183] Displaying multiple media content material identifiers, the multiple media content material identifiers including a first media content material identifier and a second media content material identifier, wherein the first media content material identifier corresponds to a first media content material for generating a second media content; and the second media content material identifier corresponds to a second media content material for generating a third media content;

[0184] The first switching unit is further configured to:

[0185] In response to the first media content material identifier being switched from a selected state to a non-selected state, and the second media content material identifier being switched from a non-selected state to a selected state, acquiring third media content;

[0186] The second media content is switched to the third media content.

[0187] In some embodiments, the third media content is third media content aligned with the first media content, and the apparatus further includes a media content generation unit configured to generate the third media content aligned with the first media content based on the following steps:

[0188] Cutting or supplementing the second media content material according to the duration of the first media content to obtain third media content;

[0189] The start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content to obtain the third media content aligned with the first media content.

[0190] According to one or more embodiments of the present disclosure, the first media content also corresponds to a target subtitle; the apparatus further includes a subtitle processing unit. The subtitle processing unit is configured to:

[0191] Associating target subtitles with third media content;

[0192] Alternatively, for each frame of the target subtitle, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content to obtain the third media content including the subtitle.

[0193] According to one or more embodiments of the present disclosure, the device further includes a pause unit. The pause unit is configured to:

[0194] In response to receiving a pause instruction instructing to pause the playing of the third media content, the playing of the first media content and the third media content is synchronously paused.

[0195] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0196] Memory stores computer-executable instructions;

[0197] At least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the media content playback method of the first aspect and various possible designs of the first aspect.

[0198] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the media content playback method as described in the first aspect and various possible designs of the first aspect is implemented.

[0199] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the media content playback method of the first aspect and various possible designs of the first aspect.

[0200] The media content playback method, device, and electronic device provided in this embodiment play first media content and second media content corresponding to the first media content; and in response to a switching instruction for the second media content, switch the second media content to third media content. During the process of switching from the second media content to the third media content, the first media content is kept playing. This ensures that the first media content remains playing during the process of switching from the second media content to the third media content, thereby maintaining the continuity of the first media content in terms of auditory perception. This helps to improve the problem of interruption of audio information heard by the user during media content switching in related technologies.

[0201] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0202] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0203] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for playing media content, comprising: Playing the first media content and the second media content corresponding to the first media content; In response to a switching instruction for the second media content, the second media content is switched to a third media content; wherein, During the process of switching the second media content to the third media content, the first media content is kept playing.

2. The method according to claim 1, wherein The first media content includes a first video or a first audio, the second media content includes a second video, and the third media content includes a third video.

3. The method according to claim 2, wherein: The first media content includes a first video, and playing the first media content includes: Play the audio of the first video without displaying the picture of the first video.

4. The method according to any one of claims 1 to 3, further comprising: Play the third media content according to the playback progress of the first media content.

5. The method according to any one of claims 1 to 4, further comprising: Displaying multiple media content material identifiers, the multiple media content material identifiers including a first media content material identifier and a second media content material identifier, wherein the first media content material identifier corresponds to the first media content material generating the second media content; and the second media content material identifier corresponds to the second media content material generating the third media content; And the step of switching the second media content to the third media content in response to the switching instruction for the second media content includes: In response to the first media content material identifier being switched from a selected state to a non-selected state, and the second media content material identifier being switched from a non-selected state to a selected state, acquiring the third media content; The second media content is switched to the third media content.

6. The method according to claim 5, wherein: The third media content is the third media content aligned with the first media content, and the third media content aligned with the first media content is generated based on the following steps: cutting or supplementing the second media content material according to the duration of the first media content to obtain third media content; The start time of the third media content is aligned with the start time of the first media content, and the end time of the third media content is aligned with the end time of the first media content to obtain the third media content aligned with the first media content.

7. The method according to claim 6, wherein: The first media content also corresponds to a target subtitle; and the method further includes: Associating the target subtitles with the third media content; Alternatively, for each frame of the target subtitle, the start time of the frame is aligned with the start time of the corresponding frame of the third media content, and the end time of the frame is aligned with the end time of the corresponding frame of the third media content to obtain the third media content including the subtitle.

8. The method according to any one of claims 1 to 7, further comprising: In response to receiving a pause instruction instructing to pause playing of the third media content, playing of the first media content and the third media content is synchronously paused.

9. A media content playback device, comprising: A first playback unit is configured to play the first media content and the second media content corresponding to the first media content; The first switching unit is configured to switch the second media content to the third media content in response to a switching instruction for the second media content; wherein, During the process of switching from the second media content to the third media content, the first media content is kept playing.

10. An electronic device comprising: processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Media resource playing method and device, storage medium and electronic equipment

    CN113377995A

  • Media content display method and device, equipment and storage medium

    CN115062168A

  • Media playing method and equipment

    CN116132569A

  • Media content publishing method and device, equipment and storage medium

    CN116506654A

  • Multimedia content generation method and electronic equipment

    CN117556066A