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

Tom Reijnders reijnders at tor.nl
Fri Sep 18 10:31:29 BST 2015


Well.... the whole point of creating the offline mode was to be able to 
do just that. Play offline. The default security settings of most 
browsers don't allow you to play a deployment zip offline.

I wouldn't like to create a special offline module, and then also 
support offline playing of other exports.

Op 18-9-2015 om 11:19 schreef Julian Tenney:
>
> Shouldn’t all offline playing scenarios be true?
>
> *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 10:19
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: YouTube clips when viewing offline not working?
>
> Ah. It has to be an offline zip for xot_offline to be true.
>
> Op 18-9-2015 om 11:14 schreef Julian Tenney:
>
>     I exported it, deployment zip and put an alert in buildIFrame() to
>     check the value. I saw in Xenith how it is getting set, but don’t
>     understand the condition.
>
>     *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
>     *Tom Reijnders
>     *Sent:* 18 September 2015 10:13
>     *To:* For Xerte technical developers
>     *Subject:* [Xerte-dev] Re: YouTube clips when viewing offline not
>     working?
>
>     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>
>         [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:// <file:///%5C%5C>'?
>
>         > ________________________________________
>
>         > 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
>         <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] on behalf
>         of Tom Reijnders
>
>         > [reijnders at tor.nl <mailto: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
>         <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] on behalf
>         of Ron Mitchell
>
>         >> [ronm at mitchellmedia.co.uk <mailto: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://
>         <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
>         <mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] on behalf
>         of Ron Mitchell
>
>         >> [ronm at mitchellmedia.co.uk <mailto: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
>         <mailto: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
>
>       
>
>     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
>
>
>
> -- 
> --
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
>
> 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/b35c841d/attachment-0001.html>


More information about the Xerte-dev mailing list