Social forum

Personalized Autoview

 
Picture of Arnold Klein
Personalized Autoview
by Arnold Klein - Friday, 20 March 2009, 11:45 AM
 
Hi!

I would like to add some personalized features to my AutoView screen, but I don't know how to beginn that's why I would like to ask your help.
Is there any facility to show an image, or show the text from the AutoView description field? I would like to show some information about the presenter just below the video player where I have a huge empty space.
I think it could be quite simple - inserting some lines into one of the source files - but I can not find the proper place.

Thanks for your help, Arnold Klein
Picture of Tim Williams
Re: Personalized Autoview
by Tim Williams - Friday, 20 March 2009, 1:43 PM
 
The empty space is used for menu options which become available as you add additional sources to the presentation, eg translated subtitles, alternative video streams and slide sources.

The display layer for AutoView has been separated out into an XSL template which generates an HTML/Javascript page which contains the presentation config in a format AutoView delivery platform can understand

XML config + XSL style sheet > Processed by PHP > read by JavaScript > Page is Rendered.

This may seem complex, but the idea is to keep the components of the AutoView system as separate as possible, so that they can be re-used in other contexts. However this does make what you're trying to do a little more complicated than normal.

In order to add something to the page, you need to modify the core printFullHTML() method in vresource/autoview.js. You would probably want to add an extra div with your information in to the videoColumn.

If you need to 'pass through' extra information from Moodle for display, then edit autoview.php and add an extra element to the $parameters array, eg

$parameters['myinfo'] = "Something useful....";

Then open up templates/autoview.xsl add the following line in the block at the top :

<xsl:param name="myinfo"/>

The lower down, look for the initLang(); method call and add something like this above it :

var myinfo="<xsl:value-of select="$myinfo" />";

(Note the convention here is to use method calls, rather than setting a variable, however, this approach is the simplest)

That should now give you a variable myinfo which can be used inside the autoview.js/printFullHTML() method, or elsewhere in autoview.js as required.
Picture of Arnold Klein
Re: Personalized Autoview
by Arnold Klein - Sunday, 22 March 2009, 10:16 PM
 
Hi!

Thanks for your detailed help, I was able to add some own text and logo to the player window, which is great.

But unfortunatelly I am not an IT man but a medical doctor, so I can not manage adding exactly what I wanted, that is why I would like to ask for your help again.

When I create a new autoview video+slide presentation at the first page I type the title and the summary. I would like to show the text (or html code) just below the video window.

If you help me with it and tell me how to do this step by step I would be very greatful.

Thanks, Arnold
Picture of Tim Williams
Re: Personalized Autoview
by Tim Williams - Monday, 23 March 2009, 6:19 PM
 
There isn't an awful lot I can add to what's above in terms of step by step explanations, you really need to be a programmer to make these kinds of changes. I can add this to my possible features list, but I can't make any promises on when/if it would be done. New features mostly happen either because we need them for a commercial job or because somebody else writes them and gives me a patch.

However if you still feel like having a go yourself, the name of the presentation should already be passed through to the XSL as the $title property, so if you pick this up in the XSL and pass it through to the javascript as per the instructions above you should be able to output the title. I think you can get at the summary property by reading $autoview->summary in the autoview.php file.