Release 1.10.2
This commit is contained in:
parent
d5a0dcb980
commit
0a1336f0e0
|
@ -9,8 +9,8 @@ android {
|
||||||
|
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 31
|
versionCode 32
|
||||||
versionName "1.10.1"
|
versionName "1.10.2"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -317,7 +317,10 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
sepiaSearch = b.getBoolean("sepia_search", false);
|
sepiaSearch = b.getBoolean("sepia_search", false);
|
||||||
peertube = b.getParcelable("video");
|
peertube = b.getParcelable("video");
|
||||||
}
|
}
|
||||||
|
new Thread(() -> {
|
||||||
|
String videoId = peertube != null ? peertube.getUuid() : videoUuid;
|
||||||
|
new RetrofitPeertubeAPI(PeertubeActivity.this).postView(videoId);
|
||||||
|
}).start();
|
||||||
willPlayFromIntent = manageIntentUrl(intent);
|
willPlayFromIntent = manageIntentUrl(intent);
|
||||||
|
|
||||||
binding.peertubeDescriptionMore.setOnClickListener(v -> {
|
binding.peertubeDescriptionMore.setOnClickListener(v -> {
|
||||||
|
@ -981,12 +984,16 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
PlayerControlView controlView = binding.doubleTapPlayerView.findViewById(R.id.exo_controller);
|
PlayerControlView controlView = binding.doubleTapPlayerView.findViewById(R.id.exo_controller);
|
||||||
DefaultTimeBar exo_progress = controlView.findViewById(R.id.exo_progress);
|
DefaultTimeBar exo_progress = controlView.findViewById(R.id.exo_progress);
|
||||||
TextView exo_duration = controlView.findViewById(R.id.exo_duration);
|
TextView exo_duration = controlView.findViewById(R.id.exo_duration);
|
||||||
|
TextView exo_live_badge = controlView.findViewById(R.id.exo_live_badge);
|
||||||
if (peertube.isLive()) {
|
if (peertube.isLive()) {
|
||||||
exo_progress.setVisibility(View.GONE);
|
exo_progress.setVisibility(View.INVISIBLE);
|
||||||
exo_duration.setText(R.string.live);
|
exo_duration.setVisibility(View.GONE);
|
||||||
exo_duration.setBackgroundResource(R.drawable.rounded_live);
|
exo_live_badge.setVisibility(View.VISIBLE);
|
||||||
|
exo_live_badge.setText(R.string.live);
|
||||||
|
exo_live_badge.setBackgroundResource(R.drawable.rounded_live);
|
||||||
} else {
|
} else {
|
||||||
exo_progress.setVisibility(View.VISIBLE);
|
exo_progress.setVisibility(View.VISIBLE);
|
||||||
|
exo_live_badge.setVisibility(View.GONE);
|
||||||
exo_duration.setBackground(null);
|
exo_duration.setBackground(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -310,6 +310,9 @@ public interface PeertubeService {
|
||||||
@Query("nsfw") boolean nsfw
|
@Query("nsfw") boolean nsfw
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@POST("videos/{id}/views")
|
||||||
|
Call<String> postView(@Path("id") String id);
|
||||||
|
|
||||||
@Multipart
|
@Multipart
|
||||||
@PUT("videos/{id}")
|
@PUT("videos/{id}")
|
||||||
Call<String> updateVideo(
|
Call<String> updateVideo(
|
||||||
|
|
|
@ -255,6 +255,19 @@ public class RetrofitPeertubeAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* POST a view count for a video
|
||||||
|
*/
|
||||||
|
public void postView(String videoUuid) {
|
||||||
|
PeertubeService peertubeService = init();
|
||||||
|
Call<String> postViewCall = peertubeService.postView(videoUuid);
|
||||||
|
try {
|
||||||
|
Response<String> dd = postViewCall.execute();
|
||||||
|
} catch (IOException ignored) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve notifications
|
* Retrieve notifications
|
||||||
*
|
*
|
||||||
|
|
|
@ -103,6 +103,17 @@
|
||||||
android:textColor="#FFBEBEBE"
|
android:textColor="#FFBEBEBE"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/exo_live_badge"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="5dp"
|
||||||
|
android:paddingStart="4dp"
|
||||||
|
android:paddingEnd="4dp"
|
||||||
|
android:textColor="#FFF"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/exo_fullscreen_button"
|
android:id="@+id/exo_fullscreen_button"
|
||||||
android:layout_width="32dp"
|
android:layout_width="32dp"
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
Added:
|
||||||
|
- Live stream badge
|
||||||
|
- Increment view count when watching a video
|
||||||
|
|
||||||
|
Changed:
|
||||||
|
- Seek bar hidden with lives
|
||||||
|
- Add a message if the live has not yet started
|
||||||
|
|
||||||
|
Fixed:
|
||||||
|
- Do not list not honored when no accounts connected
|
||||||
|
- Comments with replies show overlap
|
||||||
|
- Mastodon accounts show errors
|
||||||
|
- Accounts not found issue
|
Loading…
Reference in New Issue