You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Captions doesn"t load using subrip and timed text Created Nov 16, 2009

This thread is solved

Views: 2280     Replies: 4     Last reply Nov 17, 2009  
You must login first before you can use this feature

michaelglim

Posts: 9

Registered:
Nov 16, 2009

Captions doesn"t load using subrip and timed text

Posted: Nov 16, 2009

Hello,

I was checking the 'caption' feature of flow player to see if I can use it to show subtitles on our videos. There are 3 options provided to do this but so far the only one that worked for me is by using RichFLV. I have tried using subrip files and timed text but I failed to make them work. The player suddenly stops and the control bars doesn't load. But when I comment out the captionURL clip property, the player gets loaded successfully with the video. Sorry, I'm quite new to this but am I doing anything wrong?

Your help is very much appreciated!

mikebrant

Posts: 5

Registered:
Nov 17, 2009

Try swf in zip file

Posted: Nov 17, 2009

Reply to: Captions doesn"t load using subrip and timed text, from michaelglim
I messed around with this for the better part of a day, until I finally download the plugin again. Originally I had just downloaded the swf file only, which for some reason seems like it may be corrupt on this site. It was only 385 bytes in size.

I finally downloaded the zip file, and noticed that the swf for the plugin here was like 8KB. Once I uploaded this to the server, everything magically worked.

michaelglim

Posts: 9

Registered:
Nov 16, 2009

» Try swf in zip file

Posted: Nov 17, 2009

Reply to: Try swf in zip file, from mikebrant
Hi mike! thanks for the quick feedback. I'm using the one from the zip file but it doesn't work. Here's a sample of the code I use:

<script>
flowplayer("embedded", "flowplayer-3.1.5.swf", {
clip: {
url: 'Moroccan',
captionUrl: 'moroccan.srt',
provider: 'rtmp'
},
plugins: {
captions: {
url: '../swf/flowplayer.captions-3.1.4.swf',
captionTarget: 'content'
},

content: {
url:'../swf/flowplayer.content-3.1.0.swf',
bottom: 25,
height:40,
backgroundColor: 'transparent',
backgroundGradient: 'none',
border: 0,
textDecoration: 'outline',
style: {
body: {
fontSize: 14,
fontFamily: 'Arial',
textAlign: 'center',
color: '#ffffff'
}
}
},

rtmp: {
url: '../swf/flowplayer.rtmp-3.1.3.swf',
netConnectionUrl: 'rtmp://[our server's IP]/vod'
}
}
});
</script>

I'm trying to make it work using the sample codes shared on the plugin information section, which has been deployed on a development version of Flash media server.

The FLV video(Moroccan.flv) is residing on the vod/media/ folder with the SRT file but it didn't work. I've tried another approach by using an MP4 but didn't work neither. Finally I uploaded both the FLV and SRT file on the webroot folder so I can use progressive download approach but still not successful. Did I miss anything on the settings? Or do I have to use a valid domain name for it and not just an IP?

Thank you,
Mike

mikebrant

Posts: 5

Registered:
Nov 17, 2009

» » Try swf in zip file

Posted: Nov 17, 2009

Reply to: » Try swf in zip file, from michaelglim
The problem you describe sounds exactly like what I was experiencing until I changed out my caption swf. Your code looks correct to me, though I am relatively new to the flowplayer as well.

I have experienced problems with timed text files when using what should be properly formed XML per the W3C specs. It seems the timed text parser doesn't exactly comply to the spec. But even when I had these issues, this didn't prevent the player itself from loading.

The only thing that fixed the problem I had was changing out the captions swf. Sorry this didn't work for you.

michaelglim

Posts: 9

Registered:
Nov 16, 2009

» » » Try swf in zip file

Posted: Nov 17, 2009

Reply to: » » Try swf in zip file, from mikebrant
got it working now :) I was so stupid not to run the swf files on a web server. Quite weird though that content and rtmp plugin runs even without storing them on a web root.