Commit Graph

27 Commits

Author SHA1 Message Date
theodab 4425dca283 chore: Remove state engine (#5752)
The state engine mechanism, designed for the player class, was
over-engineered. The structure of the class makes debugging player
errors unnecessarily annoying, by obfuscating the code-path the error
followed, and in general
has created a significant amount of technical debt.
This changes the player to use an async-await setup for the top-level
operations, laying things out much more cleanly
and linearly.

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2023-10-30 23:59:08 -07:00
theodab d0bb1babaa docs: Remove next links from tutorials (#5082)
The links to the next tutorial were out of date, and they no longer prescribed the actual order of tutorials. This just removes those links entirely.

Fixes #5078
2023-03-10 00:58:11 -08:00
Joey Parrish 0db6070dcd chore: Set receiver app ID for main (#4675) (#4686)
This reverts commit ea2eaaf210.

Now that v4.3 is out, this sets the receiver app ID for main to refer to
the nightly version of the receiver app again.
2022-11-11 07:08:08 -08:00
Joey Parrish ea2eaaf210 chore: Set receiver app ID for v4.3 (#4675)
This will be reverted in the main branch after the launch/branch of
v4.3, so that main continues refers to the nightly version of the
receiver app.
2022-11-09 16:17:58 -08:00
Joey Parrish 6c6cc9dc4b docs: Fix receiver app ID in UI tutorial (#4673)
In the main branch, since the code there is a pre-release, these should
generally all point to the nightly demo receiver.
2022-11-09 16:05:17 -08:00
Joey Parrish 46b27f19e0 fix: Update main branch Cast receiver ID (#4364)
This ID points to the nightly build, and so is appropriate for the
main branch.
2022-07-19 11:59:29 -07:00
Álvaro Velad Galván dbba571c6b feat(cast): Add Android receiver support (#4183)
Closes https://github.com/shaka-project/shaka-player/pull/3773 
Closes https://github.com/shaka-project/shaka-player/issues/3772
2022-05-05 09:18:47 -07:00
Joey Parrish 00106e2304 chore: Update Cast receiver ID for v3.3
Change-Id: I45013462a49b9e1ebfb017371b80bf351f9ee286
2022-01-07 12:01:04 -08:00
Joey Parrish 1b2fa840d9 fix: Update Cast receiver ID for v3.2
Change-Id: I6f92d676b35d5236805aea7864fc81f4fb7a223f
2021-10-14 09:06:47 -07:00
Joey Parrish 3698f49f3b chore: Update cast receiver ID for v3.1
Change-Id: Ifa042ca4e5e8922121d332cc790559d5bbff14ae
2021-04-29 21:49:11 +00:00
ismena b850054a56 docs: Document programmatic UI setup
Closes #2655

Change-Id: I8a151b0be6cbec0d06bfa00c69e5249f4187c154
2021-02-20 02:45:59 +00:00
Joey Parrish e8b9748ab1 docs(ui): Correct receiver IDs in the UI tutorial
Closes #2926

Change-Id: If535dc03f585ba3d7b6b504454dc920e822aabc4
2020-10-19 14:31:30 -07:00
태재영 dd48cef08f docs: change variable declaration to modern syntax (#2692)
Issue #2544
2020-06-29 14:06:25 -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
Joey Parrish b38b75c892 Fix truncated UI tutorial
Unescaped HTML tags in the tutorial text were placed directly in the
HTML output by jsdoc, causing the text to appear truncated.

Closes #2410

Change-Id: Ic7e3563cc000e666237851b1c7429a164532db6a
2020-02-21 00:47:12 +00:00
Sandra Lokshina 827e5d813f Support setting source through HTML
Issue #2088.

Change-Id: Ib0ee45e4b5e6b0f6bcdd8b76f26ddd0cfa972a03
2019-08-28 18:34:51 +00:00
Sandra Lokshina 1cc3b9ff96 Add player and ui to window in UI tutorial.
Based on the recent CWIP feedback.

Closes #2112.

Change-Id: I157ba61ba1b6a9c9557fddeb2fd47dcde794e7db
2019-08-23 18:22:07 +00:00
Sandra Lokshina b4ddbd2131 Add mention of the Chromecast SDK to the UI tutorial.
Closes #2061.

Change-Id: I48396b8e5cd9ed821b25f5d87965ed7fd8e86691
2019-08-01 22:50:18 +00:00
Sandra Lokshina 4bb1207ee3 Update UI tutorial according to the CWIP feedback.
Fixes #1954

Change-Id: I89166832b174df6e4db9c8f153b3edd0962319ef
2019-06-10 21:54:20 +00:00
Joey Parrish e54f729a04 Deprecate ui.getPlayer for controls.getPlayer
The controls have the cast proxy and the proxied player, so the UI
itself offering direct access to the local player is confusing.
Instead, we will send all requests through the controls, which have
explicit getPlayer() and getLocalPlayer() methods for access to the
proxied and local players.

Closes #1941

Change-Id: I1d6154d76b1b3b5b550e55e39efcbb2c451f7569
2019-05-16 18:30:16 +00:00
Joey Parrish 34585af993 Inline external CSS for quicker load
This reduces the number of resources we have to load by using LESS to
import them into the compiled CSS bundle.

This also gets rid of a flash of unstyled content in compiled mode by
always including the compiled CSS in HTML directly, regardless of
mode.  If the app is running in uncompiled mode, LESS is still loaded
and can override the compiled styles.

Change-Id: I8cde25c15c281029a129225fc85a8baee767f424
2019-05-09 19:05:17 +00:00
Sandra Lokshina aac3657a83 Add dynamic UI reconstruction to the tutorials.
Change-Id: I915e2f52a597fabd4b81711dcf97a38cf2e3d788
2019-05-02 18:19:54 +00:00
Theodore Abshire efc2ed3df1 Added new demo page.
This is a complete replacement for the old demo page, made to be more
modern-looking and easier to maintain. It contains new features such as
remembering the URIs you provide for custom assets, and searching through
the default assets by feature.
This demo page is not quite ready for release yet, but it's getting close.

Change-Id: Iad01d1fc02c3cd238d73b9b9e02dbb4301cb6f2a
2019-05-01 19:58:18 +00:00
Sandra Lokshina 3fd138b433 Add tutorial on creating custom UI buttons.
Change-Id: Ib258ccb88b85ec87a753cd5d6348eb2b6b356ce2
2019-01-22 19:36:34 +00:00
Sandra Lokshina 40afb00f20 Add spacer element to the UI.
Issue #1673.

Change-Id: I8e01366f82e5e7d3b9365d8387f02eede877ad07
2019-01-18 21:48:31 +00:00
Aaron Vaage 4bdca263cc Fix UIConfiguration Link in UI Tutorial
To link to the docs there is a special link syntax provided by
JSDoc. However, we were using a normal MD link resulting in a
link to a missing resource.

This changes that link to use the JSDoc link.

Fix #1719

Change-Id: I9f1633dbc8e1ac288a55636bd6b98dbff0ec9771
2018-12-05 17:44:37 +00:00
Sandra Lokshina 6b1ca2d229 Initial release of Shaka Player UI
Other contributors:
 - @joeyparrish
 - @michellezhuogg
 - @TheModMaker
 - @theodab
 - @vaage

Change-Id: If6df33d9ab5035d1ead4402004f7de37ee8470f4
2018-11-16 14:40:37 -08:00