JOHN JOHNNNY

JOHN JOHNNNY

  • NA
  • 190
  • 140k

How to play youtube video from a url in json file

Apr 2 2018 7:34 PM
have benn searching online on how to play youtube video url from a json webservice in my app for example this my json file below
I know how to parse the rest of the key value pair but having dificulty parsing the key value pair of the youtube url i.e when the
user clicks recyclerview item it open youtubeview activity to play each videos

[
{
"id": "1",
"judul": "BANDUNG LEMBANG 3 HARI 2 MALAM",
"gambar": "https://www.youtube.com/watch?v=y60wDzZt8yg",
"harga": "Rp. 1.196.000"
},
{
"id": "2",
"judul": "BANDUNG CIWIDEY 3 HARI 2 MALAM",
"gambar": "https://www.youtube.com/watch?v=ANM-dq5USTc",
"harga": "Rp. 1.196.000"
},
{
"id": "3",
"judul": "BANDUNG COMPLETE 3 HARI 2 MALAM",
"gambar": "https://www.youtube.com/watch?V=pJC-vohDHl8",
"harga": "Rp. 1.454.750"
},
]

Kindly help

Answers (1)