View video and use website simultaneously in same view with refreshes - javascript

So I am creating this interesting project. In this project, a you are guided through a website tour with a YouTube video. To achieve this I need to be able to view the video and work on the website simultaneously so that every page refresh doesn't load the video all over again and the user has his progress maintained.
Is there any jQuery plugin or library I could use? If someone knows anything related to this, please guide me ..
Thanks ..

Related

Auto pulled YouTube videos won't load in fancy box

On my home page I have YouTube videos that get auto pulled via YouTube API. They display perfectly and the links come through as expected. They each have class="fancybox-youtube" but none of the videos open in a fancy box window.
I manually entered a link above the YouTube videos that auto feed and that works.
If you go to my home page
2k Online Franchise and scroll down to "Latest Videos" you will see the videos I am referring to. You will also see text above those images that says "YouTube video link works".
Thank you in advance for the help, I have reserached this for hours and trouble shot it too but as you have read, it's beyond me.
I dreamed my answer! lol I fixed it. It was due to an old version of jquery running with the latest version of Fancy Box. I updated to jquery3.2.1 and it worked.

Accessing HTML DOM elements in background on Ionic2

With ionic2, I'm trying to implement a Timer as attached in the link on a sidemenu template. I have this implementation on one of the page how do we run this timer in background when trying to access a different page from the sidemenu. It works well for Ionic1 framework, but in ionic2 because of the navigation stack push & pop architecture the timer pauses when i leave the page and resumes when i enter back. So i'm not sure on how to implement this. Any help is much appreciated.
Thanks
Suresh

Video to full modal

I am inserting YouTube videos in my website with iframes and I need to make the video almost full screen and the background white (like a full screen mode). I know how to make both, but I cant move the video with javascript from his container to a new one without stoping so how can i do it?
Thanks for your time
This works if you're using Bootstrap. I think you should be able to use it if you arent using Bootstrap too.
YTModal helps you play Youtube videos in a popup window based jQuery and Twitter Bootstrap modal component. It also requires jQuery YouTubeDefaultImageLoader.js to insert Youtube video iframes with post images into your web page
http://www.jqueryscript.net/other/Youtube-Video-Modal-with-jQuery-Bootstrap-3-YTModal.html

how to count clicks on flash banner in site

I got two swf files. One of them is clickTag enabled, and other is not. I must put them in Wordpress site. I'm using adrotate plugin for banners management. Is there a way to know when the banner is clicked,so that i could changed click counter in adrotate manualy?
Well after some help at the work, i think I've answer. if you change jQuery("a.gofollow").click for jQuery("a.gofollow").mousedown in adrotate plugin clicktracker.js code, it starts to track clicks on flash banners. More explanation can be found there Track a click on a flash movie (object / embed) with jQuery

Automatic Javascript Video Pop-Up

I need a video to automatically pop up, ideally in a lightbox. It needs to automatically pop up when a user first visits the page, play the video then close. I also need a button to play again if needed. I also only want this video to play the first time a person visits the homepage, so when you navigate back to the homepage it will not play again.
Diodeus has a good point. The stack overflow community is to help specific questions, not to write programs for each other.
You have a number of needs, and I will try to help you sort them out:
Embedded Video
Lightbox
Automatic Popup
Stored State
Embedding videos can be a challenge. Quickly searching TheGoogle (embed a video) gives me this link:
http://www.hunlock.com/blogs/Everything_You_Ever_Needed_To_Know_About_Video_Embedding
I did not read it, but the point is you can find many resources for video embedding.
Lightbox
There are many lightbox scripts ( http://www.lokeshdhakar.com/projects/lightbox2/ ), you will have to slog through them to find one that you like.
Automatic Popup
If you're using jQuery I would suggest the jQuery.ready function.
Stored State
To see if a user has visited the homepage before, I would suggest setting a cookie. http://www.quirksmode.org/js/cookies.html

Categories

Resources