mirror of
				https://framagit.org/tom79/fedilab-tube
				synced 2025-06-05 21:09:11 +02:00 
			
		
		
		
	Issue #123 - a small fix
This commit is contained in:
		| @@ -763,6 +763,11 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd | ||||
|                                         binding.doubleTapPlayerView.setVisibility(View.GONE); | ||||
|                                         binding.castController.setVisibility(View.VISIBLE); | ||||
|                                         dialog.dismiss(); | ||||
|                                         if (chromeCastVideoURL != null) { | ||||
|                                             if (player != null && player.getCurrentPosition() > 0) { | ||||
|                                                 chromeCastVideoURL += "?start=" + (player.getCurrentPosition() / 1000); | ||||
|                                             } | ||||
|                                         } | ||||
|                                     }; | ||||
|                                     mainHandler.post(myRunnable); | ||||
|                                     if (!chromeCast.isConnected()) { | ||||
| @@ -776,9 +781,6 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd | ||||
|                                     } | ||||
|  | ||||
|                                     if (chromeCastVideoURL != null) { | ||||
|                                         if (player != null && player.getCurrentPosition() > 0) { | ||||
|                                             chromeCastVideoURL += "?start=" + (player.getCurrentPosition() / 1000); | ||||
|                                         } | ||||
|                                         String mime = MimeTypeMap.getFileExtensionFromUrl(chromeCastVideoURL); | ||||
|                                         chromeCast.setRequestTimeout(120000); | ||||
|                                         chromeCast.load(peertube.getTitle(), null, chromeCastVideoURL, mime); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user