Git Product home page Git Product logo

Comments (12)

davidgalarza avatar davidgalarza commented on August 12, 2024 4

I found this issue too flutter/flutter#27190 Which I think is related to the problem I have in the Huawei p8

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024 1

Hi, thanks for your help. I installed the native apk and I can confirm that it works correctly, the example I sends you (https://github.com/davidgalarza/youtube_example_error) does not work.
Here is an example video comparing the native code with the example that I send you:
https://drive.google.com/file/d/1XtrFg2EwX_jMqsmQy2qX5HimA-acGbY1/view?usp=sharing

I do not know why this should be, I think it should be a problem with only some devices. I can verify that the problem occurs in a huawei P20 Lite and a huawei P8.

from flutter_youtube_view.

hoanglm4 avatar hoanglm4 commented on August 12, 2024

Hello @davidgalarza ,

Can you post your sample code?

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024

It does not always close but it happens at least 1 out of 3 times.
Here is my code:

import 'package:flutter/material.dart';
import 'package:flutter_youtube_view/flutter_youtube_view.dart';
import 'dart:async';

class PullRequest extends StatefulWidget {
final Map<String, dynamic> pullInfo;
PullRequest({
Key key,
this.pullInfo = const {
'newLyrics': [
{'time': 2040, 'line': 'Help'},
{'time': 4080, 'line': 'I need somebody'}
]
},
}) : super(key: key);

@OverRide
_PullRequestState createState() => _PullRequestState(this.pullInfo);
}

class _PullRequestState extends State
implements YouTubePlayerListener {
Map<String, dynamic> pullInfo;
Timer _timer;
int actualIndex = -1;
double _currentVideoSecond = 0.0;
String _playerState = "";
FlutterYoutubeViewController _controller;
bool showDiff = true;

_PullRequestState(this.pullInfo);

@OverRide
void initState() {
super.initState();
}

@OverRide
void dispose() {
this._timer?.cancel();
super.dispose();
}

// YOUTUBE LOGIC

@OverRide
void onCurrentSecond(double second) {
// print("onCurrentSecond second = $second");
_currentVideoSecond = second;
_handleTimeChange(_currentVideoSecond);
}

@OverRide
void onError(String error) {
print("onError error = $error");
}

@OverRide
void onReady() {
print("onReady");
}

@OverRide
void onStateChange(String state) {
print("onStateChange state = $state");
setState(() {
_playerState = state;
});
}

@OverRide
void onVideoDuration(double duration) {
print("onVideoDuration duration = $duration");
}

void _onYoutubeCreated(FlutterYoutubeViewController controller) {
this._controller = controller;
}

void _handleTimeChange(double seconds) {
int currentTime = (seconds * 1000).floor();
int actualI =
pullInfo['newLyrics'].indexWhere((p) => p.time > currentTime) - 1;
if (actualIndex != actualI)
setState(() {
this.actualIndex = actualI;
});
}

Widget _buildBodyHead() {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Title',
style: TextStyle(
fontFamily: 'SF',
fontSize: 25.0,
fontWeight: FontWeight.w700,
color: Colors.black),
),
Text(
'Name',
style: TextStyle(
fontFamily: 'SF',
fontSize: 20.0,
fontWeight: FontWeight.w700,
color: Colors.black),
),
],
),
],
);
}

Widget _buildBody() {
List children = [];

children.add(Container(
  height: 110.0,
));

return Column(
  children: <Widget>[
    Container(
        child: AspectRatio(
      aspectRatio: 16 / 6,
      child: FlutterYoutubeView(
        onViewCreated: _onYoutubeCreated,
        listener: this,
        params: YoutubeParam(
            videoId: 'hvHjgJefkyc', showUI: false, startSeconds: 0.0),
      ),
    )),
    Expanded(
      child: ListView(
        padding: EdgeInsets.all(20.0),
        children: children,
      ),
    )
  ],
);

}

@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(
'REVIEW',
style: TextStyle(color: Colors.green),
),
iconTheme: IconThemeData(color: Colors.black),
backgroundColor: Colors.white,
),
body: Stack(
children: [
_buildBody(),
],
));
}
}

from flutter_youtube_view.

hoanglm4 avatar hoanglm4 commented on August 12, 2024

@davidgalarza Thank you
I can not reproduce this bug. But I reviewed my code, something wrong when player is not released in FlutterYoutubeView#dispose().
Can you help me test this issue in new version: flutter_youtube_view: ^1.1.1

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024

@hoanglm4 Thanks but I continue having the same problem. I try downloading and running the example app and the error persist the playback works fine but when I pop the screen it closes the app, here is the full log:

