[Xerte-dev] Re: YouTube clips when viewing offline not working?

Tom Reijnders reijnders at tor.nl
Fri Sep 18 10:13:15 BST 2015


If you play a normal export locally, or an off-line package locally.

Have a look at xenith.js, line 40 and further. It should definitely be true.

I'll verify here in a test as well.

Op 18-9-2015 om 10:54 schreef Julian Tenney:
>
> xot_offline is false when I play it locally.
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk 
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom 
> Reijnders
> Sent: 18 September 2015 08:00
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: YouTube clips when viewing offline not working?
>
> I don't know by heart. But if is this is for the purpose of detecting 
> whether an LO is being used offline or not, there is a variable 
> xot_offline that tells you this.
>
> Op 18-9-2015 om 8:49 schreef Julian Tenney:
>
> > if the piece is running locally, does window.location always contain 
> the string 'file://'?
>
> > ________________________________________
>
> > From: xerte-dev-bounces at lists.nottingham.ac.uk 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>
>
> > [xerte-dev-bounces at lists.nottingham.ac.uk] on behalf of Tom Reijnders
>
> > [reijnders at tor.nl]
>
> > Sent: 18 September 2015 06:42
>
> > To: For Xerte technical developers
>
> > Subject: [Xerte-dev] Re: YouTube clips when viewing offline not working?
>
> >
>
> > Hmmm.... ok, interesting.
>
> >
>
> > The // doesn't work offline. So for an offline export it should be
>
> > replaced with either hhtp, or https.
>
> >
>
> > In this case, as we know that youtube will always support https, https
>
> > would be the safe bet. That will always work.
>
> >
>
> > Op 17-9-2015 om 19:03 schreef Julian Tenney:
>
> >> I knew there was a reason for it but couldn't remember what, which 
> is why I didn't make the change.
>
> >>
>
> >> What to do then? Can the iframe builder function sniff out a local 
> situation?
>
> >> ________________________________________
>
> >> From: xerte-dev-bounces at lists.nottingham.ac.uk 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>
>
> >> [xerte-dev-bounces at lists.nottingham.ac.uk] on behalf of Ron Mitchell
>
> >> [ronm at mitchellmedia.co.uk]
>
> >> Sent: 17 September 2015 15:18
>
> >> To: 'For Xerte technical developers'
>
> >> Subject: [Xerte-dev] Re: YouTube clips when viewing offline not 
> working?
>
> >>
>
> >> I seem to recall that the use of just //www rather than http://www 
> or https://www was to deal with the security prompts when the xerte 
> installation and LO link is viewed via https and includes non https 
> links or embed content?
>
> >>
>
> >> From: xerte-dev-bounces at lists.nottingham.ac.uk 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>
>
> >> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian
>
> >> Tenney
>
> >> Sent: 17 September 2015 09:23
>
> >> To: For Xerte technical developers
>
> >> Subject: [Xerte-dev] Re: YouTube clips when viewing offline not 
> working?
>
> >>
>
> >>
>
> >> The problem is the src parameter in the iframe code created:
>
> >>
>
> >>
>
> >>
>
> >> <iframe width="560" height="315"
>
> >> src="//www.youtube.com/embed/2nkAJogQioc?wmode=opaque"
>
> >> frameborder="0"></iframe>
>
> >>
>
> >>
>
> >>
>
> >> I got this from the html returned by buildIFrame();
>
> >>
>
> >>
>
> >>
>
> >> Note the two slashes. If you replace those with http:// it then 
> works, so we need to change this line in buildIFrame():
>
> >>
>
> >>
>
> >>
>
> >> html += " src=\"//www.youtube.com/embed/" + iframe.code;
>
> >>
>
> >>
>
> >>
>
> >> to
>
> >>
>
> >>
>
> >>
>
> >> html += " src=\"http://www.youtube.com/embed/" + iframe.code;
>
> >>
>
> >>
>
> >>
>
> >> Yes?
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> -----Original Message-----
>
> >> From:
>
> >> 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk%3cmailto:xerte-dev-bounces at lis>
>
> >> ts.nottingham.ac.uk>
>
> >> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron
>
> >> Mitchell
>
> >> Sent: 16 September 2015 16:34
>
> >> To: 'For Xerte technical developers'
>
> >> Subject: [Xerte-dev] Re: YouTube clips when viewing offline not 
> working?
>
> >>
>
> >>
>
> >>
>
> >> Have been checking and testing further...
>
> >>
>
> >>
>
> >>
>
> >> same embed code in a plain text page does work offline
>
> >>
>
> >>
>
> >>
>
> >> youtube.html doesn't have any api code but didn't think it was 
> needed for the single clip model?
>
> >>
>
> >>
>
> >>
>
> >> That said I'm pretty sure the single clip YouTube page worked 
> previously offline?
>
> >>
>
> >>
>
> >>
>
> >> Tom - do I recall you were looking at a way to do this for export 
> to work or was that just the YouTube feed page?
>
> >>
>
> >>
>
> >>
>
> >> Ron
>
> >>
>
> >>
>
> >>
>
> >> -----Original Message-----
>
> >>
>
> >> From:
>
> >> 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk%3cmailto:xerte-dev-bounces at lis>
>
> >> ts.nottingham.ac.uk>
>
> >>
>
> >> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian
>
> >> Tenney
>
> >>
>
> >> Sent: 16 September 2015 15:51
>
> >>
>
> >> To: For Xerte technical developers
>
> >>
>
> >> Subject: [Xerte-dev] Re: YouTube clips when viewing offline not 
> working?
>
> >>
>
> >>
>
> >>
>
> >> Does a simple html page with a youtube embed work (if we take xerte 
> out of the picture)?
>
> >>
>
> >>
>
> >>
>
> >> I expect it's to do with not having an API key - you should be able
>
> >> to put one in the exported model file, I think there is a line in
>
> >> there for a hardcoded one, sorry  I'm not at my desk atm,
>
> >> ________________________________________
>
> >>
>
> >> From:
>
> >> 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis 
> <mailto:xerte-dev-bounces at lists.nottingham.ac.uk%3cmailto:xerte-dev-bounces at lis>
>
> >> ts.nottingham.ac.uk>
>
> >>
>
> >> [xerte-dev-bounces at lists.nottingham.ac.uk] on behalf of Ron Mitchell
>
> >> [ronm at mitchellmedia.co.uk]
>
> >>
>
> >> Sent: 16 September 2015 15:36
>
> >>
>
> >> To: 'For Xerte technical developers'
>
> >>
>
> >> Subject: [Xerte-dev] YouTube clips when viewing offline not working?
>
> >>
>
> >>
>
> >>
>
> >> Hi all
>
> >>
>
> >> I've been asked recently why an LO exported for offline access 
> works apart from the YouTube clips added to YouTube pages. I've just 
> been testing and verfified that this doesn't work but I'm sure this 
> used to work ok and didn't think that the single youtube page was 
> affected by the YouTube feed page api issue. Is this due to yet 
> another YouTube change? Or something else?
>
> >>
>
> >> Cheers
>
> >>
>
> >> Ron
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> _______________________________________________
>
> >>
>
> >> Xerte-dev mailing list
>
> >>
>
> >> 
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac 
> <mailto:Xerte-dev at lists.nottingham.ac.uk%3cmailto:Xerte-dev at lists.nottingham.ac>
>
> >> .uk>
>
> >>
>
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> 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-dev mailing list
>
> >>
>
> >> 
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac 
> <mailto:Xerte-dev at lists.nottingham.ac.uk%3cmailto:Xerte-dev at lists.nottingham.ac>
>
> >> .uk>
>
> >>
>
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> 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-dev mailing list
>
> >> Xerte-dev at lists.nottingham.ac.uk 
> <mailto:Xerte-dev at lists.nottingham.ac.uk>
>
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> 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.
>
> >>
>
> > --
>
> > --
>
> >
>
> > Tom Reijnders
>
> > TOR Informatica
>
> > Chopinlaan 27
>
> > 5242HM Rosmalen
>
> > Tel: 073 5226191
>
> > Fax: 073 5226196
>
> >
>
> >
>
> > _______________________________________________
>
> > Xerte-dev mailing list
>
> > Xerte-dev at lists.nottingham.ac.uk 
> <mailto:Xerte-dev at lists.nottingham.ac.uk>
>
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> >
>
> > _______________________________________________
>
> > Xerte-dev mailing list
>
> > Xerte-dev at lists.nottingham.ac.uk 
> <mailto:Xerte-dev at lists.nottingham.ac.uk>
>
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> >
>
> >
>
> >
>
> >
>
> > 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.
>
> >
>
> --
>
> --
>
> Tom Reijnders
>
> TOR Informatica
>
> Chopinlaan 27
>
> 5242HM Rosmalen
>
> Tel: 073 5226191
>
> Fax: 073 5226196
>
> _______________________________________________
>
> Xerte-dev mailing list
>
> Xerte-dev at lists.nottingham.ac.uk <mailto:Xerte-dev at lists.nottingham.ac.uk>
>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> 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-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20150918/df4fd1c8/attachment-0001.html>


More information about the Xerte-dev mailing list