Пример #1
0
 def run(self):
     self.options['uri'] = 'http://player.vimeo.com/video/' \
         + self.arguments[0]
     self.options.setdefault('width', '425px')
     self.options.setdefault('height', '344px')
     self.options.setdefault('align', 'center')
     self.options.setdefault('border', '0')
     self.options.setdefault('allowfullscreen', 'true')
     return [iframe_flash_video('', **self.options)]
Пример #2
0
 def run(self):
     self.options['uri'] = 'http://player.vimeo.com/video/' \
         + self.arguments[0]
     self.options.setdefault('width', '425px')
     self.options.setdefault('height', '344px')
     self.options.setdefault('align', 'center')
     self.options.setdefault('border', '0')
     self.options.setdefault('allowfullscreen', 'true')
     return [iframe_flash_video('', **self.options)]
Пример #3
0
 def run(self):
     self.options['uri'] = 'http://www.youtube.com/embed/%s' % \
         self.arguments[0]
     self.options['thumbnail_uri'] = \
         'http://img.youtube.com/vi/%s/hqdefault.jpg' % self.arguments[0]
     self.options.setdefault('width', '425px')
     self.options.setdefault('height', '344px')
     self.options.setdefault('align', 'center')
     self.options.setdefault('border', '0')
     self.options.setdefault('allowfullscreen', 'true')
     return [iframe_flash_video('', **self.options)]
Пример #4
0
 def run(self):
     self.options['uri'] = 'http://www.youtube.com/embed/%s' % \
         self.arguments[0]
     self.options['thumbnail_uri'] = \
         'http://img.youtube.com/vi/%s/hqdefault.jpg' % self.arguments[0]
     self.options.setdefault('width', '425px')
     self.options.setdefault('height', '344px')
     self.options.setdefault('align', 'center')
     self.options.setdefault('border', '0')
     self.options.setdefault('allowfullscreen', 'true')
     return [iframe_flash_video('', **self.options)]