Simple Audio Video Embedder - 90+ Sites
My first addon for Elkarte
For Elkarte 1.1.x and 1.0.x
An auto embed media modification for that takes links for popular video websites and adds a player directly into the post or bbc area of your website
Supports over 90+ sites such as
And many more!
Nice to see you vbgamer!
Let me know if you want me to add it to the http://addons.elkarte.net site ... Just takes a PR as described here (http://www.elkarte.net/community/index.php?topic=2325.0)
Thanks will do.
Done submitted the pull request.
Pulled it in, its on the site (had to add a space after a : as yaml is very unforgiving)
thanks! Will keep that in mind.
+Added support for multiple regexmatch for the same website
+Now supports short dailymotion links
+Added support for streamable
+Added support for https for liveleak
!Fixed some bugs with daily motion links
!Version checking now uses SSL
This mod whitescreens 1.1RC2. Could there be plans for an update? Pretty please? ;D
i have a problem "HTTP ERROR 500" with Simple Audio Video Embedder
please help me
Hi Kimo and welcome. :)
hmm... 500 is always a tricky error.
The first two options that come to my mind are:
1) a problem with the addon (first because I can check it immediately),
2) mod security.
Regarding 1, I can't see anything wrong with the code (but I cannot install it for testing right now).
In the meantime, you could try to contact your host and see if they have mod security enabled. If this is the case, then they are in the best position to fix the issue.
Do note: after your next reply, I'll move this topic to the support board. ;)
Are you running 1.1? Hopefully the author will provide a fix. Until then, you can either remove the hooks from the database or delete the addons source files. Thanks to @live627
for the suggestion.
KIMO is using 1.0, so I guess the bug is valid for both versions. O:-)
Hhmm...could be! Sorry, couldn't tell what version watching from a phone. O:-) Perhaps this will prompt a repair. Doubly good if it's an issue common to both. 1.1 whitescreens immediately on install, if that means anything at all.
Will need to check it out and see what changed between 1.0.x and 1.1.x
Just to note that it could be php versions differences as well...
Good point! Running 7.0 here. Thanks for that.
Playing around on my 'test' site, late into the night and installed this plugin. Without seeing this post. I can also confirm, that it blew my site up and needs addressing (http://addons.elkarte.net/enhancement/Simple-Audio-Video-Embedder.html).
Oops: Using v1.1
Now supports Elkarte 1.1.x!
+Added support for 1.1.x Elkarte
+Added imgur support
+Added youtube playlist support
+Added support for pastebin
+Added support for Ted Talks
+Added support for more types of twitch.tv urls
Oh yes! Thanks a million gamer!
Just installed it and everything works as advertised, thanks Gamer!
Heck yeah! Thx
The videos protrude over the right edge when I look at the forum pages with my smartphone (Samsung Galaxy S7 Edge). The pages are pushed together to about 80%. This is also the case with the default settings for the width and height of the videos.
How can I change it so that the videos automatically adjust to the width of the forum?
Right now they are based on fixed width for most of the videos unless the built in code supports responsive.
I've disabled embedding in mobile devices now, so that the videos in such now are played with the ElkArte player.
There is a problem with the recognition of just a youtube channel and not posting a youtube video,
see here this example:
It thinks I have posted a link to a youtube video,
but actually it was just the link to a user´s Youtube channel...
I installed the simple video/image addon OK but no new icon or anything shows on the new post page for it. What have I missed please?
To use you just post the video site url into your post. Make sure you checked all the video settings in the admin setting of the mod that you wish to embed.
!Updated imgur to supprot https:// and this format of links https://i.imgur.com/AAAAA
+Added support for Facebook Posts thanks to butch2k
+Added support for USNews.com thanks to butch2k
+Added support for local remote ogm and ogv files
+Added support for spotify thanks to butch2k
!Must Update. Fix security issue with Local/Remote FLV fusing player_flv_maxi.swf FLV Player.
Have removed the option to play FLV videos. Make sure this file is removed videos/player_flv_maxi.swf from your forum
+Added TikTok support
+Added support for Buzzsprout
+Added support for local/remote MP3 files
+Added support for Yarn video site.
!Removed old sites no longer supported for new installs only!
!Fixed Twitch.tv embed code
+Added support for videoclip.bg
+Added support for Telegram
+More support for youtu.be/watch?v=
Haven't try this but merely want to ask whether video in gdrive or gphotos can be embeded as well?
That is not supported at this time. Would need to see example links. And they would need to be public urls to work.
Basically to allow others to access, we set as shared to public and provide its link. It uses youtube api if I am not mistaken. I'll try to set up one video for public and share its link here. May be you can try thereafter.
+Added a setting to show the original link after the embed is added.
+Added a setting to set the maximum number of emdeds to display per page load.
+Redid the entire replacement function with a callback. Allowed more control for the new setting features added and provides a better way to count number of embeds loaded.
+Added support for Reddit posts
+Added support for twitch clips thanks to tjbalon
+Added support for github gists thanks to tjbalon
+Updated spotify entry (now supports artist, track, playlists, and albums) tjbalon
+Added support for codepen.io
+Added back support for ustream.tv
+Added support for Gfycat
Have added the option to order copyright removal now works. For $10 @ https://www.elkartemods.com/copyright_removal.php it will send an email with the key once purchased.
It amazes me that this add-on needs to add new sites manually while mine (without any copyright removal needed) does not:
It just works differently. Pros and cons to both mods. Looks like yours uses curl which be be more intensive on lookups. But I do like seeing curl_multi_getcontent that is very interesting will have to play around with that for some projects.
+Added support for Instagram reel media type links
+Added start time support for youtube videos
+Added support for Twitch Channels and Clips thanks to tjbalon
+Added support MSNBC videos
+Added support NBC News videos
!Fixed xhtml validation issues for some sites
Thank's a lot !
EDIT : the french translation is not in the zip.
You can find it there : https://www.elkartemods.com/index.php?topic=5.msg138#msg138
It doesn't work for me (Elkarte 1.1.8, php 7.4).
The original link is here but the player no :(Link-8520)
Which link? If you can let me know. And does the player appear or not?
The link is just under the video : https://youtu.be/pm9yz2mKLn0
But i just see now it's not youtube but youtu.be !
I try with a real link from youtube ans comme back.
Same thing with a real youtube link : https://www.youtube.com/watch?v=O3VPs9b_HZE(Link-8632)
Hmm both seem to work on my test site
Both are working, but i remember there was like a window banner with the name of the video site and you could open or close as you wanted : this banner is no more present are it's my memory
That would be in the settings area for the mod. You can check and uncheck which sites you want to embed.
I found an exemple about what i mean :
- banner opened(Link-8723)
- banner closed(Link-8725)
With this new version the banner is not here
That banner is part of the built in ElkArte video embed (which is only for youtube, Vimeo and DM) Lets do a test and see if it still works on 2.0 with all the other changes
Thanks a lot : i thought this banner was with Simple Audio Embedder and didn't understoud why i got it sometimes, a few times, but not always.
When I tick in the settings to get the original link under the video, with a youtube video il don't get the link but the video with the banner, and the video is displayed twice : (Link-8755)
I'm not using this add-on, but I guess you can solve that by disabling Enable auto-embedding of video links option in Admin > Forum > Post & Topic
You are right @radu81
: thank you.
I didn't remember changing anything between the old version and this update, but this option is not compatible with the addon and it makes sense.
Hi everyone. I installed the oembed addon (https://www.elkarte.net/community/index.php?topic=5178.0) and modified the jquery_embed.js to embed BitChute and a few other video platforms. While testing it I started thinking about a more efficient way of accomplishing the same thing. For one, the oembed php script is executed on every forum page load and requests two pages for each link on the forum page. It'd be more efficient to execute the cURL once (when the link is posted on the forum) instead of each time the forum page is loaded. (idk which files I need to modify to do that, was hoping for some guidance here)
Also... I like the oembed technology in principle but some sites either aren't using it or aren't serving the files as valid json. So instead of scraping for the oembed link in the videopage (2 requests), perhaps just scrape the metadata in the videopage (from metatags &/or json-ld block) and save it in the post (1 request).
Also, also, I was thinking about scraping for this metadata on every link, not just for the purposes of embedding videos, and on top of that, submitting the posted url to the internet archive and including the archived link with the original in the post.
+Added support for embedding remote pdf files links that end in .pdf
+Added support for YouTube Shorts
+Added support for fb.watch