Here's a basic YouTube macro that autoplays a video at a specified start
point:

\define yt(id,start)
<iframe width="640" height="360" src="
http://www.youtube.com/embed/$id$?autoplay=1&start=$start$"; frameborder="0"
allowfullscreen></iframe>
\end

<<yt EU-H0xhga08 1850>>

As discussed above, the start point needs to be specified as a number of
seconds, not 30m25s.

Here's the documentation on the parameters that YouTube accepts:

https://developers.google.com/youtube/player_parameters#Parameters

Best wishes

Jeremy.



On Sun, Dec 21, 2014 at 11:28 AM, Tobias Beer <[email protected]> wrote:

> @Jeremy & other macro-experts,
>
> Just to bump this a little,
> I think it would really help Rich with the embedded media if we get that
> macro going.
>
> Best wishes, Tobias.
>
>
> On Saturday, 20 December 2014 02:47:11 UTC+1, Tobias Beer wrote:
>>
>> Hi Rich,
>>
>> I would store the video id at a field of that tiddler, so it would be one
>> video per tiddler.
>>
>> You could call the macro like so...
>>
>> <<y: h m s>>
>>
>> which would replace the time with hours minutes and seconds, thus...
>>
>> <<y: 00 05 10>>
>>
>> creates a link to the video stored at the current tiddler like so...
>>
>> 00:05:10 <http://www.youtube.com/watch?v=EU-H0xhga08&t=0h5m10s>
>>
>> I have created a demo which almost works, except for the bit of reading
>> the url from the field (because I don't want to pass the video id or url as
>> a parameter every time)...
>>
>> http://tbdemo.tiddlyspot.com/#Youtube%20Timed%20Link
>>
>> *Help* on how to make that field-value-transclusion work properly would
>> be much appreciated.
>>
>>
>> As for the end-time, that is possible but only when you do the whole
>> thing in seconds...
>>
>> http://stackoverflow.com/questions/4661905/how-to-
>> customize-an-end-time-for-a-youtube-video
>>
>> ...so it's slightly more challenging in terms of calculating those
>> seconds, e.g.:
>>
>> https://www.youtube.com/v/EU-H0xhga08?start=80&end=90&version=3
>>
>> Best wishes, Tobias.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to