video_embed.yaml 1.3KB

12345678910111213141516171819202122232425262728
  1. ---
  2. embedTemplate: <object width="%2$s" height="%3$s" ><param name="movie" value="%1$s"></param><param name="wmode" value="transparent"></param><embed src="%1$s" type="application/x-shockwave-flash" wmode="transparent" width="%2$s" height="%3$s"></embed></object>
  3. defaultWidth: 425
  4. defaultHeight: 350
  5. services:
  6. youtube:
  7. urlPattern: youtube.com
  8. embedUrlTemplate: http://www.youtube.com/v/%1$s&rel=1
  9. thumbnailUrlTemplate: http://i.ytimg.com/vi/%1$s/default.jpg
  10. extractPattern: /youtube\.com\/(v\/|watch\?v=)([\w\-]+)/
  11. apiUrl: http://www.youtube.com/api2_rest
  12. defaultWidth: 425
  13. defaultHeight: 350
  14. google:
  15. urlPattern: video.google
  16. extractPattern: /docid=([^&]*)/i
  17. embedUrlTemplate: http://video.google.com/googleplayer.swf?docId=%1$s
  18. thumbnailUrlTemplate: http://video.google.com/videofeed?docid=%s
  19. thumbnailUrlExtractPattern: '/<media:thumbnail url="([^"]+)/'
  20. defaultWidth: 400
  21. defaultHeight: 326
  22. dailymotion:
  23. urlPattern: dailymotion.com
  24. embedUrlTemplate: http://www.dailymotion.com/swf/%1$s/
  25. thumbnailUrlTemplate: http://www.dailymotion.com/thumbnail/160x120/video/%1$s/
  26. extractPattern: '#/(video|swf)/([a-zA-Z0-9]+)[^a-zA-Z0-9]#'
  27. defaultWidth: 425
  28. defaultHeight: 350