Code

Discussion on HTML5 Video & Youtube background

Discussion on HTML5 Video & Youtube background

By
Cart 1,506 sales

Tean supports this item

Supported

This author's response time can be up to 2 business days.

303 comments found.

HI IS IT POSSIBLE IF I PLACE A VIDEO FROM YOU TUBE SINGLE WHEN VIDEO FINISHED TO REDIRECT TO ANOTHER PAGE??

Hi!

You can redirect from any video, youtube or local, single or multiple videos, to another page.

Hi Tean, thanks for this great player. I have a question about redirecting current html page to another html page after video ends without clicking “skip intro” etc … How can I do that.

Thanks

Hi!

Look into settings in index page:

/* onPlaylistEndGoToUrl: true/false, navigate to url on playlist end (last item in playlist). Note: this will override loopingOn! */
onPlaylistEndGoToUrl: false,
/* onPlaylistEndUrl: url to redirect to */
onPlaylistEndUrl: 'http://www.google.com/',
/* onPlaylistEndTarget: _blank (open in new window) / _parent (open in same window) */
onPlaylistEndTarget: '_parent',

it escaped my eye, thank you very much

Hello,

how can i set the resolution of youtube video. I’m using Example 1 single loop video by youtube. Where can i set the HD option for auto playing video from youtube.

Thanks many

I pasted the the method from the youtube api reference, as shown on the link, you need to implement this feature. You can try placing the necessary code in onPlayerReady, however you should really separate this from my gallery, take the youtube iframe embed code from their api and try this on its own. There already is some code inside:
//if(_self.quality && typeof _self._player.setPlaybackQuality !== "undefined")_self._player.setPlaybackQuality(_self.quality);//brakes ie9 small 
Something like this:
_self._player.setPlaybackQuality('hd720');

Sorry but it is to difficult for me to understand this… i’m not a javascript developer…

i’m just using your application

Ok, send me an email and I will send you the file to replace.

hello seller, where i can change the link at youtubetemplate ” Skip intro” ? it links to your codecanyon page…wich file i must edit to redirect my own page desire…ty

Hi!

Look at these settings in html page:

/* onPlaylistEndGoToUrl: true/false, navigate to url on playlist end (last item in playlist). Note: this will override loopingOn! / onPlaylistEndGoToUrl: false, / onPlaylistEndUrl: url to redirect to / onPlaylistEndUrl: ‘http://codecanyon.net/user/Tean/portfolio', / onPlaylistEndTarget: _blank (open in new window) / _parent (open in same window) */ onPlaylistEndTarget: ‘_parent’,

hello seller, where i can change the link at youtubetemplate ” Skip intro” ? it links to your codecanyon page…wich file i must edit to redirect my own page desire…ty

Hi!

Look at these settings in html page:

/* onPlaylistEndGoToUrl: true/false, navigate to url on playlist end (last item in playlist). Note: this will override loopingOn! / onPlaylistEndGoToUrl: false, / onPlaylistEndUrl: url to redirect to / onPlaylistEndUrl: ‘http://codecanyon.net/user/Tean/portfolio', / onPlaylistEndTarget: _blank (open in new window) / _parent (open in same window) */ onPlaylistEndTarget: ‘_parent’,

hi i want to play only one video, and the most imporant is do not have the button skip intro, and when the video is finished and to play in ipad and all browsers…if i purchase it can you give me a help??

Hi!

1. You can have only one video, just like in the preview.

2. You can remove all the elements form the screen together or individually, so for example, you can have only volume, or volume and volume and seekbar, or skip intro and controls… etc, or none at all.

3. Player works on iPad, iPhone and android, I have tested it.

Can you tell me where we can set a ‘z-index’ option for the embed youtibe player

Hi!

Have you bought the file?

Thanks

Hi, Is there a possibillity the video to riderect to a page after the video finish, I have add to redirect after 13 sec but sometimes to load it takes time and the page redirect before the video finishes.. Need to redirect after the video finish. Site http://nikosaliazis.com

I am still on windows 7 so I wouldnt know the answer. I plan on update to windows 8 soon. Have you tried some other video?

