From 9c7de8f41f50d053fd4d13a027679824aae3adbc Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 6 Mar 2024 08:26:33 -0500 Subject: [PATCH] Add user agent to player --- playlet-lib/src/components/VideoPlayer/VideoPlayer.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index 277d06d5..3c02d8a1 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -44,6 +44,9 @@ function Init() if m.top.hasField("asyncStopSemantics") m.top.asyncStopSemantics = true end if + + httpAgent = m.top.getHttpAgent() + httpAgent.AddHeader("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0") end function function OnNodeReady()