WO2025201372A1 - 媒体内容播放方法、装置及电子设备 - Google Patents
媒体内容播放方法、装置及电子设备Info
- Publication number
- WO2025201372A1 WO2025201372A1 PCT/CN2025/084907 CN2025084907W WO2025201372A1 WO 2025201372 A1 WO2025201372 A1 WO 2025201372A1 CN 2025084907 W CN2025084907 W CN 2025084907W WO 2025201372 A1 WO2025201372 A1 WO 2025201372A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- media content
- playing
- video
- switching
- aligned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4333—Processing operations in response to a pause request
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4394—Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4852—End-user interface for client configuration for modifying audio parameters, e.g. switching between mono and stereo
Definitions
- Embodiments of the present disclosure relate to a method, apparatus, and electronic device for playing media content.
- the applications running on the terminal device can implement different functions.
- the applications running on the terminal device may include multimedia applications. These multimedia applications can record and play media content.
- Embodiments of the present disclosure provide a method, device, and electronic device for playing media content.
- 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.
- an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
- the memory stores computer-executable instructions
- 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.
- FIG1 is a schematic flow chart 1 of a method for playing media content provided by the present disclosure
- FIG2 is a second schematic flow chart of a media content playback method provided by the present disclosure.
- Figure 3 is a schematic diagram of an application scenario
- 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.
- the user's recorded media content can be combined with a video material to create a new media content.
- the first new media content can be played.
- the user can switch among multiple video materials to configure a suitable video for the media content recorded by himself.
- a multimedia application is usually run in a single thread.
- 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.
- 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.
- a first media content and a corresponding second media content can be played.
- the second media content can be switched to a third media content.
- 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.
- S101 Play first media content and second media content corresponding to the first media content.
- the execution subject of the media content playing method can be a terminal device, specifically a multimedia application client running in the terminal device.
- the above multimedia application can be a singing application.
- the first media content may be media content synthesized by an electronic device, such as synthesized audio.
- the first media content may include a first video or a first audio.
- the first media content may include a first audio, which may include recorded user audio.
- 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.
- the multimedia application can play instructions to play the first media content and the second media content.
- 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.
- a first thread and a second thread may be created.
- the first thread is used to play the first media content
- the second thread is used to play the second media content.
- 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
- the multimedia application running in the second thread plays the second media content.
- the switching instruction may be issued by a user, or may be issued by the client according to a program 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.
- 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.
- the first media content is continuously played without interruption during the process of switching from the second media content to the third media content.
- 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.
- the first media content remains played.
- 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.
- the first media content is a first video
- playing the first media content in step S101 includes:
- the audio of the first video is played without displaying the picture of the first video.
- 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.
- 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.
- 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.
- the first media content includes a first video or a first audio
- the second media content includes a second video
- 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.
- the second media content may be generated from a second media content material.
- 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.
- 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.
- the two 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.
- 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.
- 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.
- 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.
- the first media content material may be a media content material selected by a user from a plurality of 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.
- 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.
- 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.
- the first media content material identifier indicates the first media content material used to generate the second media content
- the second media content material identifier indicates the second media content material used to generate the third media content.
- FIG. 3 is a schematic diagram of an application scenario.
- 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.
- video material identifier "video material B" corresponding to the second media content is in a selected state.
- 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;
- the first playback unit 401 is further configured to:
- 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;
- the second media content is switched to the third media content.
- 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:
- 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.
- 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:
- the apparatus 40 further includes a pause unit (not shown in the figure).
- the pause unit is configured to:
- 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 (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers.
- PDAs personal digital assistants
- PADs Portable Android Devices, PADs
- PMPs portable multimedia players
- vehicle-mounted terminals such as vehicle-mounted navigation terminals
- fixed terminals such as digital TVs and desktop computers.
- the electronic device shown in FIG5 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
- 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.
- exemplary types of hardware logic components 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.
- FPGAs field programmable gate arrays
- ASICs application specific integrated circuits
- ASSPs application specific standard products
- SOCs systems on chip
- CPLDs complex programmable logic devices
- a method for playing media content comprising:
- the second media content is switched to the third media content;
- the first media content includes a first video or a first audio
- the second media content includes a second video
- the third media content includes a third video
- the method further includes:
- 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:
- 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.
- the first media content further corresponds to a target subtitle; and the method further includes:
- the start time of the frame is aligned with the start time of the corresponding frame of the third media content
- 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.
- the method further includes:
- the playing of the first media content and the third media content is synchronously paused.
- 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
- 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;
- the first media content is kept playing.
- the first media content includes a first video or a first audio
- the second media content includes a second video
- the third media content includes a third video
- the audio of the first video is played without displaying the picture of the first video.
- the first playback unit is further configured to:
- the device further includes a display unit, which is configured to:
- 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;
- the first switching unit is further configured to:
- the second media content is switched to the third media content.
- the third media content is third media content aligned with the first media content
- 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:
- 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:
- the start time of the frame is aligned with the start time of the corresponding frame of the third media content
- 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.
- the device further includes a pause unit.
- the pause unit is configured to:
- the playing of the first media content and the third media content is synchronously paused.
- an electronic device comprising: at least one processor and a memory;
- 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.
- a computer-readable storage medium in which computer-executable instructions are stored.
- 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.
- 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.
- 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.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本公开实施例提供一种媒体内容播放方法、装置及电子设备,该方法包括:播放第一媒体内容,及第一媒体内容对应的第二媒体内容;响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。实现了在将第二媒体内容切换为第三媒体内容的过程中,第一媒体内容保持播放,从而第一媒体内容的播放未受到对应的第二媒体内容切换为第三内容的影响,保持了第一媒体内容在听感上的连续性。有助于改善相关技术中切换媒体内容的过程中,用户听到的音频信息发生中断的问题。
Description
本申请要求于2024年3月29日递交的中国专利申请第202410383246.5号的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。
本公开的实施例涉及一种媒体内容播放方法、装置及电子设备。
运行于终端设备上的不同应用可以实现不同的功能。一些应用场景中,终端设备上运行的应用可以包括多媒体应用。上述多媒体应用可以录制和播放媒体内容。
本公开实施例提供一种媒体内容播放方法、装置及电子设备。
第一方面,本公开实施例提供一种媒体内容播放方法,包括:播放第一媒体内容,及第一媒体内容对应的第二媒体内容;响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放所述第一媒体内容。
第二方面,本公开实施例提供一种媒体内容播放装置,包括:第一播放单元,用于播放第一媒体内容,及第一媒体内容对应的第二媒体内容;第一切换单元,用于响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放所述第一媒体内容。
第三方面,本公开实施例提供一种电子设备,包括:处理器和存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计的方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计的方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的各种可能的设计的方法。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开提供的一种媒体内容播放方法的示意性流程图一;
图2为本公开提供的一种媒体内容播放方法的示意性流程图二;
图3为一个应用场景示意图;
图4为本公开提供的一种媒体内容播放装置的示意性结构图;
图5为本公开实施例提供的电子设备的硬件结构示意图。
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
用户可以使用多媒体应切换用录制自己的媒体内容。使用多媒体应用录制媒体内容时,用户还可以录制自己的音频信息,例如录制自己演唱的歌曲。
在录制完媒体内容后,用户可以保存上述媒体内容。为了使得所录制的媒体内容更加富有表现力,可以为上述媒体内容配置视频素材。上述多媒体应用可以向用户提供视频素材供用户选择。用户可以通过提供的视频素材为媒体内容配置相应的视频。例如将用户录制的媒体内容与一个视频素材合成第一新媒体内容。
在得到第一新媒体内容后,可以播放第一新媒体内容。此外,用户可以在多个视频素材中进行切换,以为自己录制的媒体内容配置合适的视频。
在一个实施例中,通常以单线程运行多媒体应用。多媒体应用在播放第一新媒体内容过程中,用户为自己录制的媒体内容切视频素材。上述线程需要暂停第一新媒体内容的播放,转而根据切换后的视频素材以及用户录制的媒体内容生成第二新媒体内容。在生成了第二新媒体内容后,可以播放第二新媒体内容。因此,在上述过程中,用户自己录制的媒体内容的播放处于被中断状态,也即上述媒体内容播放的连续性被打断,用户无法流畅地收听上述媒体内容中的音频信息,造成听感不连续。
本公开中,可以播放第一媒体内容以及第一媒体内容对应的第二媒体内容,响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容,在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。有利于实现在用户切换为第一媒体内容配置的其他媒体内容时,保持第一媒体内容的连续播放,因此,第一媒体内容对应的音频信息的播放不会被中断,改善了为媒体内容切换过程中由于媒体内容的播放被中断导致的听感不连续的问题。
请参考图1,图1为本公开提供的媒体内容播放方法的示意性流程图一。如图1所示,该方法包括如下步骤:
S101、播放第一媒体内容,及第一媒体内容对应的第二媒体内容。
本实施例中媒体内容播放方法的执行主体可以是终端设备,具体地可以是运行在终端设备中的多媒体应用客户端。示意性地,上述多媒体应用可以是唱歌应用。
在一些应用场景中,上述第一媒体内容可以是用户使用上述多媒体应用客户端录制的媒体内容。
在另外一些应用场景中,上述第一媒体内容可以是由电子设备合成的媒体内容,例如合成音频等。
在一些实施例中,上述第一媒体内容可以包括第一视频或第一音频。
在一些应用场景中,上述第一媒体内容包括第一视频。该第一视频可以包括音频和画面。第一视频的音频例如可以包括用户的音频和/或环境音频等。第一视频的画面例如可以包括录制第一媒体内容时的环境画面等,还可以是单一颜色的画面等。
在一些应用场景中,上述第一媒体内容可以包括第一音频。上述第一音频可以包括录制的用户音频等。
上述第二媒体内容可以是预先为第一媒体内容配置的媒体内容。第二媒体内容包括第二视频。上述第二视频例如可以根据多媒体应用提供的视频素材生成。
上述多媒体应用可以播放指令,播放第一媒体内容和第二媒体内容。
上述播放指令可以是用户发出的,也可以是由多媒体应用根据程序指令自动发出的。
作为一种示意性说明,在播放第一媒体内容时,可以触发第二媒体内容的播放。从而同时播放第一媒体内容和第二媒体内容。
作为一种实现方式,当第一媒体内容为第一视频时,可以在后台播放第一视频,在前台播放第二媒体内容。例如在前台播放无音频地播放第二媒体内容的画面。
在一些实施例中,可以创建第一线程和第二线程。第一线程用于播放第一媒体内容,第二线程用于播放第二媒体内容。具体地,第一线程和第二线程中可以分别运行多媒体应用。其中,第一线程中运行的多媒体应用播放第一媒体内容,第二线程中运行的多媒体应用播放第二媒体内容。
S102:响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。
上述切换指令可以是用户发出的,也可以是上述客户端根据程序指令发出的。
上述执行主体在接收到上述切换指令后,可以将正在播放第二媒体内容切换为第三媒体内容。例如将前台线程播放的第二媒体内容切换为第三媒体内容。
上述第三媒体内容可以是第三视频。
在步骤S101中播放的第一媒体内容,在根据切换指令由第二媒体内容切换为第三媒体内容的过程中保持播放。也即,在根据切换指令由第二媒体内容切换为第三媒体内容的过程中第一媒体内容的播放不受影响。
从听感上来说,第一媒体内容在由第二媒体内容切换为第三媒体内容的过程中保持持续播放,未产生中断。
本实施例中,播放第一媒体内容,及第一媒体内容对应的第二媒体内容;响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。在将第二媒体内容切换为第三媒体内容的过程中,第一媒体内容保持播放,从而第一媒体内容的播放未受到第二媒体内容切换为第三内容的影响。从而保持了第一媒体内容在听感上的连续性。有助于改善相关技术中切换媒体内容的过程中,用户听感发生中断的问题。
在一些实施例中,第一媒体内容为第一视频,上述步骤S101中的播放第一媒体内容,包括:
在不显示第一视频的画面的情况下,播放第一视频的音频。
在这些实施例中,上述执行主体可以在后台不显示第一视频画面的情况下播放第一视频的音频。具体地,在播放第一视频时,可以选择仅播放音频不播放视频画面。从而实现无画面地播放第一视频,也即播放第一视频的音频。
在这些实施例中,通过不显示第一视频的画面的情况下播放第一视频,可以减少所占用的资源。
请参考图2,图2为本公开提供的媒体内容播放方法的示意性流程图二。如图2所示,该方法包括如下步骤:
S201:播放第一媒体内容,及第一媒体内容对应的第二媒体内容。
本实施例中信息处理方法的执行主体可以是终端设备。终端设备中可以运行多媒体应用程序客户端。
用户可以使用上述多媒体应用程序客户端录制包括音频或视频的第一媒体内容。上述第一媒体内容可以是由多媒体录制应用实时录制的媒体内容,也可以是历史录制的媒体内容等。
第一媒体内容包括第一视频或者第一音频。第二媒体内容包括第二视频。
上述第二媒体内容可以在前台播放,第一媒体内容可以在后台播放。在前台播放的第二媒体内容可以为用户提供视觉感受。在后台播放的第一媒体内容可以为用户提供音频感受。
在一些实施例中,第二媒体内容可以是由第二媒体内容素材生成的。例如根据第一媒体内容的时间长度对第二媒体内容素材进行增补或剪切,得到第二媒体内容。例如将第二视频素材进行画面增补或剪切,得到时间长度与第一媒体内容长度一致的第二媒体内容。
在这些实施例中,上述播放第一媒体内容和与第一媒体内容对应的第二媒体内容时,可以将二者同步播放,也即二者在时间轴上播放进度一致。
S202:显示多个媒体内容素材标识,多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识,其中,第一媒体内容素材标识与生成第二媒体内容的第一媒体内容素材对应;第二媒体内容素材标识与生成第三媒体内容的第二媒体内容素材对应。
在一些应用场景中,上述第一媒体内容素材可以是根据预设规则为上述第一媒体内容从多个预设媒体内容素材中确定的媒体内容素材。例如根据第一媒体内容的风格和类型等从多个预设媒体内容素材中选择的媒体内容素材。也可以是用户从多个预设媒体内容素材中选择的媒体内容素材。
在这种实现方式中,在从多个预设媒体内容素材中确定了第一媒体内容素材后,上述执行主体可以根据第一媒体内容的时长对第一媒体内容素材进行增补或剪切,然后将进行了增补或剪切后的第一媒体内容素材与第一媒体内容在时间轴上对齐得到第二媒体内容。
在本实施例中,在播放第二媒体内容的播放界面中可以显示多个媒体内容素材标识。媒体内容素材标识可以包括图片、文字、符号、图形中的一项或多项。
多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识。第一媒体内容素材标识与生成第二媒体内容的第一媒体内容素材对应。第二媒体内容素材标识与生成第三媒体内容的第二媒体内容素材对应。也即第一媒体内容素材标识指示生成第二媒体内容的第一媒体内容素材,第二媒体内容素材标识指示生成第三媒体内容的第二媒体内容素材。
请参考图3,图3为一个应用场景示意图。如图3所示,步骤S201中播放的第二媒体内容由第一媒体内容素材“视频素材B”生成。播放界面31(播放界面31可以是多媒体播放应用的播放界面)中包括显示区域32和显示区域33。可以在显示区域32中显示第二媒体内容的画面,在显示区域33中显示多个媒体内容(视频)素材标识,例如“视频素材A”、“视频素材B”和“视频素材C”。其中,在播放第二媒体内容时,第二媒体内容对应的视频素材标识“视频素材B”处于被选中态。
当与第一媒体内容对应的第二媒体内容在播放时,上述播放界面中第二媒体内容对应的媒体内容素材标识处于被选中态。从而便于用户了解当前使用的媒体内容素材。
S203:响应于第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,获取第三媒体内容。
在这些实施例中,用户或者执行主体可以对所显示的媒体内容素材标识执行切换操作。该切换操作完成后,第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态。
在一些应用场景中,检测到第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,上述执行主体可以根据第二媒体内容素材标识确定第二媒体素材。然后由第二媒体素材生成第三媒体内容。
在另外一些应用场景中,上述执行主体还可以向服务端发送媒体内容生成请求,该媒体内容生成请求可以包括第二媒体内容素材标识,以及第一媒体内容的时长信息。上述服务端可以根据第二媒体内容素材标识确定第二媒体素材,然后根据第二媒体素材以及上述时长信息上述媒体内容生成请求生成第三媒体内容。上述执行主体可以从服务端获取上述第三媒体内容。
在另外一些应用场景中,上述第三媒体内容还可以是历史生成的,上述执行主体检测到第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,可以从存储的历史生成的媒体内容中获取第三媒体内容。
以图3为例,用户可以对图3中显示区域33中所显示的多个视频素材执行切换操作,从而触发切换指令。作为一个示意性说明,用户可以通过在播放界面中进行滑动操作的方式执行媒体内容素材标识的切换操作,通过上述切换操作,原来被选中的媒体内容素材标识可以由选中态切换为非选中态,切换操作指示的原未被选中的媒体内容素材标识可以由非选中态切换为选中态。例如在图3中的显示区域33中执行滑动操作,将当前被选中的视频素材B由选中态切换为非选中态,视频素材C由非选中态切换为选中态。
在接收到上述切换操作中,可以触发切换媒体内容的切换指令。
在进行媒体内容切换之前,若之前未根据第二媒体内容素材生成过与第一媒体内容对应的第三媒体内容,可以首先根据第二媒体内容素材生成第三媒体内容。
在一些实施例中,第三媒体内容为与第一媒体内容对齐后的第三媒体内容,第三媒体内容基于如下步骤生成:
首先,根据第一媒体内容的时长对第二媒体内容素材进行剪切或增补,得到第三媒体内容。
其次,将第三媒体内容的开始时间和第一媒体内容的开始时间进行对齐,将第三媒体内容的结束时间和第一媒体内容的结束时间进行对齐,得到与第一媒体内容对齐后的第三媒体内容。
为了根据第二媒体内容素材得到与第一媒体内容对应的第三媒体内容,需要先根据第一媒体内容的时长对第二媒体内容素材进行增补或剪切。
在这些实施例中,当第二媒体内容素材的时长大于第一媒体内容的时长时,上述执行主体可以根据预设剪切规则对上述第二媒体内容素材进行剪切。上述预设剪切规则包括视频的末尾帧开始从后向前剪切,或者从首帧开始从前向后剪切。经过上述剪切得到第三媒体内容的时长等于第一媒体内容的时长。
当第二媒体内容素材的时长小于第一媒体内容的时长时,上述执行主体可以复制第二媒体内容素材中的至少一部分内容,将复制的至少部分内容与原第二媒体内容素材进行拼接。如果拼接后的第二媒体内容素材视频素材的时长还小于第一媒体内容的时长,继续复制第二媒体内容素材中的至少部分内容然后进行拼接。若拼接后的第二媒体内容素材的时长大于第一媒体内容的时长,可以按照上述预设剪切规则对拼接后的第二媒体内容素材进行剪切。通过上述操作得到与第一媒体内容时长相等的第三媒体内容。
在得到第三媒体内容后,可以在时间轴上对齐上述第一媒体内容和第三媒体内容。将第三媒体内容的开始时间和第一媒体内容的开始时间进行对齐,将第三媒体内容的结束时间和第一媒体内容的结束时间进行对齐,进而得到与第一媒体内容对齐后的第三媒体内容。可选地,可以保存上述第三媒体内容。
在这些实施例中,通过根据第一媒体内容的时长对第二媒体内容素材进行增补和剪切得到第三媒体内容,然后将第三媒体内容与第一媒体内容进行对齐生成第三媒体内容,有助于在播放第三媒体内容时与第一媒体内容进行同步。
S204:将第二媒体内容切换为第三媒体内容,在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。
可以将随同第一媒体内容一同播放的第二媒体内容切换为第三媒体内容。
在切换后,可以第三媒体内容随同第一媒体内容一同播放。
第一媒体内容可以在后台播放,第三媒体内部在前台播放。第一媒体内容向用户提供音频,第三媒体内容可以提供视频画面。
在一些实施例中,上述方法还包括:
根据第一媒体内容的播放进度,播放第三媒体内容。
由于在将第二媒体内容切换至第三媒体内容的过程中,由于媒体内容素材的切换,需要根据第二媒体内容素材生成第三媒体内容,因此该切换过程无法瞬间完成,需要一定的时间才能实现。
在得到了第三媒体内容后,上述执行主体可以获取第一媒体内容的当前播放进度,然后将上述第三媒体内容快进至当前播放进度,例如播放第三媒体内容的线程可以通过预设接口访问播放第一媒体内容的线程来获取第一媒体内容的当前播放进度。然后从当前播放进度播放第三媒体内容,从而保证了第三媒体内容与第一媒体内容播放的同步性。
这样一来,在用户播放第一媒体内容时,将第二媒体内容切换至第三媒体内容,以变换视觉显示效果时,而第一媒体内容中的音频的播放并未停止,从而听觉上未发生中断。
相比于图1所示实施例,本实施例描述了在播放第二媒体内容的播放界面中显示多个媒体内容素材标识,根据第二媒体内容对应的媒体内容素材标识由选中态切换为非选中态,第三媒体内容对应的媒体内容素材标识由非选中态切换为选中态,获取第三媒体内容,然后将随同第一媒体内容播放媒体内容由第二媒体内容切换至第三媒体内容。通过显示播放界面中显示多个媒体内容素材标识,使得通过对媒体内容素材标识执行操作就可以实现对随同第一媒体内容一起播放的媒体内容的切换,为用户对第一媒体内容配置的媒体内容进行切换提供了便利。
在一些实施例中,第一媒体内容还对应目标字幕;该方法还包括:
将目标字幕与第三媒体内容进行关联;
或者,对于目标字幕的每一帧画面,将该画面的开始时间与第三媒体内容对应帧的开始时间对齐,将该画面的结束时间与第三媒体内容对应帧的结束时间对齐,得到包括字幕的第三媒体内容。
在这些实施例中,上述字幕可以包括第一媒体内容中音频对应的文本。具体地,上述字幕可以包括多句文本。
作为一种实现方式,目标字幕可以对应具有预设透明度的字幕画面。上述字幕的全部文本内容可以记载在上述字幕画面中。
在一些应用场景中,可以将目标字幕与第三媒体内容进行关联。在将目标字幕与第三媒体内容进行了关联之后,在播放第三媒体内容时,上述目标字幕对应的字幕画面可以随同第三媒体内容的画面一同显示。
在一些应用场景中,对于目标字幕的每一帧画面,将该画面的开始时间与第三媒体内容对应帧的开始时间对齐,将该画面的结束时间与第三媒体内容对应帧的结束时间对齐;合成对齐后的目标字幕画面和第三媒体内容画面,得到包括字幕的第三媒体内容。从而在时间轴上将目标字幕的各字幕画面帧分别与第三媒体内容的对应帧对齐,之后合成目标字幕和第三媒体内容,得到包括目标字幕的第三媒体内容。在这些应用场景中,上述目标字幕被嵌入在第三内容中。
在这些实施例中,通过将目标字幕与第三媒体内容进行关联,或者将目标字幕与第三媒体内容进行合成,从而在展示第三媒体内容时,可以展示第一媒体内容对应的目标字幕,从而用户可以在所展示的第三媒体内容中浏览到第一媒体内容中音频对应的字幕,有利于用户对第一媒体内容音频的理解。
在一些实施例中,该方法还包括:
响应于接收到指示暂停播放第三媒体内容的暂停指令,同步暂停播放第一媒体内容和第三媒体内容。
在这些实施例中,由于同时播放第一媒体内容和与第一媒体内容对应的第三媒体内容,例如在前台播放第三媒体内容,在后台播放第一媒体内容。以用户角度来看,用户在终端设备中浏览到第三媒体内容以及收听到第一媒体内容对应的音频,用户可以第三媒体内容的内容画面与第一媒体内容的音频为一个整体。在用户发出暂停播放第三媒体内容的暂停指令时,希望控制第三媒体内容的内容画面以及第一媒体内容音频的同时暂停,因此需要同步控制第一媒体内容也暂停播放。
具体地,可以由播放第三媒体内容的线程将暂停指令通过预设接口传输给播放第一媒体内容的线程,播放第一媒体内容的线程在接收到上述暂停指令后,暂停第一媒体内容的播放。
在这些实施例中,通过接收到针对第三媒体内容的暂停指令后,同步暂停第三媒体内容和第一媒体内容,从而实现了根据用户需要同步控制第三媒体内容和第一媒体内容播放暂停。
可以理解的是,在第三媒体内容和第一媒体内容处于暂停状态时,接收到用户对第三媒体内容执行的继续播放的指令,可以播放第三媒体内容以及控制第一媒体内容与第一媒体内容同步继续播放。
请继续参考图3,图3为一个应用场景示意图,如图3所示,终端设备中运行多媒体应用。用户可以通过多媒体应用录制用户的音频(例如演唱歌曲的音频)得到第一音频。
如图3所示,终端设备的播放界面31可以包括显示区域33,显示区域33中可以显示不同媒体内容类别,例如“推荐背景”和“我的作品”。每一个媒体内容类别中可以包括至少一个视频。用户可以选择“推荐背景”类别,上述显示区域33中可以显示属于“推荐背景”的多个视频素材的封面以及标识,上述多个视频素材例如可以包括视频素材A、视频素材B和视频素材C。用户可以选择视频素材B作为第一媒体内容素材。
多媒体应用在接收到用户对“视频素材B”的选择操作后,可以将“视频素材B”根据第一媒体内容的时长进行剪切或增补,使得对剪切或增补后的视频素材B的时长与第一媒体内容的时长相等。根据剪切或增补的“视频素材B”生成第二媒体内容。
上述第一媒体内容可以具有目标字幕,上述执行主体可以将第二媒体内容与目标字幕进行关联,或者将第二媒体内容与目标字幕进行合成得到包含目标字幕的第二媒体内容。
在得到第二媒体内容后,可以播放第二媒体内容。可以创建2个线程:线程1和线程2。线程1和线程2可以分别运行多媒体应用的播放器。线程1的播放器可以播放第一媒体内容,线程2的播放器可以播放第二媒体内容。线程1和线程2可以同步播放第一媒体内容和第二媒体内容。
作为一种实现方式,播放第一媒体内容的线程1可以运行在后台,播放第二媒体内容的线程可以运行在前台。
播放界面31中包括显示区域32,上述显示区域32中可以显示第二媒体内容的内容画面。上述内容画面随着播放进度的变化而发生变动。
在播放第一媒体内容和第二媒体内容的过程中,用户还可以切换视频素材。例如,用户可以在上述显示区域33中左右切换同类别的视频素材。
又如,用户还可以在上述显示区域33中选择不同的视频素材类别,例如选择“我的作品”类别。“我的作品”类别可以包括视频素材D、视频素材E和视频素材F,在用户选择了“我的作品”类别之后,显示区域33可以显示属于该类别的多个视频素材。例如显示视频素材D、视频素材E和视频素材F。用户可以在上述显示区域33中选择视频素材D。
上述多媒体应用在接收到上述对视频素材D的选择操作后,可以暂停播放第二媒体内容。原播放第二媒体内容的线程2可以获取视频素材D的视频数据,根据第一媒体内容的时长对视频素材D的视频数据进行剪切或增补,得到与第一媒体内容的时长相等的候选第三媒体内容。上述线程2可以在时间轴上对齐上述候选第三媒体内容和第一媒体内容,然后生成第三媒体内容。
在一些应用场景中,上述线程2可以将第三媒体内容与第一媒体内容的目标字幕进行关联,或者将第一媒体内容的目标字幕与第三媒体内容合成,得到包括目标字幕的第三媒体内容。
在得到第三媒体内容后,原播放第二媒体内容的上述线程2可以与播放第一媒体内容的线程1进行信息交换,获取第一媒体内容的当前播放进度。上述线程2可以快进第三媒体内容至上述当前播放进度,从上述当前播放进度按照与第一媒体内容相同的播放速度播放第三媒体内容,从而实现了第三媒体内容与第一媒体内容的同步播放。显示区域32中可以显示第三媒体内容的画面。具体地,上述显示区域32从上述当前播放进度对应的画面开始播放第三媒体内容。
在用户选择了视频素材D到播放由视频素材D得到第三媒体内容的这个过程中,线程1并未停止播放第一媒体内容,也即第一媒体内容的音频一直在连续播放。从而在上述过程中,用户听到的第一媒体内容的音频是连续播放的。从而在前台切换与第一媒体内容对应的其他媒体内容时,用户仍然可以流畅的收听到第一媒体内容的音频,改善了相关技术中切换媒体内容过程中音频播放的连续性被打断,用户无法流畅收听音频内容的问题。
对应于上文图1所示实施例的媒体内容播放方法,图4为本公开实施例提供的媒体内容播放装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图4,装置40包括:第一播放单元401和第一切换单元402。其中,
第一播放单元401,用于播放第一媒体内容,及第一媒体内容对应的第二媒体内容;
第一切换单元402,用于响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,
在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。
在一些实施例中,第一媒体内容包括第一视频或第一音频,第二媒体内容包括第二视频,第三媒体内容包括第三视频。
在一些实施例中,第一媒体内容包括第一视频,第一播放单元401进一步用于:
在不显示第一视频的画面的情况下,播放第一视频的音频。
在一些实施例中,第一播放单元401进一步用于:
根据第一媒体内容的播放进度,播放第三媒体内容。
在一些实施例中,装置40还包括显示单元(图中未示出),显示单元用于:
显示多个媒体内容素材标识,多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识,其中,第一媒体内容素材标识与生成第二媒体内容的第一媒体内容素材对应;第二媒体内容素材标识与生成第三媒体内容的第二媒体内容素材对应;
第一切换单元402进一步用于:
响应于第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,获取第三媒体内容;
将第二媒体内容切换为第三媒体内容。
在一些实施例中,第三媒体内容为与第一媒体内容对齐后的第三媒体内容,装置40还包括媒体内容生成单元(图中未示出),媒体内容生成单元用于基于如下步骤生成与第一媒体内容对齐后的第三媒体内容:
根据第一媒体内容的时长对第二媒体内容素材进行剪切或增补,得到第三媒体内容;
将第三媒体内容的开始时间和第一媒体内容的开始时间进行对齐,将第三媒体内容的结束时间和第一媒体内容的结束时间进行对齐,得到与第一媒体内容对齐后的第三媒体内容。
在一些实施例中,第一媒体内容还对应目标字幕;装置40还包括字幕处理单元(图中未示出)。字幕处理单元用于:
将目标字幕与第三媒体内容进行关联;
或者,对于目标字幕的每一帧画面,将该帧画面的开始时间与第三媒体内容对应帧画面的开始时间对齐,将该帧画面的结束时间与第三媒体内容对应帧画面的结束时间对齐,得到包括字幕的第三媒体内容。
在一些实施例中,装置40还包括暂停单元(图中未示出)。暂停单元用于:
响应于接收到指示暂停播放第三媒体内容的暂停指令,同步暂停播放第一媒体内容和第三媒体内容。
为了实现上述实施例,本公开实施例还提供了一种电子设备。
参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图,该电子设备500可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(Read Only Memory,简称ROM)502中的程序或者从存储装置508加载到随机访问存储器(Random Access Memory,简称RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种媒体内容播放方法,包括:
播放第一媒体内容,及第一媒体内容对应的第二媒体内容;
响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,
在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。
根据本公开的一个或多个实施例,第一媒体内容包括第一视频或第一音频,第二媒体内容包括第二视频,第三媒体内容包括第三视频。
根据本公开的一个或多个实施例,第一媒体内容包括第一视频,播放第一媒体内容,包括:
在不显示第一视频的画面的情况下,播放第一视频的音频。根据本公开的一个或多个实施例,该方法还包括:
根据第一媒体内容的播放进度,播放第三媒体内容。
根据本公开的一个或多个实施例,该方法还包括:
显示多个媒体内容素材标识,多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识,其中,第一媒体内容素材标识与生成第二媒体内容的第一媒体内容素材对应;第二媒体内容素材标识与生成第三媒体内容的第二媒体内容素材对应;
以及响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容,包括:
响应于第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,获取第三媒体内容;
将第二媒体内容切换为第三媒体内容。
根据本公开的一个或多个实施例,第三媒体内容为与第一媒体内容对齐后的第三媒体内容,与第一媒体内容对齐后的第三媒体内容基于如下步骤生成:
根据第一媒体内容的时长对第二媒体内容素材进行剪切或增补,得到第三媒体内容;
将第三媒体内容的开始时间和第一媒体内容的开始时间进行对齐,将第三媒体内容的结束时间和第一媒体内容的结束时间进行对齐,得到与第一媒体内容对齐后的第三媒体内容。
根据本公开的一个或多个实施例,第一媒体内容还对应目标字幕;方法还包括:
将目标字幕与第三媒体内容进行关联;
或者,对于目标字幕的每一帧画面,将该画面的开始时间与第三媒体内容对应帧的开始时间对齐,将该画面的结束时间与第三媒体内容对应帧的结束时间对齐,得到包括字幕的第三媒体内容。
根据本公开的一个或多个实施例,方法还包括:
响应于接收到指示暂停播放第三媒体内容的暂停指令,同步暂停播放第一媒体内容和第三媒体内容。
第二方面,根据本公开的一个或多个实施例,提供了一种媒体内容播放装置,包括:
第一播放单元,用于播放第一媒体内容,及第一媒体内容对应的第二媒体内容;
第一切换单元,用于响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,
在将第二媒体内容切换为第三媒体内容的过程中,保持播放第一媒体内容。
根据本公开的一个或多个实施例,第一媒体内容包括第一视频或第一音频,第二媒体内容包括第二视频,第三媒体内容包括第三视频。
根据本公开的一个或多个实施例,第一媒体内容包括第一视频,第一播放单元进一步用于:
在不显示第一视频的画面的情况下,播放第一视频的音频。
根据本公开的一个或多个实施例,第一播放单元进一步用于:
根据第一媒体内容的播放进度,播放第三媒体内容。
根据本公开的一个或多个实施例,该装置还包括显示单元,显示单元用于:
显示多个媒体内容素材标识,多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识,其中,第一媒体内容素材标识与生成第二媒体内容的第一媒体内容素材对应;第二媒体内容素材标识与生成第三媒体内容的第二媒体内容素材对应;
第一切换单元进一步用于:
响应于第一媒体内容素材标识由选中态切换为非选中态,第二媒体内容素材标识由非选中态切换为选中态,获取第三媒体内容;
将第二媒体内容切换为第三媒体内容。
在一些实施例中,第三媒体内容为与第一媒体内容对齐后的第三媒体内容,装置还包括媒体内容生成单元,媒体内容生成单元用于基于如下步骤生成与第一媒体内容对齐后的第三媒体内容:
根据第一媒体内容的时长对第二媒体内容素材进行剪切或增补,得到第三媒体内容;
将第三媒体内容的开始时间和第一媒体内容的开始时间进行对齐,将第三媒体内容的结束时间和第一媒体内容的结束时间进行对齐,得到与第一媒体内容对齐后的第三媒体内容。
根据本公开的一个或多个实施例,第一媒体内容还对应目标字幕;装置还包括字幕处理单元。字幕处理单元用于:
将目标字幕与第三媒体内容进行关联;
或者,对于目标字幕的每一帧画面,将该帧画面的开始时间与第三媒体内容对应帧画面的开始时间对齐,将该帧画面的结束时间与第三媒体内容对应帧画面的结束时间对齐,得到包括字幕的第三媒体内容。
根据本公开的一个或多个实施例,该装置还包括暂停单元。暂停单元用于:
响应于接收到指示暂停播放第三媒体内容的暂停指令,同步暂停播放第一媒体内容和第三媒体内容。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个处理器和存储器;
存储器存储计算机执行指令;
至少一个处理器执行存储器存储的计算机执行指令,使得至少一个处理器执行如上第一方面以及第一方面各种可能的设计的媒体内容播放方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上第一方面及第一方面各种可能的设计的媒体内容播放方法。
第五方面,根据本公开的一个或多个实施例,提供了一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时实现如上第一方面及第一方面各种可能的设计的媒体内容播放方法。
本实施例提供的媒体内容播放方法、装置及电子设备,通过播放第一媒体内容,及第一媒体内容对应的第二媒体内容;响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放所述第一媒体内容,实现了在将第二媒体内容切换为第三媒体内容的过程中,第一媒体内容保持播放,从而第一媒体内容的播放未受到第二媒体内容切换为第三内容的影响,保持了第一媒体内容在听感上的连续性。有助于改善相关技术中切换媒体内容的过程中,用户听到的音频信息发生中断的问题。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。
Claims (12)
- 一种媒体内容播放方法,包括:播放第一媒体内容,及第一媒体内容对应的第二媒体内容;响应于针对第二媒体内容的切换指令,将所述第二媒体内容切换为第三媒体内容;其中,在将所述第二媒体内容切换为所述第三媒体内容的过程中,保持播放所述第一媒体内容。
- 根据权利要求1所述的方法,其中,所述第一媒体内容包括第一视频或第一音频,所述第二媒体内容包括第二视频,所述第三媒体内容包括第三视频。
- 根据权利要求2所述的方法,其中,所述第一媒体内容包括第一视频,所述播放第一媒体内容,包括:在不显示所述第一视频的画面的情况下,播放所述第一视频的音频。
- 根据权利要求1-3中任意一项所述的方法,还包括:根据所述第一媒体内容的播放进度,播放所述第三媒体内容。
- 根据权利要求1-4中任意一项所述的方法,还包括:显示多个媒体内容素材标识,所述多个媒体内容素材标识包括第一媒体内容素材标识和第二媒体内容素材标识,其中,所述第一媒体内容素材标识与生成所述第二媒体内容的第一媒体内容素材对应;所述第二媒体内容素材标识与生成所述第三媒体内容的第二媒体内容素材对应;以及所述响应于针对第二媒体内容的切换指令,将所述第二媒体内容切换为第三媒体内容,包括:响应于所述第一媒体内容素材标识由选中态切换为非选中态,所述第二媒体内容素材标识由非选中态切换为选中态,获取所述第三媒体内容;将所述第二媒体内容切换为所述第三媒体内容。
- 根据权利要求5所述的方法,其中,所述第三媒体内容为与第一媒体内容对齐后的第三媒体内容,所述与第一媒体内容对齐后的第三媒体内容基于如下步骤生成:根据所述第一媒体内容的时长对所述第二媒体内容素材进行剪切或增补,得到第三媒体内容;将所述第三媒体内容的开始时间和所述第一媒体内容的开始时间进行对齐,将所述第三媒体内容的结束时间和所述第一媒体内容的结束时间进行对齐,得到与第一媒体内容对齐后的第三媒体内容。
- 根据权利要求6所述的方法,其中,所述第一媒体内容还对应目标字幕;所述方法还包括:将所述目标字幕与所述第三媒体内容进行关联;或者,对于目标字幕的每一帧画面,将该帧画面的开始时间与所述第三媒体内容对应帧画面的开始时间对齐,将该帧画面的结束时间与所述第三媒体内容对应帧画面的结束时间对齐,得到包括所述字幕的第三媒体内容。
- 根据权利要求1-7中任意一项所述的方法,还包括:响应于接收到指示暂停播放所述第三媒体内容的暂停指令,同步暂停播放所述第一媒体内容和所述第三媒体内容。
- 一种媒体内容播放装置,包括:第一播放单元,被配置为播放第一媒体内容,及第一媒体内容对应的第二媒体内容;第一切换单元,被配置为响应于针对第二媒体内容的切换指令,将第二媒体内容切换为第三媒体内容;其中,在将第二媒体内容切换为第三媒体内容的过程中,保持播放所述第一媒体内容。
- 一种电子设备,包括:处理器和存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1-8中任意一项所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1-8中任意一项所述的方法。
- 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如权利要求1-8中任意一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410383246.5A CN120730121A (zh) | 2024-03-29 | 2024-03-29 | 媒体内容播放方法、装置及电子设备 |
| CN202410383246.5 | 2024-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025201372A1 true WO2025201372A1 (zh) | 2025-10-02 |
Family
ID=97168232
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2025/084907 Pending WO2025201372A1 (zh) | 2024-03-29 | 2025-03-26 | 媒体内容播放方法、装置及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN120730121A (zh) |
| WO (1) | WO2025201372A1 (zh) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150254242A1 (en) * | 2014-03-04 | 2015-09-10 | Microsoft Corporation | Automapping of music tracks to music videos |
| CN113377995A (zh) * | 2021-06-18 | 2021-09-10 | 广州酷狗计算机科技有限公司 | 媒体资源的播放方法、装置和存储介质及电子设备 |
| CN115062168A (zh) * | 2022-06-28 | 2022-09-16 | 北京字跳网络技术有限公司 | 媒体内容展示方法、装置、设备及存储介质 |
| CN116132569A (zh) * | 2022-12-28 | 2023-05-16 | 北京字跳网络技术有限公司 | 媒体播放方法及设备 |
| CN116506654A (zh) * | 2023-04-26 | 2023-07-28 | 北京字跳网络技术有限公司 | 媒体内容发布方法、装置、设备及存储介质 |
| CN117556066A (zh) * | 2023-10-26 | 2024-02-13 | 北京智乐活科技有限公司 | 多媒体内容生成方法和电子设备 |
-
2024
- 2024-03-29 CN CN202410383246.5A patent/CN120730121A/zh active Pending
-
2025
- 2025-03-26 WO PCT/CN2025/084907 patent/WO2025201372A1/zh active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150254242A1 (en) * | 2014-03-04 | 2015-09-10 | Microsoft Corporation | Automapping of music tracks to music videos |
| CN113377995A (zh) * | 2021-06-18 | 2021-09-10 | 广州酷狗计算机科技有限公司 | 媒体资源的播放方法、装置和存储介质及电子设备 |
| CN115062168A (zh) * | 2022-06-28 | 2022-09-16 | 北京字跳网络技术有限公司 | 媒体内容展示方法、装置、设备及存储介质 |
| CN116132569A (zh) * | 2022-12-28 | 2023-05-16 | 北京字跳网络技术有限公司 | 媒体播放方法及设备 |
| CN116506654A (zh) * | 2023-04-26 | 2023-07-28 | 北京字跳网络技术有限公司 | 媒体内容发布方法、装置、设备及存储介质 |
| CN117556066A (zh) * | 2023-10-26 | 2024-02-13 | 北京智乐活科技有限公司 | 多媒体内容生成方法和电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120730121A (zh) | 2025-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110324718B (zh) | 音视频生成方法、装置、电子设备及可读介质 | |
| JP7718760B2 (ja) | エフェクトプロファイルの生成方法、装置、機器及び媒体 | |
| US12142296B2 (en) | Audio processing method and apparatus, and electronic device and storage medium | |
| CN115062168A (zh) | 媒体内容展示方法、装置、设备及存储介质 | |
| CN115633206A (zh) | 媒体内容展示方法、装置、设备及存储介质 | |
| US12243562B2 (en) | Method and apparatus for multimedia resource clipping scenario, device and storage medium | |
| WO2022042035A1 (zh) | 视频制作方法、装置、设备及存储介质 | |
| JP7715918B2 (ja) | マルチメディアデータの処理方法、装置、機器及び媒体 | |
| CN113727170A (zh) | 视频交互方法、装置、设备及介质 | |
| CN113507637A (zh) | 媒体文件处理方法、装置、设备、可读存储介质及产品 | |
| JP2025524433A (ja) | ページ表示方法、装置、デバイス、コンピュータ可読記憶媒体、及び製品 | |
| US11272136B2 (en) | Method and device for processing multimedia information, electronic equipment and computer-readable storage medium | |
| CN112165652A (zh) | 视频处理方法、装置、设备及计算机可读存储介质 | |
| WO2024139852A1 (zh) | 媒体播放方法及设备 | |
| WO2025002444A1 (zh) | 多媒体内容的投屏方法、设备及存储介质 | |
| CN110418183B (zh) | 音视频同步方法、装置、电子设备及可读介质 | |
| WO2025118949A1 (zh) | 特效处理方法、装置、电子设备及存储介质 | |
| US20240103802A1 (en) | Method, apparatus, device and medium for multimedia processing | |
| JP7670853B2 (ja) | 特殊効果表示方法、装置、機器、記憶媒体及び製品 | |
| WO2026067384A1 (zh) | 媒体内容的展示方法、设备及存储介质 | |
| CN115269920A (zh) | 交互方法、装置、电子设备和存储介质 | |
| JP7733138B2 (ja) | 動画編集方法、装置、機器、及び媒体 | |
| WO2025201372A1 (zh) | 媒体内容播放方法、装置及电子设备 | |
| CN119233013B (zh) | 视频处理方法、装置及电子设备 | |
| CN118741242A (zh) | 视频编辑方法、装置、设备及介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 25777829 Country of ref document: EP Kind code of ref document: A1 |