mirror of
				https://framagit.org/tom79/fedilab-tube
				synced 2025-06-05 21:09:11 +02:00 
			
		
		
		
	Release 1.10.2
This commit is contained in:
		| @@ -9,8 +9,8 @@ android { | ||||
|  | ||||
|         minSdkVersion 21 | ||||
|         targetSdkVersion 30 | ||||
|         versionCode 31 | ||||
|         versionName "1.10.1" | ||||
|         versionCode 32 | ||||
|         versionName "1.10.2" | ||||
|         multiDexEnabled true | ||||
|         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||||
|     } | ||||
|   | ||||
| @@ -317,7 +317,10 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd | ||||
|             sepiaSearch = b.getBoolean("sepia_search", false); | ||||
|             peertube = b.getParcelable("video"); | ||||
|         } | ||||
|  | ||||
|         new Thread(() -> { | ||||
|             String videoId = peertube != null ? peertube.getUuid() : videoUuid; | ||||
|             new RetrofitPeertubeAPI(PeertubeActivity.this).postView(videoId); | ||||
|         }).start(); | ||||
|         willPlayFromIntent = manageIntentUrl(intent); | ||||
|  | ||||
|         binding.peertubeDescriptionMore.setOnClickListener(v -> { | ||||
| @@ -981,12 +984,16 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd | ||||
|         PlayerControlView controlView = binding.doubleTapPlayerView.findViewById(R.id.exo_controller); | ||||
|         DefaultTimeBar exo_progress = controlView.findViewById(R.id.exo_progress); | ||||
|         TextView exo_duration = controlView.findViewById(R.id.exo_duration); | ||||
|         TextView exo_live_badge = controlView.findViewById(R.id.exo_live_badge); | ||||
|         if (peertube.isLive()) { | ||||
|             exo_progress.setVisibility(View.GONE); | ||||
|             exo_duration.setText(R.string.live); | ||||
|             exo_duration.setBackgroundResource(R.drawable.rounded_live); | ||||
|             exo_progress.setVisibility(View.INVISIBLE); | ||||
|             exo_duration.setVisibility(View.GONE); | ||||
|             exo_live_badge.setVisibility(View.VISIBLE); | ||||
|             exo_live_badge.setText(R.string.live); | ||||
|             exo_live_badge.setBackgroundResource(R.drawable.rounded_live); | ||||
|         } else { | ||||
|             exo_progress.setVisibility(View.VISIBLE); | ||||
|             exo_live_badge.setVisibility(View.GONE); | ||||
|             exo_duration.setBackground(null); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -310,6 +310,9 @@ public interface PeertubeService { | ||||
|             @Query("nsfw") boolean nsfw | ||||
|     ); | ||||
|  | ||||
|     @POST("videos/{id}/views") | ||||
|     Call<String> postView(@Path("id") String id); | ||||
|  | ||||
|     @Multipart | ||||
|     @PUT("videos/{id}") | ||||
|     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 | ||||
|      * | ||||
|   | ||||
| @@ -103,6 +103,17 @@ | ||||
|             android:textColor="#FFBEBEBE" | ||||
|             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 | ||||
|             android:id="@+id/exo_fullscreen_button" | ||||
|             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 | ||||
		Reference in New Issue
	
	Block a user