I am using Ionic and Angular to create a simple application. I am running locally using Ionics ionic serve command to set up a simple server.
this is my playlist.html code, where i'll be displaying my video:
<video ng-src="{{playlist.video}}" width="560" height="315"></video>
this is my controller.js which passes the url to playlist.html:
controller('PlaylistCtrl', function($scope, $stateParams) {
$scope.playlistSet = [
[
{ track: 'Iris', artist: 'Sleeping with the Sirens', video: 'www.youtube.com/watch?v=cyOqIKGbYkg'}
]
$scope.id = $stateParams.playlistId;});
When I run the playlist, the video doesnt appear. It gives me the error:
Cannot GET /www.youtube.com/watch?v=QBmTGlUmgpg
I have searched for the reason behind this error for the last couple hours unable to solve it. Hopefully someone has experienced the same issue and is able to help with a remedy.