VideoHelp Forum




+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 71 of 71
  1. Originally Posted by WhatWebVideoPlayer? View Post

    Before I will start adding new videos, I will try to find some simple interface so that selected singers (after I tell them a password) could be adding their videos by themself...
    I guess this topic is for a new Thread I will post...
    Quote Quote  
  2. _Al_ :


    I've found that code for uploading videos !!!

    SEE these links/video:

    http://www.youtube.com/watch?v=ZlL-ZcPO1j8
    http://pastebin.com/YZwW8qpk

    I just don't know where and what I should replace so that it can work for the addresses of my folders. Please, can you help? I already am near to the happy end of my work! Just two steps!


    1. <?php
    2. $dbhost = 'localhost';
    3. $dbname = ''; //db name
    4. $dbuser = ''; //user
    5. $dbpass = ''; // pass
    6. mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
    7. mysql_select_db($dbname) or die(mysql_error());
    8. $ftp_server=''; //serverip
    9. $conn_id = ftp_connect($ftp_server);
    10. $userf="";//ftp user
    11. $passwd=""; // ftp pass
    12. $login_result = ftp_login($conn_id, $userf, $passwd);
    13. if ((!$conn_id) || (!$login_result)) {
    14. echo "FTP connection has failed!";
    15. echo "Attempted to connect to $ftp_server for user $ftp_user_name";
    16. die;
    17. } else {
    18. }
    19. if(isset($_POST['vid_name'])){
    20. ftp_chdir($conn_id, "CHANGE TO UPLOAD DIR");
    21. //echo ftp_pwd($conn_id);
    22. $dest = $_FILES["vid"]["name"];
    23. $filep = $_FILES["vid"]["tmp_name"];
    24. $type = $_FILES["vid"]["type"];
    25. $upload = ftp_put($conn_id, $dest, $filep, FTP_BINARY) or die("Error");
    26. $name = $_POST['vid_nanme'];
    27. $code = '
    28. <div id="mediaspace">This text will be replaced</div>
    29. <script type="text/javascript">
    30. jwplayer("mediaspace").setup({
    31. "flashplayer": "player.swf",
    32. "file": "vid/' . $dest . '",
    33. "controlbar": "bottom",
    34. "width": "470",
    35. "height": "320"
    36. });
    37. </script>';
    38. mysql_query("INSERT INTO vid_detail (name, code) VALUES ('$name', '$code')") or die(mysql_error());
    39. header("location:index.php");
    40. }
    41. <html>
    42. <head>
    43. <script type='text/javascript' src='jwplayer.js'></script>
    44. <title>Video Uploader</title>
    45. </head>
    46. <body>
    47. <h1>Video Uploader</h1>
    48. <form method='post' enctype='multipart/form-data'>
    49. Name:<input type='text' name='vid_name'><br />
    50. Video: <input type='video' name='vid'><br />
    51. <input type='submit'>
    52. <hr />
    53. <h3>View Videos</h3>
    54. <?php
    55. $result = mysql_query("SELECT * FROM vid_detail");
    56. while($row = mysql_fetch_array($result)){
    57. $name = $row['name'];
    58. $vid_code = $row['code'];
    59. echo'<h3>' . $name . '</h3><br />' . $vid_code . '<br />';
    60. }
    61. </body>
    62. </html>


    LOGIN page:
    http://3owl.com/login

    EMAIL:
    singing3010@gmail.com

    PASSWORD of my website:
    bbbbbbbb2 (8 times "b" plus: "2")

    PASSWORD of the File Manager / domain:
    dddddddd (8 times: "d")


    P.S. I removed that public playlist and HD option, and changed size of the player:
    http://singingtv.3owl.com/
    Last edited by WhatWebVideoPlayer?; 11th Nov 2012 at 16:24.
    Quote Quote  
  3. you have to fill in your database name , login name and pasword, you fill it in here, you replace "FILL IN" with your correct text strings:
    Code:
    $dbhost  = 'localhost';    
    $dbname  = 'FILL IN'; //db name
    $dbuser  = 'FILL IN';  //user
    $dbpass  = 'FILL IN';  // pass
    never worked myself with mysql

    then you have to correct data for ftp login, again your ftp name and password :
    Code:
    $ftp_server='http://3owl.com'; //serverip
    $conn_id = ftp_connect($ftp_server);       
    $userf="singing3010@gmail.com";//ftp user
    $passwd="bbbbbbbb2"; // ftp pass
    then you have to fill in path to your directory in this line:
    Code:
    ftp_chdir($conn_id, "CHANGE TO UPLOAD DIR");
    I'm not sure what your path is , maybe:
    Code:
    ftp_chdir($conn_id, "/public_html/videos");
    but I'm not sure, maybe you have to get the whole server path

    then create new page and put it on your server or you can add this code (without jwplayer code) to your main page,

    BUT you still need to update your XML file, you have to add that item for just uploaded video to be part of your play list
    Quote Quote  
  4. That guy from that video, I suppose, he said, (at the end of his video), this code only is for uploading ONLY ONE video. Did I understand correctly or not? Here's his video:
    Watch at: 11:42
    http://www.youtube.com/watch?v=ZlL-ZcPO1j8
    Or does he mean not possible to upload multiple videos?

    If it is possible to upload only ONE video to be played, I am not interested in his code. Only one video to be played, is shit. If only ONE video can be played (not more videos to be uploaded, one after one), I have to continue looking for some other code.

    I found this one:
    http://www.longtailvideo.com/support/bits-on-the-run/15984/upload-videos-within-your-cms

    How ever, I do not know whether the codes on this link, are for "Bits on the Run". "Bits on the Run" is for money. If it is for "Bits on the Run", only, I cannot use it because I am not going to pay anything. But maybe we could use it for free. I don't know...
    Also, they are talking about "PHP API Kit." I do not know what it is... Also, I do not know what means: "API calls" and "CMS".
    Please, can you check it up this link?:
    http://www.longtailvideo.com/support/bits-on-the-run/15984/upload-videos-within-your-cms
    Will this one help us???
    Also, SEE this link:
    http://www.longtailvideo.com/support/bits-on-the-run/15985/update-video-properties-in-php
    I suppose they want money for this one ( = the registration for money... for: "API key/secret, CMS")
    Last edited by WhatWebVideoPlayer?; 13th Nov 2012 at 10:38.
    Quote Quote  
  5. You should read those pages through and even to google something, Bits on the run is paid service that longtail provides. You upload your video on their server , it generates code that you paste on your web site. You do not have a traffic, you do offer original to people not re-encoded file like YouTube for example but you pay for this.

    Regardless that tutorial posted before, I do not get what you want, You want people to upload one video at a time don't you? Why suddenly you want to upload hundreds at a time? But anyway you need to upload your playlist with each uploaded video.

    YOU HAVE TO find some php programer for this, you will not do it yourself.
    Quote Quote  
  6. Originally Posted by _Al_ View Post
    You should read those pages through and even to google something.
    Of course, I do so. I just ask questions because I am not sure whether I understood the texts correctly. I quite am a layman in this field. Sometimes I do not understand at all what they talk about

    Originally Posted by _Al_ View Post
    Bits on the run is paid service that longtail provides. You upload your video on their server , it generates code that you paste on your web site. You do not have a traffic, you do offer original to people not re-encoded file like YouTube for example but you pay for this.
    Yes, I know. I just do not know which codes for JWplayer we can use for free and which ones we cannot use for free because in the codes is included "Bits on the run". ...Or how to modify a code so as not to use "Bits on the run".

    Originally Posted by _Al_ View Post
    Regardless that tutorial posted before, I do not get what you want, You want people to upload one video at a time don't you? Why suddenly you want to upload hundreds at a time?
    Yes, I want people to upload one video at a time. I just am worried whether he means, the player will be playing ONLY ONE LAST uploaded video even though in the database would be already saved, for example, 10 videos. I hope he does NOT mean this! You know, I just am NOT sure what he means.

    Originally Posted by _Al_ View Post
    But anyway you need to upload your playlist with each uploaded video.
    I believe people could update the "XML playlist" AUTOMATICALLY by filling it in the "PUBLIC SAVING FORM".
    In such "PUBLIC SAVING FORM" would be:
    1) a password to activate the form and uploading process (For all the people would be one password that I will tell them.)
    2) Name of the uploading video
    3) LINK to their YouTube homepage (optional but NECESSARY for those singers who want to be supported by viewers)

    I really cannot be updating the "XML playlist" by myself for thousands and thousands of people. (I could not do anything else in my life ...only updating, updating 24 hours every day

    I believe, such "PUBLIC SAVING FORM" could already exist. Just to find it. Or some similar "PUBLIC SAVING FORM" that we could modify by adding some more / less lines. Such "PUBLIC SAVING FORM" usually is written in PHP. But there's a question whether such PHP could replace XML or/and AUTOMATICALLY forward the data from the PHP to XML. I believe I am not asking anything special. I believe such thing could exist because it is logical and useful. THIS LINK IS INTERESTING (THEY TALK ABOUT PICTURES BUT VIDEOS SHOULD BE SIMILAR):
    Saving form data into .xml with PHP:
    http://www.kirupa.com/forum/showthread.php?308107-Quick-Question-Saving-form-data-into-xml-with-PHP


    Saving html form data to xml in php:
    https://www.google.com/#hl=en&tbo=d&sclient=psy-ab&q=saving+html+form+data+to+xml+in+p...w=1440&bih=819

    If you mean the "PUBLIC PLAYLIST", I do not want it. I even removed it from the JWplayer. Have a look:
    http://singingtv.3owl.com/


    Originally Posted by _Al_ View Post
    YOU HAVE TO find some php programer for this, you will not do it yourself.
    Hmmm, it's hard thing to find some programer who would help me for free. But if I find the right codes, we could add/change some lines There're tons of tutorial codes on Internet. Just to find the right one.... Maybe this is the right one? (I still am NOT sure):


    1. <?php
    2. $dbhost = 'localhost';
    3. $dbname = ''; //db name
    4. $dbuser = ''; //user
    5. $dbpass = ''; // pass
    6. mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
    7. mysql_select_db($dbname) or die(mysql_error());
    8. $ftp_server=''; //serverip
    9. $conn_id = ftp_connect($ftp_server);
    10. $userf="";//ftp user
    11. $passwd=""; // ftp pass
    12. $login_result = ftp_login($conn_id, $userf, $passwd);
    13. if ((!$conn_id) || (!$login_result)) {
    14. echo "FTP connection has failed!";
    15. echo "Attempted to connect to $ftp_server for user $ftp_user_name";
    16. die;
    17. } else {
    18. }
    19. if(isset($_POST['vid_name'])){
    20. ftp_chdir($conn_id, "CHANGE TO UPLOAD DIR");
    21. //echo ftp_pwd($conn_id);
    22. $dest = $_FILES["vid"]["name"];
    23. $filep = $_FILES["vid"]["tmp_name"];
    24. $type = $_FILES["vid"]["type"];
    25. $upload = ftp_put($conn_id, $dest, $filep, FTP_BINARY) or die("Error");
    26. $name = $_POST['vid_nanme'];
    27. $code = '
    28. <div id="mediaspace">This text will be replaced</div>
    29. <script type="text/javascript">
    30. jwplayer("mediaspace").setup({
    31. "flashplayer": "player.swf",
    32. "file": "vid/' . $dest . '",
    33. "controlbar": "bottom",
    34. "width": "470",
    35. "height": "320"
    36. });
    37. </script>';
    38. mysql_query("INSERT INTO vid_detail (name, code) VALUES ('$name', '$code')") or die(mysql_error());
    39. header("location:index.php");
    40. }
    41. <html>
    42. <head>
    43. <script type='text/javascript' src='jwplayer.js'></script>
    44. <title>Video Uploader</title>
    45. </head>
    46. <body>
    47. <h1>Video Uploader</h1>
    48. <form method='post' enctype='multipart/form-data'>
    49. Name:<input type='text' name='vid_name'><br />
    50. Video: <input type='video' name='vid'><br />
    51. <input type='submit'>
    52. <hr />
    53. <h3>View Videos</h3>
    54. <?php
    55. $result = mysql_query("SELECT * FROM vid_detail");
    56. while($row = mysql_fetch_array($result)){
    57. $name = $row['name'];
    58. $vid_code = $row['code'];
    59. echo'<h3>' . $name . '</h3><br />' . $vid_code . '<br />';
    60. }
    61. </body>
    62. </html>
    Last edited by WhatWebVideoPlayer?; 13th Nov 2012 at 15:29.
    Quote Quote  
  7. You'd have web page with your songs ...
    The other web would have a function of uploading video and adding item into xml list. The access to that web page would be from just any button from your main page or you just give it only to whomever you want.

    That jwplayer in tutorial has nothing to do with your jwplayer on main page.That jwplayer on that uploading web page is not mandatory, as a matter of fact it doesn't have to be there, confirming of uploading might suffice, you really have to find some student. There are a lot of students that would help you.

    Remember if the access to upload a new video is public you will have unwanted videos there next day, you can count on that.
    Quote Quote  
  8. Originally Posted by _Al_ View Post
    Remember if the access to upload a new video is public you will have unwanted videos there next day, you can count on that.
    This is why that saving form has to have an "Uploading Password" (one, the same password for all the singers I know they really can sing and I know I can trust them. If any problem, I will change the password and I will let them know about the new password, by email from the list of contacts I do have on my YouTube channels. Simple.)

    Yes, I will try to find some PHP, XML, HTML student programmer. Do you know some webpage where they could be concentrated?
    Quote Quote  
  9. I replaced what you said:

    - my database name is: u558387591_upload ,
    - user name is: u558387591_uploa
    - pasword is: 12345678

    $dbhost = 'localhost';
    $dbname = 'u558387591_upload'; //WHAT TO WRITE HERE?????
    $dbuser = 'u558387591_uploa'; //u558387591_uploa
    $dbpass = '12345678';

    However I do not know what to replace where he has this word: "geeka934_mychat"

    You know, he has written in his video at: 06:16, this one:

    $dbhost = 'localhost';
    $dbname = "geeka934_youtube"; //geeka934_mychat
    $dbuser = "geeka934_tom"; //geeka934_tom
    $dbpass = 'LYceum98'; //

    Please, have a look at his video:
    http://www.youtube.com/watch?v=ZlL-ZcPO1j8
    Maybe you will understand it better than I did. To see the video is better because he wrote there the concrete example = his data.




    All the code, after I replaced the ones, is this:



    <?php
    $dbhost = 'localhost';
    $dbname = 'u558387591_upload';
    $dbuser = 'u558387591_uploa'; //u558387591_uploa
    $dbpass = '12345678';
    mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
    mysql_select_db($dbname) or die(mysql_error());
    $ftp_server='http://3owl.com'; //serverip
    $conn_id = ftp_connect($ftp_server);
    $userf="singing3010@gmail.com";//ftp user
    $passwd="bbbbbbbb2"; // ftp pass
    $login_result = ftp_login($conn_id, $userf, $passwd);
    if ((!$conn_id) || (!$login_result)) {
    echo "FTP connection has failed!";
    echo "Attempted to connect to $ftp_server for user $ftp_user_name";
    die;
    } else {
    }
    if(isset($_POST['vid_name'])){
    ftp_chdir($conn_id, "/public_html/videos");
    //echo ftp_pwd($conn_id);
    $dest = $_FILES["vid"]["name"];
    $filep = $_FILES["vid"]["tmp_name"];
    $type = $_FILES["vid"]["type"];
    $upload = ftp_put($conn_id, $dest, $filep, FTP_BINARY) or die("Error");
    $name = $_POST['vid_nanme'];
    $code = '
    <div id="mediaspace">This text will be replaced</div>
    <script type="text/javascript">
    jwplayer("mediaspace").setup({
    "flashplayer": "player.swf",
    "file": "vid/' . $dest . '",
    "controlbar": "bottom",
    "width": "470",
    "height": "320"
    });
    </script>';
    mysql_query("INSERT INTO vid_detail (name, code) VALUES ('$name', '$code')") or die(mysql_error());
    header("location:index.php");
    }
    <html>
    <head>
    <script type='text/javascript' src='jwplayer.js'></script>
    <title>Video Uploader</title>
    </head>
    <body>
    <h1>Video Uploader</h1>
    <form method='post' enctype='multipart/form-data'>
    Name:<input type='text' name='vid_name'><br />
    Video: <input type='video' name='vid'><br />
    <input type='submit'>
    <hr />
    <h3>View Videos</h3>
    <?php
    $result = mysql_query("SELECT * FROM vid_detail");
    while($row = mysql_fetch_array($result)){
    $name = $row['name'];
    $vid_code = $row['code'];
    echo'<h3>' . $name . '</h3><br />' . $vid_code . '<br />';
    }
    </body>
    </html>


    But, it does not work maybe because that beginning of this code I am talking about?

    P.S. In his video:
    http://www.youtube.com/watch?v=ZlL-ZcPO1j8
    He said at: 11:43
    "...You can only have one video DISPLAYED one at time..."
    He was not talking about how many videos we can UPLOAD at one time, but he was talking about how many videos we can have DISPLAYED at one time. Does he mean only one video can be played even though we will have uploaded many videos?


    I GUESS I HAVE TO HAVE A SETTINGS IN MySQL Database / PHP. BUT I DO NOT KNOW HOW TO WORK WITH IT, AT ALL.
    Last edited by WhatWebVideoPlayer?; 16th Nov 2012 at 15:45.
    Quote Quote  
  10. _Al_:

    I give it up.
    But thank you very much, anyway, for all your kind help!
    Quote Quote  
  11. _Al_:

    Even though I've gave it up that "uploading by singers", I am going to successfully finish my project. I already was going to start uploading many videos by myself. However I realized the number of viewing of singers's videos on my website will not be included in the number of viewing on YouTube. That's very pity!!! I realized I could help singers to get better number of viewing if their YouTube-videos will be embedded into the JWplayer on my website. Am I right? This way will be even simpler for me because I will not need uploading videos! I just will be pasting the URL links!

    Is it possible to simply paste videos' URL links into the XML code (myplaylist.xml) plus to make some changes in the HTML code (index.html)? If yes, please, can you insert the lines into this XML code (myplaylist.xml) and into this HTML code (index.html)? For example this video's URL:
    http://www.youtube.com/watch?v=yOxOHU-71FY&feature=plcp


    HTML code (index.html):

    <html>
    <head>
    <title>Videos</title>
    <script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
    </head>
    <h1>If you like any videos from the THOUSANDS of the videos you are watching now on this "singingTV" (Yes, you do like!!!), please, SUBSCRIBE TO THE SINGERS' CHANNELS ON YOUTUBE:
    1) Move cursor on the video
    2) Click on: "SHARE" (right-hand top corner),
    3) click on: "COPY" (in the middle of the video),
    4) Paste the link onto your browser in a NEW window,
    5) ENTER,
    6) Then click on: "SUBSCRIBE" on her channel.
    Thanks and ENJOY the beautiful singing!!!...NO commercial shits!!! Only nice and cool singing from the heart, only here on "singingTV" from THOUSANDS of the singing videos!!! </h1>
    <video id="container"></video>
    <script type="text/javascript">
    jwplayer('container').setup({
    'flashplayer': '/jwplayer/player.swf',
    'id': 'playerID',
    'width': '800',
    'height': '560',
    'file': '/videos/myplaylist.xml',
    'autostart': 'true',
    'shuffle': 'true',
    'repeat': 'list',
    'plugins': {
    'sharing-3': {}
    }
    });
    </script>
    </body>
    </html>




    XML code (myplaylist.xml):


    <rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/">
    <channel>
    <item>
    <title>Melinda Ademi Skyscraper by Demi Lovato (Cover)</title>
    <description></description>
    <jwplayer:file>/videos/Skyscraper.flv</jwplayer:file>
    <jwplayer: sharing.link>http://www.youtube.com/user/MelindaAdemi/featured</jwplayer: sharing.link>
    </item>
    <item>
    <title>me singing Crystal kay Flowers</title>
    <description></description>
    <jwplayer:file>/videos/Flowers.flv</jwplayer:file>
    <jwplayer: sharing.link>http://www.youtube.com/user/Kiyone/featured</jwplayer: sharing.link>
    </item>
    <item>
    <title>Michael Jackson I'll be there cover</title>
    <description></description>
    <jwplayer:file>/videos/Michael.flv</jwplayer:file>
    <jwplayer: sharing.link>http://www.youtube.com/user/MelindaAdemi/featured</jwplayer: sharing.link>
    </item>
    <item>
    <title>Bleeding Love (Cover) - Wandy Rafaela</title>
    <description></description>
    <jwplayer:file>/videos/Wandy.flv</jwplayer:file>
    <jwplayer: sharing.link>http://www.youtube.com/user/wandyrafaela</jwplayer: sharing.link>
    </item>

    </channel>
    </rss>

    If it is possible to keep the option of uploading videos, please, keep this option, as well.
    Last edited by WhatWebVideoPlayer?; 27th Nov 2012 at 15:51.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!