I'm not that familiar with FDT, but in Flex Builder the key to getting this to work is to ensure that the local file path is specified as relative to the root of your project (or more specifically, your "bin" folder, since that's where assets will be copied to). So if I have a project named "OSMFSample", I would create an "flv" folder directly under it and put my videos there (making sure they get copied to the "bin" folder). The URL would then be "flv/..." (similar to yours). But again, I'm not sure if FDT does something similar
Any FDT users out there know?
Thanks for your response.
I would say I am quite well versed with FDT (have been using it since version 1.0)
I feel confident that the issue is not where the FLV or the XML files are situated in this case as I have my FLV & XML files relative to the SWF in my deploy directory, in this case:
deploy / flv / tests
I have a feeling it probably has more to do with HTTPLoader in the CaptioningLoader class.
I am still looking for a solution, otherwise I may have to revert to FLVPlayback & FLVPlaybackCaptioning
Thanks for answering again.
1 person found this helpful
Ahh, you're right -- I didn't realize the Captioning Plugin used HTTPLoader. HTTPLoader currently only works with http(s) URLs, whereas it ought to be able to support local (protocol-less) URLs. Can you file a bug here?
If you comment out the line in HTTPLoader.canHandleResource where we check for the http/https protocol (lines 88-91, I believe), does it work for you?
Yes, first test appear to show that works
I commented out lines (for me 73-76) in the HTTPLoader canHandleResource method:
if (urlResource.url.protocol.search(/http$|https$/i) == -1)
and now my captions appear.
I will now run some further tests.
(I will also file the bug like you mention)