Topic: SimpleViewer on mobile devices with Flash

There are mobile devices (Android tablets) with Flash installed. I tested SimpleViewer Pro on a such device, and even if Flash was available, the HTML5 (Mobile) version has been displayed.
Is this the intended behaviour?

And another question: is there any method for detecting which version of the gallery (Flash or HTML5) will be used (before calling SV.simpleviewer.load(...))?

Thanks,
Ion

Last edited by jviewer (2011-03-20 08:06:51)

Re: SimpleViewer on mobile devices with Flash

Is this the intended behaviour?

Yes, it looks like SimpleViewer v2.1.2 will always use the mobile player when on an Android device.
See this post (and its thread) for a related discussion.

With regard to detecting which version of the gallery will be used, I do not know the exact criteria used to determine this but, assuming the 'useFlash' Embed Code Parameter is 'true', you could detect for version 9.0.124 (or above) of the Adobe Flash Player (which is the version SimpleViewer requires) by using the following JavaScript after loading the 'simpleviewer.js' file.

<script type="text/javascript">
  if (swfobject.hasFlashPlayerVersion("9.0.124"))
  {
    // Flash gallery will be used
  }
  else
  {
    // Mobile gallery will be used
  }
</script>
Steven Speirs
SimpleViewer Support Team.