mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #51027
[Bug 1806169] Re: starting youtubevideo at special timestamp does not work
This is a problem in YouTube and how YouTube constructs its links.
If you copy the short "Share" link, e.g.
https://youtu.be/8kH3t0vbxMA?t=70 Mahara transforms that into the
regular iframe code:
<iframe width="560" height="349"
src="http://www.youtube.com/embed/8kH3t0vbxMA?t=70" frameborder=0
allowfullscreen mozallowfullscreen webkitallowfullscreen></iframe>
However, the actual embed code should not contain "t=70" but "start=70"
when you use the full embed code. You get the correct embed code when
you use the "Embed" option rather than just copying the link. If you do
that, the video does start correctly at the required time.
Example:
<iframe width="560" height="315"
src="https://www.youtube.com/embed/8kH3t0vbxMA?start=70" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-
picture" allowfullscreen></iframe>
I think what we'll need to do is transform any YouTube link (when it's a
URL only and not a full embed code) to re-write "t=XX" into "start=XX".
** Changed in: mahara
Status: New => Confirmed
** Changed in: mahara
Importance: Undecided => Medium
** Tags added: bite-sized
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1806169
Title:
starting youtubevideo at special timestamp does not work
Status in Mahara:
Confirmed
Bug description:
When I add a timestamp to start a youtubevideo
https://www.youtube.com/watch?v=**************&t=30
the video starts from the beginning and does not start at 30seconds.
mahara 18.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1806169/+subscriptions
References