ElkArte Community

Extending Elk => Addons => Topic started by: vbgamer45 on January 22, 2017, 10:23:42 pm

Title: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 22, 2017, 10:23:42 pm
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
Youtube   
Facebook   
Instagram
Threads
Twitter
Vimeo
College Humor
And many more!
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Trekkie101 on January 23, 2017, 04:09:13 am
Nice to see you vbgamer!
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Spuds on January 23, 2017, 10:24:32 am
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)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 23, 2017, 11:12:17 am
Thanks will do.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 23, 2017, 01:24:48 pm
Done submitted the pull request.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Spuds on January 23, 2017, 03:19:38 pm
Pulled it in, its on the site (had to add a space after a : as yaml is very unforgiving)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 23, 2017, 03:27:12 pm
thanks! Will keep that in mind.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on June 26, 2017, 09:01:12 pm
Update
4.1
+Added support for multiple regexmatch for the same website
+Now supports short dailymotion links
+Added support for streamable
+Added support for https for liveleak
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on August 31, 2017, 07:36:10 pm
Update!
4.2
!Fixed some bugs with daily motion links
!Version checking now uses SSL
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: badmonkey on September 15, 2017, 08:54:11 pm
This mod whitescreens 1.1RC2.  Could there be plans for an update? Pretty please?   ;D
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: KIMO on September 19, 2017, 05:11:47 pm
hello
i have a problem "HTTP ERROR 500" with Simple Audio Video Embedder
https://www.youtube.com/watch?v=gXYsrVtkQZs&feature=youtu.be

please help me
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: emanuele on September 19, 2017, 05:28:37 pm
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. ;)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: badmonkey on September 19, 2017, 09:07:43 pm
http://www.elkarte.net/community/index.php?topic=4212.msg33807#msg33807

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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: emanuele on September 20, 2017, 06:42:05 am
KIMO is using 1.0, so I guess the bug is valid for both versions. O:-)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: badmonkey on September 20, 2017, 06:56:15 am
Quote from: emanuele – 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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on September 26, 2017, 05:21:35 pm
Will need to check it out and see what changed between 1.0.x and 1.1.x
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: ahrasis on September 26, 2017, 09:09:48 pm
Just to note that it could be php versions differences as well...
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: badmonkey on September 26, 2017, 10:05:58 pm
Quote from: ahrasis – Just to note that it could be php versions differences as well...

Good point! Running 7.0 here. Thanks for that.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Bodacious on October 25, 2017, 11:00:09 am
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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on October 25, 2017, 05:58:26 pm
Now supports Elkarte 1.1.x!

5.0
+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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: badmonkey on October 25, 2017, 06:24:41 pm
Oh yes! Thanks a million gamer!
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Bodacious on October 25, 2017, 08:22:01 pm
Outstanding!

Just installed it and everything works as advertised, thanks Gamer!
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: tacticool on October 26, 2017, 04:42:03 am
Heck yeah! Thx
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Mrs. Chaos on July 04, 2018, 04:55:04 pm
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?
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on July 04, 2018, 11:28:13 pm
Right now they are based on fixed width for most of the videos unless the built in code supports responsive.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Mrs. Chaos on July 05, 2018, 08:48:42 am
Oh, ok.
I've disabled embedding in mobile devices now, so that the videos in such now are played with the ElkArte player.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: hartiberlin on July 05, 2018, 02:58:18 pm
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...

https://forum-alternative-antriebe.de/index.php/topic,7884.msg136274.html#msg136274

Regards, Stefan.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: brianelk on July 19, 2018, 03:56:24 am
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?
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on July 19, 2018, 10:20:34 pm
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on October 01, 2018, 09:03:39 pm
Update!

