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
- 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
Post a Comment