Better yet, does it happen on my preview directly? Thanks

I have tested this on windows 8.1 chrome and I cannot experience any issues.

is there a way to add the shortcode below to turn off the youtube popup ads where you have to click the x in the corner to get rid of.

modestbranding=1

What did you do?

i sized the youtube video and hid the overflow/banner off the canvas.

Keep in mind banners can be pretty much anywhere over the video. If you want me to add you that option, send me a message through my profile page.

Hello,

something is wrong. But I don’t know what it is.

I tested it with IE10, but …
... the Player doesn’t start the video. It load and load and load
... and the SKIP INTRO graphic is also not complete
Any idea? :(

Example:
http://main.playhero.de/main/index.php?page=Index

Not sure how you incorporated this, do you mean the iframe on your first link doesnt work in ie10 or my player envato demo?

The first link doesnt work with the iframe. But only the html site works …

You can send me your iframe setup on my email if you want and I can have a look.

Very fast playback, if I need the best player, I would say I’ve got it. Unfortunately I can’t make it work as a video background. Can you help? I need it for WP website, but any help appreciated.

I can add this to any site like a video gallery, that’s not a problem. I asked because you call it “video background”, so I assume you had an idea how to implement it.

Layering is html done with css zindex. Everything you want to place above the video needs to be after it in html and if necessary a higher z index as well.

If you look (for example) in a index_playlistBottom_buttons.html file in the download package, you will see that all elements like volume, controls, thumbnails etc… are placed in the html after elements which hold the video like mediaHolder, youtubeHolder flashPreview.

Hi

In the settings I can put loopingOn: true or false

But – is it possible to control loop on each item in a playlist like: ...data-address=’local1’ loopingOn=’true’ ...data-address=’local2’ loopingOn=’false’ ...data-address=’local3’ loopingOn=’true’ and so on…

- or control the looping true/false runtime somehow ?

regards, Michael

My needs are only for local video – no youtube or flash.

Local video comes in both html5 and flash, just like youtube. Modern browsers that play html5 video, and older browsers that flash flash video.

Send me an email if you want, I can give you some pointers in the code what to look for.

on the ipad your videos dont autoplay. I just tested your Example One. Is this function not available on ipad/iphones?

Hi!

You cannot autoplay video and audio on mobile ios, this is restriction from apple:

http://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html
User Control of Downloads Over Cellular Networks)

Dont forget about other issues with ios:

http://blog.millermedeiros.com/unsolved-html5-video-issues-on-ios/

Hi, I just bought your code and it works really well as it is. I am trying to modify it however and running into a problem. I want my video to scale down, keeping the aspect radio intact, similar to the way Lana Del Rey does it on her website www.lanadelrey.com. With her site, when you resize the window vertically, the video keeps it’s original dimensions. With your code that I bought, it cuts the video off when you resize vertically. Your code does keep scale when the window is resized vertically AND horizontally, but I want it to show the video in its true aspect ratio at any window size. I wouldn’t mind if there was a background color (black) hard left and hard right of the video, keeping the aspect ratio. What setting should I change in your code to manipulate this?

Also, I want to add a fixed header and footer without cutting any part of my video background off and below the horizontal thumbnail playlist. How would I do this with your code?

Thanks so much.

Thanks for the help. Fixed my video aspect ratio problem. Super easy fix!

My header seems to be ok, but my footer is not lining up as you predicted. I want my footer to be at the bottom, with the playlist toggle right above it, all while keeping it on one screen without having to scroll down. As it is right now, I have to scroll down to see the playlist toggle bar/button. I want to make it so that the playlist toggle bar already is showing without any overflow (with videos thumbnails hidden upon first load). Without scrolling you should be able to see the header, video, playlist toggle, and footer all at the same time, no scrolling.

What part of your jquery would I need to edit, or would I have to made one big and do a fresh jquery code to make everything fit?

Thanks again, your help with my first issue was a lifesaver!

What part of your jquery would I need to edit, or would I have to make one big div and do a fresh jquery code to make everything fit?

(Some words were cut off so I am posting this part of my reply again)

