0.16.2 • Published 7 months ago

qin-player v0.16.2

Weekly downloads
36
License
UNLICENSED
Repository
gitlab
Last release
7 months ago

qin-player

Introduction

Qin Player is a module which allows to playback Motion JPEG videos, live streams, and videos that clappr offers to play.

Structure

Qin Player determines a playback strategy based on the video source specified in constructor's argument. This implies that the first layer of Qin's interface applies strategy pattern, where the abstract strategy is named PlaybackStrategy and the concrete strategies are:

  • ClapprPlaybackStrategy - .mp4, .m3u8, ...
  • MjpgPlaybackStrategy - .avi
  • MjpgLiveStrategy - Motion JPEG live stream on HTTP
Clappr Playback Strategy

ClapprPlaybackStrategy is trivial for it is an implementation of clappr's usage. See more from clappr.io.

MJPG Playback Strategy

MjpgPlaybackStrategy is implemented as a state machine.

The states are:

  • Init
  • Buffering,
  • Buffered,
  • Playing,
  • Paused,
  • Stopped,
  • PlaybackCompleted.

The transitions involve:

  • seek(),
  • play(),
  • pause(),
  • stop().

alt text

MJPG Live Strategy

MjpgLiveStrategy realizes its behaviors by inserting http://.../.mjpg source into DOM with the help of TabManager.

0.16.2

7 months ago

0.16.1

8 months ago

0.16.0

4 years ago

0.15.1

4 years ago

0.14.0

5 years ago

0.13.4

5 years ago

0.13.3

5 years ago

0.13.2

5 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.4

7 years ago

0.10.3

7 years ago

0.10.2

7 years ago

0.10.1

7 years ago

0.10.0

7 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago