简体   繁体   English

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

[英]How can I access the current frame in C++ builder 6 MediaPlayer object when I have paused the video?

How can I access the current frame in C++ builder 6 MediaPlayer object when I have paused the video? 暂停视频后,如何访问C ++ Builder 6 MediaPlayer对象中的当前帧?

i use a panel or Animate object as its display but I can't find a property or function for neither the MediaPlayer object or its display that lets me access the currently paused frame so that I can be able to copy its pixels information to a bitmap or do some processing on it! 我使用面板或Animate对象作为其显示,但是找不到MediaPlayer对象或其显示的属性或函数,因此无法访问当前暂停的帧,以便能够将其像素信息复制到位图或做一些处理!

I did this to copy the display image to a bitmap image but it just copies the display(panel or animate) background color: 我这样做是将显示图像复制到位图图像,但它只是复制显示(面板或动画)背景色:

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

TMediaPlayer does not support what you want. TMediaPlayer不支持您想要的。 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. 您将不得不切换到另一个API,例如DirectX或libav,它们可以使您访问框架数据,并期望您在将框架提供给您时以可视方式自己呈现框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM