Method for concurrently playing different media files
暂无分享,去创建一个
The invention provides a method for concurrently playing different media files, which comprises the following steps: playing a first video, simultaneously capturing user behavior in real time, and triggering and playing a second video according to the user behavior; separating, decoding and rendering second video image data to form video image data capable of being synthesized with the first video image, and storing the video image data into a GPU; carrying out image synthesis by the GPU on the first video image data and the second video image data stored in the GPU, and outputting a synthesized image onto a display; and capturing user control action, and playing the first video or the second video or simultaneously playing the first video and the second video according to the action. The invention solves the problem of simultaneously playing different media files in the video playing process and does not need to synthesize data of two videos needing to be simultaneously played in advance, and any one of two video playing processes can be respectively controlled, wherein when the two videos are simultaneously played, hardware acceleration is adopted to ensure the playing fluency.