This whole script evolves around 3 different aspect ratio settings with local and youtube video, and flash, desktop and mobile. All the code for this gallery is in videoGallery file. Use contact form in my profile if you need custom modification from me. Whatever you do, make sure you test for all 3 aspect ratios for all 3 types of video (local, youtube, flash) on all desktop browsers and couple of most important mobile phones to make sure everything still works correctly.

Hi, just a few questions before I purchase.

Can it play videos uploaded to my own host rather than playing YouTube and Vimeo videos? If so do I just enter a link, for example the video I want it to play is located here: http://www.v17.co.uk/yt.flv

Also I plan to have this set up like example 3, would I be able to get rid of all the buttons expect the center play button?

Thanks

Hi!

This plays html5 videos (mp4, ogv, webm) and youtube, not vimeo like you mentioned. So yes, you can play videos from you own host.

You can remove the buttons in any example, this are just plain html elements, nothing more.

Cheers!

like “produwordpress” SAYS : Does not work on Firefox 17.0.1 on mac OS X with data-aspectRatio=’1’ Can u fix please ?

It works if i re-size manually the browser screen… also it works if i click on the arrow for full screen..

Hi!

I asked him for more details as you can see in my reply but he hasnt replied. Still not clear is it local or youtube video.

According to your description, I guess it needs a fix for _doneResizing function call (in videoGallery.js file), if browser firefox, if aspect ratio 1 somewhere after the video starts.

Hi, just bought this item and liking it.

I just have a problem on iphone … “I always get a message “this video is not available at the moment”. I use an Youtube video and it’s not private or something ..

Thanks

Hi!

I just tried it on my iphone4 and ipad3 and it works for me.

Does this happen when you view my demo preview?

Maybe its some kind of temporary hickup on youtube side?

yeah I tried on my colleague’s iphone and it works fine, he has ios 6.0.0, my iphone has 6.0.1.

My ipad is working fine also … it has 5.1.1.

Thank you!

Does not work on Firefox with data-aspectRatio=’1’

Can u fix please ?

Hi!

I just tried single local video and single youtube video with aspect ratio 1 and it works for both. Can you give me more details on which index file and what setup? Remember that for youtube you need to enter dimensions manually (width, height).

Thanks

Hi TEAN

I’d Like to use VIMEO on this and what you are saying in other comments about Vimeo not being Chromeless is not true. If you upgrade to Vimeo Pro you can skin the player as to your likings. So please update this file with Vimeo if you can! Thanks!!!

I think thats not completely true, even with vimeo pro account you cannot make all the player chromeless.

I have spent time before reading about it in their forums, here is one topic:

http://vimeo.com/forums/topic:14561

check the link at the end (http://boingboing.net/2011/01/17/attempting-to-prolon.html)

I wanted to say that you cannot remove all the controls, but thats less of an issue, more of an issue is obviously you have to pay for it, and I would need to have the payed membership so I can develop for it, and the buyers would need to buy this membership as well which doesnt suit everybody.

Hi !! I would like to know how to get youtube player object after jQuery.videoGallery() plugin initialisation. I have to add event listener to detect end of video … and launch functions like playVideo() or stopVideo() Maybe you can help me. Thx.

Hi!

To detect video end for local video find this in videoGallery jquery file:

function videoEndHandler(){
        //console.log('videoEndHandler');
        if(!singleVideo){
            videoHolder.stop().animate({ 'opacity':0},  {duration: fadeTime, easing: fadeEase, complete:function(){
                cleanMedia();
                nextMedia();    
            }});
        }else{
            playlistEndAction();
        }
    }

To detect video end for youtube find this:

$(_youtubePlayer).bind('ap_YoutubePlayer.END_PLAY', function(){
                //console.log('ap_YoutubePlayer.END_PLAY');
                if(!singleVideo){
                    cleanMedia();
                    nextMedia();    
                }else{
                    playlistEndAction();
                }
            });

You can call play/stop video by using the public api already provided, check this in html file on the bottom:

jQuery.videoGallery.togglePlayback()

Send me an email if you need more detailed explanation.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey