Last active
August 29, 2015 14:11
-
-
Save poteto/4ace93536b9dabf7513f to your computer and use it in GitHub Desktop.
provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default { | |
apiUrl: function(videoId) { | |
return '//gdata.youtube.com/feeds/api/videos/' + videoId; | |
}, | |
embedUrl: function(videoId) { | |
return '//www.youtube.com/embed/' + videoId; | |
}, | |
thumbnailUrl: function(videoId) { | |
return Ember.RSVP.resolve('//img.youtube.com/vi/' + videoId + '/maxresdefault.jpg'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment