Sunday, 15 March 2015

Media Vimeo

Download and install the following modules

  1. Media
  2. Media Internet Sources
  3. Media Vimeo
  4. enable Media Vimeo and its required Modules

Create a new content type where vimeo field will be attached

  1. enter admin page: admin/structure/types/add
  2. fill 'name' filed and save it
  3. enter admin page: admin/structure/types and click 'manage fields' of test vimeo
  4. add a field called 'test vimeo', choose 'File' as the FIELD TYPE and save the filed
  5. enter admin/structure/types/manage/test-vimeo/fields and click 'edit' of test vimeo
  6. Modify 'Allowed remote media types' and 'Allowed URI schemes' as the screenshot below
  7. enter admin/structure/types/manage/test-vimeo/display and change the FORMAT of test vimeo to 'rendered file'

Create a content of test vimeo content type

  1. enter admin/content, click 'add content' and then choose 'test vimeo' as content type
  2. click 'select media' button of 'test vimeo' field and paste the vimeo url of a video
  3. save the new content and view it

Notes

  1. Chrome bug: "SELECT MEDIA" and "REMOVE MEDIA" button can't be clicked

Enable vimeo JAVASCRIPT api (which allows us trace the embedded video)

  1. Go to D7 admin/config/media/file-types page
  2. Click the link 'manage file display' of Video
  3. Switch the bottom tab to 'Vimeo Video'
  4. Tick the check-box of 'Enable the Javascript API' and save the configuration
  5. Check a content page containing vimeo videos and notice the 'iframe' used for embedding the video. As a result, the vimeo 'player_id' which is the same as the 'iframe id' should be found in the html source code.



No comments:

Post a Comment