I want to play YouTube video with json file in my application but it is not. Help !!
My Codes :
// Json file
[
{
“isim”: “Video İsmi”,
“video”: “JWcr4TwcupA”,
“resim” : “http://thevideoanalyst.com/wp-content/uploads/2016/05/video-conference.jpg”
},
{
“isim”: "Video ismi 2 ",
“video”: “JWcr4TwcupA”,
“resim” : “http://thevideoanalyst.com/wp-content/uploads/2016/05/video-conference.jpg”
},
{
“isim”: “Video ismi 3”,
“video”: “Wcr4TwcupA”,
“resim” : “http://thevideoanalyst.com/wp-content/uploads/2016/05/video-conference.jpg”
}
]
// APP JS
.controller('VideoCtrl', function ($scope, $http){
$http.get('http://sanalaraf.com/boluspor/video.json').success(function(data){
$scope.item = data;
});
// Video List
<a ng-repeat="i in item" class="item item-thumbnail-left" ng-click="login1()">
<img src="{{i.resim}}"/> //WORK
<h2>{{i.isim}}</h2> //WORK
</a>
</div>
// Modal Login1 ()
<iframe width="100%" src="http://www.youtube.com/embed/{{i.video}}" frameborder="0" allowfullscreen></iframe> // NOT WORK
But not working youtube video for ionic app.
HELP ME !!