Youtube_player_flutter: [बग] पूर्ण स्क्रीन विकल्प काम नहीं कर रहा...

को निर्मित 1 जून 2020  ·  38टिप्पणियाँ  ·  स्रोत: sarbagyastha/youtube_player_flutter

मैंने इसे अपने एक आवेदन में लागू किया और पूर्ण स्क्रीन ने काम नहीं किया।
मैंने example/lib/main.dart में दिए गए उदाहरण स्निपेट की भी कोशिश की लेकिन वही लॉग हुआ

यह लॉग है

I/PressGestureDetector(5303): ORIENTATION_LANDSCAPE
W/libEGL (5303): EGLNativeWindowType 0x7204703010 डिस्कनेक्ट विफल रहा
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
एंड्रॉइड 8.0

सबसे उपयोगी टिप्पणी

हाँ, मैंने यूट्यूब प्लेयर को यूट्यूब प्लेयर बिल्डर के अंदर लपेटा है और मैंने आपके उदाहरण कोड का भी इस्तेमाल किया है और इसने मुझे वही त्रुटि दी है

जब मैं पूर्ण स्क्रीन बटन पर क्लिक करता हूं, तो यह स्क्रीन को कुछ सेकंड के लिए काले रंग से भर देता है और फिर अपने मूल पोर्ट्रेट मोड में पहुंच जाता है और यूट्यूब प्लेयर रुक जाता है

सभी 38 टिप्पणियाँ

क्या यह क्रैश हो रहा है या फ़ुलस्क्रीन पर स्विच नहीं कर रहा है?

नहीं, यह एप्लिकेशन को क्रैश नहीं करता है लेकिन यह पूर्ण स्क्रीन पर स्विच नहीं करता है .. त्वरित उत्तर के लिए धन्यवाद

क्या आप इस बारे में अधिक बता सकते हैं कि फ़ुलस्क्रीन मोड में स्विच करने पर वास्तव में क्या होता है? क्या आप अपने प्लेयर को YoutubePlayerBuilder के साथ लपेट रहे हैं?

हाँ, मैंने यूट्यूब प्लेयर को यूट्यूब प्लेयर बिल्डर के अंदर लपेटा है और मैंने आपके उदाहरण कोड का भी इस्तेमाल किया है और इसने मुझे वही त्रुटि दी है

जब मैं पूर्ण स्क्रीन बटन पर क्लिक करता हूं, तो यह स्क्रीन को कुछ सेकंड के लिए काले रंग से भर देता है और फिर अपने मूल पोर्ट्रेट मोड में पहुंच जाता है और यूट्यूब प्लेयर रुक जाता है

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 क्या आप डायलॉग पर वीडियो चला रहे हैं? क्योंकि मेरे साथ ठीक वैसा ही हुआ था जब मैंने डायलॉग से कोशिश की थी। वीडियो चलाने के लिए एक समर्पित लेआउट पर स्विच करने के बाद यह ठीक काम करता है। यहाँ मेरा कोड है:

'आयात' पैकेज: स्पंदन/material.dart ';
आयात ' पैकेज: youtube_player_flutter/youtube_player_flutter.dart ';

