Skip to content

Conversation

@muser1090
Copy link
Owner

<title>ভিডিও ডাউনলোডার</title> <style> body { font-family: Arial, sans-serif; margin: 20px; } .container { max-width: 600px; margin: 0 auto; text-align: center; } input[type="text"] { width: 80%; padding: 10px; margin: 10px 0; } button { padding: 10px 20px; background-color: #007BFF; color: white; border: none; cursor: pointer; } button:hover { background-color: #0056b3; } video { width: 100%; margin-top: 20px; } </style>

ভিডিও ডাউনলোডার

ডাউনলোড করুন
<script>
    function downloadVideo() {
        const videoUrl = document.getElementById('videoUrl').value;
        const videoPlayer = document.getElementById('videoPlayer');

        if (videoUrl) {
            // ভিডিও ডাউনলোড করার জন্য লিঙ্ক তৈরি করুন
            const downloadLink = document.createElement('a');
            downloadLink.href = videoUrl;
            downloadLink.download = 'downloaded_video.mp4';
            document.body.appendChild(downloadLink);
            downloadLink.click();
            document.body.removeChild(downloadLink);

            // ভিডিও প্লেয়ারে লোড করুন
            videoPlayer.src = videoUrl;
            videoPlayer.load();
            videoPlayer.play();
        } else {
            alert('দয়া করে একটি ভিডিও URL লিখুন।');
        }
    }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants