Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » New Feature: Audio and Video

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Go to End
Author Topic: 23586 Views
  • thrax
    Avatar
    Community Member
    32 Posts

    Re: New Feature: Audio and Video Link to this post

    Damn you beat me just came to delete the question

  • UncleCheese
    Avatar
    4085 Posts
  • lerni
    Avatar
    Community Member
    80 Posts

    Re: New Feature: Audio and Video Link to this post

    hi there

    just found a binary for people on shared hosting with no ffmpeg support. I had to "chmod +x" by moving it in the cgi-directory and set the path to it in _config.php linke this:

    FLV::set_ffmpeg_root('/home/customer/public_html/cgi-bin/binary/');

    http://bogdan.org.ua/tags/ffmpeg

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: New Feature: Audio and Video Link to this post

    Thanks a lot for the such amazing modules!

    I have a few questions regarding DataObjectManager:
    1. For example I would like to show second video from the files list (aka resources) on the sidebar. How can i get 1 of 20 files (aka resources)?
    2. How can I change video player from FLV to QuickTime? (sure it's not enough to change player name in shadowbox_init.js ?)
    3. I successfully generated video thumbnail, but how can i put video thumbnail in the player? I mean, if i genrate thumbnail - it's simply static image showing instead a video player. so, how can I use thumbnail in the player?

  • UncleCheese
    Avatar
    4085 Posts

    Re: New Feature: Audio and Video Link to this post

    1) I'm not sure what you mean. You want to apply different treatment to the second video?

    <% if Pos = 2 %>Do something else<% else %>Do the normal thing<% end_if %> ???

    2) The video features are FLV centered. If you upload Quicktime movies they will be converted to FLV.

    3) The video thumbnail is only good for the VideoPopup right now. I'm not sure if the player will allow you to set a static thumbnail image on its first frame.

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: New Feature: Audio and Video Link to this post

    Regarding 1 question - I mean here - how to get one file from the files list? for example I have uploaded 20 video files and want to display only third video file on the page sidebar. How can I get this file from the files list?

    Regarding FLV player - if I would like to use another FLV player (for example ccPlayer - http://ncam.wgbh.org/webaccess/ccforflash/ccplayermain.html ).

    Regarding video thumbnail - JW FLV Player have the preview image option - image (undefined): location of a preview image; shown in display and playlist. So if we can generate thumbnail, we should also have possibility to use it as preview image?

  • UncleCheese
    Avatar
    4085 Posts

    Re: New Feature: Audio and Video Link to this post

    If you want special treatment for one video, you usually use a HasOneDataObjectManager for something like that

    static $has_one = array ('SidebarVideo' => 'MyVideoObject');

    $f->addFieldToTab("Root.Content.Sidebar Video", new HasOneDataObjectManager(
    $this,
    'SidebarVideo',
    'MyVideoObject',
    // headings array...
    // etc..
    ));

    The on your template

    <% control SidebarVideo %>
    ... etc
    <% end_control %>

    You could also add a boolean to your video object for "show in sidebar" and then write function to just get those videos that have that checked. That would allow multiple videos if you ever wanted to do that.

    You're welcome to use a different FLV player. Just extend the FLV class to your own and you can overload the Player function.

    I'll look into the preview image. I don't know much about JWPlayer. I'm kind of learning as I go.

  • Webdoc
    Avatar
    Community Member
    329 Posts

    Re: New Feature: Audio and Video Link to this post

    How to set the video or audio to open in new window popup not ajax??

    23586 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.