-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add static build for "generic" TV apps
- Loading branch information
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ tizen/index.html | |
tizen/js/*.js | ||
WebOS/index.html | ||
WebOS/js/*.js | ||
generic-tv/index.html | ||
generic-tv/js/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Bitmovin Player Yospace Integration Generic TV Sample | ||
|
||
This folder contains a sample for how to use the Bitmovin Player Yospace Integration library on web-based TVs. | ||
|
||
For Samsung Tizen or LG WebOS TVs, please refer to the specific respective examples, [../tizen/](../tizen/) and [../WebOS/](../WebOS/). | ||
|
||
## Getting started | ||
|
||
Run `npm run build-tv` (or `npm run build-tv:dev`) in the project root to build the library and copy all required files, including the sample web page and Javascript files, to the correct location in this folder. | ||
|
||
Deploy the content of this folder, including subdirectories, to a web server and point your TV app to this. Exact details may vary depending on the TV platform. | ||
|
||
Please note that changes in the `index.html` and `js/*` files will be overwritten by the build tooling, changes should be made in the [../web/\*](../web/) folder only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var platformReadyForPlayerPromise = (function () { | ||
return Promise.resolve(); | ||
})(); | ||
|
||
function updateWithPlatformSpecificConfig(config) { | ||
config.tweaks = config.adaptation || {}; | ||
config.tweaks.maxStartupBitrate = '1.0mbps'; | ||
return config; | ||
} | ||
|
||
function updateWithPlatformSpecificSourceConfig(source) { | ||
if (source.drm && source.drm.playready) { | ||
source.drm.playready.utf8message = true; | ||
source.drm.playready.plaintextChallenge = true; | ||
source.drm.playready.headers = source.drm.playready.headers || {}; | ||
source.drm.playready.headers['Content-Type'] = 'text/xml'; | ||
} | ||
return source; | ||
} | ||
|
||
var platformType = 'generic-tv'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters