Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lipangit committed Apr 9, 2020
1 parent f7a67ca commit 6b64821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {


jzvdStdVolume = findViewById(R.id.custom_videoplayer_standard_with_volume_button);
jzvdStdVolume.setUp(VideoConstant.videoUrls[0][1],
jzvdStdVolume.setUp(Urls.videoUrls[0][1],
"饺子吃莽莽", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoPosters[0][1])
.load(Urls.videoPosters[0][1])
.into(jzvdStdVolume.posterImageView);
}

Expand Down
6 changes: 6 additions & 0 deletions library/src/main/java/cn/jzvd/JzvdStd.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ public void setUp(JZDataSource jzDataSource, int screen, Class mediaInterfaceCla
setScreen(screen);
}

@Override
public void changeUrl(JZDataSource jzDataSource, long seekToInAdvance) {
super.changeUrl(jzDataSource, seekToInAdvance);
titleTextView.setText(jzDataSource.title);
}

public void changeStartButtonSize(int size) {
ViewGroup.LayoutParams lp = startButton.getLayoutParams();
lp.height = size;
Expand Down

0 comments on commit 6b64821

Please sign in to comment.