问题描述
,但我可以给你方向做我所做的所有事情,确保如果您使用WinMediaPlayer工作* .wma视频和正确的位置位置,用一些爬行应用程序(我使用wget)测试它,视频窗口小部件的大小通过改变面板不是玩家。
this is the tool I use to show video and audio .I use the bst-player-api-2.0.3.jar and core-player-provider-2.0.jar
this is the code I use .
It shows like this (after added into the parent panel,and it could play sound):
I have try these code :
player.setSize("100%", "100%");
panel.setHeight("1000px");
player.setSize("300px", "300px");
I also try:(the whole code)
SimplePanel panel = new SimplePanel();
panel.setSize("1000px", "1000px");
AbstractMediaPlayer player = null;
try {
player = new WinMediaPlayer("C:/Documents and Settings/dell/Application Data/Tencent/QQMusic/Cache/WhirlCache/转身之间.mp3", true, "300px", "400px");
player.setResizeToVideoSize(true);
panel.setWidget(player);
} catch (PluginVersionException e) {
panel.setWidget(new HTML(
".. some nice message telling the user to download plugin first .."));
} catch (PluginNotFoundException e) {
panel.setWidget(new HTML(
".. another nice message telling the user to download plugin.."));
}
add(panel);
I have not solved my issue , but can I give you direction do all the stuff I done, make sure if you are using WinMediaPlayer to have working *.wma video and correct location location to it, test it with some crawling app ( I used wget ), the size of video widget is changed by changing the panel not the player.
这篇关于bst-player,GWT,媒体容器无法完全展现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!