mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 22:30:16 +08:00
@@ -132,6 +132,10 @@ class VideoDetailController extends GetxController
|
||||
String? audioUrl;
|
||||
Duration? defaultST;
|
||||
Duration? playedTime;
|
||||
String get playedTimePos {
|
||||
final pos = playedTime?.inMilliseconds;
|
||||
return pos == null || pos == 0 ? '' : '?t=${pos / 1000}';
|
||||
}
|
||||
|
||||
// 亮度
|
||||
double? brightness;
|
||||
|
||||
@@ -143,7 +143,8 @@ class PgcIntroController extends CommonIntroController {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) {
|
||||
String videoUrl = '${HttpString.baseUrl}/bangumi/play/ep$epId';
|
||||
String videoUrl =
|
||||
'${HttpString.baseUrl}/bangumi/play/ep$epId${videoDetailCtr.playedTimePos}';
|
||||
return AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
|
||||
@@ -302,7 +302,8 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
context: context,
|
||||
builder: (_) {
|
||||
final videoDetail = this.videoDetail.value;
|
||||
String videoUrl = '${HttpString.baseUrl}/video/$bvid';
|
||||
String videoUrl =
|
||||
'${HttpString.baseUrl}/video/$bvid${videoDetailCtr.playedTimePos}';
|
||||
return AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
|
||||
Reference in New Issue
Block a user