{"action":"created","issue":{"url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/29","labels_url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/29/comments","events_url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/29/events","html_url":"https://github.com/compact/angular-bootstrap-lightbox/issues/29","id":100281785,"number":29,"title":"isVideo error when passing image name string","user":{"login":"irokhes","id":3803049,"avatar_url":"https://avatars.githubusercontent.com/u/3803049?v=3","gravatar_id":"","url":"https://api.github.com/users/irokhes","html_url":"https://github.com/irokhes","followers_url":"https://api.github.com/users/irokhes/followers","following_url":"https://api.github.com/users/irokhes/following{/other_user}","gists_url":"https://api.github.com/users/irokhes/gists{/gist_id}","starred_url":"https://api.github.com/users/irokhes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irokhes/subscriptions","organizations_url":"https://api.github.com/users/irokhes/orgs","repos_url":"https://api.github.com/users/irokhes/repos","events_url":"https://api.github.com/users/irokhes/events{/privacy}","received_events_url":"https://api.github.com/users/irokhes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T10:27:28Z","updated_at":"2015-08-15T07:19:34Z","closed_at":null,"body":"Hi,\r\n\r\nI'm starting to use the ligthbox, I tried to create a quick sample, passing the image url to the lightbox instead a complex object, but I'm getting and error with the function isVideo, trying to check the image.type. Does it mean that the image needs to be a complex object containing a type always?\r\n\r\nThanks!\r\n\r\nP.S great work!!"},"comment":{"url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/comments/131312090","html_url":"https://github.com/compact/angular-bootstrap-lightbox/issues/29#issuecomment-131312090","issue_url":"https://api.github.com/repos/compact/angular-bootstrap-lightbox/issues/29","id":131312090,"user":{"login":"compact","id":498501,"avatar_url":"https://avatars.githubusercontent.com/u/498501?v=3","gravatar_id":"","url":"https://api.github.com/users/compact","html_url":"https://github.com/compact","followers_url":"https://api.github.com/users/compact/followers","following_url":"https://api.github.com/users/compact/following{/other_user}","gists_url":"https://api.github.com/users/compact/gists{/gist_id}","starred_url":"https://api.github.com/users/compact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compact/subscriptions","organizations_url":"https://api.github.com/users/compact/orgs","repos_url":"https://api.github.com/users/compact/repos","events_url":"https://api.github.com/users/compact/events{/privacy}","received_events_url":"https://api.github.com/users/compact/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T07:19:34Z","updated_at":"2015-08-15T07:19:34Z","body":"No, I think I have fixed that error.\r\n\r\nIf you mean passing into `Lightbox.openModal()`, the first argument has to be an array of strings (urls) or objects.\r\n\r\nI made an update where you no longer have to configure the provider in order for the string urls to work. See [this demo](http://compact.github.io/angular-bootstrap-lightbox/demo4/index.html) for an example (ignore the fullScreenMode)."}}