Skip to content

Commit 99bdcce

Browse files
committed
Uploaded v2.0
The second major version of WebMediaPlayer with lots of edits.
1 parent f9c1d21 commit 99bdcce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+9761
-5471
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# npm
2+
node_modules
3+
4+
# Various caches
5+
thumbs.db
6+
desktop.ini
7+
.DS_Store
8+
9+
# Editors
10+
.idea
11+
*.sublime-workspace
12+
.vscode/*
13+
!.vscode/*.code-snippets
14+
15+
# WebMediaPlayer temporary cache
16+
.temp
17+
18+
# A folder in which I test things
19+
.devtest

CHANGELOG.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
# Changelog
2-
- Added Stylized Popups
3-
- Simplified and fixed `basic_dark`, `red` and `orange` themes
4-
- Changed translation's way of working (can now get translation id `category/translation`)
5-
- Can now load media from an url ("Netwok flux")
6-
- Fixed the "no sound/video tracks menus" in Firefox
7-
- Added an "offline" page
8-
- Added a favicon
9-
- Added a launcher (`run.py`)
10-
- Added an update software (`update.py` and `updater.py`)
2+
3+
- Change the way to import files
4+
- Fixed the time inputs
5+
- Replaced the Python Server by a NodeJS server
6+
- Added a .gitignore
7+
- Changed the update method
8+
- Added some code to the server builder
9+
- Changed the styles files' organisation
10+
- Fixed the play/pause button
11+
- Added STR subtitles
12+
- Fixed the subtitles reading errors and added multiline subtitle reading
13+
- Fixed the time inputs
14+
- Removed unused files/functions
15+
- Changed the viewer event listener to change the way functions are executed (`eval('viewer.function()')` -> `viewer.function()`)
16+
- Fixed the iframe not closing problem
17+
- Fixed Firefox version of WebMediaPlayer
18+
- Added "Import file in new tab"
19+
- Made an improved Error 404 page
20+
- Added a "wait for click"
21+
- Changed the way to set/get `viewer.mode`, `viewer.fullscreen`, `veiwer.volume`, `viewer.mute`
22+
- Added code to properly format the files
23+
- Moved some code from player/scripts/script.js to player/scripts/viewer.js

README.md

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,63 @@
1-
# Web Media Player v.1.5
1+
# Web Media Player v.2.0
2+
23
My own little HTML/CSS/JS media player.
34

45
[![@samuellouf](https://img.shields.io/badge/author-SamuelLouf-lightgray.svg)](https://github.com/samuellouf/WebMediaPlayer)
56
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
67

78
Source repo on [GitHub](https://github.com/samuellouf/WebMediaPlayer), and run it [online](https://samuellouf.github.io/WebMediaPlayer/player)
89

10+
## Versions
11+
- 1.0 : The initial version
12+
- 2.0 : Made some huge changes (Added a NodeJS server, fixed the app for Firefox/Edge...)
13+
14+
## Changelog
15+
See [CHANGELOG.md](CHANGELOG.md).
16+
917
## Introduction
1018

1119
Web Media Player is a [VLC](https://www.videolan.org/)-like multimedia player.
12-
It supports several basic features (Play/Pause, Fullscreen, Picture in Picture...) but it also supports more features like color themes.
20+
It supports several basic features (Play/Pause, Fullscreen...) but it also supports more features like color themes, Picture in Picture, video/audio tracks.
1321

1422
## Usage
1523

1624
### Online
25+
1726
To use WebMediaPlayer online, just open "[https://samuellouf.github.io/WebMediaPlayer/player](https://samuellouf.github.io/WebMediaPlayer/player)".
1827

1928
### Offline
20-
To use WebMediaPlayer offline, download "[https://github.com/samuellouf/WebMediaPlayer/archive/refs/heads/1.5.zip](https://github.com/samuellouf/WebMediaPlayer/archive/refs/heads/1.5.zip)".
2129

22-
#### With Python
23-
Execute the file `run.py`.
30+
To use WebMediaPlayer offline, download "[https://github.com/samuellouf/WebMediaPlayer/archive/refs/heads/2.0.zip](https://github.com/samuellouf/WebMediaPlayer/archive/refs/heads/2.0.zip)".
31+
Then open/extract the zip/git file.
32+
33+
#### With NodeJS
34+
35+
Open the extracted folder and run :
36+
either
37+
38+
- npm run start
39+
or
40+
- npm run player
41+
42+
#### Without NodeJS
2443

25-
#### Without Python
2644
Open `player/index.html` in your browser.
45+
2746
> [!IMPORTANT]
28-
> You will not be able to update WebMediaPlayer automatically without running it using python.
47+
> You will not be able to update WebMediaPlayer automatically without running it using the nodejs server.
48+
49+
## Update/Reinstall
50+
51+
### With NodeJS
52+
53+
Run
54+
```sh
55+
npm run update
56+
```
57+
or
58+
```sh
59+
npm run reinstall
60+
```
61+
62+
### Without NodeJS
63+
Go on [https://github.com/samuellouf/WebMediaPlayer/releases/](https://github.com/samuellouf/WebMediaPlayer/releases/) and download your release.

README.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

main.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)