Prepare media for production usage

This commit is contained in:
Derek Herman 2021-05-22 18:19:31 -07:00
Родитель ef13dc0aec
Коммит 8eb27c41b2
10 изменённых файлов: 60 добавлений и 35 удалений

25
cors.json Normal file
Просмотреть файл

@ -0,0 +1,25 @@
[
{
"origin": [
"https://kinoweb-dev.web.app",
"https://kinoweb.dev",
"http://localhost:5000"
],
"responseHeader": [
"Accept-Ranges",
"Content-Type",
"Content-Length",
"Date",
"Server",
"Transfer-Encoding",
"X-GUploader-UploadID",
"X-Google-Trace",
"Origin",
"Range"
],
"method": [
"GET"
],
"maxAgeSeconds": 3600
}
]

Просмотреть файл

@ -6,9 +6,9 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/01/video.mp4
- src: https://storage.googleapis.com/kino-assets/single-video/video.mp4
type: video/mp4; codecs="avc1.640032,mp4a.40.2"
thumbnail: https://storage.googleapis.com/wdm-assets/images/single-video-file.png
thumbnail: https://storage.googleapis.com/kino-assets/single-video/thumbnail.png
---
## Introduction

Просмотреть файл

@ -6,13 +6,13 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/02/av1.mp4
- src: https://storage.googleapis.com/kino-assets/multiple-sources/av1.mp4
type: video/mp4; codecs="av01.0.04M.08, mp4a.40.2"
- src: https://storage.googleapis.com/wdm-assets/media/02/hevc.mp4
- src: https://storage.googleapis.com/kino-assets/multiple-sources/hevc.mp4
type: video/mp4; codecs="hev1.1.6.L93.90,mp4a.40.2"
- src: https://storage.googleapis.com/wdm-assets/media/02/vp9.webm
- src: https://storage.googleapis.com/kino-assets/multiple-sources/vp9.webm
type: video/webm
thumbnail: https://storage.googleapis.com/wdm-assets/images/multiple-sources.png
thumbnail: https://storage.googleapis.com/kino-assets/multiple-sources/thumbnail.png
---
## Introduction

Просмотреть файл

@ -6,24 +6,24 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/03/av1.mp4
- src: https://storage.googleapis.com/kino-assets/using-webvtt/av1.mp4
type: video/mp4; codecs="av01.0.04M.08, mp4a.40.2"
- src: https://storage.googleapis.com/wdm-assets/media/03/hevc.mp4
- src: https://storage.googleapis.com/kino-assets/using-webvtt/hevc.mp4
type: video/mp4; codecs="hev1.1.6.L93.90,mp4a.40.2"
- src: https://storage.googleapis.com/wdm-assets/media/03/vp9.webm
- src: https://storage.googleapis.com/kino-assets/using-webvtt/vp9.webm
type: video/webm
video-subtitles:
- default: true
kind: captions
label: English
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-en.vtt
src: https://storage.googleapis.com/kino-assets/using-webvtt/cap-en.vtt
srclang: en
- default: false
kind: captions
label: Česky
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-cz.vtt
src: https://storage.googleapis.com/kino-assets/using-webvtt/cap-cz.vtt
srclang: cz
thumbnail: https://storage.googleapis.com/wdm-assets/images/using-webvtt.png
thumbnail: https://storage.googleapis.com/kino-assets/using-webvtt/thumbnail.png
---
## Introduction

Просмотреть файл

@ -6,22 +6,22 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/04/manifest.mpd
- src: https://storage.googleapis.com/kino-assets/streaming-basics/manifest.mpd
type: application/dash+xml
- src: https://storage.googleapis.com/wdm-assets/media/04/master.m3u8
- src: https://storage.googleapis.com/kino-assets/streaming-basics/master.m3u8
type: application/x-mpegURL
video-subtitles:
- default: true
kind: captions
label: English
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-en.vtt
src: https://storage.googleapis.com/kino-assets/streaming-basics/cap-en.vtt
srclang: en
- default: false
kind: captions
label: Česky
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-cz.vtt
src: https://storage.googleapis.com/kino-assets/streaming-basics/cap-cz.vtt
srclang: cz
thumbnail: https://storage.googleapis.com/wdm-assets/images/the-universal-source.png
thumbnail: https://storage.googleapis.com/kino-assets/streaming-basics/thumbnail.png
---
## Introduction

