Issue #123 - a small fix
This commit is contained in:
parent
fbeb87e29e
commit
1690507a18
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue