aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/players')
-rw-r--r--src/client/players/Youtube.hx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/players/Youtube.hx b/src/client/players/Youtube.hx
index 5308b63..7c98b3f 100644
--- a/src/client/players/Youtube.hx
+++ b/src/client/players/Youtube.hx
@@ -243,6 +243,7 @@ class Youtube implements IPlayer {
onError: e -> {
// TODO message error codes
trace('Error ${e.data}');
+ final item = player.getCurrentItem() ?? return;
rawSourceFallback(item.url);
}
}
@@ -258,9 +259,7 @@ class Youtube implements IPlayer {
trace(info);
return;
};
- final item = player.getCurrentItem();
- item.url = format.url;
- player.refresh();
+ player.changeVideoSrc(format.url);
});
main.send({
type: GetYoutubeVideoInfo,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage