brandly / brandly/angular-youtube-embed
Multiple players across multiple controllers and multiple ionic views?
- Dominant language
- HTML
- Stars
- 505
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
Sorry in advance for the long explanation.
I have an ionic project that uses the side menu starter template.
One of the "views" has a page that watches a video while information is displayed from a firebase based on current time.
I load the player using:
`
`
Another view has a different interface that allows the user to edit which information is displayed at different times. I've added fine and coarse controls that allow the user to rewind or seek.
I load the player using:
`
`
If I play the video in the player 2 and then open the other view with player 1, the $scope.currentTime being displayed in {{currentTime}} matches player 2 until I press play.
Ideally I'd like to separate the "now playing" associated functions and the "editor" functions into two controllers, since that seems to be the angular way. However, I can't figure out how to do that with this youtube wrapper.
Any advice in general for the direction I should go? Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two Ionic side-menu views with the two youtube-video instances, including player="custom.player", and observe how {{currentTime}} behaves after switching views. Read the wrapper's controller and directive usage guidance, then define completion as each view maintaining the correct player's time and controls independently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, firebase
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100