Related Topics


[Video CMS v4]add option to upload video when editing current videos?  (Read 1908 times) Print

1 2  All B


leen12  October 16, 2013, 05:47:21 PM

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

Logged
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


@Mario  October 16, 2013, 06:09:35 PM

You need a change video file/link option? Will do

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 16, 2013, 06:22:27 PM

yea thats exactly what i need,

thanks mario

Logged
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  October 22, 2013, 04:58:56 PM

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,

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


leen12  October 22, 2013, 05:09:03 PM

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

Logged
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  October 22, 2013, 05:14:39 PM

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,

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


@Mario  October 22, 2013, 05:14:57 PM

create a file called m.php
Code
$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.

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 05:19:40 PM

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


Logged
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


@Mario  October 22, 2013, 05:19:51 PM

I'm updating the admin to contain this to.

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


sanishan  October 22, 2013, 05:22:37 PM

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



What file? new or old?

Thanks,

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


@Mario  October 22, 2013, 05:23:54 PM

Does this work, if you replace stream.php (all code) with this:
Code
<?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.

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 05:27:16 PM

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,

Logged
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


leen12  October 22, 2013, 05:28:22 PM

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


Logged
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  October 22, 2013, 05:35:22 PM

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,



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


@Mario  October 22, 2013, 05:43:02 PM

May be stupid question, but did you clear cache in PHPVibe (Tools -> clean cache)?

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 05:44:45 PM

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,

Logged
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


@Mario  October 22, 2013, 05:49:59 PM

create a file called m.php
Code
$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?

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 05:56:41 PM

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



Logged
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


@Mario  October 22, 2013, 06:22:51 PM

what is the link to video?

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 06:26:58 PM


Logged
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  October 22, 2013, 06:28:39 PM

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.

Code
<?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.

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


@Mario  October 22, 2013, 06:32:08 PM

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]




Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 06:36:01 PM

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?

Logged
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


@Mario  October 22, 2013, 06:40:44 PM

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).

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


leen12  October 22, 2013, 06:42:01 PM

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

there is no embed code,

Logged
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