30 lines
791 B
Dart

import 'dart:async';
import 'package:flutter/material.dart';
import '../../kt_model/kt_video_detail_bean.dart';
import '../../kt_widgets/kt_status_widget.dart';
import '../../kt_model/kt_short_video_bean.dart';
class VideoPlayState {
String imageUrl = '';
num shortPlayId = -1;
num videoId = -1;
int curUnlock = 999;
int? activityId;
bool isFromDiscover = false;
VideoDetailBean? video;
List<Episode> episodeList = [];
KtLoadStatusType loadStatus = KtLoadStatusType.loading;
int currentVideoIndex = 0;
double currentSpeed = 1.0;
final List<double> speedList = [0.75, 1.0, 1.25, 1.5, 2.0, 3.0];
List<KtShortVideoBean> recommendList = [];
int recommendIndex = 0;
bool isRecommend = false;
Timer? timer;
bool isVideoctrHide = false;
Timer? videotimer;
}