jquery - Fancybox loading video in new tab with certain videos -


i have site (krelltech.com) has featured video on home page. previous link using (http://krelltech.com/index2) opening in fancybox. put new video (i have no control on site hosting new video), , opening video in new tab. thoughts or suggestions?

the issue have fancybox media works specific media-streaming services, per in documentation :

  • youtube
  • vimeo
  • metacafe
  • dailymotion
  • twitvid
  • twitpic
  • instagram
  • google maps

for other servers (where don't have control) best bet open fancybox using iframe type mode.

try adding new class new videos like

<a class="btn newvideo" role="button" href="http://anotherserver.com/anothervideourl"... 

and write specific custom script them like

$(".newvideo").fancybox({     type: 'iframe',     width: 520,     height: 320,     fittoview: false,     scrolling: "no",     autosize : false,     iframe: {         preload: false     } }); 

see jsfiddle


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -