[ Video Sharing CMS v4 ] How to disable autostart from embed video ?

Started by magomed2000,

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

magomed2000Topic starter

Hi guys

How can i disable autostart of embedded videos?

When i embed my videos on other websites it begins tu play automatically.

Php vibe 3.4

Thank you
  •  

PHPVibe A.


magomed2000Topic starter

Hi Alexander

I tried with both oth them.
Uploaded and added from Youtube.
It begins te play when i open the page where i embedded it.
Is there any option in config of the player to don't let it play automatically on remote page?
  •  

magomed2000Topic starter

I mean Embedded video from our video site  to other site's.

If i want to embed my videos on  my friend's website, i add the iframe embed code, and his visitors see  it  without that they wanted it.
  •  

PHPVibe A.

Let me check and get back to you on this matter ( I haven't coded that part )!

magomed2000Topic starter

I found it  in  class.providers.php 

public function _jwplayer6 ($file,$thumb, $logo = null, $type=null) {............
......
....height . ',   repeat: "always",      aspectratio: "16:9",  autostart: "false",   width: "100%"';
But it turns  auto play in my site too,  i'm looking for possibility that the Auto start is disabled only for embed videos  on extern pages  not on my site.

Best regards
  •  

PHPVibe A.

In embed.php change:

//Print the embed code
echo  $embedvideo;



to


//Print the embed code
echo  str_replace('autostart: "true"','autostart: "false"',$embedvideo);

magomed2000Topic starter

I've just tested it and it WORKS.

thank you very much Alexander!

Now i'm gonna to find solution for 2 different logos   .  First one The large one for my site and little one for  the player.
I searched it in this forum but  didn't find
  •  

PHPVibe A.

Providers file , same function, 1 line under :)

logo: {         file: "'.$logo.'",  position: "bottom-left",  link: "'.site_url().'"    }


you can hardcode it till we add a separate one in next upgrade:

logo: {         file: "'.site_url().'mylogo.png",  position: "bottom-left",  link: "'.site_url().'"    }



or

logo: {         file: "http://www.mysite.com/link-to/mylogo.png",  position: "bottom-left",  link: "'.site_url().'"    }

magomed2000Topic starter

Thank you very much  for so quickly  response and the good answer for my question!
I'm very happy that i found your site and the great  product PHP VIBE!
  •  

PHPVibe A.

Thank you! We will have this in the admin panel with the next free upgrade.

Similar topics (7)