This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useCallback } from 'react'; | |
import './App.css'; | |
import transformer from './transformer' | |
function App() { | |
const [videoSrc, setVideoSrc] = useState(''); | |
const handleTranscode = useCallback(async ({ target: { files } }) => { | |
// you can use range slider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see [Inspiration Source](https://www.geeksforgeeks.org/decode-the-string-encoded-with-the-given-algorithm/) | |
// JavaScriptSimpleEncoder => iSmtpplierEcnScaovdaeJr | |
const encodeString = (inputStr: string): string => { | |
const len = inputStr.length | |
if (!len) return inputStr | |
const isLenEven = len % 2 === 0 |