brandly / brandly/angular-youtube-embed

Unable to embed this directive inside a colorbox

Open
#110 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
HTML
Stars
505
Forks
145
PR merge metrics
No merged PRs in 30d

Description

My page has a list of links to youtube videos. If the user clicks on a link I want to open it in a `jquery.colorbox`. The following does not work. The colorbox opens with nothing in it and the youtube video is loaded behind it and is not wrapped in the colorbox.

View
``

Controller
`$scope.$on('youtube.player.ready', function ($event, player) {
$(".youtube-video").colorbox({
open: true,
});
});`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided youtube-video markup and the youtube.player.ready handler that initializes jquery.colorbox. Inspect how the directive creates the YouTube player and how colorbox selects the element; done means the video appears inside the opened colorbox rather than loading behind it.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.