https://github.com/rtfmkiesel/alteredsecurity-videoplayer
A Video Player for AlteredSecurity Courses
https://github.com/rtfmkiesel/alteredsecurity-videoplayer
python
Last synced: about 1 year ago
JSON representation
A Video Player for AlteredSecurity Courses
- Host: GitHub
- URL: https://github.com/rtfmkiesel/alteredsecurity-videoplayer
- Owner: rtfmkiesel
- License: mit
- Created: 2024-06-23T11:18:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T13:02:03.000Z (over 1 year ago)
- Last Synced: 2025-02-10T13:38:08.494Z (over 1 year ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Video Player for AlteredSecurity Courses
I quickly made this to track my progression throughout the videos provided by AlteredSecurity. It works by using [local browser storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
The HTML and JS will:
+ Be like a regular video player with
+ play/pause
+ previous/next
+ 10s back/forward
+ speed adjustments
+ light/dark mode
+ Remember your settings
+ the last video you were viewing
+ the timestamp and playback speed
+ light/dark mode

## Usage
Install the dependencies (just `jinja2`) and then generate the HTML with `generate.py`. Afterward open the HTML in your preferred browser and add it as a bookmark.
```
usage: generate.py [-h] -t TITLE -d DIR [-o OUTFILE] [-e EXTENSION]
options:
-h, --help show this help message and exit
-t TITLE, --title TITLE
Course Title
-d DIR, --dir DIR Directory containing the videos
-o OUTFILE, --outfile OUTFILE
Output HTML file
-e EXTENSION, --extension EXTENSION
Video file extension
```
Example:
```bash
pip install -r requirements.txt
python generate.py -t "Azure AD" -d ~/edu/azureadlab/CourseVideos -o ~/edu/azureadlab/CourseVideos/index.html
```