triniwiz / triniwiz/nativescript-plugins
[nativescript-youtubeplayer] Cant't use binding context
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 87
- Forks
- 57
- Avg merge
- 1h 36m
- Merged PRs (30d)
- 4
Description
I have a ns angular application in which I show a RadListView of cards with a player.
When I insert the VideoId by hand I have no problems ... it loads all cards and players.
<GridLayout id="VideoContainer" rows="230" columns="*" >
<YoutubePlayer row="0" videoId="FCgxn8CuKb0" heigth="230" showinfo="0"></YoutubePlayer>
</GridLayout>

But if I try to bind the value of VideoId it loads the player but with the error An error occurred. Please try again later. (Playback ID: xxxxxxxxxxxx)
<GridLayout id="VideoContainer" rows="230" columns="*" >
<YoutubePlayer row="0" videoId="{{item.url_video}}" heigth="230" showinfo="0"></YoutubePlayer>
</GridLayout>

With a quick check I noticed that the html structure correctly reports the videoId values.

Did I miss something?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the nativescript-youtubeplayer component and compare the literal videoId binding with item.url_video in the RadListView template. Verify the bound IDs passed to each player and reproduce the playback error; done means cards using binding context load and play their videos.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100