Forums » Alpha Release Candidate

Viewing Moving Images

(2 posts)
  • Started 8 months ago by patrickgmj
  • Latest reply from JeremyBoggs
  • This topic is closed
  • This topic is not a support question
  1. 8 months ago # | |

    I'm putting together an Omeka installation as a demo and exploration space for a Digital History course at University of Mary Washington. We're all exploring it together, and one person added a Moving Image item.

    It appears to be there in the archive directory, but there isn't a way to play/embed it in the page, or to download it. Am I missing a setup step either on the server or in omeka?

    Thanks much,
    Patrick Gosetti-Murrayjohn
    Instructional Technology Specialist
    University of Mary Washington

    BTW--the students and teacher are having a great deal of fun exploring this application!

  2. 8 months ago # | |

    Hi Patrick,

    There's a function in Omeka called display_files() that should play the movie file associated with an item. In your template, wherever $item is used, you can add this:

    <?php display_files($item->Files); ?>

    The display_files() function will create a download link if the file is anything except an image, movie, or audio file. If you'd prefer to make a download file for each file associated with your item, you can loop through your item's files and provide a download link using this code:

    <?php foreach ($item->Files as $file) {
    echo '<a href="'. file_download_uri($file). '" class="download-file">'. $file->original_filename. '</a>';
    } ?>

    Hope this helps!

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.