Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In browser extracts for incremental video #18

Open
nikedinikedi opened this issue Apr 29, 2020 · 1 comment
Open

In browser extracts for incremental video #18

nikedinikedi opened this issue Apr 29, 2020 · 1 comment

Comments

@nikedinikedi
Copy link
Member

Description

  • From discord discussion and my discovery of SM functionality of storing videos in this weird place
  • This is not an idea but a beginning of an idea or path to an idea (related to videos)
  • Alexis mentioned in browser extracts

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
Copy link

rajlego commented May 3, 2020

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.

@alexis- alexis- transferred this issue from supermemo/SuperMemoAssistant May 13, 2020
@alexis- alexis- added this to the SMA 2.2.0 "Pink panther" milestone Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants