By Melanie Monnington on Tuesday, 15 September 2015
Posted in General Issues
Replies 5
Likes 0
Views 482
Votes 0
Hi,

How do I get videos to display the full video automatically on a post rather than having the click the tile before you can see it? (Example Attached)

In the easy social example on the site under stream shows this as a function. (Example attached)http://stackideas.com/easysocial

Thanks
Hi Melanie,

Currently there is no setting to show the video player directly in your link's stream item. What you can do is to modify this file 'JOOMLA/media/com_easysocial/apps/user/links/themes/default/streams/preview.create.php' at line 33 ~ 36:


<a href="javascript:void(0);" class="stream-preview-image" data-es-links-embed-item data-es-stream-embed-player="<?php echo $this->html('string.escape', $oembed->html);?>">
<img src="<?php echo $oembed->thumbnail;?>" />
<i class="icon-es-video-play"></i>
</a>


to:


<div class="video-container"><?php echo $this->html('string.escape', $oembed->html);?></div>


The above will display the player directly when rendering the stream item.

Hope this help
Sam
·
Tuesday, 15 September 2015 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

This didn't work and instead showed the image attached.
·
Tuesday, 15 September 2015 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Melanie,

You need to remove the preceeding / from the image source because Joomla is adding this on the code that sam posted above.
·
Wednesday, 16 September 2015 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Please can you elaborate a little for me? I don't understand what you mean.

Thanks
·
Thursday, 17 September 2015 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Melanie,

Sorry for the confusion earlier. Please try to replace the attached file in: ../media/com_easysocial/apps/user/links/themes/default/streams/preview.create.php and see how it goes.
·
Thursday, 17 September 2015 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post