+ Reply to Thread
Results 61 to 71 of 71
-
_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!
- <?php
- $dbhost = 'localhost';
- $dbname = ''; //db name
- $dbuser = ''; //user
- $dbpass = ''; // pass
- mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
- mysql_select_db($dbname) or die(mysql_error());
- $ftp_server=''; //serverip
- $conn_id = ftp_connect($ftp_server);
- $userf="";//ftp user
- $passwd=""; // 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, "CHANGE TO UPLOAD DIR");
- //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>
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.
-
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
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
Code:ftp_chdir($conn_id, "CHANGE TO UPLOAD DIR");
Code:ftp_chdir($conn_id, "/public_html/videos");
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 -
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.
-
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. -
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
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".
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.
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/
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 linesThere're tons of tutorial codes on Internet. Just to find the right one....
Maybe this is the right one? (I still am NOT sure):
- <?php
- $dbhost = 'localhost';
- $dbname = ''; //db name
- $dbuser = ''; //user
- $dbpass = ''; // pass
- mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
- mysql_select_db($dbname) or die(mysql_error());
- $ftp_server=''; //serverip
- $conn_id = ftp_connect($ftp_server);
- $userf="";//ftp user
- $passwd=""; // 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, "CHANGE TO UPLOAD DIR");
- //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>
Last edited by WhatWebVideoPlayer?; 13th Nov 2012 at 15:29.
-
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. -
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? -
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 workmaybe 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.
-
_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.
Similar Threads
-
Youtube video capture with annotations
By loster in forum Video Streaming DownloadingReplies: 5Last Post: 3rd Jan 2012, 10:48 -
What is the best freeware player to play ISO images, mpeg, flv, etc
By avz10 in forum Software PlayingReplies: 0Last Post: 27th Jun 2010, 14:16 -
best option..media player to play streaming web video
By Canon GL-2 Guy in forum Newbie / General discussionsReplies: 1Last Post: 15th Jun 2009, 22:42 -
Complete Automation.... web-based interface?
By ab500 in forum DVD RippingReplies: 1Last Post: 17th Aug 2008, 12:46 -
Having a common interface for DVD, web site and BluRay?
By grendizer in forum Authoring (DVD)Replies: 3Last Post: 8th Jul 2008, 19:20