brandly / brandly/angular-youtube-embed

How to make youtube player to stop on a particular time?

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

Description

I'm trying

``` javascript
$scope.youtubePlayer.seekTo(Number(part.start));
$scope.youtubePlayer.playVideo();
$scope.playerVars.end = Math.ceil(Number(part.end));
```

While my markup is:

``` html

```

So when the three lines of JS are triggered, video starts to play at proper second but it won't stop. It's true that at first `$scope.playerVars` equals to an empty object, but I think it should work that way.

I also tried a $watch on `getCurrentTime()` but didn't work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the youtube-video markup and the calls to seekTo(), playVideo(), playerVars.end, and getCurrentTime() shown in the issue. Reproduce the playback flow and determine why the player does not stop at the requested end time; done means playback reliably stops at that time.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend, web-dev
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.