mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-11 18:50:58 +00:00
Increase max comment length, Fix raw dash downloads ending too early, Fix playback tracker not working for downloaded videos
This commit is contained in:
parent
de39451f67
commit
5e25a5054f
3 changed files with 29 additions and 3 deletions
|
@ -724,7 +724,7 @@ class VideoDownload {
|
||||||
val t = cue.groupValues[1];
|
val t = cue.groupValues[1];
|
||||||
val d = cue.groupValues[2];
|
val d = cue.groupValues[2];
|
||||||
|
|
||||||
val url = foundTemplateUrl.replace("\$Number\$", indexCounter.toString());
|
val url = foundTemplateUrl.replace("\$Number\$", (indexCounter + 1).toString());
|
||||||
|
|
||||||
val data = if(executor != null)
|
val data = if(executor != null)
|
||||||
executor.executeRequest("GET", url, null, mapOf());
|
executor.executeRequest("GET", url, null, mapOf());
|
||||||
|
|
|
@ -1399,8 +1399,8 @@ class VideoDetailView : ConstraintLayout {
|
||||||
onVideoChanged.emit(0, 0)
|
onVideoChanged.emit(0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val me = this;
|
||||||
if (video is JSVideoDetails) {
|
if (video is JSVideoDetails) {
|
||||||
val me = this;
|
|
||||||
fragment.lifecycleScope.launch(Dispatchers.IO) {
|
fragment.lifecycleScope.launch(Dispatchers.IO) {
|
||||||
try {
|
try {
|
||||||
//TODO: Implement video.getContentChapters()
|
//TODO: Implement video.getContentChapters()
|
||||||
|
@ -1457,6 +1457,32 @@ class VideoDetailView : ConstraintLayout {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
fragment.lifecycleScope.launch(Dispatchers.IO) {
|
||||||
|
try {
|
||||||
|
if (!StateApp.instance.privateMode) {
|
||||||
|
val stopwatch = com.futo.platformplayer.debug.Stopwatch()
|
||||||
|
var tracker = video.getPlaybackTracker()
|
||||||
|
Logger.i(TAG, "video.getPlaybackTracker took ${stopwatch.elapsedMs}ms")
|
||||||
|
|
||||||
|
if (tracker == null) {
|
||||||
|
stopwatch.reset()
|
||||||
|
tracker = StatePlatform.instance.getPlaybackTracker(video.url);
|
||||||
|
Logger.i(
|
||||||
|
TAG,
|
||||||
|
"StatePlatform.instance.getPlaybackTracker took ${stopwatch.elapsedMs}ms"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (me.video == video)
|
||||||
|
me._playbackTracker = tracker;
|
||||||
|
} else if (me.video == video)
|
||||||
|
me._playbackTracker = null;
|
||||||
|
} catch (ex: Throwable) {
|
||||||
|
Logger.e(TAG, "Playback tracker failed", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val ref = Models.referenceFromBuffer(video.url.toByteArray())
|
val ref = Models.referenceFromBuffer(video.url.toByteArray())
|
||||||
val extraBytesRef = video.id.value?.let { if (it.isNotEmpty()) it.toByteArray() else null }
|
val extraBytesRef = video.id.value?.let { if (it.isNotEmpty()) it.toByteArray() else null }
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
android:isScrollContainer="false"
|
android:isScrollContainer="false"
|
||||||
android:textColor="#CCCCCC"
|
android:textColor="#CCCCCC"
|
||||||
android:textSize="13sp"
|
android:textSize="13sp"
|
||||||
android:maxLines="100"
|
android:maxLines="150"
|
||||||
app:layout_constraintTop_toBottomOf="@id/text_metadata"
|
app:layout_constraintTop_toBottomOf="@id/text_metadata"
|
||||||
app:layout_constraintLeft_toRightOf="@id/image_thumbnail"
|
app:layout_constraintLeft_toRightOf="@id/image_thumbnail"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue