boton temporal para actualizar duraciones, fix de duracion en y peso de el archvio
This commit is contained in:
@@ -38,6 +38,7 @@ class _PremiumUploadDialogState extends State<PremiumUploadDialog> {
|
||||
bool isUploading = false;
|
||||
bool _isVideoLoading = false;
|
||||
String? _videoBlobUrl;
|
||||
int? _videoDurationSeconds; // Duración capturada del video
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
@@ -108,6 +109,11 @@ class _PremiumUploadDialogState extends State<PremiumUploadDialog> {
|
||||
),
|
||||
);
|
||||
|
||||
// Capturar duración del video
|
||||
_videoDurationSeconds = _videoController!.value.duration.inSeconds;
|
||||
debugPrint(
|
||||
'🕒 Duración del video capturada: $_videoDurationSeconds segundos');
|
||||
|
||||
setState(() => _isVideoLoading = false);
|
||||
} catch (e) {
|
||||
setState(() => _isVideoLoading = false);
|
||||
@@ -202,6 +208,7 @@ class _PremiumUploadDialogState extends State<PremiumUploadDialog> {
|
||||
? null
|
||||
: descriptionController.text,
|
||||
tags: tags,
|
||||
durationSeconds: _videoDurationSeconds,
|
||||
);
|
||||
|
||||
if (!mounted) return;
|
||||
|
||||
Reference in New Issue
Block a user