I need to display a video inside of a mail (coded in an html.erb file). I have tried this with an iframe tag, but it doesn't work (the same code works in a normal html page, so I'm sure that the mistake doesn't come from here). Is it possible to do it without any gem ? Which tag should I use then ?
The website is coded in rails 4.2. The source of the video is a youtube link.
Thank you very much for your help !
PS: I have searched for an answer, yet, if I missed a related topic, I'll be glad for you to give me the link.
Related
Is it possible to make a preview from an url, grabbing all the information such as title, relevant texts and images. Is there any plugins I can use readily?
See this Native android plugin
You can do this way :
1)Create a user at https://www.linkpreview.net
2)Generate an Access Key.
3)From your code call
http://api.linkpreview.net/?key=<Your_API_KEY_From_Step_2>&q=https://www.google.com
It returns the meta tags in JSON as below :
{"title":"Google","description":"Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.","image":"http:\/\/www.google.com\/images\/branding\/googlelogo\/1x\/googlelogo_white_background_color_272x92dp.png","url":"https:\/\/www.google.com\/"}
4) Use it in flutter widget to create a preview.
Hope I'm not late to answer this question, There is a plugin for link with previews Rich link preview
Currently, there is not an open source library for flutter providing these meta tags for a website.
There is a temporal solution, using these freemium APIs for getting this information. The main drawback is that the requests are limited before paying.
I know I'm a bit late but I found a solution for that.
The comment of Sudip might work but if you have a lot of preview to generate, you will have to subscribe and pay..
I couldn't use the library rich_link_preview because of some depency issues (it requires http < 1.12.0).
So I had to do it myself. Writting the complete answer in this comment would be too long so I'll tell you how I did it.
I followed this youtube tutorial. If you are too lazy to watch the entire video you can look at his Github Repo. It worked for me and it is not too long (there are only 2 relevant files):
lib/link_preview.dart
lib/helper/fetch_preview.dart
I need a way to integrate a swf file with all the click events into an epub3 format? i tried including text on a swf file it shows an error in tags used while validation.Please help me with this.
Thanks to every help, suggestion or any links
While it's legal to embed a Flash file in an EPUB, Flash won't run on iOS at all, so it's not worth pursuing validation.
http://blog.threepress.org/2009/11/14/using-flash-video-in-epub/
A huge post toward the middle talks about ISO Mpeg4 and using that format for video, other suggestions talk about using a fallback image, other comments on this page that might help.
Good luck!
As from the
Liza Daly
answer and some of my research i found out that apple iOS doesn't support flash any more so it doesn't support swf in epubs. i Acheived it by using HTML5, css3 and jquery.
I am attempting to embed Youtube videos into some of the infowindows in the following KML file:
http://www.jonangfoundation.org/files/newdef.kml .
The videos show up fine on Google Earth and KML Builder, but on this page they do not show up at all:
http://www.jonangfoundation.org/taktentest
Anyone know what could be keeping them from showing up?
Unfortunately your 'test' page does not load - Page Not Found error.
However, I think you need to set the correct MIME type for .kml files. Your newdef.kml is presented in my browser window as XML rather than downloaded as a .kml file. That might be your problem, it is hard to tell with nothing else to go on. check out this link for details about setting the right MIME
https://developers.google.com/kml/documentation/kml_tut#kml_server
Edit: I am not sure what is going on. Your KML code looks okay to me, and I see you have tried a few different approaches, none of which appear to work. I suggest you visit this SO question, as it's answer is something you could do to make it work.
Basically, you override the default behaviour when a placemark gets clicked, and allow iframes and javascript to be used in the balloon. It is the original way of getting around your problem (however I thought it was fixed in recent version of the plug-in. Maybe not?)
I believe your content is being scrubbed. See link for description and possible work around.
https://developers.google.com/earth/documentation/balloons#scrubbing
I'm trying to export a page in my rails app to a pdf using wkhtmltopdf/wickedpdf (both the latest version, so is rails). However, external images from facebook (obviously with an absolute url) are not displayed : I got the classic empty box with a '?' when pictures are missing. The HTML version is just fine.
I tried with other pictures from other sources, and it worked as expected. Only fb pictures are causing troubles. However I absolutely need those.
Any ideas? Thanks for your time!
You should download the image into the app and use absolute path for image in pdf template, like
"#{RAILS_ROOT}/public/path-to-fb-image}"
Ok so it looks like I was using a bad version of wkhtmltopdf. Had to try several before getting to the right, this is the one that did the trick for me.
#Hoang's answer is another possible solution.
I've searched a series of forums and I've noticed that a lot of people had this same issue. I tried all the resolutions: using the longer Youtube URL like
http://www.youtube.com/watch?v=GkqS5DiF2_A
defining the width and height of the image, and I've tried using older versions of JQuery. I'm still receiving the error. I've linked all the images in the CSS file [incorrectly, but they are linked :)]. I've been trying to solve this for days and I'm not sure what I'm doing wrong.
Any help would be greatly appreciated. Thank you!
It appears that you have to add ?iframe=true to the end of the hyperlink
https://stackoverflow.com/===>http://stackoverflow.com?iframe=true
did the trick for me. Make sure you point direct to the web page you want to appear in the light box, not to the iframe.
I had the issue with WordPress,
I simply removed the alert.
file: /wp-content/plugins/prettyphoto-media/js/jquery.prettyPhoto.min.js
I use http://jsbeautifier.org/ to unfold the code
and comment line 350:
//alert("Image cannot be loaded. Make sure the path is correct and image exist.");
The links to the youtube video are not direct, you are using some kind of redirects. i suggest you use direct links to the youtube video
here is a demo of your site http://www.mediafire.com/?vj3l062uza7ov61 , see the left video