XCDYouTubeKit icon indicating copy to clipboard operation
XCDYouTubeKit copied to clipboard

TypeError: Cannot read property 'playVideo' of null IOS

Open Biplovkumar opened this issue 4 years ago • 1 comments

Pod File :- pod 'XCDYouTubeKit'

Package.json :- react-native-youtube": "^2.0.1", "react": "16.10.2", "react-native": "0.59.9",

Code :-

     try{
      YouTubeStandaloneIOS.playVideo(video-ID)
        .then(() => console.log('Standalone Player Exited'))
        .catch(err => console.log('errorMessage in you tub video :- ', err))
      }catch(error){
        console.log('Standalone Player Exited catch', error)
      }

HI, Greetings of the day. i had tried a lot with linking (Manually,Automatic) but same error coming from a day. i am stuck there. previously it is working fine but not working in ios 13.6/13.7 so i updated react-native-youtube version. but now it is not working. please help.

Biplovkumar avatar Sep 14 '20 10:09 Biplovkumar

plz have a look @0xced .

Biplovkumar avatar Sep 15 '20 04:09 Biplovkumar