Code change to make captions work when launching locally

Topics: HTML5 web
Jan 10, 2012 at 2:04 AM

The new captions feature is great. However, the code generates an "Access Denied" error when you try to launch the code locally from your hard drive. It's nice to launch the code locally to make sure everything is working fine before you upload code to a server.

I added code to fix the "Access Denied" error.

I wrapped this line in PlayerFramework.js:

request.open(options.method || "GET", options.url, false 

);

in a try-catch statement. When the request.open fails, I added code to read in the XML file with a "Msxml2.DOMDocument.6.0" object. I then modified TrackPlugin.js to accept the XML data read in from the "Msxml2.DOMDocument.6.0" object. Please let me know if you want the code changes - leo AT e-learningconsulting.com