Commit Graph

26 Commits

Author SHA1 Message Date
Álvaro Velad Galván 943bdb2b35 Use Network Information API to react to network changes (#2663)
Resolves #1067
2020-07-09 09:46:24 -07:00
Theodore Abshire aa9fe1d049 fix(demo): Fix behavior when UI fails to load
This modifies the demo to load localizations even when the UI fails
to load, so that the footer links will still be visible.
This also makes the footer links work in that situation, and modifies
the shaka-ui-load-failed event to return a failure reason code, so
that we can display a contextual error message in event of a failure.

Closes #2669

Change-Id: I0cf38f7e39558f1977eee490131378c32105437f
2020-06-23 23:29:37 +00:00
michellezhuo 6d373eb631 Add config for low latency mode
Issue #1525

Change-Id: I561ac50b4681036b7675efdceae70937c4b9244d
2020-06-09 17:29:54 +00:00
Álvaro Velad Galván 8648a3e0fc Add option to customize the polling of expiration time (#2579)
A large value effectively disables use of the expiration time

Closes #2252
2020-05-20 14:58:35 -07:00
Sergei Gridasov 2fdbd5b676 Add new option manifest.hls.useFullSegmentsForStartTime (#2575)
If true, forces HlsParser to use a full segment request for determining
start time, in case the server does not support partial requests.

Closes #2556
2020-05-19 08:24:04 -07:00
Joey Parrish 09147b1273 Update references to "search" tab to "all content"
Change-Id: I77dcc3055b58216db26de7a003b0fd980c779e76
2020-03-10 17:14:51 +00:00
Theodore Abshire 277dd859b4 Replace Live search boolean with a drop-down.
This adds an option for searching for VOD. It also changes the Live
search option to be a drop-down instead of a toggle, so as to prevent
users from trying to search for assets that are both Live and VOD.

Change-Id: Ib03a64128aea6d06baff23fc1d909090fdf7ef79
2020-02-27 21:34:51 -08:00
Theodore Abshire 192cb9d1f7 Replaced "Undefined" with "---" in demo.
"Undefined" was a bit confusing as a search term... does it mean
that you aren't searching for anything, or that you are searching for
things with "Undefined" as a value?
Hyphens are a clearer non-search value.

Change-Id: Ie2a542620265ae1f1ca167f18ca311d15d76acf7
2020-02-27 15:22:52 -08:00
Theodore Abshire bb3994ba53 Renamed the "SEARCH" tab to "ALL CONTENT".
Naming the tab "SEARCH" was potentially confusing to users.
"ALL CONTENT" is probably a more intuitive description of what
the tab does.

Change-Id: I45b6b28fe2d59339c7c6fbf744f587937175d1f1
2020-02-27 15:20:12 -08:00
Theodore Abshire 7a0c41a1d7 Remove the "Unknown" source.
No asset was using "Unknown" as a source, and it was taking up
space in the search drop-downs and being confusing. It was only used
when loading unknown assets from the URL... but then, the source of
an asset loaded from the URL is more or less irrelevant, so that
doesn't really matter.

Change-Id: I1e20c717351aaf66f8a2b3fa25422ed884c7fd80
2020-02-27 14:42:59 -08:00
Álvaro Velad Galván 111ba958e6 Add set custom asset with Ad Tag URL (#2393) 2020-02-20 11:13:34 -08:00
Jacob Trimble c8043f3916 Allow configuring when to fetch prev segment.
We fetch the previous segment in Live streams to combat differences
between the manfiest times and the segment times.  Now this can be
configured so apps with correct manifests can avoid the extra segment
request.

Also, we'll update the buffering state when a segment appends so we
leave the buffering state sooner.

Issue #2291

Change-Id: Id12c8132dc11739e4c8d42cb1f08e6ae7da1a966
2020-02-15 01:52:05 +00:00
Jacob Trimble 072ce2b356 Sort locale files.
This also fixes a bug where the UI source.json file was invalid since
it had a trailing comma.

The JSON files were sorted with this Python:

  with open(path, 'r') as f:
    obj = json.load(f)
  with open(path, 'w') as f:
    f.write(json.dumps(obj, indent=2, sort_keys=True,
                       ensure_ascii=False).replace(' \n', '\n'))

Change-Id: I846dfbbc88254030147193fad057bed024997bcd
2020-02-13 19:52:13 +00:00
Theodore Abshire 9cbbc40aaf Added trick play controls option to the demo.
Change-Id: Iaca03a5f4c917ee8d60224ba2c6fc65ccef130a1
2020-02-11 19:56:42 +00:00
Jacob Trimble f7be614c42 Add option to log license exchange.
It is common when debugging protected content to want to see the
license request/response data.  This adds a configuration to easily log
the license request/response data so we can see this without modifying
the code or adding breakpoints.

Change-Id: Ib5db3eaa1447ae8714da935ee459fc7f9ba1e937
2020-02-07 22:22:11 +00:00
Joey Parrish d8178cd56c Remove unavailable Wowza test asset
This asset is unavailable and I can find no replacement test content
from Wowza.  The link we had to the origin of the old test content now
forwards to a Bitmovin demo.

Bug: 28087927

Change-Id: I15b39eb022a6b31c7556f6f40268e95acfdc8092
2020-02-05 20:45:43 +00:00
Sandra Lokshina a38f61b1b6 Integrate ad experience into the demo page.
Different ads have been added to three assets.
Demo search CSS has been adjusted a bit for better
experience.
Feature name has been changed from "AD" to "ADS" to
reflect the fact that a single asset can have more
than one ad.

Issue #2222:

Change-Id: I12a63b813fb4bac79362f1689b485a824f5a9682
2020-01-29 18:21:16 +00:00
Joey Parrish cc640eb51c Drop references to CDNJS
CDNJS isn't updating correctly and maintenance of that mirror's config
is nearly impossible.

Also adds a reference to jsDelivr in the README, matching what's in
the demo app.

Closes #2343

Change-Id: I3a337ccd55ebc4c193ab205a7f8c8a77c33a4b4b
2020-01-16 22:36:32 +00:00
Theodore Abshire c702ce18a8 Added asset feature for "AD".
Change-Id: I16a90c0b9846c4e90df7be53fecc1aeddd0a22e4
2020-01-15 13:21:05 -08:00
Joey Parrish 68832a102e Add missing demo message
PR #2330 introduced a new option, but the actual message for the demo
app was missing.  This adds the missing message.

Change-Id: Ia030925085af4e58299df0bd9c2417c6d2791a1b
2020-01-08 14:17:09 -08:00
Álvaro Velad Galván 6e8ab0132f Add framerate restriction to the config (#2332)
Closes #2068
2020-01-08 11:33:58 -08:00
Álvaro Velad Galván 8cbe54575a Allow disabling the text parsing, decoding, etc in DASH/HLS with a config (#2278) 2019-12-04 13:50:56 -08:00
Álvaro Velad Galván f6da953112 Allow ignoreSuggestedPresentationDelay in DASH (#2260)
* Add ignoreSuggestedPresentationDelay configuration

* Add test

* Change test name

* Add missing locale
2019-12-03 11:22:40 -08:00
Álvaro Velad Galván 05c03fcf64 Allow disable the video parsing/decoding/.. in DASH/HLS with a config (#2259)
* Add disableVideo configuration

* Add missing locale
2019-12-03 11:11:06 -08:00
Theodore Abshire a3a53eb4ba Added markup to localizations.
Change-Id: Ic43a92b7749c83057d669ef86475e1a76e4fd86e
2019-11-22 14:24:49 -08:00
Theodore Abshire 4c6325de08 Added localization system to demo.
No localizations exist currently, but this adds the framework for them.

Change-Id: I81a8cab128884753c765a192181d5d88f0ed13f1
2019-11-18 19:41:58 +00:00