5.1
!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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on June 18, 2019, 04:43:59 pm
Security Update
5.2
!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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on April 09, 2020, 03:07:20 pm
Update:
5.3
+Added TikTok support
+Added support for Buzzsprout
+Added support for local/remote MP3 files
+Added support for Yarn video site.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on April 13, 2020, 01:27:36 pm
5.4
!Removed old sites no longer supported for new installs only!
HostingBulk.com
HostingCup
Movshare.net
videobb.com/
smotri.com
g4tv.com
www.xfire.com
Trophy-clips.com
Tangle.com
video.mpora.com
clipshack.com
Stream.cz
blogtv.com
twitvid.com
stagevu.com
goear.com
Clipfish.de
mevio.com
gametrailers.com
sevenload.com
MyVideo.de
novamov.com
UStream.tv
collegehumor.com
seenive.com
vine.com
Jpopsuki.tv
vid.me
tube.com
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on October 28, 2020, 10:32:30 am
Update
5.5
!Fixed Twitch.tv embed code
+Added support for videoclip.bg
+Added support for Telegram
+More support for youtu.be/watch?v=
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: ahrasis on October 29, 2020, 01:11:26 am
Haven't try this but merely want to ask whether video in gdrive or gphotos can be embeded as well?
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on October 29, 2020, 08:23:12 pm
That is not supported at this time. Would need to see example links. And they would need to be public urls to work.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: ahrasis on October 30, 2020, 01:06:45 am
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 17, 2021, 12:16:16 am
Major update!

6.0
+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

Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on February 06, 2021, 03:05:20 pm
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: forumsearch0r2 on April 20, 2021, 05:03:01 am
It amazes me that this add-on needs to add new sites manually while mine (without any copyright removal needed) does not:
https://www.elkarte.net/community/index.php?topic=5178.0
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on April 20, 2021, 09:46:37 am
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 17, 2022, 10:52:34 am
Update

6.1
+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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 18, 2022, 07:32:27 am
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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 18, 2022, 08:22:53 am
It doesn't work for me (Elkarte 1.1.8, php 7.4).
The original link is here but the player no :
(Link-8520)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 18, 2022, 08:26:07 pm
Which link? If you can let me know. And does the player appear or not?
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 19, 2022, 02:13:38 am
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 19, 2022, 03:10:35 am
Same thing with a real youtube link : https://www.youtube.com/watch?v=O3VPs9b_HZE
(Link-8632)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 19, 2022, 04:14:48 pm
Hmm both seem to work on my test site
https://www.elkartemods.com/index.php?topic=37.new#new
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 20, 2022, 02:38:58 am
Hi,
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
Thank's,
Philippe
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on January 20, 2022, 11:43:16 am
That would be in the settings area for the mod. You can check and uncheck which sites you want to embed.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 20, 2022, 12:26:51 pm
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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Spuds on January 20, 2022, 02:18:37 pm
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

https://www.youtube.com/watch?v=aNYWl13IWhY

Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 21, 2022, 03:36:44 am
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.
Sorry @vbgamer45 !
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 21, 2022, 03:54:07 am
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)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: radu81 on January 21, 2022, 05:56:48 am
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
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: augras on January 21, 2022, 07:28:18 am
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Atlas on January 21, 2022, 11:43:03 pm
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.
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Atlas on January 24, 2022, 08:09:20 am
Quote from: Atlas – idk which files I need to modify to do that, was hoping for some guidance here
\sources\subs\Post.subs.php?
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on May 31, 2022, 12:54:51 am
Update!

6.2
+Added support for embedding remote pdf files links that end in .pdf
+Added support for YouTube Shorts
+Added support for fb.watch
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on July 06, 2023, 10:57:36 am
6.3
+Added support for Threads.net
-Removed zippyshare
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: Mrs. Chaos on July 07, 2023, 12:05:06 am
Hi,
does the Simple Audio Video Embedder also support Mastodon or is that planned?

- https://joinmastodon.org
- https://en.wikipedia.org/wiki/Mastodon_(social_network)
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on July 07, 2023, 02:32:15 pm
Does not right now.
But might be possible. I would need to see  sample links
Title: Re: Simple Audio Video Embedder - 90+ Sites
Post by: vbgamer45 on February 16, 2024, 07:12:53 pm
6.4
+Added support for imgur albums
+Added support for Threads.net Posts
!Removed database table that isn't used.