supermemo / SuperMemoAssistant.Plugins.Import

Better web imports : RSS & Atom feeds ; Html filters ; Chrome & Firefox imports ; ...
https://www.supermemo.wiki/sma/
MIT License
5 stars 1 forks source link

In browser extracts for incremental video #18

Open nikedinikedi opened 4 years ago

nikedinikedi commented 4 years ago

Description

Sketches, Videos, ...

This is what i see in IE browser history image

This is what opens when i click the link (same overlay that SM uses in incremental video) image

Link looks like this: http://supermemory.info/iv/yt.htm?videoid=QX50u92RqKg&resume=0:00&start=2:17&stop=4:08&ts=2020329318447

Motivation

This issue is about utilizing the fact that videos are stored that way.

rajlego commented 4 years ago

https://help.supermemo.org/index.php?title=Incremental_learning&printable=yes#Your_own_incremental_video_script Possibly relevant: our own incremental video script Videos are handled with the help of YouTube Player API in HTML components using a small JavaScript program. When you first run SuperMemo, it writes this script into a file stored in the [BIN] subfolder of the folder in which you installed SuperMemo. The name of the file is yt.htm. If you know JavaScript, you can substitute your own incremental video script in that file (e.g. to change the layout, size of buttons, or even add new functions for processing videos). Here are the only components of the script that you need to preserve:

the order of INPUT fields (these are used by SuperMemo to collect extract boundaries) SELECT and OPTION fields for generating extracts INPUT field with YouTube video ID substituted by SuperMemo (id="videoid") INPUT field that determines the position of video start and end (id="startvideoat" and id="stopvideoat")(must be "0:00:00") The most important change you may wish to introduce is to decide between version=2 and version=3 of the player. Both have their bugs and disadvantages. For more see Player Version Issues. The version of the player you choose will be picked by default in all your YouTube elements.

If you would like to share your own script with others, you can upload it to SuperMemoPedia.