[Xerte] XOT detect when narration has finished playing?
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Nov 1 12:43:22 GMT 2010
Not sure how you've done it but I would:
- Add optionalproperties to each page
- Add them and set them
- Piece plays, page turns
- showAudio fires. Before that set some vars
Afterwards, in the event handler use those vars to play the narration on auto or not, and to either enable or disable the navigation.
On the consistency front, if the first three pages of an RLO turn automatically, and 4-5 etc don't, there will be users who never see beyond page 3.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 01 November 2010 12:11
To: 'Xerte discussion list'
Subject: RE: [Xerte] XOT detect when narration has finished playing?
Forgot to mention I was alto tracking the setting for each page and included an option to determine if the narration autoplayed when returning to a page or not. Example attached.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 01 November 2010 11:49
To: 'Xerte discussion list'
Subject: RE: [Xerte] XOT detect when narration has finished playing?
Yes I did wonder about that. I was trying to do this without any change to Nottingham.rlt and so initially just with my bleedingimage page type allowing auto navigation and/or autoplay using that page type. But it did occur to me that if I could get it working online properly it would be worth having the autoplay and autonavigate options for all pages.
In response to the later messages - there are also accessibility benefits in having the autoplay autonavigate and would be easy for the author to signpost in the text whether any particular page is set to do that or not.
Also yes these would be optional properties and only used for specific purposes. For some pages e.g. where interaction is included auto navigate wouldn't be appropriate but auto narrate might. The only thing I would say is that these would need to be options for each page type rather than something only set as an LO property applying to all pages.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 01 November 2010 11:19
To: Xerte discussion list
Subject: RE: [Xerte] XOT detect when narration has finished playing?
I added one interaction beneath the narration sound icon in the entry frame, and listened for onSoundComplete, added a script in that response for rootIcon.nextPage();
If you add that permanently we might need a global LO setting that says 'auto navigate on narration complete' or similar, then you can turn it on or off.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 28 October 2010 10:17
To: 'Xerte discussion list'
Subject: RE: [Xerte] XOT detect when narration has finished playing?
Hi Julian
if you're back any thoughts on this one?
Cheers
Ron
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 26 October 2010 19:57
To: 'Xerte discussion list'
Subject: RE: [Xerte] XOT detect when narration has finished playing?
This might be a question for Julian or at least someone familiar with the XOT Nottingham.rlt and textGraphics.rlm files...
I thought with Dave's suggestion I'd got this working how I wanted by using onSoundComplete attached to an interaction icon and indeed it works fine offline but once uploaded to an online toolkits install I think the sound is taking longer to load and therefore preventing this from working correctly.
It might just be the way I'm trying to do this. In the textGraphics.rlm if a narration file has been added to a page the code fires the narration handler in Nottingham.rlt e.g. rootIcon.broadcast('showAudio'); I'm not sure but I think the problem is there isn't an onLoad event on the sound icon and I'm trying to auto play the narration and then detect when it has reached the end. It works if I don't auto play but if I try to auto play via nar.Play(); the onSoundComplete fires straight away but only when online. I think there is a similar issue with the existing textGraphics page e.g. if that's the first page in an LO with narration added the narration and controller doesn't show until navigating away from and then back to that first page.
Here's an example of that http://xerte5.techdis.palepurple.co.uk/play_5485
So I guess two questions: 1. Is there a way of detecting onLoad with the sound icon or 2. Is there another way to ensure the narration file has loaded before telling it to play?
Cheers
Ron
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick Lockley
Sent: 25 October 2010 23:18
To: Xerte discussion list
Subject: RE: [Xerte] detect when narration has finished playing?
I imagine the elm must have a series of events in already. So as dave says, adding an onsoundcomplete would do it ________________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM [ronm at mitchellmedia.co.uk]
Sent: Monday, October 25, 2010 10:40 PM
To: Xerte discussion list
Subject: Re: [Xerte] detect when narration has finished playing?
Thanks Dave that sounds about right will try tomorrow cheers.
Pat - yes it's the narration optional property part of the textGraphics.rlm have a tweak of that model which autoplays the narration and I want to auto navigate to next page when narration completes. Have shut down now but Dave's suggestion sounds like it could work.
Cheers
Ron
Sent from my iPhone
On 25 Oct 2010, at 21:59, Dave Burnett
<d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>> wrote:
onSoundComplete event?
________________________________
From: <mailto:ronm at mitchellmedia.co.uk>
ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>
To: <mailto:xerte at lists.nottingham.ac.uk>
xerte at lists.nottingham.ac.uk<mailto:xerte at lists.nottingham.ac.uk>
Date: Mon, 25 Oct 2010 21:54:14 +0100
Subject: [Xerte] detect when narration has finished playing?
Hi
I'm working on tweaking a XOT model to detect when the narration added has finished playing and then to navigate to the next page. I'm sure I can get the navigation bit working but not sure if there is an easy way or existing way to detect when the narration has finished playing - any suggestions?
Cheers
Ron
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it. Please do not
use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
More information about the Xerte
mailing list