Safari Reference Library Apple Developer
Search

YouTube Links

The YouTube URL scheme is used to launch the YouTube application or connect to the YouTube website to play the specified video. If your application links to YouTube content, you can use this scheme to play videos from your application.

Unlike some schemes, YouTube URLs do not start with a “youtube” scheme identifier. Instead, they are specified as regular http links but are targeted at the YouTube server. The following examples show the basic strings you would use in Safari and in an application to show a YouTube video. In each example, you would need to replace the VIDEO_IDENTIFIER value with the identifier of the video you wanted to display:

iOS Note: If the YouTube video cannot be viewed on the device, iOS displays an appropriate warning message to the user.




Last updated: 2009-06-17

Did this document help you? Yes It's good, but... Not helpful...