0

暂停视频后,如何访问 C++ builder 6 MediaPlayer 对象中的当前帧?

我使用面板或 Animate 对象作为其显示,但我找不到 MediaPlayer 对象或其显示的属性或函数,可让我访问当前暂停的帧,以便能够将其像素信息复制到位图或者对其进行一些处理!

我这样做是为了将显示图像复制到位图图像,但它只是复制显示(面板或动画)背景颜色:

MediaPlayer1->Display->PaintTo(Image1->Canvas, 200, 200);
4

1 回答 1

0

TMediaPlayer does not support what you want. You will have to switch to another API, like DirectX or libav, which can give you access to the frame data and expects you to render the frames visually yourself as they are being given to you.

于 2012-06-18T02:46:38.930 回答