Skip to content

Commit

Permalink
fix: hide video quality in remote player
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonflylee committed Jul 16, 2024
1 parent 6a4ebfc commit b34f839
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/include/view/video_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class VideoView : public brls::Box {
VideoProfile* getProfile() { return this->profile; }

void hideVideoProgressSlider();
void hideVideoQuality();

static bool dismiss();

Expand Down
1 change: 1 addition & 0 deletions app/src/tab/remote_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class RemotePlayer : public brls::Box {
view->setHeightPercentage(100);
view->setId("video");
view->setTitie(item.name);
view->hideVideoQuality();
this->setDimensions(width, height);
this->addView(view);

Expand Down
4 changes: 3 additions & 1 deletion app/src/view/video_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,4 +832,6 @@ void VideoView::setClipPoint(const std::vector<float>& clips) {
}
}

void VideoView::hideVideoProgressSlider() { this->osdSlider->setVisibility(brls::Visibility::GONE); }
void VideoView::hideVideoProgressSlider() { this->osdSlider->setVisibility(brls::Visibility::GONE); }

void VideoView::hideVideoQuality() { this->btnVideoQuality->setVisibility(brls::Visibility::GONE); }

0 comments on commit b34f839

Please sign in to comment.