triniwiz / triniwiz/nativescript-plugins

[nativescript-youtubeplayer] Cant't use binding context

Open
#129 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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>
Schermata 2022-07-28 alle 01 58 16

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>
Schermata 2022-07-28 alle 01 56 48
With a quick check I noticed that the html structure correctly reports the videoId values.
Schermata 2022-07-28 alle 02 04 25

Did I miss something?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.