Просмотреть файл

@ -6,22 +6,22 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/05/manifest.mpd
- src: https://storage.googleapis.com/kino-assets/efficient-formats/manifest.mpd
type: application/dash+xml
- src: https://storage.googleapis.com/wdm-assets/media/05/master.m3u8
- src: https://storage.googleapis.com/kino-assets/efficient-formats/master.m3u8
type: application/x-mpegURL
video-subtitles:
- default: true
kind: captions
label: English
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-en.vtt
src: https://storage.googleapis.com/kino-assets/efficient-formats/cap-en.vtt
srclang: en
- default: false
kind: captions
label: Česky
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-cz.vtt
src: https://storage.googleapis.com/kino-assets/efficient-formats/cap-cz.vtt
srclang: cz
thumbnail: https://storage.googleapis.com/wdm-assets/images/efficient-formats.png
thumbnail: https://storage.googleapis.com/kino-assets/efficient-formats/thumbnail.png
---
## Introduction

Просмотреть файл

@ -6,22 +6,22 @@ description: |
date: April 2nd, 2021
length: '1:04'
video-sources:
- src: https://storage.googleapis.com/wdm-assets/media/06/manifest.mpd
- src: https://storage.googleapis.com/kino-assets/adaptive-streaming/manifest.mpd
type: application/dash+xml
- src: https://storage.googleapis.com/wdm-assets/media/06/master.m3u8
- src: https://storage.googleapis.com/kino-assets/adaptive-streaming/master.m3u8
type: application/x-mpegURL
video-subtitles:
- default: true
kind: captions
label: English
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-en.vtt
src: https://storage.googleapis.com/kino-assets/adaptive-streaming/cap-en.vtt
srclang: en
- default: false
kind: captions
label: Česky
src: https://storage.googleapis.com/wdm-assets/media/03/captions/cap-cz.vtt
src: https://storage.googleapis.com/kino-assets/adaptive-streaming/cap-cz.vtt
srclang: cz
thumbnail: https://storage.googleapis.com/wdm-assets/images/adaptive-bitrates.png
thumbnail: https://storage.googleapis.com/kino-assets/adaptive-streaming/thumbnail.png
---
## Introduction

Просмотреть файл

@ -360,7 +360,7 @@ export default () => {
*
* Example:
*
* Key: https://storage.googleapis.com/wdm-assets/videos/http-203/http-203-for-loops.mp4
* Key: https://storage.googleapis.com/kino-assets/single-video/video.mp4
* Value: { bytesDownloaded: 58274426, bytesTotal: 58274426, ... }
*
* Properties:

Просмотреть файл

@ -18,7 +18,7 @@ export const APP_SHELL_URL = '/';
/**
* Media Server Hostname
*/
export const MEDIA_SERVER_ORIGIN = 'https://storage.googleapis.com/wdm-assets/';
export const MEDIA_SERVER_ORIGIN = 'https://storage.googleapis.com/kino-assets/';
/**
* IDB Storage Schema.

Просмотреть файл

@ -15,10 +15,10 @@ export default [
'/images/safari-pinned-tab.svg',
'/index.html',
'/styles.css',
'https://storage.googleapis.com/wdm-assets/images/single-video-file.png',
'https://storage.googleapis.com/wdm-assets/images/multiple-sources.png',
'https://storage.googleapis.com/wdm-assets/images/using-webvtt.png',
'https://storage.googleapis.com/wdm-assets/images/the-universal-source.png',
'https://storage.googleapis.com/wdm-assets/images/efficient-formats.png',
'https://storage.googleapis.com/wdm-assets/images/adaptive-bitrates.png',
'https://storage.googleapis.com/kino-assets/single-video/thumbnail.png',
'https://storage.googleapis.com/kino-assets/multiple-sources/thumbnail.png',
'https://storage.googleapis.com/kino-assets/using-webvtt/thumbnail.png',
'https://storage.googleapis.com/kino-assets/streaming-basics/thumbnail.png',
'https://storage.googleapis.com/kino-assets/efficient-formats/thumbnail.png',
'https://storage.googleapis.com/kino-assets/adaptive-streaming/thumbnail.png',
];