Launching lib/main.dart on ANE LX3 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Syncing files to device ANE LX3...
I/zygote64(23289): Do partial code cache collection, code=29KB, data=24KB
I/zygote64(23289): After code cache collection, code=29KB, data=24KB
I/zygote64(23289): Increasing code cache capacity to 128KB
I/hwaps (23289): JNI_OnLoad
I/zygote64(23289): Do partial code cache collection, code=61KB, data=49KB
I/zygote64(23289): After code cache collection, code=61KB, data=49KB
I/zygote64(23289): Increasing code cache capacity to 256KB
V/AudioManager(23289): playSoundEffect effectType: 0 <--- Here I push one of the 2 screens
E/BufferQueueProducer(23289): [] Can not get hwsched service
D/HwCust (23289): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
I/WebViewFactory(23289): Loading com.android.chrome version 73.0.3683.75 (code 368307552)
D/HwFLClassLoader(23289): USE_FEATURE_LIST had not init!
I/cr_LibraryLoader(23289): Time to load native libraries: 6 ms (timestamps 8602-8608)
I/zygote64(23289): Do full code cache collection, code=124KB, data=83KB
I/zygote64(23289): After code cache collection, code=119KB, data=69KB
I/chromium(23289): [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader(23289): Expected native library version number "73.0.3683.75", actual native library version number "73.0.3683.75"
I/HwCust (23289): Constructor found for class android.net.HwCustConnectivityManagerImpl
D/HwCust (23289): Create obj success use class android.net.HwCustConnectivityManagerImpl
W/cr_ChildProcLH(23289): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup(23289): Initializing chromium process, singleProcess=false
W/ResourceType(23289): Failure getting entry for 0x7f130530 (t=18 e=1328) (error -2147483647)
W/tubeviewexample(23289): type=1400 audit(0.0:83144): avc: denied { read } for name="vmstat" dev="proc" ino=4026532164 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
I/zygote64(23289): Do partial code cache collection, code=122KB, data=78KB
I/zygote64(23289): After code cache collection, code=122KB, data=78KB
I/zygote64(23289): Increasing code cache capacity to 512KB
D/FlutterYoutubeView(23289): params = {startSeconds=0.0, videoId=gcj2RUWQZ60, showUI=false}
D/HwRTBlurUtils(23289): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3@ecf38c, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(23289): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3@ecf38c, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(23289): HWUI Binary is enabled
I/PressGestureDetector(23289): onAttached begin
I/PressGestureDetector(23289): onAttached end
I/PressGestureDetector(23289): HiTouch restricted: AboardArea.
E/flutter (23289): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method initialization on channel plugins.hoanglm.com/youtube_0)
E/flutter (23289): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
E/flutter (23289):
E/flutter (23289): #1 FlutterYoutubeViewController.initialization (package:flutter_youtube_view/flutter_youtube_view.dart:94:20)
E/flutter (23289):
E/flutter (23289): #2 _FlutterYoutubeViewState._initialization (package:flutter_youtube_view/flutter_youtube_view.dart:77:16)
E/flutter (23289):
E/flutter (23289): #3 _FlutterYoutubeViewState._onPlatformViewCreated (package:flutter_youtube_view/flutter_youtube_view.dart:72:5)
E/flutter (23289): #4 AndroidViewController._create (package:flutter/src/services/platform_views.dart:582:7)
E/flutter (23289):
E/flutter (23289): #5 AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:505:14)
E/flutter (23289):
E/flutter (23289): #6 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:178:29)
E/flutter (23289):
E/flutter (23289): #7 RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:159:5)
E/flutter (23289): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1617:9)
E/flutter (23289): #9 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:510:15)
E/flutter (23289): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #11 MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:142:11)
E/flutter (23289): #12 _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:350:7)
E/flutter (23289): #13 MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:212:7)
E/flutter (23289): #14 RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:356:14)
E/flutter (23289): #15 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #16 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #17 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #18 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #19 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1206:11)
E/flutter (23289): #20 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #21 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #22 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #23 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #24 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #25 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #26 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #28 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #29 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #30 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #31 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #32 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #33 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (23289): #34 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (23289): #35 Ren
W/Settings(23289): mValues not put! needsGenerationTracker: true currentGeneration: -1 name: accessibility_captioning_enabled value: null
D/mali_winsys(23289): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/cr_media(23289): Requires BLUETOOTH permission
D/OpenGLRenderer(23289): HWUI Binary is enabled
W/VideoCapabilities(23289): Unrecognized profile/level 1/32 for video/mp4v-es
I/VideoCapabilities(23289): Unsupported profile 16384 for video/mp4v-es
I/VideoCapabilities(23289): Unsupported profile 16384 for video/mp4v-es
W/VideoCapabilities(23289): Unsupported mime video/x-pn-realvideo
W/VideoCapabilities(23289): Unsupported mime video/mpeg
W/VideoCapabilities(23289): Unrecognized profile/level 0/0 for video/mpeg2
W/VideoCapabilities(23289): Unrecognized profile/level 0/2 for video/mpeg2
W/VideoCapabilities(23289): Unrecognized profile/level 0/3 for video/mpeg2
W/VideoCapabilities(23289): Unrecognized profile/level 32768/2 for video/mp4v-es
W/VideoCapabilities(23289): Unsupported mime video/vc1
W/VideoCapabilities(23289): Unsupported mime video/x-flv
I/VideoCapabilities(23289): Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil(23289): HW encoder for video/avc is not available on this device.
D/NetworkSecurityConfig(23289): No Network Security Config specified, using platform default
I/chromium(23289): [INFO:CONSOLE(93)] "Unrecognized feature: 'picture-in-picture'.", source: https://s.ytimg.com/yts/jsbin/www-widgetapi-vflRrDfuy/www-widgetapi.js (93)
D/HwGalleryCacheManagerImpl(23289): mIsEffect:false
I/flutter (23289): onReady
D/FlutterYoutubeView(23289): state = UNSTARTED
I/flutter (23289): onStateChange state = UNSTARTED
D/FlutterYoutubeView(23289): state = BUFFERING
I/flutter (23289): onStateChange state = BUFFERING
V/AudioManager(23289): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(23289): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
D/ (23289): PlayerBase::PlayerBase()
D/ (23289): TrackPlayerBase::TrackPlayerBase()
I/libOpenSLES(23289): Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
D/AudioTrack(23289): OFFLOAD 0,mNotificationFrames 0,mStreamType =3,mOriginalSampleRate 48000,mAfSampleRate 48000,mTransfer 1
D/AudioTrack(23289): Client defaulted notificationFrames to 962 for frameCount 1924
I/ (23289): counter >= 5, send pause/stop state to pg, counter: 0
V/AudioManager(23289): requestAudioFocus streamType: 3 durationHint: 1
V/AudioManager(23289): registerAudioFocusListener...
D/FlutterYoutubeView(23289): state = PLAYING
I/flutter (23289): onStateChange state = PLAYING
I/flutter (23289): onVideoDuration duration = 8833.2802734375
I/flutter (23289): onCurrentSecond second = 0.12617699801921844
I/flutter (23289): onCurrentSecond second = 0.15983200073242188
I/flutter (23289): onCurrentSecond second = 0.2608320116996765
I/flutter (23289): onCurrentSecond second = 0.3598319888114929
I/flutter (23289): onCurrentSecond second = 0.4621660113334656
I/flutter (23289): onCurrentSecond second = 0.5651659965515137
I/zygote64(23289): Do full code cache collection, code=234KB, data=194KB
I/zygote64(23289): After code cache collection, code=170KB, data=114KB
I/flutter (23289): onCurrentSecond second = 0.6587830185890198
I/flutter (23289): onCurrentSecond second = 0.7597830295562744
I/flutter (23289): onCurrentSecond second = 0.8587830066680908
I/flutter (23289): onCurrentSecond second = 0.9572250247001648
I/flutter (23289): onCurrentSecond second = 1.0582200288772583
I/flutter (23289): onCurrentSecond second = 1.1627700328826904
I/flutter (23289): onCurrentSecond second = 1.2627700567245483
I/flutter (23289): onCurrentSecond second = 1.3627699613571167
I/flutter (23289): onCurrentSecond second = 1.4589500427246094
I/flutter (23289): onCurrentSecond second = 1.5589499473571777
I/flutter (23289): onCurrentSecond second = 1.6633299589157104
I/flutter (23289): onCurrentSecond second = 1.7633299827575684
I/flutter (23289): onCurrentSecond second = 1.8633300065994263
I/flutter (23289): onCurrentSecond second = 1.961899995803833
I/flutter (23289): onCurrentSecond second = 2.0629000663757324
I/flutter (23289): onCurrentSecond second = 2.1579298973083496
I/flutter (23289): onCurrentSecond second = 2.256930112838745
I/flutter (23289): onCurrentSecond second = 2.3579299449920654
I/flutter (23289): onCurrentSecond second = 2.462779998779297
I/flutter (23289): onCurrentSecond second = 2.5617799758911133
I/flutter (23289): onCurrentSecond second = 2.6559200286865234
I/flutter (23289): onCurrentSecond second = 2.757920026779175
I/flutter (23289): onCurrentSecond second = 2.856920003890991
I/flutter (23289): onCurrentSecond second = 2.9612300395965576
I/flutter (23289): onCurrentSecond second = 3.057229995727539
I/flutter (23289): onCurrentSecond second = 3.160799980163574
I/flutter (23289): onCurrentSecond second = 3.2607998847961426
I/flutter (23289): onCurrentSecond second = 3.36080002784729
I/flutter (23289): onCurrentSecond second = 3.4546899795532227
I/flutter (23289): onCurrentSecond second = 3.554689884185791
I/flutter (23289): onCurrentSecond second = 3.66198992729187
I/flutter (23289): onCurrentSecond second = 3.7619900703430176
I/flutter (23289): onCurrentSecond second = 3.861989974975586
I/flutter (23289): onCurrentSecond second = 3.962480068206787
I/flutter (23289): onCurrentSecond second = 4.0624799728393555
I/flutter (23289): onCurrentSecond second = 4.162300109863281
I/flutter (23289): onCurrentSecond second = 4.26230001449585
I/flutter (23289): onCurrentSecond second = 4.362299919128418
I/flutter (23289): onCurrentSecond second = 4.464049816131592
I/flutter (23289): onCurrentSecond second = 4.60605001449585
I/flutter (23289): onCurrentSecond second = 4.649869918823242
I/flutter (23289): onCurrentSecond second = 4.7498698234558105
I/flutter (23289): onCurrentSecond second = 4.850870132446289
I/flutter (23289): onCurrentSecond second = 4.962180137634277
I/flutter (23289): onCurrentSecond second = 5.061180114746094
I/flutter (23289): onCurrentSecond second = 5.160799980163574
I/flutter (23289): onCurrentSecond second = 5.262800216674805
I/flutter (23289): onCurrentSecond second = 5.360799789428711
I/flutter (23289): onCurrentSecond second = 5.4501800537109375
I/flutter (23289): onCurrentSecond second = 5.549180030822754
I/flutter (23289): onCurrentSecond second = 5.663269996643066
I/flutter (23289): onCurrentSecond second = 5.763269901275635
I/flutter (23289): onCurrentSecond second = 5.863269805908203
I/flutter (23289): onCurrentSecond second = 5.962180137634277
I/flutter (23289): onCurrentSecond second = 6.062180042266846
I/flutter (23289): onCurrentSecond second = 6.163269996643066
I/flutter (23289): onCurrentSecond second = 6.263269901275635
I/flutter (23289): onCurrentSecond second = 6.363269805908203
I/flutter (23289): onCurrentSecond second = 6.462180137634277
I/flutter (23289): onCurrentSecond second = 6.562180042266846
I/flutter (23289): onCurrentSecond second = 6.648230075836182
I/flutter (23289): onCurrentSecond second = 6.747230052947998
I/flutter (23289): onCurrentSecond second = 6.847229957580566
I/flutter (23289): onCurrentSecond second = 6.959129810333252
I/zygote64(23289): Do partial code cache collection, code=238KB, data=168KB
I/zygote64(23289): After code cache collection, code=238KB, data=168KB
I/zygote64(23289): Increasing code cache capacity to 1024KB
I/zygote64(23289): Compiler allocated 7MB to compile void android.view.ViewRootImpl.performTraversals()
I/flutter (23289): onCurrentSecond second = 7.0591301918029785
I/flutter (23289): onCurrentSecond second = 7.1614298820495605
I/flutter (23289): onCurrentSecond second = 7.261429786682129
I/flutter (23289): onCurrentSecond second = 7.362430095672607
I/flutter (23289): onCurrentSecond second = 7.462619781494141
I/flutter (23289): onCurrentSecond second = 7.563620090484619
I/flutter (23289): onCurrentSecond second = 7.663080215454102
I/flutter (23289): onCurrentSecond second = 7.762080192565918
I/flutter (23289): onCurrentSecond second = 7.865079879760742
I/flutter (23289): onCurrentSecond second = 7.944429874420166
I/flutter (23289): onCurrentSecond second = 8.044440269470215
I/flutter (23289): onCurrentSecond second = 8.162190437316895
I/flutter (23289): onCurrentSecond second = 8.262189865112305
I/flutter (23289): onCurrentSecond second = 8.362190246582031
I/flutter (23289): onCurrentSecond second = 8.463120460510254
I/flutter (23289): onCurrentSecond second = 8.563119888305664
I/flutter (23289): onCurrentSecond second = 8.663249969482422
I/flutter (23289): onCurrentSecond second = 8.764249801635742
I/flutter (23289): onCurrentSecond second = 8.864250183105469
I/flutter (23289): onCurrentSecond second = 8.94987964630127
I/flutter (23289): onCurrentSecond second = 9.048879623413086
I/flutter (23289): onCurrentSecond second = 9.160329818725586
I/flutter (23289): onCurrentSecond second = 9.260330200195312
I/flutter (23289): onCurrentSecond second = 9.361330032348633
I/flutter (23289): onCurrentSecond second = 9.460820198059082
I/flutter (23289): onCurrentSecond second = 9.559820175170898
I/flutter (23289): onCurrentSecond second = 9.66096019744873
I/flutter (23289): onCurrentSecond second = 9.759960174560547
I/flutter (23289): onCurrentSecond second = 9.859959602355957
I/flutter (23289): onCurrentSecond second = 9.961750030517578
I/flutter (23289): onCurrentSecond second = 10.058799743652344
I/flutter (23289): onCurrentSecond second = 10.161199569702148
D/KeyEvent(23289): obtain, mHwFlags=0
I/flutter (23289): onCurrentSecond second = 10.260199546813965
D/KeyEvent(23289): obtain, mHwFlags=0
I/flutter (23289): onCurrentSecond second = 10.360199928283691
I/flutter (23289): onCurrentSecond second = 10.462900161743164
I/flutter (23289): onCurrentSecond second = 10.562899589538574
I/flutter (23289): onCurrentSecond second = 10.656499862670898 <-- Here i pop the screen
D/AudioTrack(23289): stop() called with 534724 frames delivered
D/ (23289): PlayerBase::stop() from IPlayer
V/AudioManager(23289): requestAudioFocus streamType: 3 durationHint: 1
V/AudioManager(23289): registerAudioFocusListener...
V/AudioManager(23289): unregisterAudioFocusListener...
I/AudioManager(23289): abandonAudioFocus
D/AndroidRuntime(23289): Shutting down VM
E/AndroidRuntime(23289): FATAL EXCEPTION: main
E/AndroidRuntime(23289): Process: com.hoanglm.flutteryoutubeviewexample, PID: 23289
E/AndroidRuntime(23289): java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.DisplayAdjustments android.view.Display.getDisplayAdjustments()' on a null object reference
E/AndroidRuntime(23289): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1746)
E/AndroidRuntime(23289): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1515)
E/AndroidRuntime(23289): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7266)
E/AndroidRuntime(23289): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:981)
E/AndroidRuntime(23289): at android.view.Choreographer.doCallbacks(Choreographer.java:790)
E/AndroidRuntime(23289): at android.view.Choreographer.doFrame(Choreographer.java:721)
E/AndroidRuntime(23289): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
E/AndroidRuntime(23289): at android.os.Handler.handleCallback(Handler.java:808)
E/AndroidRuntime(23289): at android.os.Handler.dispatchMessage(Handler.java:101)
E/AndroidRuntime(23289): at android.os.Looper.loop(Looper.java:166)
E/AndroidRuntime(23289): at android.app.ActivityThread.main(ActivityThread.java:7529)
E/AndroidRuntime(23289): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23289): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/AndroidRuntime(23289): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
I/Process (23289): Sending signal. PID: 23289 SIG: 9
Lost connection to device.

