質問編集履歴
1
コードで囲みました。すみません。
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,19 +4,23 @@
|
|
4
4
|
再生画面の下に常時表示させたいのです。
|
5
5
|
|
6
6
|
現状では、レイアウトでplayer_viewの下にPlayerControlViewを配置して
|
7
|
+
```layout
|
7
8
|
<com.google.android.exoplayer2.ui.PlayerControlView
|
8
9
|
android:id="@+id/controller"
|
9
10
|
android:layout_width="match_parent"
|
10
11
|
android:layout_height="wrap_content"
|
11
12
|
android:layout_below="@id/player_view"
|
12
13
|
app:show_timeout="0"/>
|
14
|
+
```
|
13
15
|
|
14
16
|
とし、activityで
|
17
|
+
```java
|
15
18
|
simpleExoPlayerView.setUseController(false);
|
16
19
|
simpleExoPlayerView.requestFocus();
|
17
20
|
simpleExoPlayerView.setPlayer(player);
|
18
21
|
PlayerControlView controls = findViewById(R.id.controller);
|
19
22
|
controls.setPlayer(player);
|
23
|
+
```
|
20
24
|
|
21
25
|
としています。
|
22
26
|
これだと再生やスキップ等のコントロール部分は動画の下に表示できたのですが、通常表示されるシークバーが出ませんでした。むしろシークバーだけ表示させるだけでも良いのですが方法を知っておられたら教えて下さい。
|