Media Vimeo
Download and install the following modules
- Media
- Media Internet Sources
- Media Vimeo
- enable Media Vimeo and its required Modules
Create a new content type where vimeo field will be attached
- enter admin page: admin/structure/types/add
- fill 'name' filed and save it
- enter admin page: admin/structure/types and click 'manage fields' of test vimeo
- add a field called 'test vimeo', choose 'File' as the FIELD TYPE and save the filed
- enter admin/structure/types/manage/test-vimeo/fields and click 'edit' of test vimeo
- Modify 'Allowed remote media types' and 'Allowed URI schemes' as the screenshot below
- 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
- enter admin/content, click 'add content' and then choose 'test vimeo' as content type
- click 'select media' button of 'test vimeo' field and paste the vimeo url of a video
- save the new content and view it
Notes
- Chrome bug: "SELECT MEDIA" and "REMOVE MEDIA" button can't be clicked
Enable vimeo JAVASCRIPT api (which allows us trace the embedded video)
- Go to D7 admin/config/media/file-types page
- Click the link 'manage file display' of Video
- Switch the bottom tab to 'Vimeo Video'
- Tick the check-box of 'Enable the Javascript API' and save the configuration
- 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