क्लास वीडियो व्यू स्टेटलेसविजेट का विस्तार करता है {
अंतिम स्ट्रिंग वीडियो आईडी;
वीडियो व्यू ({this.videoId});
@ ओवरराइड
विजेट निर्माण (बिल्ड कॉन्टेक्स्ट संदर्भ) {
YoutubePlayerController _controller = YoutubePlayerController(
प्रारंभिक वीडियो आईडी: वीडियो आईडी,
झंडे: YoutubePlayerFlags (
ऑटोप्ले: सच,
),
);
वापसी केंद्र (
बच्चा: YoutubePlayerBuilder (
प्लेयर: यूट्यूब प्लेयर (
नियंत्रक: _नियंत्रक,
// शोवीडियो प्रोग्रेसइंडिकेटर: सच,
), बिल्डर: (संदर्भ, खिलाड़ी) {
वापसी कॉलम (
बच्चे:[
खिलाड़ी,
],
);
},
),
);
}
}
`

@ vipinnegi90 नहीं, मैं यूट्यूब दिखाने के लिए एक संवाद का उपयोग नहीं कर रहा हूं और मैंने आपके कोड को भी आजमाया लेकिन यह काम नहीं किया और वही त्रुटियां फेंक दीं। क्या मेरे कोड के साथ कुछ है? लेकिन आईडी ने v7.xx को अपडेट करने से पहले पूरी तरह से काम किया, वैसे भी मैं इस मुद्दे को दूर करने के लिए एक विस्तृत लॉग टेक्स्ट चिपका रहा हूं।

संपादित करें 1: मैंने अभी देखा है कि इस त्रुटि का मेरे कोड से कोई लेना-देना नहीं है। मैंने एक नया स्पंदन प्रोजेक्ट बनाया और केवल flutter_youtube_player निर्भरता को जोड़ा और उदाहरणों में दिए गए कोड को कॉपी किया ताकि यह सुनिश्चित हो सके कि यह काम करता है लेकिन फिर से वही त्रुटि हो गई। मैंने इसे 2 अलग-अलग फोन में भी आजमाया।

ऑनर 9आई => एंड्राइड 8.0
आसुस जेनफोन मैक्सप्रो एम1 => एंड्रॉइड 9.0

@sarbagyastha कृपया इस मुद्दे को ठीक करें और अगर आपको मुझसे कोई और जानकारी चाहिए तो मुझे पिंग करें।


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 क्या आप कृपया इन एपीके के साथ परीक्षण कर सकते हैं?

@ सरबग्यस्थ हाँ यह पूरी तरह से काम करता है लेकिन जब मैंने उसी कोड की प्रतिलिपि बनाई और डीबग मोड में चलाने की कोशिश की तो यह क्यों काम नहीं किया?
एक नए प्रोजेक्ट में भी नहीं जिसमें सिर्फ youtube प्लेयर शामिल हो

कृपया एक प्रतिलिपि प्रस्तुत करने योग्य उदाहरण प्रदान करें ताकि मैं परीक्षण कर सकूं। लॉग में कुछ भी संदिग्ध नहीं दिख रहा था।

@AshutoshPatole आप किस स्पंदन संस्करण के साथ संकलन कर रहे हैं?

@vipinnegi90 स्पंदन1.17.2
डार्ट 2.8.3

@AshutoshPatole मेरा मानना ​​​​है कि यह v1.17.1 के लिए एक टाइपो है। v1.17.2 में अपग्रेड करें और कोशिश करें।

@सरबग्यस्थ

अद्यतन लॉग:
फ़ुल स्क्रीन बटन दबाने के बाद त्रुटि आती है

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 और डार्ट 2.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 0$#$ होता है।

@ vipinnegi90 हाँ समस्या ठीक हो गई है।

@rafaelmaeuer मेरे लिए youtube_player के साथ स्टैक का उपयोग करने से यह समस्या हुई।

@AshutoshPatole क्या उन्होंने स्टैक समस्या को ठीक किया? या यह इस प्लगइन का उपयोग करने की अभी एक सीमा है?

इस मुद्दे को बंद नहीं किया जाना चाहिए यहां तक ​​कि YoutubePlayerBuilder के साथ नमूना भी पूर्णस्क्रीन नहीं जाएगा। यह सिर्फ खिलाड़ी को काला कर देता है और उसी आकार का रहता है

मेरे लिए समस्या बनी रहती है, हालाँकि मैं स्टैक में खिलाड़ी का उपयोग नहीं कर रहा हूँ

@ एम्मेट-दीन मेरे साथ भी यही समस्या थी। लेकिन नई परियोजना (केवल नमूना कोड) में लागू होने पर नमूना कोड ठीक काम करता था। इसलिए मैंने ऐप के प्रवेश बिंदु को main.dart में प्लेयरस्क्रीन में बदल दिया और यह ठीक काम किया। फिर मैंने उस गतिविधि पर ध्यान केंद्रित किया जिसने प्लेयरस्क्रीन पर नेविगेट किया और समस्या को स्टैक विजेट में मिला। स्टैक विजेट का प्लेयरस्क्रीन से कोई लेना-देना नहीं था लेकिन मुझे नहीं पता था कि यह खिलाड़ी को पूर्ण आकार में बदलने से क्यों रोक रहा था।

संपादित करें: मैं आपको बताना भूल गया कि यह अब अपेक्षित रूप से काम कर रहा है

@आशुतोष पटोले , मैं भी इसी समस्या का सामना कर रहा हूं। सुनिश्चित नहीं है कि इसे कैसे ठीक किया जाए। मैंने कई बार उदाहरण कोड जोड़ने का प्रयास किया है।

मैं इस मुद्दे को फिर से खोल रहा हूं। चूंकि बहुत से लोग एक ही समस्या का सामना कर रहे हैं

मुझे लगता है कि मुद्दा डिवाइस के पक्षानुपात से संबंधित है। यह तभी बनी रहती है जब पक्षानुपात 16:9 से अधिक लंबा हो।

उदाहरण के लिए, जब मैं Redmi 3S (16:9 अनुपात) का उपयोग करता हूं तो मुझे कोई समस्या नहीं होती है। लेकिन एक बार जब मैं गैलेक्सी ए50 (19.5:9 अनुपात) का उपयोग करता हूं, तो यह पूर्ण स्क्रीन मोड को बंद कर देता है।

और जब मैं गैलेक्सी S8 का उपयोग करता हूं तो मुझे कोई समस्या नहीं होती है। लेकिन एक बार जब मैं 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 (टिप्पणी) ऐसा लगता है कि वस्तु पर noSuchMethod है जब _YoutubePlayerBuilderState.didChangeMetrics कहा जाता है।

मुझे

आज मैंने इस परिवाद को youtube_plyr_iframe से बदल दिया है। यह youtube_player_iframe का एक कांटा है जिसे बनाए रखा जाता है, अद्यतित किया जाता है और इसमें कुछ प्रमुख मुद्दे तय किए जाते हैं। प्रतिस्थापन काफी आसान है और यह विजेट-स्टैक से पूर्णस्क्रीन सहित, बस काम करता है।

youtube_player_flutter 8 0 0

youtube_player_flutter 8.0.0 संस्करण वही बग

@ सरबग्यस्थ मुझे लगता है कि आपको निश्चित रूप से इस मुद्दे को देखना चाहिए। मैं कुछ इसी तरह के कई मुद्दों को देखता हूं।
उम्मीद है कि यह जल्द ही ठीक हो जाएगा।

youtube_player_flutter 8 0 0

youtube_player_flutter 8.0.0 संस्करण वही बग

मैं ठीक उसी मुद्दे का सामना कर रहा हूं। समस्या तब हो रही है जब मैं ओएस नेविगेशन बार का उपयोग कर रहा हूं। अगर मैं ओएस नेविगेशन को इशारों पर सेट करता हूं, तो यह बिल्कुल ठीक काम करता है।

किसी भी अद्यतन?।
मैं एक ही मुद्दे का सामना कर रहा हूं।

SystemChrome.setPreferredOrientations(DeviceOrientation.values); का उपयोग न करने से पोर्ट्रेट में पूर्ण स्क्रीन कूदना ठीक हो जाएगा हालांकि वीडियो स्क्रीन आकार से बड़ा होगा (उदाहरण के लिए मेरे वीडियो पर उपशीर्षक है और मेरा आधा उपशीर्षक हटा दिया गया है)

Screenshot_1637127104

SystemChrome.setPreferredOrientations(DeviceOrientation.values); का उपयोग न करने से पोर्ट्रेट में पूर्ण स्क्रीन कूदना ठीक हो जाएगा हालांकि वीडियो स्क्रीन आकार से बड़ा होगा (उदाहरण के लिए मेरे वीडियो पर उपशीर्षक है और मेरा आधा उपशीर्षक हटा दिया गया है)

Screenshot_1637127104

एक ही समस्या, वीडियो हमेशा स्क्रीन को भरता है चाहे आप इसे कोई भी पहलू अनुपात दें। इसे साइजबॉक्स में लपेटने से कोई मदद नहीं मिलती है।

क्या यह पृष्ठ उपयोगी था?
0 / 5 - 0 रेटिंग्स