Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    May 18, 2012 @ 12:13
    Fuji Kusaka
    0

    Video listing

    Hi Guys,

    Anyone can point out what will be the best way of Uploading Videos in Umbraco?

    Since this is an intranet system, the client doesn't want to give accesss to YouTube, but would rather have all the videos on the local server. What am not sure of is how to display the list of Videos, for sure some of them needs to be optimized but most important .

    Any suggestions?

    //fuji

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 18, 2012 @ 13:38
    Tom Fulton
    0

    I like using YouTube, there's a great package called uTube with some nice integration features.

    Another option if you want to keep everything local is to use the Universal Media Picker with the File System provider - that way your users can just dump their videos to a folder on the network and they'll be available for choosing within Umbraco.  This eliminates long upload times etc.

    Otherwise you can always use the Media library with a custom media type, and treat it just like an image gallery :)

    As far as optimization I'm not sure how you could do that without writing some custom code

    -Tom

  • Anthony Candaele 1197 posts 2049 karma points
    May 18, 2012 @ 13:42
    Anthony Candaele
    0

    Hi fuji,

    I lately created a video gallery using the Digibiz Advanced Media Picker to select video files from the Media Library and Flowplayer to play the Flash videos in the browser.

    You can read more about this in this post: http://our.umbraco.org/forum/using/ui-questions/31325-how-to-build-a-video-gallery

    hope this helps,

    Anthony

  • Fuji Kusaka 2203 posts 4220 karma points
    May 18, 2012 @ 14:29
    Fuji Kusaka
    0

    Hi Guys,

    Thanks to both of you for the sugggestions. Well for some reason i cant use YouTube since they dont have any internet access.  

    The Video gallery is for an intranet used on a local server only.

    My best shot will be to either use Universal Media Picker or Digibiz Advanced Media Picker. 

    @Tom All my videos files are of video.wmv so i think i will need to convert them to flv.

    @Anthony I had a look at your post but have you been able to display the videos? the solution is not marked as solved there.

    //fuji

  • Anthony Candaele 1197 posts 2049 karma points
    May 18, 2012 @ 14:39
    Anthony Candaele
    1

    @fuji yes I did, the Razor code for my video list looks like this:

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @using umbraco.MacroEngines
    @{
        var videos @Model.Children.Where("Visible");    
    }
    @foreach (var itemgroup in videos.InGroupsOf(3))
      {    
            <div style="float:left;clear:right;margin-right:10px;margin-left:10px;margin-top:10px;margin-bottom:5px;">
            @foreach (var video in itemgroup)
            {
               
               var videothumbnail video.videoThumbnail.mediaItem.VideoImage;              
               <div style="float:left;margin-left:10px;margin-top:10px;margin-bottom:5px;">
                 <href="@video.Url">
                  <img src="/[email protected]&amp;width=200&amp;height=150" style="margin-right:10px;margin-bottom:5px;" />
                 </a>
                 <p><strong>@video.videoTitle</strong><br />
                 Length@video.videoDuration</p>
               </div>
                                   
            }
            </div>  

    I use the .InGroupsOf() function to have 3 video thumbnails in a row

    The result is this:

    Now just need to implement a pager

    greetings,

    Anthony

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 18, 2012 @ 14:49
    Tom Fulton
    1

    Looks nice Anthony!

    @Fuji - I think Flowplayer and the likes will play most formats these days, including WMV.  Since you're on an intranet maybe optimization/conversion won't really be a big issue since you're all on the same LAN.

  • Anthony Candaele 1197 posts 2049 karma points
    May 18, 2012 @ 14:55
    Anthony Candaele
    0

    @ Tom, thanks, I followed the example of the Umbraco.TV video gallery: http://umbraco.com/help-and-support/video-tutorials.aspx

    Maybe I'll also implement the hover-effect. I guess they have done this with a .css opacity definition, and maybe later on I'll implement the category filter.

    greetings,

    Anthony

  • Fuji Kusaka 2203 posts 4220 karma points
    May 21, 2012 @ 11:32
    Fuji Kusaka
    0

    Hi Anthony,

    Thanks for the response and help on this. What i did to start with is

    1. Create a new Media Type Alias Videos with some properties like Upload, umbracoBytes and umbracoExtension.

    2. New Custom Data Type Digibiz Advanced Media Picker .

    Aas mentioned in my previous threat i have huge files to upload through the backoffice of umbraco. Some of my videos are 13mb and even 200mb which takes a while to upload.

    Am not sure if using this approach will be best for me.

    //fuji

  • Anthony Candaele 1197 posts 2049 karma points
    May 21, 2012 @ 11:40
    Anthony Candaele
    0

    Hi fuji,

    This is something I possible will have to deal with also as my video library gets bigger and bigger. I think ideally the videos should be pulled in from an external source like Vimeo or Youtube, but I didn't figure out yet how to pull this off :)

    greetings,

    Anthony

  • Fuji Kusaka 2203 posts 4220 karma points
    May 21, 2012 @ 11:48
    Fuji Kusaka
    0

    Hi Anthony,

    I did try your suggestion, but somehow i couldnt  get large files of more than 9mb uploaded through the backoffice of umbraco.

    What am thinking if since this is an intranet is to upload the files in a folder in the root of umbraco.  So something like Video (folder) name and allow only the admin to ftp in this folder.

    Then just create a new document type under which i will have a textstring where i will add the path of the video which will allow user to view the videos.

    //fuji

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 21, 2012 @ 12:04
    Jeroen Breuer
    0

    If you can't upload files larger than 9mb you should look at the maxRequestLength attribute in the httpRuntime element in the web.config. There you can configure the max size of your upload files.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    May 21, 2012 @ 12:08
    Fuji Kusaka
    0

    Hi Jeroen,

    Yes but how would i upload 100mb?? :(

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    May 22, 2012 @ 15:03
    Fuji Kusaka
    0

    Hi Jeroen,

    Am using the Digibiz Advanced instead to create the thumbnails images and so enabling the user to Cropper the images but am not sure how this is working.

    I have created a new customData Type and for the Display Options am not sure "Do i need to create a custom Image Cropper" to make this work?

    Using razor how do i get to display the cropped image? right now am doing this 

    <img src="@vids.videoThumbnails" />  and am getting an Id 2552 instead.

    //fuji

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 22, 2012 @ 15:10
    Jeroen Breuer
    0

    You don't need to set a cropper alias or name. That's just for the preview in the backend, but it's optional.

    In this Razor file you can find some examples on how to get the cropped image: http://damp.codeplex.com/SourceControl/changeset/view/86116#1970702.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    May 22, 2012 @ 16:44
    Fuji Kusaka
    0

    I tried the classic way and still not getting the cropped image, from the source view this is what am getting

    <img src="2554" title="">
  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 22, 2012 @ 16:45
    Jeroen Breuer
    0

    Could you past part of your Razor code and also the DAMP xml (which can be found in umbraco.config). 

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    May 22, 2012 @ 17:01
    Fuji Kusaka
    0
    @inherits umbraco.MacroEngines.DynamicNodeContext
    @using umbraco.MacroEngines
    @using DigibizAdvancedMediaPicker;


    @{
          var videos = Model.NodeById(2519);
          var items = videos.Children.OrderBy("createDate descending").Take(5);
          dynamic media = Model.MediaById(Model.dampClassic);
      
          var counter = 0;
        
      
         foreach(var vids in items)
            {
            counter ++;  
              <ul class="videos">         
              <li><a href="@(vids.Url)?iframe=true&width=660&height=500"  rel="gal[video@(counter)]" title="@vids.Name">@vids.Name</a></li>
             
               @if(String.IsNullOrEmpty(@vids.videoThumbnails.ToString()) == false){
                <img src="@vids.videoThumbnails" title="@vids.Name"/>
                <img src="@media.umbracoFile" alt="@media.nodeName"/>
                                                                                    
                }
            
              else{
                     @:No preview
              }
             
              <li><i>@vids.CreateDate.ToString("dd MMMM yyy")</i></li>
              <li class="videoDesc">@Library.Truncate(@Library.StripHtml(vids.videoDescription), 100)</li>
             <li class="videoMore"><a href="@(vids.Url)?iframe=true&width=660&height=500" rel="gal[Viewvideo@(counter)]">view video &#187;</a></li>
             </ul> 
             }
       
     }

    This is actually the only thing i can see from the section am working on in the umbraco.config.

    <videoThumbnails>2554</videoThumbnails>


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 22, 2012 @ 18:12
    Jeroen Breuer
    0

    Could you also show part of your Umbraco tree and the xml from the umbraco.config? Don't really understand what you're trying to do in your code.

    Jeroen

  • Fuji Kusaka 2203 posts 4220 karma points
    May 22, 2012 @ 20:57
    Fuji Kusaka
    0

    Hi Jeroen,

    Well i have a video gallery where the admin will be able to add the url of  the video after creating the node. My tree looks like this

    Video Gallery

    • Video 1
    • Video 2
    • Video 3

    Here what am trying to achieve is to give the admin the possibility to upload a thumbnail for each video. But somehow i need the images to be cropped first with the width of 106px and height 58px something like that.

    What i did is a created a new custom data type and added the cropping height and width there. In my document type i have a alias called videoThumbnails where i can direclty create my image and save it in the specific folder in the media section.

    Now in my razor script i would like to display the cropped image but not sure of how to get this done.

    //fuji

Please Sign in or register to post replies

Write your reply to:

Draft