View Ray J's plugins
This plugin is a extension of Cash´s Video Embed plugin. It allows video embedding in ELGG content. Just put the URL in blog posts, comments, messages, pages and the wire and video is displayed.
The plugin doesn't make changes in views and doesn't store or modify entities. It just parses the content, through views extending, and shows the video. If you disable the plugin, the video URL is displayed again.
The initial version supports Youtube, Vimeo and Metacafe. Others formats is on the way.
If Cash's Embed Video Plugin is enabled, Embed Extender will use the latest version of the Cash's library. Otherwise, the plugin will use a own copy of Cash's library. The latest version of Cash's plugin can be found here: http://community.elgg.org/pg/plugins/project/384562/developer/costelloc/embed-video
The plugin needs Cash´s Eager Widgets to work perfectly in profile pages. The latest version can be found here: http://community.elgg.org/pg/plugins/project/535997/developer/costelloc/eager-widgets
The plugin doesn't show embebed videos in Riverdashboard, because the River shows only the first 200 characters of the message.
Notes for 1.8:
This plugin uses a 1.8 beta version of Cash´s Embed library. An update will be released with Cash´s official 1.8 library. (Don´t worry. The actual version works fine)
How to install:
A great "Thank You" to DhrupDeScoop for supporting my limited PHP skills and to Gillie for the help in The Wire widget issue.
If you like it, recommend it! Recommending, you don´t help me: you help the community, showing the best rated plugins and saving hours for new users.
Replaced the deprecated function extend_view() with elgg_extend_view()
Solved a issue with The Wire widget. Now the plugin has 3 video sizes: Large, Widgets and Small Widgets (Like "The Wire"). I recommend, to default themes, sizes of 400, 265 and 150px.
Thanks to Gillie for the Feedback.
Hi Ray, thanks for your great efforts, this plugin gets better and better.
There is still a small problem with wire widget on my side. If you post a video on the wire and look at your profile page then the video width is too large. If you click edit on the wire widget and save, then the dimensions fit. But if you then navigate away form the profile page and back again, the width is to large. Sorry...
Now I have tested some more. You use the three dimensions: width, widget_width and small_widget_width.
When I edit the wire widget and click save, then the value of small_widget_width is used. When I reload the page the value of width is used. Hope it helps.
Although the wire widget get to work, I would like to keep the wire free of videos. How can I code it, any idea.
@Gillie: Found the problem. The video resize doesn't work without eager widgets. With eager widgets, I can found the context of the page and add some intelligence to decide the videosize. Without eager widgets, the wire widget is always outside the "profile" context, so the resize doesn´t work.
I suggest you install eager widgets until I found a solution. By the way, eager widgets is a good practice in ELGG, making the site faster.