Skip to content

Commit

Permalink
Merge branch 'release/v3.31.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Jun 14, 2023
2 parents 7f8cba7 + 14100f5 commit 16f75e7
Show file tree
Hide file tree
Showing 51 changed files with 8,383 additions and 6,610 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,29 @@
# Changelog

## v3.31.0 (2023-06-14)

### Features

- Add `isContentLoaded`, `isBuffering`, `isPaused`, and `getLastStoredContentPosition` methods [#1248]
- Add `play` and `paused` events [#1253]
- Add `trackInfo` property to some `MediaError` to expose information on the track that caused the error [#1241]

### Bug fixes

- DASH: Fix issue which could lead to infinite rebuffering when switching between multiple Periods [#1232]
- Return actual ending duration through the `getVideoDuration` method when playing dynamic contents whose future end is already known [#1235]
- DASH/WASM: actually reject the `DASH_WASM.initialize`'s Promise if it fails [#1238]
- On the PlayStation 5, set `Infinity` MediaSource duration for live contents to prevent playback issues [#1250]

### Other improvements

- adaptive: Perform various adaptive tweaks to avoid switching too much between qualities in some conditions [#1237]
- Directfile: Detect "forced" subtitles on Safari when playing directfile contents (such as HLS) [#1239]
- Improve `"direct"` `audioTrackSwitchingMode` compatibility by re-seeking [#1246]
- The `DEBUG_ELEMENT` feature now uses the `monospace` fallback font as a default for a better rendering on apple devices
- doc: externalize documentation-generator code


## v3.30.0 (2023-03-07)

### Features
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.30.0
3.31.0
46 changes: 9 additions & 37 deletions demo/full/scripts/contents.ts
Expand Up @@ -23,10 +23,16 @@ const DEFAULT_CONTENTS: IDefaultContent[] = [
"live": false,
},
{
"name": "BBC - presentationTimeOffset on audio and video",
"url": "http://rdmedia.bbc.co.uk/dash/ondemand/testcard/1/client_manifest-pto_both-events.mpd",
"name": "Axinom CMAF multiple Audio and Text tracks Tears of steel",
"url": "https://media.axprod.net/TestVectors/Cmaf/clear_1080p_h264/manifest.mpd",
"transport": "dash",
"live": false,
"live": false
},
{
"name": "Multiple audio language",
"url": "https://dash.akamaized.net/dash264/TestCasesIOP41/MultiTrack/alternative_content/6/manifest_alternative_lang.mpd",
"transport": "dash",
"live": false
},
{
"name": "DASH-IF - Trickmode",
Expand All @@ -40,12 +46,6 @@ const DEFAULT_CONTENTS: IDefaultContent[] = [
"transport": "dash",
"live": false,
},
{
"name": "BBC - Testcard Audio-only",
"url": "http://rdmedia.bbc.co.uk/dash/ondemand/testcard/1/client_manifest-audio.mpd",
"transport": "dash",
"live": false,
},
{
"name": "DASH-IF - Audio-only",
"url": "https://dash.akamaized.net/dash264/TestCases/3a/fraunhofer/aac-lc_stereo_without_video/Sintel/sintel_audio_only_aaclc_stereo_sidx.mpd",
Expand All @@ -64,18 +64,6 @@ const DEFAULT_CONTENTS: IDefaultContent[] = [
"transport": "dash",
"live": true,
},
{
"name": "Envivio - DASH",
"url": "http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd",
"transport": "dash",
"live": false,
},
{
"name": "Unified Streaming - Timeline - A-Team",
"url": "https://demo.unified-streaming.com/video/ateam/ateam.ism/ateam.mpd",
"transport": "dash",
"live": false,
},
{
"name": "Super SpeedWay",
"url": "https://playready.directtaps.net/smoothstreaming/SSWSS720H264/SuperSpeedway_720.ism/Manifest",
Expand All @@ -88,22 +76,6 @@ const DEFAULT_CONTENTS: IDefaultContent[] = [
"transport": "smooth",
"live": false,
},
// {
// "name": "Microsoft: XBoxOne Ad",
// "url": "https://profficialsite.origin.mediaservices.windows.net/9cc5e871-68ec-42c2-9fc7-fda95521f17d/dayoneplayready.ism/manifest",
// "transport": "smooth",
// "live": false,
// "drmInfos": [{
// "licenseServerUrl": "https://test.playready.microsoft.com/service/rightsmanager.asmx?PlayRight=1&UseSimpleNonPersistentLicense=1",
// "drm": "Playready",
// }],
// },
{
"name": "Smooth Ingest",
"url": "https://b028.wpc.azureedge.net/80B028/Samples/a38e6323-95e9-4f1f-9b38-75eba91704e4/5f2ce531-d508-49fb-8152-647eba422aec.ism/manifest",
"transport": "smooth",
"live": true,
},
{
"name": "Taxi 3 SoundTrack (Audio-Only)",
"url": "https://playready.directtaps.net/smoothstreaming/ISMAAACLC/Taxi3_AACLC.ism/Manifest",
Expand Down
10 changes: 6 additions & 4 deletions demo/full/scripts/controllers/ContentList.tsx
Expand Up @@ -507,7 +507,9 @@ function ContentList({
const isLocalContent = !!(chosenContent &&
chosenContent.isLocalContent);

const onTransportChange = React.useCallback((newTransport: string) => {
const onTransportChange = React.useCallback((
{ value } : { value : string; index: number; }
) => {
setContentChoiceIndex(0);
setContentNameField("");
setChosenDRMType(DRM_TYPES[0]);
Expand All @@ -521,9 +523,9 @@ function ContentList({
setLicenseServerUrl("");
setIsLowLatencyChecked(false);
setServerCertificateUrl("");
setTransportType(transportType);
setTransportType(value);

const contents = contentsPerType[newTransport] ?? [];
const contents = contentsPerType[value] ?? [];
const firstEnabledContentIndex = getIndexOfFirstEnabledContent(contents);
changeSelectedContent(
firstEnabledContentIndex,
Expand Down Expand Up @@ -737,7 +739,7 @@ function ContentList({
className="choice-input transport-type-choice white-select"
ariaLabel="Select a transport"
name="transport"
onChange={({ value }) => onTransportChange(value)}
onChange={onTransportChange}
options={TRANSPORT_TYPES}
selected={{ index: undefined, value: transportType }}
disabled={false}
Expand Down
Binary file modified dist/mpd-parser.wasm
Binary file not shown.

0 comments on commit 16f75e7

Please sign in to comment.