简体   繁体   English

我如何与离子应用程序共享媒体

[英]How can i share media with my ionic app

I want to share my images and videos with application which was developed with ionic framework. 我想与使用离子框架开发的应用程序共享我的图像和视频。 How can I share them? 我该如何分享他们?

Have a look at Cordova Sharing Plugin ; 看看Cordova共享插件 ; that plugin let you share "content" using a native dialog to select the app to share with, or you can specifiy some popular apps to use for sharing (Twitter, Facebook, ...). 该插件可让您使用本机对话框选择要共享的应用程序来共享“内容”,或者您可以指定一些流行的应用程序来共享(Twitter,Facebook等)。

You can easily share images, text and links, but there are some limitations (particularly for Facebook). 您可以轻松共享图像,文本和链接,但是存在一些限制(尤其是对于Facebook)。 If you want to build a custom image to use for share (say a text with an avatar) you can prepare the image in pure Javascript using an HTML5 canvas. 如果要构建用于共享的自定义图像(例如带有头像的文本),则可以使用HTML5画布以纯Javascript准备图像。

For more information you can check this blog post , where the Cordova Sharing Plugin is used together with the HTML5 canvas approach. 有关更多信息,请查看此博客文章 ,其中将Cordova共享插件与HTML5 canvas方法一起使用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从其他应用程序将图像共享到我的Cordova / PhoneGap应用程序? - How can I share an Image to my Cordova/PhoneGap App from another App? React / react-share - 在社交媒体上共享内容时,如何不仅共享文本,还共享链接洞察我的电子邮件等? - React / react-share - How can I share not only text but also a link insight my Email etc when sharing content on social media? 如何从 Vuejs 应用程序在社交媒体上分享? - How to share in social media from a Vuejs app? 我不明白为什么我的社交媒体分享链接不起作用 - I can`t figure out why my social media share links don`t work 如何从第二个Web视图访问应用程序的离子存储(localForage)? - How can I access my app's ionic-storage (localForage) from a second web view? 如何将json数组从服务器上的php文件传递到我的Ionic应用程序? - how can i pass json array from php file on a server to my ionic app? 在 ionic 应用程序中共享 PDF - Share a PDF in ionic app 如何在 wordpress 的小部件区域添加按钮以在社交媒体上分享当前页面? - How can I add button to the widget area of wordpress to share the current page on social media? 如何在离子应用程序中共享链接回该应用程序的链接 - How to share a link within ionic app that links back to the app 如何在画布应用程序上为共享对话框设置新消息? - How can I set a new message for a share dialog on a canvas app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM