title: How to know if youtube video is available for mobile applications using youtube-v3-api
body: <p>I am creating a multi-platform mobile application using ionic/cordova + angular native tools, and have trouble playing embedded videos from YT inside my application. Message I get is: "Video is unavailable".</p>
  
  <p>I use youtube-v3-api for getting the video's info.</p>
  
  <p>When I use this request <a href="https://www.googleapis.com/youtube/v3/videos?id=AQ0IsWLhgSg&amp;part=status,contentDetails,player,recordingDetails&amp;key=MY_KEY" rel="nofollow noreferrer">https://www.googleapis.com/youtube/v3/videos?id=AQ0IsWLhgSg&amp;part=status,contentDetails,player,recordingDetails&amp;key=MY_KEY</a>`, I get response:</p>
  
  <pre><code>{  
     "kind":"youtube#videoListResponse",
     "etag":"\"DuHzAJ-eQIiCIp7p4ldoVcVAOeY/k5WZx2_B4W8ER6xZbSQP_bYl4dk\"",
     "pageInfo":{  
        "totalResults":1,
        "resultsPerPage":1
     },
     "items":[  
        {  
           "kind":"youtube#video",
           "etag":"\"DuHzAJ-eQIiCIp7p4ldoVcVAOeY/2mhCEDnY5JrztmP_hTBHBci7iqY\"",
           "id":"AQ0IsWLhgSg",
           "contentDetails":{  
              "duration":"PT5M37S",
              "dimension":"2d",
              "definition":"hd",
              "caption":"false",
              "licensedContent":false,
              "projection":"rectangular"
           },
           "status":{  
              "uploadStatus":"processed",
              "privacyStatus":"public",
              "license":"youtube",
              "embeddable":true,
              "publicStatsViewable":true
           },
           "player":{  
              "embedHtml":"\u003ciframe width=\"480\" height=\"270\" src=\"//www.youtube.com/embed/AQ0IsWLhgSg\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen\u003e\u003c/iframe\u003e"
           }
        }
     ]
  }
  </code></pre>
  
  <p>Even the parameter <strong>embedded</strong> is set to <strong>true</strong>, this video can not be played inside my mobile application (ionic/cordova - tested on android phones).</p>
  
  <p>What information here tells me that the specific video does not have the permission to be played on mobile? </p>
  
  <p>Can you please also help me how to know, based on this response, if YT video can or can not be embedded inside ionic+cordova native mobile application?</p>