• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] add option to upload video when editing current videos?

Started by leen12,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

leen12Topic starter

hey mario

could  you possibly add an option to edit videos for admin only or something to upload videos in the edit section?

then if videos hosted else where get removed you can simply upload it instead of having to delete that video

just wondering as my most viewed video got removed so i got a copy and uploaded it via ftp as there was no option to replace the video or upload one,

i then set my link to the video but it still wont play

other videos uploaded work fine now
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishan

Quote from: leen12 on
yea thats exactly what i need,

thanks mario

As far as i tested..

You have to manually upload video in media directory

copy the name and into

localfile/yourfile-name.mp4

And add in it.

Don't add the full url in "Source (link)".

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12Topic starter

thanks for the reply sanishan

i alread tried that though,

my file soure is localfile/Jon-Jones-vs-Quinton-Jackson-Video-Full-Fight-UFC-135.mp4

im still getting the same problem though,

error loading media:
file could not be played
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishan

Quote from: leen12 on
thanks for the reply sanishan

i alread tried that though,

my file soure is localfile/Jon-Jones-vs-Quinton-Jackson-Video-Full-Fight-UFC-135.mp4

im still getting the same problem though,

error loading media:
file could not be played
Did you check the page source code?

Try to open link http://yoursite.com/strea.php.... if its start download then there is other problem involved.

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

Marius P.

create a file called m.php
$token = htmlspecialchars(base64_decode(base64_decode($_GET["file"])));
list($filename,$path) = explode('@@', $token);
$location= "http://www.videosqq.com/".$path."/".$filename;
echo $location;



get the link to the stream.php?yourcodedsfasdgfd
replace stream.php in the link with m.php , see the echo for location. See what's wrong.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

Quote from: sanishan on
Did you check the page source code?

Try to open link http://yoursite.com/strea.php.... if its start download then there is other problem involved.

Thanks,

hey yea when i go to that it starts to download the stream.php file

http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sanishan

Quote from: leen12 on
hey yea when i go to that it starts to download the stream.php file



What file? new or old?

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

Marius P.

Does this work, if you replace stream.php (all code) with this:
<?php
$token = htmlspecialchars(base64_decode(base64_decode($_GET["file"])));
list($filename,$path) = explode('@@', $token);
$location= "http://www.videosqq.com/".$path."/".$filename;
header("Location: $location");
?>



Put your own domain/url.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

great thanks mario i can wait for the update there is no real rush,

when we are on the subject of admin cp,
is there anyway to orgainize videos in sections as they are on the website like autos, fails and stuff,
i have a few auto imported videos in fights and need to remove them all as they are not related there is like 2 or 3 hundred though,

just looking for speed when moderating, updating and removing videos,
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

leen12Topic starter

it was the old stream.php file sanishan,

yea mario i did that but im not sure,
after that you mean just go to the video and see if it works?

if you do i got the same error

http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishan

Quote from: leen12 on
it was the old stream.php file sanishan,

yea mario i did that but im not sure,
after that you mean just go to the video and see if it works?

if you do i got the same error



NO.. i am talking about the video downloading is that download the OLD video or New Video?

What player are you using? is jwplayer or flowplayer?

Did you try the jwplayer wizard to debugging using
http://www.longtailvideo.com/jw-player/wizard/
with your real video path not the stream.php path.
http://yousite.com/meda/yourfile.mp4

Thanks,


Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

Marius P.

May be stupid question, but did you clear cache in PHPVibe (Tools -> clean cache)?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

emm well its the new one really because the origional video was hosted on youtube,

they then removed it so i downloaded it to try get it working again,

its jwplayer 6,
i went to http://www.viralwire.co.uk/media/Jon-Jones-vs-Quinton-Jackson-Video-Full-Fight-UFC-135.mp4

and it works,

lol yea i was thinking about that one mario, i have done it a few times,
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Quote from: @Mario on
create a file called m.php
$token = htmlspecialchars(base64_decode(base64_decode($_GET["file"])));
list($filename,$path) = explode('@@', $token);
$location= "http://www.videosqq.com/".$path."/".$filename;
echo $location;



get the link to the stream.php?yourcodedsfasdgfd
replace stream.php in the link with m.php , see the echo for location. See what's wrong.

What result had this?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

sorry i dont really understand that mario,

i made the file in root m.php and added the code,

i thought you meant to try load that after but no lol, it just shows the code

can you give some more intructions?

how do i get the link to stream.php how do i replace the link to stream.php with m.php


http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishan

Its look like its MIME problem.

Have change the stream code..

I have tested my self before this editing video was not working.. now its working for me..

I did not use the readfile
Just simple redirect the file.

<?php // physical path of your root
if( !defined( 'ABSPATH' ) )
    define( 'ABSPATH', str_replace( '\\', '/',  dirname( __FILE__ ) )  );
//full path to dir with video.
$token = htmlspecialchars(base64_decode(base64_decode($_GET["file"])));
list($filename,$pathx) = explode('@@', $token);
$path = ABSPATH.'/'.$pathx.'/';
$ext=str_replace('.','',strrchr($filename, "."));
$file = $path . $filename;
$content_len=@filesize($file);  
//header("Content-Description: File Transfer");
if(isset($_GET["type"])) {
$size = getimagesize($file); 
header('Content-Type:'.$size['mime']);
} else {
//    header("Pragma: public");
  //  header("Expires: 0");
//header("Content-type: video/".str_replace("ogv","ogg",$ext)."");  
//header("Accept-Ranges: bytes"); 
//header("Content-Disposition: attachment; filename=\"$filename\"");  
header("Content-Transfer-Encoding: binary"); 
//header("Content-Length: " . filesize($file)); 
}
if($content_len!=FALSE)  
{  
//header("Content-length: $content_len");  
} 
echo $pathx;
header("Location: http://192.168.30.129/$pathx/$filename");
//readfile($file);


Note: Change the "192.168.30.129" which you website link.

I don't know mario approve this but this work for me.
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

Marius P.

We should have started with this:

Quote
   jwplayer("video-setup").setup({         file: "localfile/Jon-Jones-vs-Quinton-Jackson-Video-Full-Fight-UFC-135.mp4",       /quote]



Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

hmm thanks for the help mario and sanishan,

so should i use sanishan code for this in the steam.php file or what way do i work it?
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

First of all, how is this video embeded?
You should have just added it to remote field with full path (simplest way), or add that to sql (not under embed or something).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

well i have the localfile link in the source and remote link,

there is no embed code,
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Similar topics (7)