nexcra / bst-player

Automatically exported from code.google.com/p/bst-player
0 stars 0 forks source link

FlashMediaPlayer widget, video displayed only in full screen mode #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Thats the code i use

SimplePanel panel = new SimplePanel(); // create panel to hold the

        // player
        AbstractMediaPlayer player = null;
        try {
            // create the player, specifing URL of media
            player = new FlashMediaPlayer("http://127.0.0.1:8888/bunny.flv");

            panel.setWidget(player); // add player to panel.

        } catch (PluginVersionException e) {
        } catch (PluginNotFoundException e) {
            panel.setWidget(PlayerUtil
                    .getMissingPluginNotice(Plugin.FlashPlayer));
        }

What I`ve done was to add vimeo-player-provider-2.0.jar, 
bst-player-api-2.0.3.jar, core-player-provider-2.0.jar to the build path add 
<inherits name="com.bramosystems.oss.player.core.CorePlayerProvider" /> in 
*.gwt.xml , I m using eclipse indigo , gwt 2.5.1 , google app engine 1.8.1 . 
jdk 1.7.0_21

Original issue reported on code.google.com by kaloyan....@gmail.com on 10 Jul 2013 at 7:11

Attachments:

GoogleCodeExporter commented 9 years ago
I do not get what you intend to do?

You can't exit full screen mode? or
you want to be full screen mode only?

Original comment by sbrah...@gmail.com on 10 Jul 2013 at 8:15

GoogleCodeExporter commented 9 years ago
no video is rendered on normal mode

Original comment by kaloyan....@gmail.com on 10 Jul 2013 at 8:34

GoogleCodeExporter commented 9 years ago
hi ,would you please take a look at these question ,I even cann't ....

http://stackoverflow.com/questions/17606667/bst-player-gwt-media-container-can-n
ot-fully-show

Original comment by guotong1...@gmail.com on 12 Jul 2013 at 6:47

GoogleCodeExporter commented 9 years ago
have you used player.setResizeToVideoSive(true)?

It automatically adjust the panel size to match the dimensions of the video

Original comment by sbrah...@gmail.com on 12 Jul 2013 at 10:32

GoogleCodeExporter commented 9 years ago
You can also specify the 'height' and 'width' when creating the player widget 
as:

new WinMediaPlayer('wma file', autoplay, 'height' width');

HTH

Original comment by sbrah...@gmail.com on 12 Jul 2013 at 10:35

GoogleCodeExporter commented 9 years ago
player.setResizeToVideoSize(true);  doesnt change anything, This could be flow 
of my architecture I m using UI binder with MVP, so activity call method from 
view which adds the panel to center of the DockLayoutPanel which is from the UI 
binder

Original comment by kaloyan....@gmail.com on 12 Jul 2013 at 10:47

GoogleCodeExporter commented 9 years ago
You can also call the player directly with UiBinder: 
http://oss.bramosystems.com/bst-player/ui-binder

If you create the player without a specific 'height'/'width', the 
FlashMediaPlayer uses 50px height and 100% width by default.  That will only 
show the controls.  So for video I recommend you specify the 'height'/'width' 
when creating the player.  

You may want to use a 'height' of 250px for example.

Original comment by sbrah...@gmail.com on 12 Jul 2013 at 11:02

GoogleCodeExporter commented 9 years ago
player = new FlashMediaPlayer("http://127.0.0.1:8888/bunny.flv", true, "300px" 
, "400px"); solved the issue, sorry for the noise

Original comment by kaloyan....@gmail.com on 12 Jul 2013 at 11:11

GoogleCodeExporter commented 9 years ago
Glad you got it working

Cheers.

Original comment by sbrah...@gmail.com on 12 Jul 2013 at 12:19

GoogleCodeExporter commented 9 years ago
Do your talks above solve my problem?... 
http://stackoverflow.com/questions/17606667/bst-player-gwt-media-container-can-n
ot-fully-show

Original comment by guotong1...@gmail.com on 12 Jul 2013 at 2:18

GoogleCodeExporter commented 9 years ago
I believe it should.  Do check and let me know

Original comment by sbrah...@gmail.com on 12 Jul 2013 at 2:45

GoogleCodeExporter commented 9 years ago
    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);

http://stackoverflow.com/questions/17606667/bst-player-gwt-media-container-can-n
ot-fully-show

it still  doesn't work. What's wrong with my computer...

Original comment by guotong1...@gmail.com on 15 Jul 2013 at 2:29

GoogleCodeExporter commented 9 years ago
I've re-opened the WinMediaPlayer issue as Issue 71.  It's different from the 
issue here...

Original comment by sbrah...@gmail.com on 15 Jul 2013 at 12:01

GoogleCodeExporter commented 9 years ago
Thank you very much and sorry for the noise

Original comment by guotong1...@gmail.com on 16 Jul 2013 at 1:19