function convertVideoToGif(video)
    {
        // Create Gif thumbnail and set selected
        selectedThumbnail = createGifThumbnail();

        // Tell background to convert this video
        chrome.runtime.sendMessage({
            request: "convertVideoToGif",
            sourceURL: video.src,
            length: video.duration,
        });
        
        // Switch from recording to processing
        processingStartedInterfaceUpdate();
    }
// Create a gif from pre-existing video
Create a gif from pre-existing video
Create a gif from pre - existing video
function convertVideoToGif(video)
    {
        selectedThumbnail = createGifThumbnail();
        chrome.runtime.sendMessage({
            request: "convertVideoToGif",
            sourceURL: video.src,
            length: video.duration,
        });
        processingStartedInterfaceUpdate();
    }
function convertVideoToGif ( video ) { selectedThumbnail = createGifThumbnail ( ) ; chrome . runtime . sendMessage ( { request : "convertVideoToGif" , sourceURL : video . src , length : video . duration , } ) ; processingStartedInterfaceUpdate ( ) ; }
Create a gif from pre-existing video
Create a gif from pre - existing video
// Create Gif thumbnail and set selected // Tell background to convert this video // Switch from recording to processing