Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有MediaPlayer一个Media对象,它显示在MediaView. 我想创建一个Button显示带有一些文本的媒体预览镜头。的构造函数Button如下所示:
MediaPlayer
Media
MediaView
Button
public Button(java.lang.String text, Node graphic)
如何从我的/对象中检索Node graphic参数,最好是在媒体文件内的某个指定帧处?MediaMediaPlayer
Node graphic
显然你可以传入一个MediaView对象,它会正确显示内容。