Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > how to get a video thumbnail using RadAsyncUpload ?

Not answered how to get a video thumbnail using RadAsyncUpload ?

Feed from this thread
  • Rasheed avatar

    Posted on Feb 3, 2012 (permalink)

    hi
     
    i have a RadAsyncUpload which enables users to upload videos, i need to get thumbnails for each uploaded video, any help ?

    Reply

  • Bozhidar Bozhidar admin's avatar

    Posted on Feb 7, 2012 (permalink)

    Hello Rasheed,

    This feature is not supported by our controls. To get an image from a video file you would need some other external library. After you get the image, you can then show the image as a thumbnail, using this example as a reference:
    http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultcs.aspx 
     
    Kind regards,
    Bozhidar
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Rasheed avatar

    Posted on Feb 7, 2012 (permalink)

    thanks for your reply 
    i've implemented this scenario using ffmpeg utility and after getting the image i've used the Rad Rotator control.


    thank you 
    rasheed 

    Reply

  • Jhansi avatar

    Posted on May 9, 2012 (permalink)

    hello friends, 
    i am using html5 and JavaScript to upload the image using file API, it is working good Firefox but in chrome i am not getting the thumbnail of image, 
    my code is.......
    <style>
      .thumb {
        height: 75px;
        border: 1px solid #000;
        margin: 10px 5px 0 0;
      }
    </style>


    <input type="file" id="files" name="files[]" multiple />
    <output id="list"></output>


    <script>
      function handleFileSelect(evt) {
        var files = evt.target.files; // FileList object


        // Loop through the FileList and render image files as thumbnails.
        for (var i = 0, f; f = files[i]; i++) {


          // Only process image files.
          if (!f.type.match('image.*')) {
            continue;
          }


          var reader = new FileReader();


          // Closure to capture the file information.
          reader.onload = (function(theFile) {
            return function(e) {
              // Render thumbnail.
              var span = document.createElement('span');
              span.innerHTML = ['<img class="thumb" src="', e.target.result,
                                '" title="', escape(theFile.name), '"/>'].join('');
              document.getElementById('list').insertBefore(span, null);
            };
          })(f);


          // Read in the image file as a data URL.
          reader.readAsDataURL(f);
        }
      }


      document.getElementById('files').addEventListener('change', handleFileSelect, false);
    </script>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > how to get a video thumbnail using RadAsyncUpload ?
Related resources for "how to get a video thumbnail using RadAsyncUpload ?"

ASP.NET AsyncUpload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]