Skip to content

Commit

Permalink
Update youtube.js
Browse files Browse the repository at this point in the history
Changed `loadVideoById()` to `cueVideoById()` in `initYoutubePlayer()`
  • Loading branch information
hassankhan committed Dec 30, 2015
1 parent 1b74fb3 commit 3227c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ angular.module("info.vietnamcode.nampnq.videogular.plugins.youtube", [])

function initYoutubePlayer(url) {
if (ytplayer) {
ytplayer.loadVideoById({
ytplayer.cueVideoById({
videoId: getYoutubeId(url)
});
} else {
Expand Down

0 comments on commit 3227c5d

Please sign in to comment.