"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

How to play video from Youtube using videoplayback

hi guys,

          i am following video playback sample (vuforia-sdk-ios-2-0-30) for iOS, its working great when i am playing local videos.Now i want to play video from  Youtube  for that i changed here:#ifdef EXAMPLE_CODE_REMOTE_FILE in the AppDelegate.mm file[player load:@"http://www.youtube.com/watch?v=TRQ5sIqti5M" playImmediately:NO fromPosition:VIDEO_PLAYBACK_CURRENT_POSITION];but it is not working!! How can  do this?ThanksSnehal. 

AlessandroB

Fri, 02/22/2013 - 08:25

Hi, you need your URL to point to an actual video file (for instance "http://videos/some_video.mp4");  Youtube URLs do not represent video files, as such they cannot be played.

This topic has been discussed here as well:

rachnasagar

Fri, 03/29/2019 - 09:33

In class VideoPlayBack there is a method onSingleTapConfirmed

put this code inside it and enjoy youtube or any link......