|
59 | 59 | visual : false, //Show/hide the big preview image |
60 | 60 | download : false //Show/Hide download buttons |
61 | 61 | }, |
| 62 | + openGraphEndpoint : 'http://127.0.0.1/${url}', // This may be even url of opengraph.io |
| 63 | + openGraphExclude : ['youtube', 'github'], |
| 64 | + onOpenGraphFetch : function(data){ |
| 65 | + // data is the response received from the server. |
| 66 | + // Change to proper format and return the data |
| 67 | + // {success:true, title:'', description:'', image:'',url:''} |
| 68 | + } |
62 | 69 | beforeEmbedJSApply : function() {}, |
63 | 70 | afterEmbedJSApply : function() {}, |
64 | 71 | onVideoShow : function() {}, |
|
101 | 108 | showReposts : false, |
102 | 109 | visual : false, //Show/hide the big preview image |
103 | 110 | download : false //Show/Hide download buttons |
104 | | -}</code></pre> <p>Options for soundcloud embedding.</p> <h5 id=beforeEmbedJSApply>beforeEmbedJSApply</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed before the plugin is executed.</p> <h5 id=afterEmbedJSApply>afterEmbedJSApply</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after the plugin is executed.</p> <h5 id=onTweetsLoad>onTweetsLoad</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after the tweets have been embedded.</p> <h5 id=videojsCallback>videojsCallback</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after video.js has been applied.</p> </span></span></div> <footer> <span>Copyright © 2015 | Made by <a href=https://twitter.com/ritz078 target=_blank>Ritesh Kumar</a></span> </footer> <script src=scripts/vendor_docs.a6236245.js></script> <script src=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/highlight.min.js></script> <script src=scripts/docs.71c9fdfd.js></script> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> <script>(function (b, o, i, l, e, r) { |
| 111 | +}</code></pre> <p>Options for soundcloud embedding.</p> <h5 id=openGraphEndpoint>openGraphEndpoint</h5> <span><b>Type</b> : string</span> <br> <span><b>Default</b> : <code>''</code></span> <p>For using the open graph support (fetching site's meta data) , you will have to set up your own server due to cross domain restrictions. This option takes the api template as the string where <code>url</code> is a variable. </p> <h5 id=openGraphExclude>openGraphExclude</h5> <span><b>Type</b> : array</span> <br> <span><b>Default</b> : <code>[]</code></span> <p>Urls that have the array items in their string won't be processed by the openGraph API.</p> <h5 id=openGraphFetch>openGraphFetch</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(data)</code></span> <p>The data received from the server may need some modifications in structure that is supported by embed.js before being processed. You can do those changes here. The supported structure for success is <code> <pre> |
| 112 | +{ |
| 113 | + success:true, |
| 114 | + title:string, |
| 115 | + description:string, |
| 116 | + image:string, |
| 117 | + url:string |
| 118 | +} |
| 119 | + </pre> </code> For error the structure is <code>{success:false}</code> </p> <h5 id=beforeEmbedJSApply>beforeEmbedJSApply</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed before the plugin is executed.</p> <h5 id=afterEmbedJSApply>afterEmbedJSApply</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after the plugin is executed.</p> <h5 id=onTweetsLoad>onTweetsLoad</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after the tweets have been embedded.</p> <h5 id=videojsCallback>videojsCallback</h5> <span><b>Type</b> : Function</span> <br> <span><b>Default</b> : <code>function(){}</code></span> <p>A function to be executed after video.js has been applied.</p> </span></span></div> <footer> <span>Copyright © 2015 | Made by <a href=https://twitter.com/ritz078 target=_blank>Ritesh Kumar</a></span> </footer> <script src=scripts/vendor_docs.a6236245.js></script> <script src=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/highlight.min.js></script> <script src=scripts/docs.71c9fdfd.js></script> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> <script>(function (b, o, i, l, e, r) { |
105 | 120 | b.GoogleAnalyticsObject = l; |
106 | 121 | b[l] || (b[l] = |
107 | 122 | function () { |
|
0 commit comments