Skip to content

Commit

Permalink
stream webtorrent (#129)
Browse files Browse the repository at this point in the history
* fix mpegts match
* stream webtorrent
  • Loading branch information
shiyiya authored Jun 3, 2024
1 parent 5a3f704 commit 4c2e6a9
Show file tree
Hide file tree
Showing 15 changed files with 1,934 additions and 1,422 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

⚡ Oh! Another HTML5 video player. Do More, Keep it simple.

[📕 Documentation](https://oplayer.vercel.app) | [🧡 Donate](#support) | [💜 Contributing](./CONTRIBUTING.md) | [🎈 Demo](https://oplayer.vercel.app/oplayer.html?playlist=%5B%7B"title"%3A"Disney%27s+Oceans+-+MP4"%2C"src"%3A"https%3A%2F%2Fvjs.zencdn.net%2Fv%2Foceans.mp4"%2C"poster"%3A"https%3A%2F%2Fvjs.zencdn.net%2Fv%2Foceans.png"%2C"duration"%3A"00%3A46"%7D%2C%7B"title"%3A"Big+Buck+Bunny+-+HLS"%2C"src"%3A"https%3A%2F%2Ftest-streams.mux.dev%2Fx36xhzz%2Fx36xhzz.m3u8"%2C"poster"%3A"https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbig-buck-bunny%2Fbbb.png"%2C"duration"%3A"10%3A34"%7D%2C%7B"title"%3A"Big+Buck+Bunny+-+DASH"%2C"src"%3A"https%3A%2F%2Fdash.akamaized.net%2Fakamai%2Fbbb_30fps%2Fbbb_30fps.mpd"%2C"poster"%3A"https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbig-buck-bunny%2Fbbb.png"%2C"duration"%3A"10%3A34"%7D%5D&p=1)
[📕 Documentation](https://oplayer.vercel.app) | [🧡 Donate](#support) | [💜 Contributing](./CONTRIBUTING.md) | [🎈 Demo](https://oplayer.vercel.app/oplayer.html?playlist=%5B%7B%22title%22%3A%22Disney's%2BOceans%2B-%2BMP4%22%2C%22src%22%3A%22https%3A%2F%2Fvjs.zencdn.net%2Fv%2Foceans.mp4%22%2C%22poster%22%3A%22https%3A%2F%2Fvjs.zencdn.net%2Fv%2Foceans.png%22%2C%22duration%22%3A%2200%3A46%22%7D%2C%7B%22title%22%3A%22Big%2BBuck%2BBunny%2B-%2BHLS%22%2C%22src%22%3A%22https%3A%2F%2Ftest-streams.mux.dev%2Fx36xhzz%2Fx36xhzz.m3u8%22%2C%22poster%22%3A%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbig-buck-bunny%2Fbbb.png%22%2C%22duration%22%3A%2210%3A34%22%7D%2C%7B%22title%22%3A%22Big%2BBuck%2BBunny%2B-%2BDASH%22%2C%22src%22%3A%22https%3A%2F%2Fdash.akamaized.net%2Fakamai%2Fbbb_30fps%2Fbbb_30fps.mpd%22%2C%22poster%22%3A%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbig-buck-bunny%2Fbbb.png%22%2C%22duration%22%3A%2210%3A34%22%7D%2C%7B%22title%22%3A%22torrent%22%2C%22src%22%3A%22https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent%22%2C%22poster%22%3A%22%22%2C%22duration%22%3A%2214%3A48%22%7D%5D&p=1)

[![npm](https://img.shields.io/npm/v/@oplayer/core?style=flat-square)](https://www.npmjs.com/package/@oplayer/core)
[![npm dt](https://img.shields.io/npm/dm/@oplayer/core?style=flat-square)](https://www.npmjs.com/package/@oplayer/core)
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const player = Player.make<Ctx>('#player', {
source: DANMAKU //SUPER_DANMAKU
}),
new Playlist({
initialIndex,
initialIndex: 7,
sources: [
{
title: 'HLS with SRT subtitle',
Expand Down
Loading

0 comments on commit 4c2e6a9

Please sign in to comment.