supernginx / flowplayer-core

Automatically exported from code.google.com/p/flowplayer-core
0 stars 0 forks source link

Captions plugin doesn't load and blocks flowplayer #555

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Helo,

i try to use the captions plugin but it doesn't load:
here it is how i call flowplayer :

flowplayer("player", "../flowplayer-3.2.8.swf",{ debug : true, 
log:{level:'debug',filter:'org.flowplayer.*'}, 

        clip: {
       url: 'rtmfp://localhost/guizmo/e44823f6fb735f9a00270ef371275a9f',
        provider: 'pseudo' },

        plugins :{

            pseudo: {
                url: "../flowplayer.guizmo-3.2.9.swf",
                rangeRequests: true
            },

        subs_menu : {
            url: "../flowplayer.menu-3.2.9.swf",
            items: [
                // you can have an optional label as the first item
                // the bitrate specific items are filled here based on the clip's bitrates
                { label: "Choisis la langue des sous-titres", enabled: false }
            ]

            },

        // configure a content plugin to look good for our purpose
        contentSubs: {
            url: "../flowplayer.content-3.2.8.swf",
            top: 10,
            width: '80%',
            height:40,
            backgroundColor: 'transparent',
            backgroundGradient: 'none',
            border: 0,

            // an outline is useful so that the subtitles are more visible
            textDecoration: 'outline',
            style: {
                'body': {
                fontSize: '14',
                fontFamily: 'Arial',
                textAlign: 'center',
                color: '#ffffff'
                }
            }
        },

        captions: {
            url: "http://releases.flowplayer.org/swf/flowplayer.captions-3.2.8.swf",

            // the content plugin we use to show the captions
            captionTarget: 'contentSubs',
            button : null,

        },

        }}
    );

and here it is the three last lines of debug

[LOG] time 18:31:13.737 :: org.flowplayer.view::PluginLoader : starting to load 
plugin from url http://releases.flowplayer.org/swf/flowplayer.captions-3.2.8.swf
index.html
[LOG] time 18:31:13.745 :: org.flowplayer.view::PluginLoader : load in progress
index.html
[LOG] time 18:31:13.760 :: org.flowplayer.view::PluginLoader : load in progress

Thanks

Original issue reported on code.google.com by digital....@gmail.com on 16 May 2012 at 10:35

GoogleCodeExporter commented 9 years ago
1. Remove the spurious comma here:
button : null,<-

2. Works fine here: http://flowplayer.blacktrash.org/test/captions-below.html
(is about content positioning, but for the next few days I'll button: null)

3. What plugin is flowplayer.guizmo?

4. Better not mix where you load your swf plugins from, there could be 
crossdomain issues.

4. Please ask this kind of question in our forum first: 
http://flowplayer.org/forum/ so others profit from the answers too. Thank you.

Original comment by blacktrashproduct on 17 May 2012 at 10:23