0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

TypeError: Cannot read property 'playVideo' of null IOS #493

Open Biplovkumar opened 3 years ago

Biplovkumar commented 3 years ago

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 commented 3 years ago

plz have a look @0xced .