function changeSourceVid(src, type) {
  videoPlayerInstance.source({
    type: "video",
    sources: [
      {
        src: src,
        type: type
      }
    ]
  });
}
/**
 * changeSourceVid - Simple helper to change the plyr source from a youtube video to another
 * youtube video or to an S3 uploaded video.
 *
 * @param  {string} src  Location of the new video
 * @param  {string} type Type of the new video
 */
Simple helper to change the plyr source from a youtube video to another
youtube video or to an S3 uploaded video.

@param  {string} src  Location of the new video
@param  {string} type Type of the new video
Simple helper to change the plyr source from a youtube video to another youtube video or to an S3 uploaded video . @param { string } src Location of the new video @param { string } type Type of the new video
function changeSourceVid(src, type) {
  videoPlayerInstance.source({
    type: "video",
    sources: [
      {
        src: src,
        type: type
      }
    ]
  });
}
function changeSourceVid ( src , type ) { videoPlayerInstance . source ( { type : "video" , sources : [ { src : src , type : type } ] } ) ; }
changeSourceVid - Simple helper to change the plyr source from a youtube video to another
 youtube video or to an S3 uploaded video.
changeSourceVid - Simple helper to change the plyr source from a youtube video to another youtube video or to an S3 uploaded video .