Confirmed users
971
edits
Line 15: | Line 15: | ||
The app exposes a "view" activity that third party apps can use to play videos. This activity accepts blobs of type video/webm, video/mp4 and video/3gpp. | The app exposes a "view" activity that third party apps can use to play videos. This activity accepts blobs of type video/webm, video/mp4 and video/3gpp. | ||
The "view" activity also accepts a type of video/youtube. In that case the data is a link to a YouTube page. The app will call a YouTube API using XHR to request links to the available streams for the video and then pick and play the most appropriate one. | The "view" activity also accepts a type of video/youtube. In that case the data is a (special "vnd.youtube:///") link to a YouTube page. The app will call a YouTube API using XHR to request links to the available streams for the video and then pick and play the most appropriate one. | ||
===Architecture=== | ===Architecture=== |