Skip to content

Support setting thumb Drawable in DefaultTimeBar #3337

@nimdokai

Description

@nimdokai

As I understand from releas note of version 2.4.0 Exoplayer SeekBar was replaced by DefaultTimeBar. https://github.com/google/ExoPlayer/blob/dev-v2/RELEASENOTES.md

As I can seen, as on 19Feb2017: https://github.com/bigexxx/ExoPlayer/blob/c5db6f39a6e07b4f98364ff40476e4e213172488/library/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
exo_progress was SeekBar type:
(line 285): progressBar = (SeekBar) findViewById(R.id.exo_progress);

And right now: https://github.com/google/ExoPlayer/blob/release-v2/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
it is:
(line: 384):timeBar = (TimeBar) findViewById(R.id.exo_progress);

DefaultTimeBar does not have method like .setThumb() and it seems to me that thumb is created as Canvas in private method drawPlayhead(Canvas canvas).

Question: is is possible to set own thumb icon in DefaultTimeBar?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions