Youtube TV homepage incorrectly identifies Cobalt's UA as APK's UA, returned pages that need to be u

234 views
Skip to first unread message

wei nie

unread,
May 3, 2018, 10:29:43 PM5/3/18
to cobalt-dev
Hi,Cobalt Team:

      Today(2018-05-04) We used Cobalt access the youtube TV homepage(https://www.youtube.com/tv). Youtube returned the page that needed to be upgraded and could not be operated.
I think it should be Youtube server to determine UA error, please help feedback this issue to Youtube.

The UA we use is "Cobalt/11.153049-qa(Hisi Linux armv7l;U;en) Starboard/7,Hisense_TV_3798MV200/1.01(Hisense,SmartTV,Wired)"

Changing UA in Chrome can easily reproduce this problem.


Daniel Juyung Seo

unread,
May 3, 2018, 11:36:22 PM5/3/18
to colo...@gmail.com, cobalt-dev
Hi Wei Nie,

Thanks for the report, but it looks you customized the Cobalt code that propagates the UA String.
I think your UA string should look like this:

Mozilla/5.0 (Sisi; Linux armv7l; U; en) Cobalt/11.153049-qa (unlike Gecko) Starboard/7, _TV_3798MV200/1.01 (Hisense, SmartTV, Wired)

Thanks,
Daniel
 
  •  Daniel Juyung Seo 서주영  
  •  Partner Technology Manager (APAC) / 부장
  •  Partner Engineering, YouTube in the Living Room, Google
   Learn more about Cobalt application runtime



You received this message because you are subscribed to the Google Groups "cobalt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobalt-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wei nie

unread,
May 4, 2018, 4:28:13 AM5/4/18
to cobalt-dev
Hi,Daniel

Thank you very much, adjust the UA back to Cobalt default  UA is ok.

It really a tragedy:
We made adjustments to Cobalt's UA in accordance with the youtube2018 specification and Demo ("Opera/9.80 (Linux armv7l ; U; en), Presto/2.8.115 Version/11.10, GFiber_STB_GC4155/2.22 (Google, GGL36XX200, Wireless)") and reference our 2017 Opera UA.


在 2018年5月4日星期五 UTC+8上午11:36:22,Daniel Juyung Seo写道:

Daniel Juyung Seo

unread,
May 4, 2018, 4:43:53 AM5/4/18
to wei nie, cobalt-dev
When using Cobalt, we do not recommend to make any changes to Cobalt common code. Implementing necessary Starboard APIs without touching the Cobalt common code keeps you safe.

Daniel
 
  •  Daniel Juyung Seo 서주영  
  •  Partner Technology Manager (APAC) / 부장
  •  Partner Engineering, YouTube in the Living Room, Google
   Learn more about Cobalt application runtime


Maksym Motornyy

unread,
May 4, 2018, 9:47:50 PM5/4/18
to Daniel Juyung Seo, wei nie, cobalt-dev
Hi Wei Nei,

It is indeed surprising that your UA string was parsed incorrectly by YouTube app. However, as Daniel said, should you discover the need to modify the common Cobalt code, please consult with us first. We treat conformance with YouTube requirements very seriously and, given the correct implementation of Starboard, expect Cobalt to pass the certification without third-party modifications.

Note that YouTube requirements don't specify how the part of UA string before comma should look like, the section you are referring to is non-normative and is provide as an example. That said, I'd expect you UA string look like this:

Mozilla/5.0 (Hisi Linux armv7l;U;en) Cobalt/11.153049-qa (unlike Gecko) Starboard/7, Hisense_TV_3798MV200/1.01 (Hisense, SmartTV, Wired).

Cobalt will compile the conformant UA string if you implement SbSystemGet* functions correctly. See https://cobalt.googlesource.com/cobalt/+/release_11/src/cobalt/network/starboard/user_agent_string_factory_starboard.cc for details.

Sincerely,
Maksym Motornyy.

wei nie

unread,
May 8, 2018, 3:20:47 AM5/8/18
to cobalt-dev
Hi Maksym Motornyy:

Thank you very much. 

We now use the original logic in user_agent_string_factory.cc to generate the UA String,Refer to the Raspi and Tizen platforms to implement SbSystemGetProperty. 

Now our UA is:

Mozilla/5.0 (Hisi Linux armv7l) Cobalt/11.153049-qa (unlike Gecko) Starboard/7, _TV_3798MV200/1.01 (Hisense, SmartTV, Wired)

Follow-up we will learn lessons and consult the Cobalt team before modifying the cobalt native code

Sincerely.
Wei Nei

在 2018年5月5日星期六 UTC+8上午9:47:50,Maksym Motornyy写道:
Reply all
Reply to author
Forward
0 new messages