[Xerte-dev] Re: Hotspot Image Connector image sizes
Ron Mitchell
ronm at mitchellmedia.co.uk
Thu Apr 4 09:31:36 BST 2013
Thanks Fay
that sounds like a sensible move to move the mp4 detection to that js file.
I think the Hotspot Image Connector will become a very popular and useful
page type so great to have a bit more flexibility over image size especially
the option for none so that the image is more or less full screen. My
dimensions work ok-ish as far as my tests so far but for the none/full
screen option it would be better if alignment is centered rather than
aligned left but I wasn't sure how best to achieve that.
I'm still testing the HTML5 view of this page type but there seems to be
something a bit odd about the URL Window Width and Height options for
linking to external sites/resources. The width seems to mostly work but
height doesn't and regardless of adding different dimensions seems to ping
back to 720. In fact if I change width to 1024 for instance and then click
publish it pings back to 980. Is there something constraining this to set
sizes?
Cheers
Ron
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross
Sent: 04 April 2013 09:00
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Hotspot Image Connector image sizes
Hi Ron
All the pages that add audio or video call some code in a file called
mediaPlayer.js to load them in the page. I'll move the code used in the
textVideo page to here so that it's not something that I need to remember to
add in on every page that can have video. I had completely forgotten to add
that to this page to be honest so thanks for noticing.
I'll add your sizing code to the connector page too, although I'll probably
change it to something that's more flexible at some point.
Thanks
Fay
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 03 April 2013 17:17
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Hotspot Image Connector image sizes
Hi Fay
sorry I sent this before noticing your commit today!
So the audio hotspot now works and the video player loads but shows download
file. Can that be made to work the same way as the textVideo page e.g. look
for an mp4 of the same name?
I've uploaded your updated file but added in my crude sizing to where my
test file resides http://mitchellmedia.co.uk/xot/play_html5_64
The only change to your latest file is the following:
//RM added crude image resizing based on wizard options
//ideally needs to be more flexible/responsive than this e.g. respond to
window size
if (x_currentPageXML.getAttribute("textWidth")
== "none") {
var imgMaxW = 760,
imgMaxH = 476;
}
if (x_currentPageXML.getAttribute("textWidth")
== "narrow") {
var imgMaxW = 600,
imgMaxH = 476;
}
if (x_currentPageXML.getAttribute("textWidth") == "wide") {
var imgMaxW = 500,
imgMaxH = 476;
}
if (x_currentPageXML.getAttribute("textWidth") == "max") {
var imgMaxW = 400,
imgMaxH = 476;
}
Cheers
Ron
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 03 April 2013 17:05
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Hotspot Image Connector image sizes
Hi Fay/all
I've been testing the html5 playback of the Hotspot Image connector and have
one or two questions...
1. Is the video popup meant to work at the moment e.g. by uploading an .mp4
the same name as the flv?
2. Likewise sound popup?
3. I noticed your comments in the code about changing image size based on
text size options and have added some crude size changes (see attached and
linked example below) I haven't committed that change (but can do?) and I
said crude because ideally the image size ought to be more responsive to
window size etc rather than fixed dimensions and you've said in your code
comments to look at the textGraphics page so I'm guessing you're planning do
this at some point? The fixed sizes I've added seem to work ok on my iPad.
In my test file I've uploaded the tweaked html5 model to change size based
on the option chosen and on the last page there are video and audio links
which at the moment don't seem to work via html 5 but do via Flash but I'm
guessing neither are meant to work yet?
HTML5 link
http://mitchellmedia.co.uk/xot/play_html5_64
Flash link
http://mitchellmedia.co.uk/xot/play_64
Cheers
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130404/215c039c/attachment.html>
More information about the Xerte-dev
mailing list