Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunnel mode configurable #1844

Closed
wants to merge 0 commits into from

Conversation

Rongo-JL
Copy link
Contributor

@Rongo-JL Rongo-JL commented Oct 25, 2023

Make the tunnel mode be configurable.

b/307998866

if (kForceTunnelMode && !enable_tunnel_mode) {
SB_LOG(INFO) << "`kForceTunnelMode` is set to true, force enabling tunnel"
if (IsForceTunnelModeEnabled() && !enable_tunnel_mode) {
SB_LOG(INFO) << "`force_tunnel_mode` is set to true, force enabling tunnel"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format checking: change to

      SB_LOG(INFO)
          << "`force_tunnel_mode` is set to true, force enabling tunnel"
          << " mode.";

Copy link
Contributor Author

@Rongo-JL Rongo-JL Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my late response to you comment.
According to Xiaoming's comment, I think maybe we don't need to enable the tunnel mode forcibly.
If we need to turn tunnel mode on the device for experiment, we will let you know first through email

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (3d4673e) 57.77% compared to head (3a86c39) 57.77%.
Report is 239 commits behind head on main.

❗ Current head 3a86c39 differs from pull request most recent head 033caa8. Consider uploading reports for the commit 033caa8 to get more accurate results

Files Patch % Lines
cobalt/dom/html_media_element.cc 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1844   +/-   ##
=======================================
  Coverage   57.77%   57.77%           
=======================================
  Files        1915     1915           
  Lines       95108    95116    +8     
=======================================
+ Hits        54947    54958   +11     
+ Misses      40161    40158    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -195,6 +191,13 @@ class PlayerComponentsFactory : public starboard::shared::starboard::player::
return (value + alignment - 1) / alignment * alignment;
}

static bool IsForceTunnelModeEnabled() {
bool force_tunnel_mode =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd prefer this to be controlled by the web app. Do you happen to know if there are any particular devices that we should force enable tunnel mode? We may consider including the devices in our initial experiment.

Please feel free to continue this discussions via email if that's preferred.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the notification and review. Sorry for my really late response.
I will discuss internally and let you know through email if we have a device that needs to enable tunnel mode for the experiment.

} else {
SB_DCHECK(!tunnel_mode_enabled_);
host_->ProcessOutputBuffer(media_codec_bridge_.get(),
dequeue_output_result);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase the pr and see if any code here is modified?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review.
According to Xiaoming's comment, I think maybe we don't need to enable the tunnel mode forcibly.
If we need to turn tunnel mode on the device for experiment, we will let you know first through email.

@Rongo-JL Rongo-JL closed this Dec 19, 2023
@Rongo-JL Rongo-JL deleted the tunnel-mode-configurable branch October 9, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants