diff --git a/README.md b/README.md index a739caf8..d28fc4e6 100644 --- a/README.md +++ b/README.md @@ -1,92 +1,123 @@ -**Don't create PRs for this project, demos are not in [demo-framework](https://github.com/bitmovin/demo-framework)** - # Bitmovin Demos [![bitmovin](http://bitmovin-a.akamaihd.net/webpages/bitmovin-logo-github.png)](http://www.bitmovin.com) -## How to write a demo +# Introduction +Welcome to Bitmovin demos. Our demo page is hosted at [bitmovin.com/demos](https://bitmovin.com/demos/). +This repository is meant to be used as a reference when integrating our player into your products. + +## Testing a demo + +If you wish to test a demo, you can either browse one of our demos hosted on our [demo page](https://bitmovin.com/demos/) or +navigate to a demo inside one of our products, for example [player/4k](./player/4k) and follow these steps: + 1. Copy the `index.html` + 1. Replace the`${code:setup.js}` (depending on the demo name may vary) with the contents, wrapping it with a ` +
diff --git a/player/audio-only-streaming/info.json b/player/audio-only-streaming/info.json new file mode 100644 index 00000000..f5237f44 --- /dev/null +++ b/player/audio-only-streaming/info.json @@ -0,0 +1,19 @@ +{ + "title": "Audio Only Streaming", + "description": "Enables users to stream audio only content", + "long_description": "To be defined.", + "executable": { + "executable": true, + "indexfile": "index.html" + }, + "code": { + "show_code": true, + "language": "js", + "files": [ + "setup.js" + ] + }, + "tags": [ + "To be defined" + ] +} \ No newline at end of file diff --git a/player/audio-only-streaming/js/script.js b/player/audio-only-streaming/js/script.js index 8766620f..e1aeeaea 100644 --- a/player/audio-only-streaming/js/script.js +++ b/player/audio-only-streaming/js/script.js @@ -3,7 +3,8 @@ var conf = { analytics: { key: '45adcf9b-8f7c-4e28-91c5-50ba3d442cd4', videoId: 'audio-only-streaming' - } + }, + ui: false }; var source = { @@ -13,13 +14,8 @@ var source = { var playerContainer = document.getElementById('player-container'); var player = new bitmovin.player.Player(playerContainer, conf); - -function loadPlayer() { - player.load(source).then(function() { - bitmovin.playerui.UIFactory.buildModernSmallScreenUI(player); - }); -} +bitmovin.playerui.UIFactory.buildModernSmallScreenUI(player); $(document).ready(function () { - loadPlayer(); + player.load(source); }); diff --git a/player/av1/info.json b/player/av1/info.json new file mode 100644 index 00000000..8a66ba06 --- /dev/null +++ b/player/av1/info.json @@ -0,0 +1,24 @@ +{ + "title": "AV1", + "description": "AV1 is a next generation codec that can reduce bandwidth and CDN costs by a factor of 10", + "long_description": "Bitmovin is spearheading the drive towards a commercially viable AV1 solution. See our online demonstration of AV1 encoding and playback.", + "executable": { + "executable": true, + "indexfile": "index.html" + }, + "tags": [ + "experimental", + "AV1", + "Chrome", + "Firefox", + "Google", + "Mozilla", + "Nightly", + "Canary" + ], + "additionalCategories": [ + "encoding" + ], + "priority": 920, + "hidden": false +} \ No newline at end of file diff --git a/player/caption-styling/css/style.css b/player/caption-styling/css/style.css index 3d433ad1..7dd82d49 100644 --- a/player/caption-styling/css/style.css +++ b/player/caption-styling/css/style.css @@ -8,6 +8,10 @@ font-size: 18px; } +.cc-demo p a { + font-size: 18px; +} + #player { margin-bottom: 20px; } diff --git a/player/caption-styling/info.json b/player/caption-styling/info.json new file mode 100644 index 00000000..4c4efcc0 --- /dev/null +++ b/player/caption-styling/info.json @@ -0,0 +1,22 @@ +{ + "title": "CEA-608/708 captions and styling", + "description": "This demo shows the Bitmovin Player displaying a video with captions and offering all the controls necessary to be compliant with CEA-708", + "long_description": "This demo shows the Bitmovin Player displaying a video with captions and offering all the controls necessary to be compliant with CEA-708.", + "executable": { + "executable": true, + "indexfile": "index.html" + }, + "code": { + "show_code": true, + "language": "js", + "files": [ + "demo.js" + ] + }, + "tags": [ + "captions", + "cea-708", + "basic", + "cea styling" + ] +} \ No newline at end of file diff --git a/player/channel-switching/index.html b/player/channel-switching/index.html index 1664b4d9..ab137b1a 100644 --- a/player/channel-switching/index.html +++ b/player/channel-switching/index.html @@ -27,16 +27,13 @@ Click a button to show switch time.
- -
- Click on one of the listed Chromecast devices to start casting. + A popup will appear next to the Chromecast icon in the Chrome toolbar. Click on one of the listed devices to start casting.
- -
- You can control and stop the streamed video through the native Chromecast menu. + You can control the streamed video (set volume and subtitles, seek content, pause, play etc.) through the regular player controls in the browser.
++ + + +
++ To stop casting click on the cast icon in the player or Chrome tab directly and then select currently playing device to stop. +
+ + + +
+ By setting receiverVersion
to v3
in the remotecontrol configuration the Bitmovin Player is able to cast to CAF receivers.
+ The receiverApplicationId
must belong to a valid CAF receiver, like the Bitmovin CAF Receiver.
+
+ By utilizing the addMetadata Bitmovin Player API
+ it is possible to send custom messages from the player to the cast receiver.
+ When sending custom messages, messageNamespace
must be the same value as registered on the receiver side.
+
+ When casting to a CAF receiver, the current DRM configuration is automatically taken from the player's source. +
+