Jump to content


Photo
- - - - -

How to put the video in edit?


  • Please log in to reply
6 replies to this topic

#1 maK

maK

    Member

  • Members
  • PipPip
  • 39 posts
  • LocationBrazil

Posted 22 September 2016 - 01:40 PM

How to put a video on "edit" as in "view" and work even being on external server?
 
Anyone?
 

View Video:
OEz9dIv.png

 
 

Edit Video:
CuAPak1.png


Edited by maK, 22 September 2016 - 01:42 PM.

logo2.png


#2 dargre

dargre

    Senior Member

  • Members
  • PipPipPipPipPip
  • 991 posts

Posted 23 September 2016 - 08:47 PM

This is not video edit but video view.

Whatever, I believe that original multiserver plugin by AVS has option to list multi server links on edit and assign multi server video to view video small player.

Either you have the plugin from unknown source or it was not installed properly to the end.


VIDEO.JS - best HTML5 player in the world for AVS script

NUEVOPLAYER 8 - best flash+html5 player for video scripts
Mods, custom code by NuevoLab (Search Suggest, Multiple image upload, Seo mods,and much more)


#3 maK

maK

    Member

  • Members
  • PipPip
  • 39 posts
  • LocationBrazil

Posted 24 September 2016 - 02:10 AM

Yes, it is the original multiserver plugin, and yes, he list multi server links on edit and assign multi server video to view. But what i want is...

 

The same small player from "VIEW PAGE" on "EDIT PAGE".

 

I have added the small player from VIEW PAGE to EDIT PAGE, but only work with internal video files, videos from multi servers don't play.


Edited by maK, 24 September 2016 - 02:12 AM.

logo2.png


#4 dargre

dargre

    Senior Member

  • Members
  • PipPipPipPipPip
  • 991 posts

Posted 24 September 2016 - 02:14 AM

Understood.

So review admin view.php file and admin template videos_vew.tpl file to see how it is done and apply same to admin edit.php + videos_edit.tpl


Edited by dargre, 24 September 2016 - 02:31 AM.

VIDEO.JS - best HTML5 player in the world for AVS script

NUEVOPLAYER 8 - best flash+html5 player for video scripts
Mods, custom code by NuevoLab (Search Suggest, Multiple image upload, Seo mods,and much more)


#5 maK

maK

    Member

  • Members
  • PipPip
  • 39 posts
  • LocationBrazil

Posted 24 September 2016 - 04:06 AM

OK
I'll try

logo2.png


#6 dargre

dargre

    Senior Member

  • Members
  • PipPipPipPipPip
  • 991 posts

Posted 24 September 2016 - 12:19 PM

According to /siteadmin/modules/videos/view.php file do same in /siteadmin/modules/videos/edit.php

 

Video edit  info is extracted in line:

        $video = $rs->getrows();

To add multi server info, you must add some code above this line, so it looks like:

        $server          = $rs->fields['server'];
        $sd_filename     = $rs->fields['flvdoname'];
        $mobile_filename = $rs->fields['ipod_filename'];
        if ($server != '') {
            if ($sd_filename != '') {
                $sd_url = $server.'/flv/'.$sd_filename;
            } else {
                $sd_url = $server.'/iphone/'.$mobile_filename;
            }

            $smarty->assign('sd_url', $sd_url);
        }
        
        $video = $rs->getrows();

In template file "videos_edit.tpl" player code should be same as in "videos_view.tpl"


Edited by dargre, 24 September 2016 - 12:20 PM.

VIDEO.JS - best HTML5 player in the world for AVS script

NUEVOPLAYER 8 - best flash+html5 player for video scripts
Mods, custom code by NuevoLab (Search Suggest, Multiple image upload, Seo mods,and much more)


#7 maK

maK

    Member

  • Members
  • PipPip
  • 39 posts
  • LocationBrazil

Posted 24 September 2016 - 09:13 PM

worked perfectly.

 

Thx


logo2.png