I try with another smartphone with the example app too and I get other error when starting the video playback there is lag and after a few seconds the app hangs and the video keeps sounding, the only alternative is to turn off the phone here is the log:

Launching lib/main.dart on ALE L23 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Syncing files to device ALE L23...
I/WebViewFactory(32229): Loading com.android.webview version 37 (eng.jenkinswh-arm64) (code 199992)
I/LibraryLoader(32229): Loading: webviewchromium
I/LibraryLoader(32229): Time to load native libraries: 5 ms (timestamps 6956-6961)
I/LibraryLoader(32229): Expected native library version number "",actual native library version number ""
I/LibraryLoader(32229): Expected native library version number "",actual native library version number ""
I/chromium(32229): [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController(32229): Initializing chromium process, renderers=0
W/art (32229): Attempt to remove local handle scope entry from IRT, ignoring
W/AudioManagerAndroid(32229): Requires BLUETOOTH permission
W/chromium(32229): [WARNING:resource_bundle.cc(315)] locale_file_path.empty()
I/chromium(32229): [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=82 off=49092 len=3597
I/chromium(32229): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:83 off:228796 len:643667
W/chromium(32229): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation
W/chromium(32229): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup
W/chromium(32229): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation
W/art (32229): Attempt to remove local handle scope entry from IRT, ignoring
W/AwContents(32229): onDetachedFromWindow called when already detached. Ignoring
I/art (32229): Can not find class: Landroid/widget/View;
I/art (32229): Can not find class: Landroid/webkit/View;
I/art (32229): Can not find class: Landroid/app/View;
W/art (32229): Attempt to remove local handle scope entry from IRT, ignoring
W/art (32229): Attempt to remove local handle scope entry from IRT, ignoring
E/flutter (32229): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method initialization on channel plugins.hoanglm.com/youtube_0)
E/flutter (32229): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
E/flutter (32229):
E/flutter (32229): #1 FlutterYoutubeViewController.initialization (package:flutter_youtube_view/flutter_youtube_view.dart:94:20)
E/flutter (32229):
E/flutter (32229): #2 _FlutterYoutubeViewState._initialization (package:flutter_youtube_view/flutter_youtube_view.dart:77:16)
E/flutter (32229):
E/flutter (32229): #3 _FlutterYoutubeViewState._onPlatformViewCreated (package:flutter_youtube_view/flutter_youtube_view.dart:72:5)
E/flutter (32229): #4 AndroidViewController._create (package:flutter/src/services/platform_views.dart:582:7)
E/flutter (32229):
E/flutter (32229): #5 AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:505:14)
E/flutter (32229):
E/flutter (32229): #6 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:178:29)
E/flutter (32229):
E/flutter (32229): #7 RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:159:5)
E/flutter (32229): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1617:9)
E/flutter (32229): #9 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:510:15)
E/flutter (32229): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #11 MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:142:11)
E/flutter (32229): #12 _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:350:7)
E/flutter (32229): #13 MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:212:7)
E/flutter (32229): #14 RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:356:14)
E/flutter (32229): #15 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #16 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #17 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #18 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #19 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1206:11)
E/flutter (32229): #20 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #21 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #22 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #23 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #24 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #25 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #26 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #28 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #29 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #30 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #31 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #32 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #33 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (32229): #34 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (32229): #35 RenderOffst
I/flutter (32229): onReady
I/flutter (32229): onStateChange state = UNSTARTED
I/flutter (32229): onStateChange state = BUFFERING
I/OMXClient(32229): Using client-side OMX mux.
I/OMXCodec(32229): matching 'OMX.google.aac.decoder' quirks 0x00000000
W/VideoCapabilities(32229): Unsupported mime video/mpeg
W/VideoCapabilities(32229): Unsupported mime video/mpeg2
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 32768 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile/level 0/0 for video/3gpp
W/VideoCapabilities(32229): Unrecognized profile 0 for video/3gpp
W/VideoCapabilities(32229): Unsupported mime video/mp4
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities(32229): Unsupported profile 8 for video/mp4v-es
W/VideoCapabilities(32229): Unrecognized profile/level 32768/2 for video/mp4v-es
W/VideoCapabilities(32229): Unrecognized profile 0 for video/mp4v-es
W/VideoCapabilities(32229): Unsupported mime video/mpeg4
W/VideoCapabilities(32229): Unsupported mime video/x-flv
W/VideoCapabilities(32229): Unsupported mime video/vc1
W/VideoCapabilities(32229): Unsupported mime video/wvc1
W/VideoCapabilities(32229): Unsupported mime video/x-ms-wmv
W/VideoCapabilities(32229): Unsupported mime video/x-ms-wmv3
W/VideoCapabilities(32229): Unsupported mime video/x-pn-realvideo
W/VideoCapabilities(32229): Unsupported mime video/ffmpeg
W/AudioCapabilities(32229): Unsupported mime audio/ffmpeg
I/VideoCapabilities(32229): Unsupported profile 4 for video/mp4v-es
I/OMXClient(32229): Using client-side OMX mux.
I/OMXCodec(32229): matching 'OMX.google.vp9.decoder' quirks 0x00000000
E/ACodec (32229): [OMX.google.vp9.decoder] storeMetaDataInBuffers failed w/ err -2147483648
I/flutter (32229): onStateChange state = PLAYING
I/flutter (32229): onVideoDuration duration = 8833.3095703125
I/flutter (32229): onCurrentSecond second = 0.2908819913864136
I/flutter (32229): onCurrentSecond second = 0.38888201117515564
I/flutter (32229): onCurrentSecond second = 0.4958820044994354
I/flutter (32229): onCurrentSecond second = 0.6544010043144226
I/flutter (32229): onCurrentSecond second = 0.7544010281562805
I/flutter (32229): onCurrentSecond second = 0.8540409803390503
I/flutter (32229): onCurrentSecond second = 0.9550409913063049
I/flutter (32229): onCurrentSecond second = 1.0656800270080566
I/flutter (32229): onCurrentSecond second = 1.1666799783706665
I/flutter (32229): onCurrentSecond second = 1.2666800022125244
I/flutter (32229): onCurrentSecond second = 1.3584400415420532
I/flutter (32229): onCurrentSecond second = 1.4584399461746216
I/flutter (32229): onCurrentSecond second = 1.5620800256729126
I/flutter (32229): onCurrentSecond second = 1.6620800495147705
I/flutter (32229): onCurrentSecond second = 1.7660800218582153
I/flutter (32229): onCurrentSecond second = 1.8607200384140015
I/flutter (32229): onCurrentSecond second = 1.9617199897766113
I/flutter (32229): onCurrentSecond second = 2.0704801082611084
I/flutter (32229): onCurrentSecond second = 2.162480115890503
I/flutter (32229): onCurrentSecond second = 2.2574799060821533
I/flutter (32229): onCurrentSecond second = 2.377120018005371
I/flutter (32229): onCurrentSecond second = 2.498120069503784
I/flutter (32229): onCurrentSecond second = 2.6111199855804443
I/flutter (32229): onCurrentSecond second = 2.6547598838806152
I/flutter (32229): onCurrentSecond second = 2.7637600898742676
I/flutter (32229): onCurrentSecond second = 2.8827600479125977
I/flutter (32229): onCurrentSecond second = 2.961400032043457
I/flutter (32229): onCurrentSecond second = 3.102400064468384
I/flutter (32229): onCurrentSecond second = 3.2611498832702637
I/flutter (32229): onCurrentSecond second = 3.501149892807007
I/flutter (32229): onCurrentSecond second = 3.6125600337982178
I/flutter (32229): onCurrentSecond second = 3.720560073852539
I/flutter (32229): onCurrentSecond second = 3.9091899394989014
I/flutter (32229): onCurrentSecond second = 4.013189792633057
I/flutter (32229): onCurrentSecond second = 4.114190101623535
I/flutter (32229): onCurrentSecond second = 4.2151899337768555
I/flutter (32229): onCurrentSecond second = 4.367589950561523
I/flutter (32229): onCurrentSecond second = 4.468589782714844
I/flutter (32229): onCurrentSecond second = 4.567230224609375
I/flutter (32229): onCurrentSecond second = 5.106229782104492
I/flutter (32229): onCurrentSecond second = 5.49222993850708
I/flutter (32229): onCurrentSecond second = 5.518229961395264
I/flutter (32229): onCurrentSecond second = 5.84814977645874
I/flutter (32229): onCurrentSecond second = 5.952670097351074
I/flutter (32229): onCurrentSecond second = 6.265069961547852
I/flutter (32229): onCurrentSecond second = 6.366069793701172
I/flutter (32229): onCurrentSecond second = 6.46707010269165
I/flutter (32229): onCurrentSecond second = 6.707469940185547
I/flutter (32229): onCurrentSecond second = 6.807469844818115
I/flutter (32229): onCurrentSecond second = 6.888110160827637
I/flutter (32229): onCurrentSecond second = 6.988110065460205
I/flutter (32229): onCurrentSecond second = 7.088109970092773
I/flutter (32229): onCurrentSecond second = 7.205870151519775
I/flutter (32229): onCurrentSecond second = 7.307869911193848
I/flutter (32229): onCurrentSecond second = 7.394509792327881
I/flutter (32229): onCurrentSecond second = 7.494510173797607
I/flutter (32229): onCurrentSecond second = 7.595510005950928
I/flutter (32229): onCurrentSecond second = 7.696509838104248
I/flutter (32229): onCurrentSecond second = 7.797510147094727
I/flutter (32229): onCurrentSecond second = 7.8819098472595215
I/flutter (32229): onCurrentSecond second = 7.983910083770752
I/flutter (32229): onCurrentSecond second = 8.085909843444824
I/flutter (32229): onCurrentSecond second = 8.215550422668457
I/flutter (32229): onStateChange state = BUFFERING
I/flutter (32229): onStateChange state = PLAYING
I/flutter (32229): onVideoDuration duration = 8833.3095703125
I/flutter (32229): onCurrentSecond second = 20.21940040588379
I/flutter (32229): onCurrentSecond second = 20.319400787353516
I/flutter (32229): onCurrentSecond second = 20.40019989013672
I/flutter (32229): onCurrentSecond second = 20.500200271606445
I/flutter (32229): onCurrentSecond second = 20.635799407958984
I/flutter (32229): onCurrentSecond second = 20.736799240112305
I/flutter (32229): onCurrentSecond second = 20.84079933166504
I/flutter (32229): onCurrentSecond second = 20.920499801635742
I/flutter (32229): onCurrentSecond second = 21.021499633789062
I/flutter (32229): onCurrentSecond second = 21.138099670410156
I/flutter (32229): onCurrentSecond second = 21.238100051879883
I/flutter (32229): onCurrentSecond second = 21.348100662231445
I/flutter (32229): onCurrentSecond second = 21.438800811767578
I/flutter (32229): onCurrentSecond second = 21.58880043029785
I/flutter (32229): onCurrentSecond second = 21.68549919128418
I/flutter (32229): onCurrentSecond second = 21.785499572753906
I/flutter (32229): onCurrentSecond second = 21.886499404907227
I/flutter (32229): onCurrentSecond second = 21.987499237060547
I/flutter (32229): onCurrentSecond second = 22.092500686645508
I/flutter (32229): onCurrentSecond second = 22.199800491333008
I/flutter (32229): onCurrentSecond second = 22.300800323486328
I/flutter (32229): onCurrentSecond second = 22.406600952148438
I/flutter (32229): onCurrentSecond second = 22.507600784301758
I/flutter (32229): onCurrentSecond second = 22.617599487304688
I/flutter (32229): onCurrentSecond second = 22.71619987487793
I/flutter (32229): onCurrentSecond second = 22.816200256347656
I/flutter (32229): onCurrentSecond second = 22.922800064086914
I/flutter (32229): onCurrentSecond second = 23.023799896240234
I/flutter (32229): onCurrentSecond second = 23.126800537109375
I/flutter (32229): onCurrentSecond second = 23.19059944152832
I/flutter (32229): onCurrentSecond second = 23.29159927368164
I/flutter (32229): onCurrentSecond second = 23.39259910583496
I/flutter (32229): onCurrentSecond second = 23.492599487304688
I/flutter (32229): onCurrentSecond second = 23.616600036621094
I/flutter (32229): onCurrentSecond second = 23.718900680541992
I/flutter (32229): onCurrentSecond second = 23.81089973449707
I/flutter (32229): onCurrentSecond second = 23.940500259399414
I/flutter (32229): onCurrentSecond second = 24.041500091552734
I/flutter (32229): onCurrentSecond second = 24.15519905090332
I/flutter (32229): onCurrentSecond second = 24.255199432373047
I/flutter (32229): onCurrentSecond second = 24.356199264526367
I/flutter (32229): onCurrentSecond second = 24.451900482177734
I/flutter (32229): onCurrentSecond second = 24.552900314331055
I/flutter (32229): onCurrentSecond second = 24.66990089416504
I/flutter (32229): onCurrentSecond second = 24.76059913635254
I/flutter (32229): onCurrentSecond second = 24.838600158691406
I/flutter (32229): onCurrentSecond second = 24.93829917907715
I/flutter (32229): onCurrentSecond second = 25.0393009185791
I/flutter (32229): onCurrentSecond second = 25.139999389648438
I/flutter (32229): onCurrentSecond second = 25.240999221801758
I/flutter (32229): onCurrentSecond second = 25.341999053955078
I/flutter (32229): onCurrentSecond second = 25.449600219726562
I/flutter (32229): onCurrentSecond second = 25.550600051879883
I/flutter (32229): onCurrentSecond second = 25.66119956970215
I/flutter (32229): onCurrentSecond second = 25.76219940185547
I/flutter (32229): onCurrentSecond second = 25.86319923400879
I/flutter (32229): onCurrentSecond second = 25.976900100708008
I/flutter (32229): onCurrentSecond second = 26.076900482177734
I/flutter (32229): onCurrentSecond second = 26.151599884033203
I/flutter (32229): onCurrentSecond second = 26.252599716186523
I/flutter (32229): onCurrentSecond second = 26.359600067138672
I/flutter (32229): onCurrentSecond second = 26.479299545288086
I/flutter (32229): onCurrentSecond second = 26.582300186157227
I/flutter (32229): onCurrentSecond second = 26.7278995513916
I/flutter (32229): onCurrentSecond second = 26.83289909362793
I/flutter (32229): onCurrentSecond second = 26.925899505615234
I/flutter (32229): onCurrentSecond second = 27.02589988708496
I/flutter (32229): onCurrentSecond second = 27.12689971923828
I/flutter (32229): onCurrentSecond second = 27.242300033569336
I/flutter (32229): onCurrentSecond second = 27.343299865722656
I/flutter (32229): onCurrentSecond second = 27.43090057373047
I/flutter (32229): onCurrentSecond second = 27.530899047851562
I/flutter (32229): onCurrentSecond second = 27.631900787353516
I/flutter (32229): onCurrentSecond second = 27.733699798583984
I/flutter (32229): onCurrentSecond second = 27.83370018005371
I/flutter (32229): onCurrentSecond second = 27.93829917907715
I/flutter (32229): onCurrentSecond second = 28.0393009185791
I/flutter (32229): onCurrentSecond second = 28.140300750732422
I/flutter (32229): onCurrentSecond second = 28.285999298095703
I/flutter (32229): onCurrentSecond second = 28.382999420166016
I/flutter (32229): onCurrentSecond second = 28.48859977722168
I/flutter (32229): onCurrentSecond second = 28.645599365234375
I/flutter (32229): onCurrentSecond second = 28.82659912109375
I/flutter (32229): onCurrentSecond second = 28.94729995727539
I/flutter (32229): onCurrentSecond second = 29.15530014038086
I/flutter (32229): onCurrentSecond second = 29.306299209594727
I/flutter (32229): onCurrentSecond second = 29.391799926757812
I/flutter (32229): onCurrentSecond second = 29.56730079650879
I/flutter (32229): onCurrentSecond second = 29.76289939880371
I/flutter (32229): onCurrentSecond second = 29.86389923095703
I/flutter (32229): onCurrentSecond second = 29.966699600219727
I/flutter (32229): onCurrentSecond second = 30.067699432373047
I/flutter (32229): onCurrentSecond second = 30.167699813842773
I/flutter (32229): onCurrentSecond second = 30.268699645996094
I/flutter (32229): onCurrentSecond second = 30.36870002746582
I/flutter (32229): onCurrentSecond second = 30.477100372314453
I/flutter (32229): onCurrentSecond second = 30.583099365234375
I/flutter (32229): onStateChange state = BUFFERING
I/art (32229): Thread[9,tid=32248,WaitingInMainSignalCatcherLoop,Thread*=0x55c3dac720,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
I/art (32229): Wrote stack traces to '/data/anr/traces.txt'
I/art (32229): Thread[9,tid=32248,WaitingInMainSignalCatcherLoop,Thread*=0x55c3dac720,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
I/art (32229): Wrote stack traces to '/data/anr/traces.txt'
I/art (32229): Thread[9,tid=32248,WaitingInMainSignalCatcherLoop,Thread*=0x55c3dac720,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
I/art (32229): Wrote stack traces to '/data/anr/traces.txt'
I/art (32229): Thread[9,tid=32248,WaitingInMainSignalCatcherLoop,Thread*=0x55c3dac720,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
I/art (32229): Wrote stack traces to '/data/anr/traces.txt'
Lost connection to device.

from flutter_youtube_view.

hoanglm4 avatar hoanglm4 commented on August 12, 2024

Hello @davidgalarza ,
Thanks for reporting. Please attach your file apk. I want to reproduce in my phone

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024

Here is my code: https://github.com/davidgalarza/youtube_example_error
apk: https://drive.google.com/file/d/11CGvw2L7HqIP2SYmt0gE5LCvhGzlom4i/view?usp=sharing

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024

Any update?

from flutter_youtube_view.

hoanglm4 avatar hoanglm4 commented on August 12, 2024

Hello @davidgalarza ,

Thank you so much. But I cannot re-produce in my phone (Samsung SM-J700H and samsung SM-J730G).
However, I have created sample in native code, Please help test this sample. If this bug is occur, I will report to native library.
Apk: apk for test
Sample: https://github.com/hoanglm4/sample_android_youtube

Sorry for the slow response.
Thanks

from flutter_youtube_view.

hoanglm4 avatar hoanglm4 commented on August 12, 2024

Hello @davidgalarza

I think have problem with AndroidView. I have created sample for AndroidView. Can you help me test it? I have attached apk file in below.

APK: app-debug
Sample: https://github.com/hoanglm4/flutter_youtube_view/tree/android_view_testing

Related issue: flutter/flutter#26345

Thanks

from flutter_youtube_view.

davidgalarza avatar davidgalarza commented on August 12, 2024

I do not know if it can be related to flutter/flutter#26345. The apk you sent me is working as expected shows the text "Testing AndroidView" without any problem I can push or pop the page without the app crash.
Here is a video: https://drive.google.com/file/d/1brcVaFjJKcHagF33gYRcXg1YW3SXw8jd/view?usp=sharing

from flutter_youtube_view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.