Skip to content

Commit

Permalink
Integrate castlab SDK (#363)
Browse files Browse the repository at this point in the history
* integrated castlab

* support exchanging video source

* updated DRM workflow

* updated castLab SDK to support custom proxy server url in DRM configuration

* updated viewer demo

* Support frame metadata

* refined drm flag check

* added enableDRM in JSDoc

* remove private field that is not working well in vuejs

* New Director API response

* Added types for DRM API

* refined the license URL caching

* added 'isDRMEnabled' in director

* fixed PeerConnectionEvent unit test

* remove Logger for e2e test

* First step towards fixing unit tests

* added authorization for DRM license fetch request

* Lint code

* removed unsupported headers value when fetch license

* Fix unit test

* Change package json

* First approach on fixing E2E tests

* Remove package lock on action due to npm active issue

* Remove node modules as well on actions

* Fix package json dur to ovewritten parts

* Rollback action change as it is not needed

* addressed review comments

* renamed subscribeToken to token in query param of viewer demo app

* renamed subscribeToken to token in query param of multiviewer demo app

* added changeset

* use package.json from main branch

* forward DRM error to application

* emit error when failed to apply DRM on video track

---------

Co-authored-by: Santiago Souto <[email protected]>
Co-authored-by: Shivank Dubey <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent ff6d9f5 commit 43582cf
Show file tree
Hide file tree
Showing 20 changed files with 611 additions and 222 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-otters-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@millicast/sdk": minor
---

Added DRM support
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ packages/millicast-publisher-demo
packages/millicast-viewer-demo
packages/millicast-chromecast-receiver
packages/millicast-multiview-demo
/**/src/*.worker.js
/**/src/*.worker.js
/**/rtc-drm-transform.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"npm": "^8.11.0",
"vite": "^5.2.10"
}
}
}
5 changes: 4 additions & 1 deletion packages/millicast-multiview-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
</head>
<body>
<h1>Multiview Example</h1>
<div id="mainVideo"></div>
<div id="mainVideo">
<video id="mid-0" controls muted autoplay hidden></video>
<audio id="mid-1" muted hidden autoplay></audio>
</div>
<div id="remoteVideos"></div>
<div class="dropdown">
<p>Choose a stream and layer to view</p>
Expand Down
Loading

0 comments on commit 43582cf

Please sign in to comment.