Commit Graph

3301 Commits

Author SHA1 Message Date
Álvaro Velad Galván 68903e130e fix: Fix color detection in text utils (#5970) 2023-12-02 08:43:14 +01:00
Álvaro Velad Galván d224933e34 chore: Remove unnecessary hints for the compiler and add missing requires (#5969) 2023-12-02 08:42:59 +01:00
theodab f3ca8699d6 chore: Update old TODO in video_wrapper.js (#5967)
Closes #1358
2023-12-01 01:32:44 -08:00
Álvaro Velad Galván b2a880b402 feat: Fix Media Source recoveries in some cases (#5966)
Related to https://github.com/shaka-project/shaka-player/pull/5938
2023-12-01 10:29:27 +01:00
theodab 24e32559bf feat(DASH): Handle mixed-codec variants. (#5950)
With the addition of the changeType API for MediaSource, it is theoretically possible for a variant to change between multiple codecs for a given buffer, over the course of playback.
This adds support for the DASH player to stitch together periods which have such multi-codec variants, but only as a last resort. For example, if one period only has audio in aac, and another period only has opus audio, the player will now stitch those periods together as one, but if there is a throughline that does not involve changing codecs it will go for that instead.

Closes #5961
2023-12-01 00:37:32 -08:00
Álvaro Velad Galván 90bc6a7c78 feat: Add config to prefer spatial audio (#5963) 2023-12-01 06:47:47 +01:00
Álvaro Velad Galván fb5a833df8 fix(HLS): Provide a fallback to GET request when HEAD request fails (#5964)
Fixes https://github.com/shaka-project/shaka-player/issues/5959
2023-12-01 06:40:12 +01:00
Álvaro Velad Galván 4eba182826 fix: Fix trackschanged event not fired after a license request is denied for some tracks (#5962)
Fixes https://github.com/shaka-project/shaka-player/issues/4874
2023-12-01 06:39:49 +01:00
Álvaro Velad Galván 7683892106 fix: Fix ESDS box parser (#5952) 2023-11-30 02:37:53 +01:00
Álvaro Velad Galván ba85ece3ac fix(DASH): Fix bad url when specify using a full WebVTT with BaseURL (#5954) 2023-11-29 17:33:32 +01:00
Koen Romers 503327a0e3 feat: add preferred video label (#5948)
Closes https://github.com/shaka-project/shaka-player/issues/5947
2023-11-29 11:37:57 +01:00
Álvaro Velad Galván 419b1c35d8 fix: Fix reset Media Source when using mixed codecs in different containers (#5949)
Fixes https://github.com/shaka-project/shaka-player/issues/5946
2023-11-29 10:35:17 +01:00
Álvaro Velad Galván d89945fc78 fix(HLS): Fix m4s extension detection (#5951) 2023-11-29 10:22:21 +01:00
Gary Katsevman 8b6602ec7c fix: Properly size region anchor from LINE units (#5941)
CEA708 captions may set windows in LINE units, this needs to be
converted to percentages to be properly displayed. In addition, adjust
by the region anchor.

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2023-11-29 08:13:05 +01:00
Álvaro Velad Galván 0deb25b57f feat: Add config to allow Media Source recoveries (#5938) 2023-11-28 08:50:18 +01:00
Álvaro Velad Galván c496aafaeb feat: Avoid streams which cannot fit into the browser's MediaSource quota (#5937)
Closes https://github.com/shaka-project/shaka-player/issues/1384
2023-11-28 08:44:16 +01:00
Álvaro Velad Galván 6102060028 fix: Fix transmuxer when sample has no video data (#5933)
Fixes https://github.com/shaka-project/shaka-player/issues/5931
2023-11-27 10:28:14 +01:00
Álvaro Velad Galván 83f6f5379b fix(CEA): Fix positioning in CEA-608 (#5925)
See:
https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-608

Related to https://github.com/shaka-project/shaka-player/issues/2940
2023-11-27 09:48:06 +01:00
Álvaro Velad Galván 515a4ab02b feat: Set baseDelay to 100 by default for low latency streaming (#5926) 2023-11-27 08:59:03 +01:00
Gary Katsevman 2a524bf51f feat: expose CEA708 window position in the cue's region (#5924)
CEA708 captions have positioning data available in their windows.
However, this isn't currently translated and exposed by shaka though it
is parsed from the bitstream.

Translates the windows into WebVTT regions and uses the mappings
outlined
https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-708

This is also partially implements #2583.
2023-11-23 17:19:46 +01:00
Álvaro Velad Galván 82ab8937e6 fix: Fix init segment comparison (#5920) 2023-11-22 23:02:34 +01:00
Álvaro Velad Galván 8f453c245f feat(DASH): Add support for location in Content Steering (#5914)
According to
https://github.com/Dash-Industry-Forum/Dash-Industry-Forum.github.io/files/11722876/DASH-IF-CTS-001-1.0.0.pdf,
Location elements can have serviceLocation, so we need support it.
2023-11-22 23:02:01 +01:00
Álvaro Velad Galván 09f2a2e887 fix: Only append to the buffer init segments when the segment is independent (#5921) 2023-11-22 23:01:35 +01:00
Álvaro Velad Galván 58d45976d8 fix(HLS): Recognize CEA subtitles when CLOSED-CAPTIONS attribute is missing (#5916)
Fixes https://github.com/shaka-project/shaka-player/issues/5915
2023-11-22 09:56:47 +01:00
Álvaro Velad Galván c8983646c1 fix: Unmask errors on LL (#5908) 2023-11-21 20:38:43 +01:00
Álvaro Velad Galván 0f5982ba8e chore(DASH): Simplify content steering management in DASH (#5909) 2023-11-21 07:14:16 +01:00
Álvaro Velad Galván 3a68623946 fix(DASH): Fix false redirect detection (#5910)
Fixes https://github.com/shaka-project/shaka-player/issues/2216
2023-11-21 05:28:56 +01:00
Álvaro Velad Galván 966b910edc feat: Add support for Common Media Server Data (CMSD) (#5900)
Closes https://github.com/shaka-project/shaka-player/issues/5890
2023-11-20 14:07:13 +01:00
Álvaro Velad Galván f7083183c3 fix: Fix language comparison in addTextTrackAsync (#5904)
Fixes https://github.com/shaka-project/shaka-player/issues/5901
2023-11-17 09:52:35 +01:00
Álvaro Velad Galván 30de1771cf fix(DASH): SegmentTemplate@media not updated after change in manifest (#5899)
Fixes https://github.com/shaka-project/shaka-player/issues/5898
2023-11-16 19:21:27 +01:00
Shaka Bot 42c6e5f655 chore(main): release 4.6.0 (#5729)
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2023-11-16 11:32:23 +01:00
Álvaro Velad Galván b5b6a0fd84 feat(HLS): Improve the stream info when EXT-X-MEDIA has not uri (#5886)
Closes https://github.com/shaka-project/shaka-player/issues/5447
2023-11-16 09:57:47 +01:00
Dave Nicholas d8aa24f41d fix(DASH): Segments being fetched out of the range of the timeline (#5889)
Fixes: https://github.com/shaka-project/shaka-player/issues/3952
2023-11-16 09:48:12 +01:00
Álvaro Velad Galván 606d693900 fix: Allow get seekRange on manifestparsed event in some cases (#5892)
Fixes https://github.com/shaka-project/shaka-player/issues/5115
2023-11-16 08:08:18 +01:00
Will Harris 9d23a87f85 fix: Add Orange platform to requiresEncryptionInfoInAllInitSegments (#5895)
Fixes: https://github.com/shaka-project/shaka-player/issues/5894.
2023-11-15 18:21:20 +01:00
Nick Crast 9a694b59f8 fix: CEA decoder should return early if packet is not large enough (#5893)
Fixes #5891 

In production, we are seeing the occasional SEI packet [`0x5b`], which
is causing the parser to error. Using Mux.JS, this packet is ignored
because it's not long enough to be a valid captions packet, so for
feature parity it would make sense for the built in Shaka parser to also
ignore.
2023-11-15 18:20:39 +01:00
Álvaro Velad Galván 0e62b8e007 fix: Fix mangled property in compiled mode in Content Steering (#5887)
Related to https://github.com/shaka-project/shaka-player/issues/5704
2023-11-15 18:18:55 +01:00
Álvaro Velad Galván b75ca1df63 feat(HLS): Add support for Content Steering (#5881)
Closes https://github.com/shaka-project/shaka-player/issues/5704
2023-11-15 11:10:37 +01:00
Álvaro Velad Galván 1c6f1fa7b3 feat(DASH): Add support for Content Steering in AdaptationSet BaseURL (#5884)
Related to https://github.com/shaka-project/shaka-player/issues/5704
2023-11-15 08:59:47 +01:00
Álvaro Velad Galván 5f891d98d6 fix(DASH): Fix bad url when specify MPD BaseURL and AdaptationSet BaseURL (#5883)
Fixes https://github.com/shaka-project/shaka-player/issues/5882
2023-11-14 16:00:20 +01:00
Álvaro Velad Galván 0dba256b62 refactor(HLS): Refactor URLs management in HLS (#5864)
It also improves the detection of duplicate playlists, and improves
redirect management, leaving the original URL available in case it is
needed.
2023-11-14 09:06:11 +01:00
Álvaro Velad Galván c79e5a5058 fix(HLS): Fix LL-HLS with byterange optimization using segments mode (#5876) 2023-11-13 20:45:31 +01:00
Álvaro Velad Galván 5e797bd734 fix(HLS): Fix bad detection in some MediaPlaylist (#5878) 2023-11-13 20:22:50 +01:00
Álvaro Velad Galván 3e91e8eb0c feat(HLS): Add new config for allow LL-HLS byterange optimization (#5877) 2023-11-13 20:22:35 +01:00
Álvaro Velad Galván f5777e5625 fix(ABR): Fix HLS playback after internet connection is restored (#5879)
Fixes https://github.com/shaka-project/shaka-player/issues/5873
2023-11-13 17:50:44 +01:00
Álvaro Velad Galván c830a99041 fix: Fix selectAudioLanguage using channelsCount param (#5875) 2023-11-13 09:10:32 +01:00
Álvaro Velad Galván d6aab6befa fix: Fix missing audio streams (#5869)
Fixes https://github.com/shaka-project/shaka-player/issues/5858
2023-11-13 09:10:12 +01:00
Álvaro Velad Galván 42f491f782 feat(DASH): Add support for Content Steering (#5710)
Related to https://github.com/shaka-project/shaka-player/issues/5704
2023-11-09 08:34:09 +01:00
Álvaro Velad Galván da38b362e8 fix(HLS): Fix decryption of AES-128 (#5871)
Related to
https://github.com/shaka-project/shaka-player/issues/5785#issuecomment-1801944841
2023-11-08 17:44:01 +01:00
Álvaro Velad Galván a5adf3176f feat(Demo): Add new 3D movie stream from Apple (#5872)
It also creates a filter for UHD and corrects the filtering in some
assets.
2023-11-08 17:36:59 +01:00