ใใใใขใใชใฑใผใทใงใณใฎ1ใคใซๅฎ่ฃ
ใใพใใใใใใซในใฏใชใผใณใๆฉ่ฝใใพใใใงใใใ
example / lib / main.dartใงๆไพใใใฆใใใตใณใใซในใใใใใ่ฉฆใใพใใใใๅใใญใฐใ็บ็ใใพใใ
ใใใฏใญใฐใงใ
I / PressGestureDetector๏ผ5303๏ผ๏ผORIENTATION_LANDSCAPE
W / libEGL๏ผ5303๏ผ๏ผEGLNativeWindowType0x7204703010ๅๆญใซๅคฑๆใใพใใ
D / mali_winsys๏ผ5303๏ผ๏ผEGLint new_window_surface๏ผegl_winsys_display ใvoid *ใEGLSurfaceใEGLConfigใegl_winsys_surface * ใegl_color_buffer_format *ใEGLBoolean๏ผใฏ0x3000ใ่ฟใใพใ
W / PlatformViewsController๏ผ5303๏ผ๏ผใตใคใบ๏ผ[2040ใ1080]ใฎไปฎๆณใใฃในใใฌใคใไฝๆใใใจใๅ้กใ็บ็ใใๅฏ่ฝๆงใใใใพใ๏ผhttps://github.com/flutter/flutter/issues/2897๏ผใใใใคในใฎ็ป้ขใตใคใบใใใๅคงใใ๏ผ [1080ใ2040]ใ
็ซฏๆซ๏ผ
ๅ่ช9i
Android 8.0
ใฏใฉใใทใฅใใฆใใใฎใงใใใใใใจใใใซในใฏใชใผใณใซๅใๆฟใใฃใฆใใชใใฎใงใใ๏ผ
ใใใใใขใใชใฑใผใทใงใณใฏใฏใฉใใทใฅใใพใใใใๅ จ็ป้ข่กจ็คบใซใฏๅใๆฟใใใพใใใ่ฟ ้ใช่ฟไฟกใซๆ่ฌใใพใ
ใใซในใฏใชใผใณใขใผใใซๅใๆฟใใใจใฉใใชใใใซใคใใฆ่ฉณใใๆใใฆใใ ใใใ ใพใใYoutubePlayerBuilderใงใใฌใผใคใผใใฉใใใใฆใใพใใ๏ผ
ใใใ็งใฏใฆใผใใฅใผใใใฌใผใคใผใใซใใผใฎไธญใซใฆใผใใฅใผใใใฌใผใคใผใๅ ใฟใพใใใใใใฆ็งใฏใใชใใฎใตใณใใซใณใผใใใไฝฟ็จใใพใใใใใใฆใใใฏ็งใซๅใใจใฉใผใไธใใพใใ
ใใซในใฏใชใผใณใใฟใณใใฏใชใใฏใใใจใ็ป้ขใไธ็ฌ้ปใๅกใใคใถใใใฆใใใๅ ใฎใใผใใฌใผใใขใผใใซใชใใYouTubeใใฌใผใคใผใไธๆๅๆญขใใพใใ
v7ใธใฎใขใใใใผใๅพใใใซในใฏใชใผใณใฏๆฉ่ฝใใชใใชใใพใใ ใณใณใใผใใณใใYoutubePlayerBuilderใงใฉใใใใพใใใใๅฝนใซ็ซใกใพใใใ ใใใฏใจใฉใผใญใฐใใใฎใใฎใงใ๏ผ
Tried calling: value
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _YoutubePlayerBuilderState.didChangeMetrics
package:youtube_player_flutter/โฆ/widgets/youtube_player_builder.dart:58
#2 WidgetsBinding.handleMetricsChanged
package:flutter/โฆ/widgets/binding.dart:538
#3 _rootRun (dart:async/zone.dart:1184:13)
#4 _CustomZone.run (dart:async/zone.dart:1077:19)
#5 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#6 _invoke (dart:ui/hooks.dart:261:10)
#7 _updateWindowMetrics (dart:ui/hooks.dart:64:3)
@AshutoshPatoleใใคใขใญใฐใงใใใชใๅ็ใใฆใใพใใ๏ผ ็งใDialogใใ่ฉฆใใใจใใใใใฏใพใใซ็งใซ่ตทใใฃใใใใงใใ ใใใชใๅ็ใใใใใฎๅฐ็จใฌใคใขใฆใใซๅใๆฟใใๅพใใใใฏใใพใๆฉ่ฝใใพใใใ ใใใ็งใฎใณใผใใงใ๏ผ
` import'package๏ผflutter / Material.dart ';
import'package๏ผyoutube_player_flutter / youtube_player_flutter.dart ';
ใฏใฉในVideoViewใฏStatelessWidgetใๆกๅผตใใพใ{
ๆ็ต็ใชๆๅญๅvideoId;
VideoView๏ผ{this.videoId}๏ผ;
@ใชใผใใผใฉใคใ
ใฆใฃใธใงใใใใซใ๏ผBuildContextใณใณใใญในใ๏ผ{
YoutubePlayerController _controller = YoutubePlayerController๏ผ
initialVideoId๏ผvideoIdใ
ใใฉใฐ๏ผYoutubePlayerFlags๏ผ
่ชๅๅ็๏ผtrueใ
๏ผใ
๏ผ;
ใชใฟใผใณใปใณใฟใผ๏ผ
ๅญ๏ผYoutubePlayerBuilder๏ผ
ใใฌใผใคใผ๏ผYoutubePlayer๏ผ
ใณใณใใญใผใฉ๏ผ_controllerใ
// showVideoProgressIndicator๏ผtrueใ
๏ผใใใซใใผ:(ใณใณใใญในใใใใฌใผใคใผ๏ผ{
Column๏ผใ่ฟใ
ๅญไพ้๏ผ
ใใฌใผใคใผใ
]ใ
๏ผ;
}ใ
๏ผใ
๏ผ;
}
}
`
@ vipinnegi90ใใใใYouTubeใ่กจ็คบใใใใใฎใใคใขใญใฐใไฝฟ็จใใฆใใพใใใใณใผใใ่ฉฆใใพใใใใๆฉ่ฝใใใๅใใจใฉใผใ็บ็ใใพใใใ ็งใฎใณใผใใซไฝใใใใพใใ๏ผ ใใใใidใฏv7.xxใซๆดๆฐใใๅใซๅฎๅ จใซๆฉ่ฝใใพใใใใใจใซใใใใฎๅ้กใ่งฃๆฑบใใใใใซ่ฉณ็ดฐใชใญใฐใใญในใใ่ฒผใไปใใฆใใพใใ
็ทจ้1๏ผใใฎใจใฉใผใ็งใฎใณใผใใจใฏไฝใฎ้ขไฟใใชใใใจใซๆฐใฅใใพใใใ ๆฐใใใใฉใใฟใผใใญใธใงใฏใใไฝๆใใflutter_youtube_playerใฎไพๅญ้ขไฟใ่ฟฝๅ ใใไพใงๆไพใใใฆใใใณใผใใใณใใผใใฆใๅไฝใใใใจใ็ขบ่ชใใพใใใใๅใใจใฉใผใ็บ็ใใพใใใ ็งใ2ใคใฎ็ฐใชใ้ป่ฉฑใงใใใ่ฉฆใใพใใใ
9iใๅฐ้=> android 8.0
asus zenfone maxpro m1 => android 9.0
@sarbagyasthaใฏใใฎๅ้กใไฟฎๆญฃใใ็งใใใฎๆ ๅ ฑใใใใซๅฟ ่ฆใชๅ ดๅใฏpingใ้ไฟกใใฆใใ ใใใ
Performing hot reload...
Syncing files to device RNE L22...
Reloaded 0 of 797 libraries in 486ms.
V/AudioManager(10229): playSoundEffect effectType: 0
E/BufferQueueProducer(10229): [] Can not get hwsched service
D/HwCust (10229): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="12">@ad0bded</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="13">@ad0bded</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(10229): HWUI Binary is enabled
D/OpenGLRenderer(10229): HWUI Binary is enabled
I/PressGestureDetector(10229): HiTouch restricted: AboardArea.
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
D/ (10229): TrackPlayerBase::~TrackPlayerBase()
D/ (10229): PlayerBase::~PlayerBase()
W/InputMethodManager(10229): startInputReason = 3
V/AudioManager(10229): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(10229): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
E/BufferQueueProducer(10229): [] Can not get hwsched service
D/ (10229): PlayerBase::PlayerBase()
D/ (10229): TrackPlayerBase::TrackPlayerBase()
I/libOpenSLES(10229): Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
I/cr_MediaCodecBridge(10229): create MediaCodec video decoder, mime video/avc
D/AudioTrack(10229): OFFLOAD 0,mNotificationFrames 0,mStreamType =3,mOriginalSampleRate 48000,mAfSampleRate 48000,mTransfer 1
D/AudioTrack(10229): Client defaulted notificationFrames to 962 for frameCount 1924
I/OMXClient(10229): Treble IOmx obtained
I/ACodec (10229): In onAllocateComponent create compenent, codec name: OMX.IMG.MSVDX.Decoder.AVC
I/MediaCodec(10229): MediaCodec will operate in async mode
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason connectToSurface
I/MediaCodec(10229): [OMX.IMG.MSVDX.Decoder.AVC] setting surface generation to 10474506
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason connectToSurface(reconnect)
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason connectToSurface(reconnect)
W/HwExtendedUtils(10229): hw configLocalPlayBack err = -1010
E/ACodec (10229): [OMX.IMG.MSVDX.Decoder.AVC] setPortMode on output to DynamicANWBuffer failed w/ err -1010
W/ACodec (10229): [OMX.IMG.MSVDX.Decoder.AVC] prepareForAdaptivePlayback failed w/ err -1010
I/HwExtendedCodec(10229): mime is [video/avc] at setVideoFormat
I/ACodec (10229): onStart
I/HwExtendedUtils(10229): error setConfig queuesToNativeWindow (err -1010)
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): set up nativeWindow 0x72048ef010 for 960x720, color 0x300, rotation 0, usage 0x20002900
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
I/HwExtendedUtils(10229): error setConfig queuesToNativeWindow (err -1010)
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): set up nativeWindow 0x72048ef010 for 960x720, color 0x300, rotation 0, usage 0x20002900
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
V/AudioManager(10229): requestAudioFocus streamType: 3 durationHint: 1
V/AudioManager(10229): registerAudioFocusListener...
E/chromium(10229): [ERROR:web_contents_delegate.cc(218)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
E/chromium(10229): [ERROR:web_contents_delegate.cc(218)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
W/cr_media(10229): Requires MODIFY_AUDIO_SETTINGS and RECORD_AUDIO. No audio device will be available for recording
I/CameraManagerGlobal(10229): do not need hide aux camera, device number: 2
I/chatty (10229): uid=10314(u0_a314) ThreadPoolSingl identical 10 lines
I/CameraManagerGlobal(10229): do not need hide aux camera, device number: 2
V/AudioManager(10229): playSoundEffect effectType: 0
I/PressGestureDetector(10229): ORIENTATION_LANDSCAPE
I/PressGestureDetector(10229): ORIENTATION_LANDSCAPE
W/libEGL (10229): EGLNativeWindowType 0x720487b010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (10229): EGLNativeWindowType 0x720487c010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (10229): EGLNativeWindowType 0x720487b010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (10229): EGLNativeWindowType 0x720487b010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (10229): EGLNativeWindowType 0x720487c010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/PlatformViewsController(10229): Creating a virtual display of size: [2160, 1080] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2040].
D/HwCust (10229): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="14">@a4e8291</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="15">@a4e8291</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(10229): HWUI Binary is enabled
I/PressGestureDetector(10229): HiTouch restricted: AboardArea.
D/AudioTrack(10229): stop() called with 561604 frames delivered
D/ (10229): PlayerBase::stop() from IPlayer
W/cr_MediaCodecBridge(10229): Releasing: OMX.IMG.MSVDX.Decoder.AVC
W/ACodec (10229): forcing OMX state to Idle when received shutdown in ExecutingState
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason disconnectFromSurface
W/cr_MediaCodecBridge(10229): Codec released
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
V/AudioManager(10229): requestAudioFocus streamType: 3 durationHint: 1
V/AudioManager(10229): registerAudioFocusListener...
V/AudioManager(10229): unregisterAudioFocusListener...
I/AudioManager(10229): abandonAudioFocus
W/libEGL (10229): EGLNativeWindowType 0x720487c010 disconnect failed
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
D/OpenGLRenderer(10229): HWUI Binary is enabled
D/HwCust (10229): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="16">@fab94ef</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(10229): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="17">@fab94ef</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(10229): HWUI Binary is enabled
I/PressGestureDetector(10229): HiTouch restricted: AboardArea.
I/zygote64(10229): Do partial code cache collection, code=1006KB, data=604KB
I/zygote64(10229): After code cache collection, code=1006KB, data=604KB
I/zygote64(10229): Increasing code cache capacity to 3MB
D/mali_winsys(10229): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
D/OpenGLRenderer(10229): HWUI Binary is enabled
V/AudioManager(10229): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(10229): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
E/BufferQueueProducer(10229): [] Can not get hwsched service
I/cr_MediaCodecBridge(10229): create MediaCodec video decoder, mime video/avc
I/OMXClient(10229): Treble IOmx obtained
I/ACodec (10229): In onAllocateComponent create compenent, codec name: OMX.IMG.MSVDX.Decoder.AVC
I/MediaCodec(10229): MediaCodec will operate in async mode
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason connectToSurface
I/MediaCodec(10229): [OMX.IMG.MSVDX.Decoder.AVC] setting surface generation to 10474507
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason connectToSurface(reconnect)
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason connectToSurface(reconnect)
W/HwExtendedUtils(10229): hw configLocalPlayBack err = -1010
E/ACodec (10229): [OMX.IMG.MSVDX.Decoder.AVC] setPortMode on output to DynamicANWBuffer failed w/ err -1010
W/ACodec (10229): [OMX.IMG.MSVDX.Decoder.AVC] prepareForAdaptivePlayback failed w/ err -1010
I/HwExtendedCodec(10229): mime is [video/avc] at setVideoFormat
I/ACodec (10229): onStart
I/HwExtendedUtils(10229): error setConfig queuesToNativeWindow (err -1010)
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): set up nativeWindow 0x72048ef010 for 960x720, color 0x300, rotation 0, usage 0x20002900
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
I/HwExtendedUtils(10229): error setConfig queuesToNativeWindow (err -1010)
D/SurfaceUtils(10229): disconnecting from surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): connecting to surface 0x72048ef010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(10229): set up nativeWindow 0x72048ef010 for 960x720, color 0x300, rotation 0, usage 0x20002900
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
W/GrallocMapperPassthrough(10229): buffer descriptor with invalid usage bits 0x2000
@AshutoshPatoleใใใใฎapkใงใในใใใฆใใใ ใใพใใใ๏ผ
@sarbagyasthaใใใใใใฏๅฎๅ
จใซๆฉ่ฝใใพใใใๅใใณใผใใใณใใผใใฆใใใใฐใขใผใใงๅฎ่กใใใใจใใใจใใซใใชใใใใๆฉ่ฝใใชใใฃใใฎใงใใ๏ผ
YouTubeใใฌใผใคใผใ ใใๅซใๆฐใใใใญใธใงใฏใใงใ
ใในใใงใใใใใซใๅ็พๅฏ่ฝใชไพใๆไพใใฆใใ ใใใ ใญใฐใซ็ใใใใใฎใฏไฝใ่ฆใคใใใพใใใงใใใ
@AshutoshPatoleใณใณใใคใซใใฆใใใใฉใใฟใผใใผใธใงใณใฏไฝใงใใ๏ผ
@ vipinnegi90 flutter1.17.2
ใใผใ2.8.3
@AshutoshPatoleใใใฏv1.17.1ใฎใฟใคใใในใ ใจๆใใพใใ v1.17.2ใซใขใใใฐใฌใผใใใฆ่ฉฆใใฆใใ ใใใ
@sarbagyastha
ๆดๆฐใใใใญใฐ๏ผ
ใใซในใฏใชใผใณใใฟใณใๆผใใๅพใซใจใฉใผใ็บ็ใใพใ
V/AudioManager(21942): playSoundEffect effectType: 0
V/AudioManager(21942): playSoundEffect effectType: 0
E/BufferQueueProducer(21942): [] Can not get hwsched service
D/HwCust (21942): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="9">@ebf21c8</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="10">@ebf21c8</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(21942): HWUI Binary is enabled
D/OpenGLRenderer(21942): HWUI Binary is enabled
I/PressGestureDetector(21942): HiTouch restricted: AboardArea.
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
I/zygote64(21942): Do full code cache collection, code=495KB, data=379KB
I/zygote64(21942): After code cache collection, code=473KB, data=297KB
W/InputMethodManager(21942): startInputReason = 3
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
D/ (21942): PlayerBase::PlayerBase()
D/ (21942): TrackPlayerBase::TrackPlayerBase()
I/libOpenSLES(21942): Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
D/AudioTrack(21942): OFFLOAD 0,mNotificationFrames 0,mStreamType =3,mOriginalSampleRate 48000,mAfSampleRate 44100,mTransfer 1
D/AudioTrack(21942): Client defaulted notificationFrames to 8811 for frameCount 26433
E/chromium(21942): [ERROR:web_contents_delegate.cc(218)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
E/chromium(21942): [ERROR:web_contents_delegate.cc(218)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
I/CameraManagerGlobal(21942): do not need hide aux camera, device number: 2
W/cr_media(21942): Requires MODIFY_AUDIO_SETTINGS and RECORD_AUDIO. No audio device will be available for recording
I/CameraManagerGlobal(21942): do not need hide aux camera, device number: 2
I/chatty (21942): uid=10314(u0_a314) ThreadPoolSingl identical 7 lines
I/CameraManagerGlobal(21942): do not need hide aux camera, device number: 2
I/CameraManagerGlobal(21942): do not need hide aux camera, device number: 2
I/CameraManagerGlobal(21942): do not need hide aux camera, device number: 2
V/AudioManager(21942): playSoundEffect effectType: 0
I/PressGestureDetector(21942): ORIENTATION_LANDSCAPE
W/libEGL (21942): EGLNativeWindowType 0x7a3b7f2010 disconnect failed
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (21942): EGLNativeWindowType 0x7a3b7f2010 disconnect failed
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/libEGL (21942): EGLNativeWindowType 0x7a3b7f3010 disconnect failed
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
W/PlatformViewsController(21942): Creating a virtual display of size: [2160, 1080] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2040].
D/HwCust (21942): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="11">@97af80e</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="12">@97af80e</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(21942): HWUI Binary is enabled
I/PressGestureDetector(21942): HiTouch restricted: AboardArea.
D/AudioTrack(21942): stop() called with 810524 frames delivered
D/ (21942): PlayerBase::stop() from IPlayer
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- LayoutBuilder(renderObject: _RenderLayoutBuilder#f8249)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
W/libEGL (21942): EGLNativeWindowType 0x7a3b7f3010 disconnect failed
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
D/OpenGLRenderer(21942): HWUI Binary is enabled
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- MediaQuery(MediaQueryData(size: Size(360.0, 720.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
D/HwCust (21942): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="13">@e465ad4</strong>, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils(21942): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3<strong i="14">@e465ad4</strong>, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer(21942): HWUI Binary is enabled
I/PressGestureDetector(21942): HiTouch restricted: AboardArea.
D/AudioTrack(21942): stop() called with 26433 frames delivered
D/ (21942): PlayerBase::stop() from IPlayer
D/mali_winsys(21942): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
D/OpenGLRenderer(21942): HWUI Binary is enabled
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
V/AudioManager(21942): getProperty key: android.media.property.OUTPUT_SAMPLE_RATE
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- MediaQuery(MediaQueryData(size: Size(360.0, 680.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Multiple widgets used the same GlobalKey.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- MediaQuery(MediaQueryData(size: Size(360.0, 680.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Multiple widgets used the same GlobalKey.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- MediaQuery(MediaQueryData(size: Size(360.0, 680.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following assertion was thrown while finalizing the widget tree:
Multiple widgets used the same GlobalKey.
The key [GlobalKey#19eaf] was used by multiple widgets. The parents of those widgets were:
- MediaQuery(MediaQueryData(size: Size(720.0, 360.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
- MediaQuery(MediaQueryData(size: Size(360.0, 680.0), devicePixelRatio: 3.0, textScaleFactor: 1.0, platformBrightness: Brightness.light, padding: EdgeInsets.zero, viewPadding: EdgeInsets.zero, viewInsets: EdgeInsets.zero, physicalDepth: 1.7976931348623157e+308, alwaysUse24HourFormat: false, accessibleNavigation: false, highContrast: false, disableAnimations: false, invertColors: false, boldText: false))
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:246:13)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure>.<anonymous closure> (package:flutter/src/widgets/framework.dart:193:19)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#4 GlobalKey._debugVerifyGlobalKeyReservation.<anonymous closure> (package:flutter/src/widgets/framework.dart:189:26)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
D/AudioTrack(21942): stop() called with 511038 frames delivered
D/ (21942): PlayerBase::stop() from IPlayer
@ vipinnegi90ใ1.17.2ใใใณdart2.8.3ใซใขใใใฐใฌใผใใใๅพใงใใๅ้กใฏ่งฃๆฑบใใพใใใ
ใฐใญใผใใซใญใผใฏๅฅใฎใใกใคใซใซใใใพใ
ใณใผใ๏ผ
import 'package:flutter/material.dart';
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
class VideoScreen extends StatefulWidget {
<strong i="9">@override</strong>
_VideoScreenState createState() => _VideoScreenState();
}
class _VideoScreenState extends State<VideoScreen> {
YoutubePlayerController _controller;
<strong i="10">@override</strong>
void initState() {
_controller = YoutubePlayerController(
initialVideoId: 'iLnmTe5Q2Qw',
flags: YoutubePlayerFlags(
autoPlay: true,
mute: true,
),
);
super.initState();
}
<strong i="11">@override</strong>
Widget build(BuildContext context) {
return YoutubePlayerBuilder(
player: YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
onReady: () {
_controller.addListener(() {});
},
),
builder: (context, player) {
return Scaffold(
body: SafeArea(
child: player,
),
);
},
);
}
}
@AshutoshPatoleใฏใใชใใฎใใใซๅ้กใไฟฎๆญฃใใพใใใ๏ผ
ใชใใใฎๅ้กใฏ่งฃๆฑบใใใใฎใงใใ๏ผ ็งใฏใพใ ใใฎๅ้กใๆฑใใฆใใพใhttps://github.com/sarbagyastha/youtube_player_flutter/issues/241#issuecomment-637450169 _YoutubePlayerBuilderState.didChangeMetrics
ใๅผใณๅบใใใใจใใซใชใใธใงใฏใใซ$ noSuchMethod
$ใใใใใใงใใ
@ vipinnegi90ใใๅ้กใฏไฟฎๆญฃใใใพใใใ
youtube_playerใงในใฟใใฏใไฝฟ็จใใฆใใ็งใซใจใฃใฆ@rafaelmaeuerใใใฎๅ้กใๅผใ่ตทใใใพใใใ
@AshutoshPatoleใฏในใฟใใฏใฎๅ้กใไฟฎๆญฃใใพใใใ๏ผ ใใใจใใใใฎใใฉใฐใคใณใไฝฟ็จใใ้ใฎๅถ้ใงใใ๏ผ
YoutubePlayerBuilderใฎใตใณใใซใใใซในใฏใชใผใณใซใชใใชใๅ ดๅใงใใใใฎๅ้กใ่งฃๆฑบใใชใใงใใ ใใใ ใใฌใผใคใผใ้ปใ็นๆป ใใใๅใใตใคใบใ็ถญๆใใพใ
ในใฟใใฏใงใใฌใผใคใผใไฝฟ็จใใฆใใพใใใใๅ้กใฏ่งฃๆฑบใใพใใ
@ emmett-deenใใใฏ็งใซใจใฃใฆใๆญฃ็ขบใชๅ้กใงใใใ ใใ ใใใตใณใใซใณใผใใฏใๆฐใใใใญใธใงใฏใใซๅฎ่ฃ
ใใใจๅ้กใชใๆฉ่ฝใใพใใ๏ผใตใณใใซใณใผใใฎใฟ๏ผใ ใใใงใ main.dart
ใฎใขใใชใฎใจใณใใชใใคใณใใใใฌใผใคใผ็ป้ขใซๅคๆดใใพใใใใๅ้กใชใๅไฝใใพใใใ ๆฌกใซใใใฌใผใคใผ็ป้ขใซ็งปๅใใฆในใฟใใฏใฆใฃใธใงใใใงๅ้กใ็บ็ใใใขใฏใใฃใใใฃใซ็ฆ็นใๅฝใฆใพใใใ ในใฟใใฏใฆใฃใธใงใใใฏใใฌใผใคใผ็ป้ขใจใฏไฝใฎ้ขไฟใใใใพใใใงใใใใใชใใใฌใผใคใผใใใซใตใคใบใซใชใใฎใๅฆจใใฆใใใฎใใใใใพใใใงใใใ
็ทจ้๏ผ็งใฏใใใไปๆๅพ ้ใใซๅใใฆใใใจใใชใใซ่จใใฎใๅฟใใพใใ
@AshutoshPatole ใ็งใๅใๅ้กใซ็ด้ขใใฆใใพใใ ไฟฎๆญฃๆนๆณใใใใใชใใ ใตใณใใซใณใผใใไฝๅบฆใ่ฟฝๅ ใใฆใฟใพใใใ
ใใฎๅทใๅ้ใใพใใ ๅคใใฎไบบใๅใๅ้กใซ็ด้ขใใฆใใใฎใง
ๅ้กใฏใใใคในใฎใขในใใฏใๆฏใซใใใจๆใใพใใ ใขในใใฏใๆฏใ16๏ผ9ใใ้ทใๅ ดๅใซใฎใฟๆ็ถใใพใใ
ใใจใใฐใRedmi 3S๏ผ16๏ผ9ใฎๆฏ็๏ผใไฝฟ็จใใฆใๅ้กใฏใใใพใใใ ใใใใGalaxy A50๏ผ19.5๏ผ9ใฎๆฏ็๏ผใไฝฟ็จใใใจใใใซในใฏใชใผใณใขใผใใ้ใใพใใ
ใใใฆใGalaxyS8ใไฝฟ็จใใฆใๅ้กใฏใใใพใใใ ใใใใPIXEL 3ใไฝฟ็จใใใจใใใซในใฏใชใผใณใขใผใใ้ใใพใใ ๏ผ/
ใใใใ; ใใผใใฌใผใใใฌใผใคใผใฏไธ็ฌ้ปใ็นๆป ใใๅพใๅใใตใคใบใฎใพใพใงใไฝใ่ตทใใใพใใใ
ใใใงใๅใๅ้กใใใใพใใ ใใฌใผใคใผใไปใฎใฆใฃใธใงใใใฎใชใใใผใธใซใใๅ ดๅใซใฎใฟๆฉ่ฝใใพใใ
็งใๅใๅ้กใซ็ด้ขใใฆใใพใใ
onEnterFullScreen: () {
SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]);
_controller.play();
},
YoutubePlayerBuilderใงไธ่จใฎใณใผใใไฝฟ็จใใฆใใ้ใใใใฏ็งใซใจใฃใฆๅฎๅ
จใซๆฉ่ฝใใฆใใพใใ
ๅใๅ้กใงใใใฌใผใคใผใฏๅ จ็ป้ข่กจ็คบใซใใใใจใใพใใใใใฌใผใคใผใฏๅฎ้ใฎ็ป้ขใใใๅคงใใใชใใพใใ
PlatformViewsController๏ผ16046๏ผ๏ผใตใคใบ๏ผ[2201ใ1080]ใฎไปฎๆณใใฃในใใฌใคใไฝๆใใใจใๅ้กใ็บ็ใใๅฏ่ฝๆงใใใใพใ๏ผhttps://github.com/flutter/flutter/issues/2897๏ผใใใใคในใฎ็ป้ขใตใคใบ๏ผ[2075 ใ1080]ใ
็ทจ้๏ผ
SafeAreaใๅ้คใใใจใๅ้กใไฟฎๆญฃใใใพใใใ
็ทจ้2๏ผ
SafeAreaใๅ้คใใฆใๅ้กใฏไฟฎๆญฃใใใพใใใงใใ:(
v7ใธใฎใขใใใใผใๅพใใใซในใฏใชใผใณใฏๆฉ่ฝใใชใใชใใพใใ ใณใณใใผใใณใใYoutubePlayerBuilderใงใฉใใใใพใใใใๅฝนใซ็ซใกใพใใใ ใใใฏใจใฉใผใญใฐใใใฎใใฎใงใ๏ผ
Tried calling: value #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) #1 _YoutubePlayerBuilderState.didChangeMetrics package:youtube_player_flutter/โฆ/widgets/youtube_player_builder.dart:58 #2 WidgetsBinding.handleMetricsChanged package:flutter/โฆ/widgets/binding.dart:538 #3 _rootRun (dart:async/zone.dart:1184:13) #4 _CustomZone.run (dart:async/zone.dart:1077:19) #5 _CustomZone.runGuarded (dart:async/zone.dart:979:7) #6 _invoke (dart:ui/hooks.dart:261:10) #7 _updateWindowMetrics (dart:ui/hooks.dart:64:3)
ใชใใใฎๅ้กใฏ่งฃๆฑบใใใใฎใงใใ๏ผ ็งใฏใพใ ใใฎๅ้กใๆฑใใฆใใพใ๏ผ241๏ผใณใกใณใ๏ผ
_YoutubePlayerBuilderState.didChangeMetrics
ใๅผใณๅบใใใใจใใซใชใใธใงใฏใใซ$๏ผnoSuchMethod
1 $๏ผ$ใใใใใใงใใ
MEใใ
ไปๆฅใ็งใฏใใฎใฉใคใใฉใชใyoutube_plyr_iframeใซ็ฝฎใๆใใพใใใ youtube_player_iframeใฎใใฉใผใฏใงใใใๆๆฐใฎ็ถๆ ใซไฟใใใใใใคใใฎไธป่ฆใชๅ้กใไฟฎๆญฃใใใฆใใพใใ ไบคๆใฏ้ๅธธใซ็ฐกๅใงใใฆใฃใธใงใใในใฟใใฏใใใฎใใซในใฏใชใผใณใๅซใใฆๆฉ่ฝใใพใใ
youtube_player_flutter8.0.0ใใผใธใงใณใฎๅใใใฐ
@sarbagyastha็งใฏใใชใใ้้ใใชใใใฎๅ้กใ่ชฟในใในใใ ใจๆใใพใใ ใใใซไผผใๅ้กใใใใใใใใพใใ
ใใใใใใซไฟฎๆญฃใใใใใจใ้กใฃใฆใใพใใ
youtube_player_flutter8.0.0ใใผใธใงใณใฎๅใใใฐ
็งใฏใพใฃใใๅใๅ้กใซ็ด้ขใใฆใใพใใ OSใใใฒใผใทใงใณใใผใไฝฟ็จใใฆใใใจใใซๅ้กใ็บ็ใใฆใใพใใ OSใใใฒใผใทใงใณใใธใงในใใฃใผใซ่จญๅฎใใใจใๅ้กใชใๅไฝใใพใใ
ใในใฆใฎใขใใใใผใ๏ผใ
็งใฏๅใๅ้กใซ็ด้ขใใฆใใพใใ
SystemChrome.setPreferredOrientations(DeviceOrientation.values);
ใไฝฟ็จใใชใใจใใใซในใฏใชใผใณใธใฃใณใใใใผใใฌใผใใซไฟฎๆญฃใใใพใใใใใใชใฏ็ป้ขใตใคใบใใใๅคงใใใชใใพใ๏ผใใจใใฐใใใใชใซๅญๅนใใใใๅญๅนใฎๅๅใๅ้คใใใฆใใพใ๏ผ
SystemChrome.setPreferredOrientations(DeviceOrientation.values);
ใไฝฟ็จใใชใใจใใใซในใฏใชใผใณใธใฃใณใใใใผใใฌใผใใซไฟฎๆญฃใใใพใใใใใใชใฏ็ป้ขใตใคใบใใใๅคงใใใชใใพใ๏ผใใจใใฐใใใใชใซๅญๅนใใใใๅญๅนใฎๅๅใๅ้คใใใฆใใพใ๏ผ
ๅใๅ้กใงใใใใฉใฎใขในใใฏใๆฏใๆๅฎใใฆใใใใใชใฏๅธธใซ็ป้ขๅ จไฝใซ่กจ็คบใใใพใใ SizedBoxใงใฉใใใใฆใๅฝนใซ็ซใกใพใใใ
ๆใๅ่ใซใชใใณใกใณใ
ใใใ็งใฏใฆใผใใฅใผใใใฌใผใคใผใใซใใผใฎไธญใซใฆใผใใฅใผใใใฌใผใคใผใๅ ใฟใพใใใใใใฆ็งใฏใใชใใฎใตใณใใซใณใผใใใไฝฟ็จใใพใใใใใใฆใใใฏ็งใซๅใใจใฉใผใไธใใพใใ
ใใซในใฏใชใผใณใใฟใณใใฏใชใใฏใใใจใ็ป้ขใไธ็ฌ้ปใๅกใใคใถใใใฆใใใๅ ใฎใใผใใฌใผใใขใผใใซใชใใYouTubeใใฌใผใคใผใไธๆๅๆญขใใพใใ