[Xerte] Re: Youtube Dimensions

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Jun 13 10:13:05 BST 2011


No worries.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Adam Read
Sent: 13 June 2011 09:53
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

Hi Julian

Sorry for the delay - wasn't in the office on Friday. Have updated our XOT installation with your latest youtube.rlm model - and can confirm that the player and seek bar are now working as expected.

This is a really great enhancement - thanks v.much!

Adam

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 June 2011 14:55
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

Well spotted - indeed it had. Try this one.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Adam Read
Sent: 09 June 2011 14:53
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

Has your calculation of the seekTo position changed though because the length of the time bar is physically longer (with larger video player)?

It's not a significant issue, they can always replay the whole video!

Cheers for your help.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 June 2011 14:34
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

It is a swf file, but it's loaded from youtube directly. Once it's loaded it exposes a heap of methods to your code, seekTo() being one, I think, but that's all I can do... I work out the time position to seek to based on where the user clicks the bar, and then call seekTo()

J

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Adam Read
Sent: 09 June 2011 14:19
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

Yep - funky layout fixed.

I'm not sure if it is a key frame issue. I've created an identical page using the same youtube video (one with videoSize enabled, one with the default). I can accurately seek using the time bar on the default sized player, just not on the modified size one.

Is the youtube player a swf file? Perhaps it's something to do with that?

Adam

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 June 2011 12:52
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

The seeking is down to how many key frames are in the movie I think. Not sure I can do anything about that: all I'm doing is calling methods on the embeddable player. Updated model attached which fixes that funky layout thing,

I've stopped the template trying to play the video ID "JYO_VruAkaw?hd=1" which is why it broke (it just needs the ID), but it's always going to access the lo-fi stream. Maybe I can request the HD one through the API? I'll find out.

J

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Adam Read
Sent: 09 June 2011 12:35
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

Hi Julian

Got it working. A couple of slight issues:


1)      If text is set to align-left the video player floats off the edge of the page.

2)      Attempting to scroll through the video using the time bar seems to jump erratically.

Other than that it's a great addition.

Regarding HD playeback. Here's a video - have a look at the (slight) difference between standard 360 and HD 720 resolutions - http://www.youtube.com/watch?v=JYO_VruAkaw - picky I know but I do like the sharpness when viewing back in 720.

The new YT embed code doesn't seem to play ball with the xerte page when it has additional variables appended to the URL:

E.g:

Broken:

<iframe width="1280" height="750" src="http://www.youtube.com/embed/JYO_VruAkaw?hd=1" frameborder="0" allowfullscreen></iframe>

Works:

<iframe width="1280" height="750" src="http://www.youtube.com/embed/JYO_VruAkaw" frameborder="0" allowfullscreen></iframe>



From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 June 2011 10:40
To: Xerte discussion list
Subject: [Xerte] Re: Youtube Dimensions

You mean like this? See attached. There is an optional property 'videoSize' which takes a value like this: 500,200.

Would you test it for me please? You might want to back those two files up in case there's anything screwy in there, but it looks OK. I haven't been through every option / combination...

Unsure about the HD thing. Are you sure there is an HD stream of the video you want to view? If the input is lo-fi, HD will be lo-fi too. Even if there is an HD stream, you might need a very expensive projector to actually see any difference, can you point me to an example where you can see the difference between HD and standard quality?

[cid:image001.png at 01CC29B2.7C292310]



From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Adam Read
Sent: 09 June 2011 09:45
To: Xerte discussion list (xerte at lists.nottingham.ac.uk)
Subject: [Xerte] Youtube Dimensions

Hi wizards

I'm  wondering how tricky it would be to create a copy of the youtube template (XOT) and modify it so a user could specify the dimensions of the player? I notice the standard flash video page template allows a user to enter their specified size (separated by a comma).

I've had a look at the youtube page template, just to see if I could directly change the size of the video (to 480, 272) but wasn't sure which values to set!

On another note, is there a way to force it to play a HD stream? I've ticked the HD option in the YT embed section, which appends "HD=1" to the URL, but that doesn't seem to effect the quality in Xerte.

Cheers, Adam



University College Plymouth St Mark & St John,  Derriford Road, Plymouth, PL6 8BH

            Phone:  01752 636700     Web:  www.ucpmarjon.ac.uk<http://www.ucpmarjon.ac.uk>

 Principal: Professor Margaret Noble A Church of England College Founded in 1840

University College Plymouth St Mark & St John is a registered charity the trustee

   of which is a company limited by guarantee registered in England No. 986239


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.

University College Plymouth St Mark & St John,  Derriford Road, Plymouth, PL6 8BH

            Phone:  01752 636700     Web:  www.ucpmarjon.ac.uk<http://www.ucpmarjon.ac.uk>

 Principal: Professor Margaret Noble A Church of England College Founded in 1840

University College Plymouth St Mark & St John is a registered charity the trustee

   of which is a company limited by guarantee registered in England No. 986239

University College Plymouth St Mark & St John,  Derriford Road, Plymouth, PL6 8BH

            Phone:  01752 636700     Web:  www.ucpmarjon.ac.uk<http://www.ucpmarjon.ac.uk>

 Principal: Professor Margaret Noble A Church of England College Founded in 1840

University College Plymouth St Mark & St John is a registered charity the trustee

   of which is a company limited by guarantee registered in England No. 986239

University College Plymouth St Mark & St John,  Derriford Road, Plymouth, PL6 8BH

            Phone:  01752 636700     Web:  www.ucpmarjon.ac.uk<http://www.ucpmarjon.ac.uk>

 Principal: Professor Margaret Noble A Church of England College Founded in 1840

University College Plymouth St Mark & St John is a registered charity the trustee

   of which is a company limited by guarantee registered in England No. 986239

University College Plymouth St Mark & St John,  Derriford Road, Plymouth, PL6 8BH

            Phone:  01752 636700     Web:  www.ucpmarjon.ac.uk

 Principal: Professor Margaret Noble A Church of England College Founded in 1840

University College Plymouth St Mark & St John is a registered charity the trustee

   of which is a company limited by guarantee registered in England No. 986239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110613/96b7754d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 466022 bytes
Desc: image001.png
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110613/96b7754d/attachment-0001.png>


More information about the Xerte mailing list