Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6373579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:22:53+00:00 2026-05-25T01:22:53+00:00

I created a video hosting site I would like to create a form on

  • 0

I created a video hosting site
I would like to create a form on my site where you post the youtube embed code and the video is played in jw player on my site and gets added to playlist, what should I look for to create such form?

EDIT:

@Marc B:

okay sir, is there any tutorials out there or anything just to see how it works? I mean how to create the form? I have no problem using youtube player lol 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:22:54+00:00Added an answer on May 25, 2026 at 1:22 am
    <?
    $yt_video = "http://www.youtube.com/watch?v=AfgdUfDgCq8"; //OR   $yt_video = $_GET['id']; // http://www.youtube.com/watch?v=AfgdUfDgCq8
    
    if (preg_match('%(?:youtube\.com/(?:user/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $yt_video, $match))
     {
    
    /* regex works with:
        
        
        
        http://www.youtube.com/?v=dQw4w9WgXcQ
        
        http://www.youtube.com/e/dQw4w9WgXcQ
        http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ
        
        http://www.youtube.com/?feature=player_embedded&v=dQw4w9WgXcQ
    */
    
    $jw = <<< EOF
    
    <script type='text/javascript' src='jwplayer.js'></script>
    
    <div id='mediaspace'>This text will be replaced</div>
    
    <script type='text/javascript'>
      jwplayer('mediaspace').setup({
        'flashplayer': 'http://player.longtailvideo.com/player.swf',
        'file': '{$yt_video}',
        'controlbar': 'bottom',
        'width': '470',
        'height': '320'
      });
    </script>
    EOF;
    
    echo $jw;
    
    }else{ 
    echo "invalid youtube video";    
    }
    ?>
    

    Download jwplayer and change player.swf and jwplayer.js locations. GL 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a photo/video capture application. I have created a CaptureView
I created a site with an embedded Youtube video. Now I want to create
I've created subtitles for a video in mp4 format, that i would like to
I created a flash video player using Flash CS3. I exported the player to
Let's say that I created a video with something like Camtasia and saved it
I have created a gallery view and I want to display video (like any
I have created a player that loads video FLV files and plays them in
Hi i have created the following ckeditor plugin to insert a youtube video: (function()
I have created a FLV video player using the AS3 flash.media.Video object (not the
I've created drop down menus using CSS and I have a YouTube video placed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.