Commit Graph

1049 Commits

Author SHA1 Message Date
Wojciech Tyczyński 6f84e411ed fix(PS4): Fix serverCertificate defaulted to null (#6716)
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
2024-05-31 09:44:04 -07:00
Joey Parrish 8d680e56b4 feat: Add segment URIs to segment-related errors (#6714)
This makes it more feasible to debug and fix transmuxer bugs or other segment append failures.

Closes #6712
2024-05-31 09:41:45 -07:00
Álvaro Velad Galván 082f897701 feat(HLS): Build closed captions metadata on-the-fly (#6700)
Closes https://github.com/shaka-project/shaka-player/issues/1826

Also fixes variable substitution when using `getMediaPlaylistBasicInfo_`
2024-05-30 11:02:01 +02:00
Álvaro Velad Galván 2b358c5c8e fix: Fix COLR box parsing (#6699) 2024-05-30 08:21:34 +02:00
Roger Pales b3cacadd16 fix(DASH): Firefox multi-period/multi-codec bug (#6691)
Fixes #6690
2024-05-29 11:45:47 +02:00
Wojciech Tyczyński 9e26166c40 fix: patch setServerCertificate() on older Tizens & webOS (#6696)
We've tried to enable setting server certificates to optimize playback
start, but turned out that with our widevine certificate shaka was
throwing 6004 error. The issue is not reproducible starting from Tizen
5.5. The same certificate was working properly also on Chrome.
2024-05-29 11:07:17 +02:00
Álvaro Velad Galván 9060ab0a34 feat(DASH): Parse and use target latency (#6683)
Related to https://github.com/shaka-project/shaka-player/pull/6193
Thanks to @gkatsev
2024-05-29 09:45:09 +02:00
Dave Nicholas d38aabf04d feat(DASH): Add MPD Patch support (#5247)
Closes https://github.com/shaka-project/shaka-player/issues/2228

---------

Co-authored-by: Wojciech Tyczyński <wojciech.tyczynski@sky.uk>
2024-05-29 08:11:28 +02:00
Wojciech Tyczyński c541515995 fix: Ban smooth codec switching on Tizen 5 & 6 (#6686)
My recent tests on using smooth codec switch on Tizen 6.0 unfortunately
failed. Ban this platform together with Tizen 5.
2024-05-28 12:34:37 +02:00
Álvaro Velad Galván a219e2f337 fix: Fix default value of liveSyncMinPlaybackRate (#6685)
The previous default value served no purpose and was a mistake in the PR
that added the functionality.
2024-05-28 12:33:54 +02:00
Álvaro Velad Galván 64e4fd8e92 fix: Add timeout to fullyLoaded in src= (#6676)
Fixes https://github.com/shaka-project/shaka-player/issues/6664
2024-05-28 09:35:46 +02:00
Wojciech Tyczyński e0eeb5b77d feat: add config to clear decodingInfo cache on unload (#6678)
On PlayStation, cached `MediaKeySystemAccess` objects may corrupt after
several playbacks, and they are not able anymore to properly create
`MediaKeys` objects. To prevent it, clear the cache after each playback.
Make it configurable via `streaming.clearDecodingCache`.
2024-05-27 14:10:33 +02:00
Álvaro Velad Galván 329d42ad56 feat: Parse colorGamut and use it in MCap (#6663) 2024-05-24 08:59:06 +02:00
Álvaro Velad Galván f3741737ac feat(ABR): Add cacheLoadThreshold config (#6657)
Close https://github.com/shaka-project/shaka-player/issues/6623
2024-05-23 18:28:55 +02:00
Álvaro Velad Galván e7b893b74e feat: Add config for add headers to license requests (#6650)
Co-authored-by: Joey Parrish <joeyparrish@google.com>
2024-05-23 09:45:25 +02:00
Álvaro Velad Galván 520930c665 feat(Ads): Support CS on devices that don't support multiple media elements (#6575)
Closes https://github.com/shaka-project/shaka-player/issues/2792
2024-05-23 09:25:33 +02:00
Álvaro Velad Galván dda713aa71 feat: Optionally force HTTP content URIs (#6649)
This may be necessary on older devices where not all certificates are
present.
2024-05-23 04:16:18 +02:00
Álvaro Velad Galván 82c5149375 feat(DASH): Add MPD Chaining support (#6641)
Close https://github.com/shaka-project/shaka-player/issues/3926
2024-05-21 09:57:16 +02:00
Álvaro Velad Galván 11272a3fee fix: Disallow Object.fromEntries in Tizen (#6634) 2024-05-17 16:18:03 -07:00
Álvaro Velad Galván 907e6bab28 feat: Add getNonDefaultConfiguration (#6620) 2024-05-17 09:25:49 +02:00
Álvaro Velad Galván 0a4c9d1973 fix: Fix Opus support in Safari (#6607)
In Safari:

```
> MediaSource.isTypeSupported('audio/mp4;codecs=Opus')
< true
> MediaSource.isTypeSupported('audio/mp4;codecs=opus')
< false
> MediaSource.isTypeSupported('audio/webm; codecs="Opus"')
< false
> MediaSource.isTypeSupported('audio/webm; codecs="opus"')
< true
```
2024-05-14 17:46:39 +02:00
Álvaro Velad Galván f1d620cb23 fix: Enable SMOOTH codec switching on Fuchsia cast devices (#6609) 2024-05-14 17:44:36 +02:00
Álvaro Velad Galván 0206e5af8e feat: Add a new setting to allow remove based on channels count (#6600)
Close https://github.com/shaka-project/shaka-player/issues/6491
2024-05-14 10:28:06 +02:00
Joey Parrish ddabe93eaf test: Fix Fuchsia background-video errors (#6579)
In some cases, Fuchsia Chromecast tests will fail with the error: "The
play() request was interrupted because video-only background media was
paused to save power."

This resolves the issue by ensuring tests run un-muted on that platform,
based on this Chrome code, which indicates the "paused to save power"
logic does not activate when sound is playing:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/media/web_media_player_impl.cc;l=3535;drc=d23075f3

This also fixes two places in our tests where the `createVideoElement()`
was bypassed. This should always be used, because it is a central place
to apply workarounds such as this.
2024-05-10 23:21:37 -07:00
Joey Parrish 5da5de2800 feat: Expose the maximum hardware resolution through probeSupport() (#6569)
This makes it easier to debug hardware resolution issues through the
support page, which can now show hardware resolution. To show the
support page on Chromecast devices, use chromecast-webdriver-cli.
2024-05-09 10:43:37 -07:00
Joey Parrish 4498dcde28 fix: Do not assume 1080p Cast devices, some are 720p (#6562) 2024-05-08 18:44:34 -07:00
Joey Parrish 9c1e621c7a test: Fix test environment access to cast.__platform__ (#6553)
This shim requires the latest version of the Chromecast WebDriver Server's receiver app, which can receive messages and proxy async access to `cast.__platform__`.
2024-05-08 14:15:09 -07:00
Álvaro Velad Galván ed939872e1 feat: Add response URI to BAD_HTTP_STATUS error (#6561)
Closes https://github.com/shaka-project/shaka-player/issues/2969
2024-05-08 20:17:36 +02:00
Álvaro Velad Galván 61ce88b2f5 fix: Issue with compiler minifying webOS device properties (#6558)
Fixes https://github.com/shaka-project/shaka-player/issues/6533

The original author is: @stuartflanagan 
The original PR is:
https://github.com/shaka-project/shaka-player/pull/6554
2024-05-08 16:09:49 +02:00
Álvaro Velad Galván ec29f82592 feat: Check encryptionScheme against MCap (#6484)
Closes https://github.com/shaka-project/shaka-player/issues/1419
2024-05-08 11:10:56 +02:00
Álvaro Velad Galván d4940681dd fix: Fix tXml conversion to DOMElement (#6538)
Fixes https://github.com/shaka-project/shaka-player/issues/6524
2024-05-06 20:02:50 +02:00
Wojciech Tyczyński ab26de4a60 test: Add error listener & ec3 test in codec switching integration test (#6486)
Adding EC-3 test case for codec switching integration suite, as some
platforms, i.e. Tizen 3 do not support Opus

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2024-05-06 16:40:55 +02:00
MichaelSweden f337e06bda fix: Handle non existing navigator.platform string (#6517) (#6518)
This fix will make it possible to use v4.8 in Cobalt browser. The
problem is that navigator.platform doesn't exist in Cobalt browser.

Fixes https://github.com/shaka-project/shaka-player/issues/6517

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2024-04-30 16:39:38 +02:00
Álvaro Velad Galván 2fc0c935c4 feat(DASH): Add manifest.dash.enableFastSwitching config (#6500) 2024-04-29 21:22:29 +02:00
Álvaro Velad Galván a57002b486 fix: Fix inefficient buffering behavior with negative trick play rate (#6489)
Fixes https://github.com/shaka-project/shaka-player/issues/1958
2024-04-29 11:56:47 -07:00
Álvaro Velad Galván 0e00d6551f fix: Fix flac detection in Safari (#6497) 2024-04-29 11:54:52 -07:00
Álvaro Velad Galván 0873d1ecdd fix: Fix deprecation warning for manifestPreprocessor that is always logged (#6496)
Fixes https://github.com/shaka-project/shaka-player/issues/6488
2024-04-29 12:40:31 +02:00
Álvaro Velad Galván c6c39dfafc feat: Add encryptionScheme to shaka.extern.DrmInfo (#6480)
Related to https://github.com/shaka-project/shaka-player/issues/1419
2024-04-26 06:49:15 +02:00
Álvaro Velad Galván 95c6a7dda3 feat(UI): UI support for VR content (#6450)
Co-authored-by: Joey Parrish <joeyparrish@google.com>
2024-04-25 13:43:32 +02:00
Álvaro Velad Galván de2a2d885f feat: Add TextDisplayer config (#6477) 2024-04-24 18:15:44 +02:00
Wojciech Tyczyński bf17a3401e fix: Do not use replaceAll in XPath parsing (#6473)
`replaceAll` is not supported on Tizen 3.
2024-04-24 14:52:42 +02:00
Álvaro Velad Galván cff3d848da feat: Change default preferredKeySystems for Xbox and PS4 (#6471)
Related to https://github.com/shaka-project/shaka-player/pull/6468
2024-04-24 12:34:40 +02:00
Wojciech Tyczyński 0883c32ce6 feat: Parse XPath (#6470)
Required by #5247 

Simple XPath parser for tXml utils. Not used for now, but needed for MPD
Patch support.
2024-04-24 10:05:07 +02:00
Wojciech Tyczyński c9b61fe351 perf(DRM): pass preferredKeySystems to filterManifest() (#6468)
Follow up to #5391
Always use `preferredKeySystems` during manifest filtering, not only via
DRM Engine.
2024-04-23 14:27:36 -07:00
Álvaro Velad Galván d532bf44c7 feat: Add bytesDownloaded to stats (#6469)
Closes https://github.com/shaka-project/shaka-player/issues/6413
2024-04-23 14:26:58 -07:00
Wojciech Tyczyński 8c549f3427 fix: Fix webOS 4 & 5 utility methods (#6463)
webOS platforms don't contain OS version explicitly in user agent,
instead they signal it via chrome version. This PR fixes webOS 4 & 5
methods and unifies all webOS check methods.
2024-04-22 10:46:46 +02:00
Álvaro Velad Galván 9ad9c94291 chore: Add backwards compatibility for "Remove DOM Parser" (#6453)
Backwards compatibility for https://github.com/shaka-project/shaka-player/pull/6063
2024-04-18 09:03:26 -07:00
Álvaro Velad Galván 7d723e3f98 chore: Add backwards compatibility for useNativeHlsOnSafari (#6454)
Backwards compatibility for
https://github.com/shaka-project/shaka-player/pull/6188
2024-04-17 15:48:51 -07:00
Álvaro Velad Galván 91f74e793e feat(Ads): Skip play detection in some devices (#6443)
This configuration solves problems with some devices not being able to
play a pre-roll.
2024-04-16 08:49:05 +02:00
Álvaro Velad Galván d8d96c8546 feat: Trigger an event with spatial video info (#6437)
This is a necessary step to implement VR in the UI
2024-04-15 10:24:49 +02:00