brandly / brandly/angular-youtube-embed
How to make youtube player to stop on a particular time?
- 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