This is a message.

Content plugin not ready yet Created Jun 29, 2011

This thread is solved

Views: 1235     Replies: 4     Last reply Nov 10, 2011  
You must login first before you can use this feature

Dazzboard

Posts: 21

Registered:
Sep 21, 2009

Content plugin not ready yet

Posted: Jun 29, 2011

Hi,

My previous post here: http://flowplayer.org/forum/2/67009 talks about the same issue.

For some reason on my pc Windows 7 Pro + IE9 (and Windows Virtual PC running Windows XP + IE8) my player.swf that contains builtin configuration fails when captions plugin tries to use content plugin, but content plugin is not ready yet, THIS HAPPENS ONLY WHEN USING IE.

Builtin configuration works fine with other browsers.

Error comes from Content.as (below). Somewhere from Captions.as some function tries to use content plugin that is not ready yet. This must be timing issue, because other browsers works fine and IE works also fine IF I remove captions:[] from clip Objects.


public function set style(value:FlowStyleSheet):void {
     Assert.notNull(_contentView, "content view not created yet");
     _contentView.style = value;
}

Dazzboard

Posts: 21

Registered:
Sep 21, 2009

» Content plugin not ready yet

Posted: Jun 30, 2011

Reply to: Content plugin not ready yet, from Dazzboard
Ok,

I have now quite sure that this is caused by captions:[] defined inside the clip object.


playlist:[
  {
       url: "http://releases.flowplayer.org/data/fake_empire.mp3",
       provider: "audio",
       urlResolvers: null,
       coverImage: { 
            url: 'http://releases.flowplayer.org/data/national.jpg', 
            scaling: 'fit' 
       },
       captions: [
            {
               "text": "<span class="caption"><span class="artist">Iron Maiden</span> <span class="album">Run to the...</span> <span class="title">diidiidii</span></span>", 
               "time": 1, 
               "duration": 0
            }
       ]
    }
]

When I removed the captions:[] from clip objects IE started working fine. Also i tested using captionsUrl property and returned captions via that, it also works.

This means that when I play the playlist at the first time using IE everyting works, but when I refresh the page and start playing I get the error "300: Player initialization failed: Error: content view not created yet"

This is most likely timing issue because captions are defined already inside the clip object and those are not needed to be fetched from server anymore and parsing captions is faster that creating target content view?

This doesn't occure on Chrome or Firefox, because those fetch the external configuration each time from server.

My previous post to this issue:
http://flowplayer.org/forum/2/67009

http://flowplayer.org/forum/8/67544

Anssi
Flowplayer Flash & video streaming developer

Posts: 1197

Registered:
Jul 24, 2007

» » Content plugin not ready yet

Posted: Jul 8, 2011

Reply to: » Content plugin not ready yet, from Dazzboard
Should be fixed in this:

http://flowplayer-releases.s3.amazonaws.com/info/dist.html

Let me know if it works for you now. Also see my comment here:

http://code.google.com/p/flowplayer-core/issues/detail?id=331

Dazzboard

Posts: 21

Registered:
Sep 21, 2009

» » » Content plugin not ready yet

Posted: Jul 26, 2011

Reply to: » » Content plugin not ready yet, from Anssi
Hi,

I have been in summer vacation now two weeks and I was able to test this today.

It works now also in IE, tested with Win7+IE9 and WinXP+IE8

I had to make small change inside Caption.as Line 33 (comment out "|| 50000")


 _duration = duration;// || 50000;

I had to make this because I use "duration": 0, on previous version this made the caption show throw out the song. (I cannot always know the full lenght of the song in advance) When I use duration:0 it showed up whole time.

Caption contains only information: X of Y tracks - Artist name - Song name.

I needed to-do it in this way because I don't have JavaScript access to the player so everyting is comming from external configration file and player.swf is showing information independently.