Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

(Captivate 7) User agent in JavaScript of multiscreen.html

Guest
Jan 19, 2014 Jan 19, 2014

The 'vanilla' version of multiscreen.html (which decides if the device requires html5) shows user agents:

["blackberry","android","iphone","ipad","symbian","smartphone","ios","windows ce","webos"]

The actual user agent string for, say, my Nokia Lumia 820 is:

Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 820)

So surely if I add "...,"ARM","NOKIA","Lumia",..." then that should serve the html5 version to a Lumia? 

Doesn't seem to work.

Does anybody know how to hack multiscreen.html to ensure the correct (html5) version is served to a Lumia?  I'm actually very disappointed that this wasn't added by Adobe in Captivate 7 as the Lumias have a very capable browser and have been around for over a year now.

956
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jan 20, 2014 Jan 20, 2014

You would need to add them to this array in lowercase:

var lDevicesUserAgents = ["blackberry","android","iphone","ipad","symbian","smartphone","ios","windows ce","webos"];

When it is actually polling the device it is returning the string to lowercase for the camparison.

Translate
People's Champ ,
Jan 20, 2014 Jan 20, 2014

You would need to add them to this array in lowercase:

var lDevicesUserAgents = ["blackberry","android","iphone","ipad","symbian","smartphone","ios","windows ce","webos"];

When it is actually polling the device it is returning the string to lowercase for the camparison.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 21, 2014 Jan 21, 2014

That did it!  Many thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 27, 2014 Jan 27, 2014

Next question: is there any way to hack my local copy of Captivate so that it generates the correct 'multiscreen.html' automatically, without me having to change it every single time I want to preview my work on my local WAMP server?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 27, 2014 Jan 27, 2014
LATEST

I would think you could edit and save the mutiscreen.html @ the following location:

C:\Program Files\Adobe\Adobe Captivate 7 x64\Templates\Publish

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources