This plugin allows you to start playback of the YouTube video – RS_YoutubePlayer.js

タイトル
This plugin allows you to start playback of the YouTube video
作者名
ヘルプ
In general, In Android Chrome and Mobile Safari, It doesn't automatically
start playback. and you can stop the video by clicking around the YouTube video.
This plugin will automatically end the video playback if you watches
the video until the end.

=============================================================================
Plugin Command
=============================================================================
- This plugin command will start playback of the YouTube video. Please enter
the URL as follows. If the Internet had not connected, It could have caused
the error.

YTPlayer play https://www.youtube.com/watch?v=C4ze-KCSxQY
YTPlayer play https://youtu.be/ycjhNtMia5s?t=310
YTPlayer play https://www.youtube.com/watch?v=ycjhNtMia5s&feature=youtu.be&t=1021

- Stop playback of the YouTube Video.

YTPlayer stop

=============================================================================
Script Calls
=============================================================================
Graphics.playYoutube("https://www.youtube.com/watch?v=C4ze-KCSxQY");
if(YTPlayer.isPlaying()) YTPlayer.stopVideo();
YTPlayer.isPaused();
YTPlayer.isBuffering();
YTPlayer.isEnded();

=============================================================================
Change Log
=============================================================================
2016.05.08 (v1.0.0) - First Release
2016.05.09 (v1.0.1) - Added Error Handler
2016.05.12 (v1.0.2) - Fixed a function that parses a URL.
2016.07.04 (v1.0.3) - Fixed a few logic about the range were converted to Rectangular object.
2016.10.06 (v1.0.4) - Added Canvas Filters.
2016.12.10 (v1.0.5) :
- Added a plugin parameter about video quality settings.
- Added the ability to play YouTube videos from a specified time.
2017.08.31 (v1.0.6) :
- Added a feature that the video size sets up with a fullscreen mode.
- Added a feature that can set the video to loop
2018.01.08 (v1.0.7) :
- Now that The YouTube iframe will be newly created every times when playing back the video.
- Fixed the bug that is not available the function called YTPlayer.isEnded();
パラメータ
param Video Quality
desc highres, hd1080, hd720, large, medium, small
default : hd720
default hd720
type select
option highres
option hd1080
option hd720
option large
option medium
option small

param Size
type select
desc Specify the size of the default player.
default Normal
option Normal (560315px)
value Normal
option Fullscreen
value Fullscreen

param Looping
type boolean
desc Sets the video to loop or not.
default false
on Loop always
off Playback once

ライセンス表記
  • MIT License
The MIT License
Copyright (c) 2016 biud436
Free for commercial and non commercial use.

紹介ページ https://github.com/biud436/MV/blob/master/RS_YoutubePlayer.js