278 Commits

Author SHA1 Message Date
redphx
0c80e3ab1d Disable PWA prompt in Safari on iOS/iPadOS (#52) 2023-08-04 07:17:59 +07:00
redphx
8ee28d92d9
Bump version to 1.8.2 2023-08-02 12:45:23 +07:00
redphx
91aa28450d Fix battery status 2023-08-02 11:58:18 +07:00
redphx
8eb8bbf598
Add In/Out badges (#48)
* Show In/Out badges

* Cache DOMs of Stream badges

* Refresh badges every 3s

* Shorten Video badge: "1920x1080" -> "1080p"

* Fix 404 error when spoofing User-Agent (#34)
2023-08-02 11:51:46 +07:00
redphx
47817d9d36 Update color of "Video" badge 2023-08-01 21:17:27 +07:00
redphx
a27c0ed8f6
Bump version to 1.8.1 2023-08-01 08:31:56 +07:00
redphx
8ac37754e6 Combine "Resolution" and "Video" badges into one 2023-08-01 08:31:01 +07:00
redphx
d9288a322b Update battery stat 2023-08-01 08:23:48 +07:00
redphx
5facfd2348 Fix inaccurate percentages of PL & FL stats 2023-08-01 08:18:03 +07:00
redphx
889717be7d Show confirm dialog to refresh the stream after holding for 1s 2023-08-01 08:07:57 +07:00
redphx
4b0f0784ae Fix stats bar not showing sometimes 2023-08-01 08:05:18 +07:00
redphx
0c85770ed1
Bump version to 1.8 2023-07-31 07:48:52 +07:00
redphx
6c5fa3c061 Simplify playtime text 2023-07-31 07:31:03 +07:00
redphx
e47c6d9103 Use colors from PICO-8 palette for stream badges 2023-07-31 07:25:52 +07:00
redphx
563ad65580 Fix battery calculation 2023-07-31 07:16:32 +07:00
redphx
b0e23ca335
Hold the "Quit game" button for 1s to refresh the stream (#43)
* Hold "Quit game" button to refresh the stream

* Fix problem with touch screen

* Another fix
2023-07-30 22:03:25 +07:00
redphx
c9f3990173
Show playtime & battery level badges (#42) 2023-07-30 21:07:25 +07:00
redphx
5d301b6588 Add setting to hide/disable touch controller (#38) 2023-07-30 15:47:56 +07:00
redphx
e3af588b13
Bump version to 1.7 2023-07-29 17:20:47 +07:00
redphx
d2e3ad36da Fix check for update 2023-07-29 16:54:54 +07:00
redphx
26528fe2d7
Refactor code (#36)
* Refactor class names

* Move Quick settings bar's CSS to addCss()

* Adjust Stream menu button's size

* Add shadow to Video settings bar

* Put "Stream Stats" button before "Video Settings" button
2023-07-29 16:39:40 +07:00
redphx
9d44c9c779
Add "Preferred game's language" setting (#35) 2023-07-29 15:56:19 +07:00
redphx
423ac5c356 Start hiding cursor as soon as possible 2023-07-29 15:15:23 +07:00
redphx
746e32ecae
Add "Hide mouse cursor while playing" setting (#33) 2023-07-29 12:11:41 +07:00
redphx
931d70ba3a
Custom User-Agent (#32)
* Add "Custom User-Agent" feature

* Override navigator.userAgent

* Save the original User-Agent before overriding it
2023-07-29 10:49:12 +07:00
redphx
0d5e3ed70f
Replace "Force 1080p stream" setting with "Stream's target resolution" (#31) 2023-07-29 08:23:01 +07:00
redphx
bae8c193d3
Bump version to 1.6.2 2023-07-27 07:29:39 +07:00
redphx
e73e018380
Update Stream stats (#24)
* Change label's font

* Add Stats settings popup

* Toggle Stats settings dialog

* Update structure of Preferences.SETTINGS

* Add dialog title

* Add "Show stats when starting the game" setting

* Update texts

* Validate setting value before saving

* Add Preferences.toElement()

* Add "Text size" setting

* Add "Decode time" stat

* Add "Conditional formatting text color" feature

* Add "for" attributes to labels

* Update grade's colors

* Fix text wrapping

* Update stats using setInterval() instead of setTimeout()
2023-07-27 07:18:06 +07:00
redphx
ee192bc98e
Change value of "updateURL" 2023-07-25 11:35:50 +07:00
redphx
1210176413
Change "updateURL" to meta file 2023-07-25 11:33:21 +07:00
redphx
8c7013659b Fix Stream stats bar's CSS 2023-07-25 09:14:28 +07:00
redphx
b3b7a51979
Bump version to 1.6.1 2023-07-25 09:01:04 +07:00
redphx
831ccb31c1
Stop stretching stream stats' background to full screen 2023-07-25 09:00:48 +07:00
redphx
d87ac78e57
Add "Check for update" feature (#21) 2023-07-25 08:58:42 +07:00
redphx
e43c34ed3a
Bump version to 1.6 2023-07-23 17:45:27 +07:00
redphx
b564de249a
Show stream stats (#16)
* Get video and audio info from RTCPeerConnection.getStats()

* Show stream's stats bar

* Make Stream menu icon's size smaller

* Add shadow to stream badges

* Show bitrate

* Add button to toggle Stream Stats

* Rename StreamStatus to StreamBadges

* Show '???' then currentRoundTripTime is undefined

* Remove work-around for browsers with no setCodecPreferences() support as it's not working

* Remove updateVideoPlayerPreview()

* Disable USE_DESKTOP_CODEC setting on unsupported browsers
2023-07-23 17:09:30 +07:00
redphx
2569e73018
Bump version to 1.5 2023-07-22 12:13:42 +07:00
redphx
11c233e14e
Add screenshot capture feature (#15)
* Add a button to test screenshot feature

* Update CSS of the screenshot button

* Prevent screenshot button from blocking UI

* Add setting to change screenshot button's position
2023-07-22 11:46:19 +07:00
redphx
c3de245545 Rename "Dimension" to "Resolution" 2023-07-22 07:29:31 +07:00
redphx
3a654b99cb Fix video not showing in Chrome 2023-07-22 06:36:26 +07:00
redphx
de834fcb80
Bump version to 1.4.2 2023-07-21 16:49:28 +07:00
redphx
baf2c2a35d Fix "Force high quality codec" feature not working with Kiwi Browser 2023-07-21 16:42:57 +07:00
redphx
7207646379
Bump version to 1.4.1 2023-07-21 09:02:37 +07:00
redphx
e7980c186d
Add Kiwi Browser support (#11)
* Catch exception when trying to force desktop codec profile on Kiwi Browser

* Improve setCodecPreferences(), avoid crashing

* Improve codec status detection

* Fix codec detection
2023-07-21 08:57:05 +07:00
redphx
6e80ea08e8
Bump version to 1.4 2023-07-20 18:40:27 +07:00
redphx
a5caafa93a
Stream badges & 1080p stream (#10)
* Get stream statuses

* Render badges

* Add "Force 1080p stream" feature (#9)
2023-07-20 18:38:58 +07:00
redphx
89ea55774b Make Settings UI can be interacted using controller 2023-07-19 09:03:36 +07:00
redphx
e33730b124
Bump version to 1.3.2 2023-07-17 18:46:26 +07:00
redphx
a52ba7dddf Work-around of "Force high quality stream" feature for Firefox (#4) 2023-07-17 18:42:20 +07:00
redphx
f4a3c38cca Update texts in Settings 2023-07-17 17:06:34 +07:00