-
AuthorPosts
-
nbiaux Friend
nbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 15, 2014 at 8:25 pm #200548Hi,
Wich parameters can i use if i want to display correctly a Youtube video ?
I cannot use button of template and cannot use the mask.Thank you.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 15, 2014 at 8:29 pm #546180Where are you wanting to display the video?
nbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 15, 2014 at 8:37 pm #546181I display my video in home page in a custom content module.
See an exemple here : http://lacsst.com/maboitedecom/i wrote :
<div class=”video-wrapper”><button class=”btn btn-play”><i class=”fa fa-play”></i></button> <button class=”btn btn-pause”><i class=”fa fa-pause”></i></button><div class=”mask”></div>
<iframe width=”420″ height=”315″ src=”//www.youtube.com/embed/AiRo3XgD8zM?rel=0″ frameborder=”0″ allowfullscreen></iframe>
</div>but i should remove these lines :
<button class=”btn btn-play”><i class=”fa fa-play”></i></button> <button class=”btn btn-pause”><i class=”fa fa-pause”></i></button><div class=”mask”></div>Thanks.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 15, 2014 at 8:42 pm #546182Here are some resources which may be helpful to you . . . . .
https://www.ostraining.com/blog/joomla/youtube-embedder/
http://extensions.joomla.org/extensions/social-web/social-media/video-channels
nbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
August 16, 2014 at 7:55 pm #546230Ok thanks… but i know how to embedd a youtube video 🙂 but i’d like to display with the style using class=”mask” and “btn”…
can you give an exemple with a youtube video in your template.
Thanks.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 18, 2014 at 12:00 pm #546360In JA Nuevo template could not support to click youtube button on that, it only works with vimeo video if you are a developer, you can apply the solution for reference here to work with youtube video.
You can find code is working with vimeo in JA Nuevo template
+ Open templates/ja_nuevo/js/script.js file, find and see
//video
var iframe = $('#player1')[0];if (iframe) {
var player = $f(iframe);
$('.btn-pause').hide();
player.addEvent('ready', function() {
player.addEvent('pause', onPause);
player.addEvent('finish', onFinish);
});// Call the API when a button is pressed
$('.btn-play').bind('click', function() {
player.api('play');
$('.btn-play').hide();
$('.btn-pause').show();
});$('.btn-pause').bind('click', function() {
player.api('pause');
});function onPause(id) {
$('.btn-play').show();
$('.btn-pause').hide();
}function onFinish(id) {
$('.btn-play').show();
$('.btn-pause').hide();
}}
Hope it helps
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Ninja Lead 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum