Hello,
I am giving a course on filmlanguagewould and therefore I would like to
show the videos in tiddlers of a wiki and control them by the values by
fields.
poster,view (for the primary source),fallback, start and end.
<video controls id="fsvideo"||||poster={{!!poster}}>
<source src={{!!view}}>
<source src={{!!fallback}}>
</video>
This works so far, now two questions.
1.)Where should I put and how must I wrap this codesnippet to make the
Video play Fullscreen by default?
|var elem= document.getElementById("fsvideo");
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.mozRequestFullScreen) {
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) {
elem.webkitRequestFullscreen();
}|
2.)How do I set startingpoint/endpoint for local videofiles...
Following to
(http://gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/)
the following javascriptcode should manage this:
start
|var video = document.getElementsById("fsvideo")[0];
video.currentTime = {{!!start}};|
|
video.addEventListener("timeupdate", function() {
if (video.currentTime >= |||{{!!end}}|) {
video.pause();
}}, false);|
How could I place these snippets in one tiddler to make it work for all
videos or would this be difficult because of the star/end data being
stored in different tiddlers
yours Jan
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/57417D0D.1040907%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.