Skip to content

Commit

Permalink
Merge pull request #12 from CCExtractor/master
Browse files Browse the repository at this point in the history
fixed video player issue
  • Loading branch information
Erarshad authored Jul 6, 2021
2 parents a9a0f3c + 81696d9 commit 8861094
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 4 deletions.
Binary file modified android/.gradle/6.7/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified android/.gradle/6.7/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified android/.gradle/6.7/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified android/.gradle/6.7/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified android/.gradle/6.7/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified android/.gradle/6.7/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified android/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
4 changes: 1 addition & 3 deletions lib/screens/auth_qr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ class _auth_qrState extends State<auth_qr> {
auth_valid validity = await apis.auth_validity("https://" + url, "",
false.toString(), true.toString(), "", "", auth_qr);

List<String> version = await apis.version_deluge(
validity.cookie,"https://" + url, true.toString(), "", "", auth_qr, context);
print("version is : " + version[0]);

if (validity.valid == 1) {

controller.stopCamera();
Expand Down
17 changes: 16 additions & 1 deletion lib/sftp_streaming/video_dir.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,28 @@ class _media_streamState extends State<media_stream> {
final Map<String, dynamic> headers;
_media_streamState({this.selected_file, this.file_name,this.headers});
BetterPlayerListVideoPlayerController controller;

List<DeviceOrientation> orientations=[DeviceOrientation.portraitUp];
void initState() {
super.initState();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,

]);
controller = BetterPlayerListVideoPlayerController();
Future.delayed(Duration(seconds: 1), () {
controller.play();
});
}
@override
dispose(){
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
super.dispose();
}

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -64,6 +78,7 @@ class _media_streamState extends State<media_stream> {

configuration: BetterPlayerConfiguration(
autoPlay: false,
deviceOrientationsAfterFullScreen: orientations


),
Expand Down

0 comments on commit 8861094

Please sign in to comment.