Front sample use case for video-js with ffmpeg source encoding with AES-128 crypted TS segments enabled.

Pierre Fromager 187fec2431 doc/GrorinoTv : README 6 năm trước cách đây
css c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
fixture 344fd7a5e0 fixtures/GrorinoTv : bash ffmpeg encoder 6 năm trước cách đây
img c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
js c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
key 344fd7a5e0 fixtures/GrorinoTv : bash ffmpeg encoder 6 năm trước cách đây
video c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
.gitignore c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
README.md 187fec2431 doc/GrorinoTv : README 6 năm trước cách đây
index.html c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
package-lock.json c767acd4c1 init/GrorinoTv : init repo 6 năm trước cách đây
package.json 344fd7a5e0 fixtures/GrorinoTv : bash ffmpeg encoder 6 năm trước cách đây

README.md

GrorinoTv

Description

This is a deadly simple front vanillaJs use case.
This let you get a page using a web HLS video stream encoded with AES-128 encryption.
That means .ts segments can't be stolen and used without the encryption key.
On that point, that let you think about how access restrictions should be applied from a user context.
No less no more.

Setup

Install

  • clone repo
  • run npm i

External Dependencies

  • bootstrap3 -> v(^3.3.5)
  • font-awesome -> v(^4.7.0)
  • jquery -> v(^3.3.1)
  • video.js -> v(^7.4.1)

Adaptation

Fixture

You will find into the bash folder an encoder script template.
Pls, edit and change the hardcoded pathes to match your publish requirements.

Conclusion

Try, test and enjoy...!

Coding conventions

I've just used vscode as editor to code.
No linter is required, even it should.

Contribution

As usual, fork then pull request.

Support

No support enable without pull request...but it works in place

Testing

No unit test implemented but it should have some (;-)...