Glitchbone / CordovaYoutubeVideoPlayer

Play Youtube Videos in a native Video Player on Android & iOS
MIT License
83 stars 133 forks source link

Code has error on DEPRECATED statements #12

Open rambabusaravanan opened 9 years ago

rambabusaravanan commented 9 years ago

I just added the plugin to my application (phonegap iOS)

$ cordova plugin add https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.git

and found the following errors on building the project

File: XCDYouTubeVideo.h Line: 37

XCDYouTubeVideoQualityHD1080 DEPRECATED_MSG_ATTRIBUTE("YouTube has removed 1080p mp4 videos.") = 37,

Error 1: Parse Issue Missing ',' between enumerators @[....QualityHD1080(here) DEPRECATED....] Error 2: Parse Issue Expected '}' @[....videos.") = 37,(here)]


I just made the line as

XCDYouTubeVideoQualityHD1080 = 37,

but found error on another file

File: XCDYouTubeVideoPlayerViewController.h Line: 107, 108, 109, 110, 111 (same error) Error: Parse Issue Expected ';' after top level declarator @[....Notification(here) DEPRECATED....]