Detecting SWF vs HTML5 output
Cap 9.0.2.421 on Windows
We publish some courses to both SWF and HTML5 and use the multiscreen file. However, some customized content doesn't behave or display properly on the HTML5 side. So:
1. Is there some undocumented Cap variable we can access to determine if the output being used is SWF or HTML?
2. Is there some JS I can use to determine it? I've tried
if(typeof window.cp === 'undefined'){
/* SWF */
window.cpAPIInterface.setVariableValue("varOutputType","SWF");
} else {
/* HTML5 */
window.cpAPIInterface.setVariableValue("varOutputType","HTML5");
}
on the Enter of the first slide. It works for SWF (testing against the project.htm file) but just sits at the Loading screen for HTML5 (testing with the index.html file)
