News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Simple Audio Video Embedder

Started by SMFHacks.com Team, August 09, 2010, 10:42:47 PM

Previous topic - Next topic

JRMBelgium

I notice that Twitch videos are getting displayed 480x600 no matter at what default resolution is configured.
Example:
https://alliancemultigaming.com/forum/index.php?topic=4416.0

Is there any way someone can help me make this small adjustment to the code or database that would fix it?
When I edit the source manually it displays the video at the correct size:

<iframe src="https://player.twitch.tv?autoplay=false&amp;height=600&amp;parent=alliancemultigaming.com&amp;referrer=https%3A%2F%2Falliancemultigaming.com%2Fforum%2Findex.php%3Ftopic%3D4416.0&amp;video=1152647362&amp;width=480" allowfullscreen="" scrolling="no" frameborder="0" allow="autoplay; fullscreen" title="Twitch" sandbox="allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation" width="1280" height="720" id="pbbc_iframe0" name="pbbc_iframe0"></iframe>

I just don't know what file I need to adjust in order to make the fix permanent.

spiros

I uninstalled v5, tried to install 7.0.5 and I get

fclose(): Argument #1 ($stream) must be of type resource, bool given

SMF 2
Php 8

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

spiros

I checked in SMF error log and php logs but could not find any further info, it points to zip file.

https://www.translatum.gr/forum/index.php?action=admin;area=packages;sa=install;package=SimpleAudioVideoEmbedder7.0.5.zip
fclose(): Argument #1 ($stream) must be of type resource, bool given

MobileCS

Is is possible to show the video on the preview post page? Or at least the video's thumbnail?

For YouTube, you can do it like this :

Grab the video ID :
https://www.youtube.com/watch?v=8hYlB38asDY

Insert it like below :
https://i.ytimg.com/vi/8hYlB38asDY/hqdefault.jpg

Which gives you this :

vbgamer45

No. I disabled it for some reason that i stated in the topic was causing issues.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

The Parson

Actually, the question is why can't I get Simple Audio Video Embedder to work period in SMF 2.1.4 © 2023, Simple Machines. No setting that I've found short of the settings page will even address this problem. Am I overlooking a setting in the board its self? Thanks for the help. Didn't see anything in this thread.
Webmaster for:
The Forum Post Exchange

vbgamer45

What video url are you embedding? Make sure the site is checked and listed under settings.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Randem

#3769
Hi vbgamer45,

The video link does not work in preview. Can this be possible. Also in the post itself there is no video preview or thumbnail, the video is just blank. I am using local/Remote MP4. Is there a setting that I do not see that can make something show?

I spent much time trying to get this to work in preview until I actually posted the message after reading this thread and the information on the MOD site. Just post the link and it will work if you have checked the proper items in settings.

I am using 7.0.5
Thanks for this nice tool.

I want to totally get rid of ALL YouTube video links, but have the same type of viewing...
BotBanish - The Ultimate Bot Firewall
Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

vbgamer45

There was an issue with previews which broke something so disabled it maybe check chanelog i dont remember reason why as it was a while back
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kuzmitch

Hi,

I have created support for the vkvideo.ru service, but for some reason it embeds the first link in this service in message, the rest just go as links. Can you help to fix that?


video link:

https://vkvideo.ru/video161036411_456239195

regexmatch:

https?:\/\/(vkvideo\.ru|m\.vkvideo\.ru|vk\.com|m\.vk\.com)\/.*video(-?\d+)_(\d+)
embedcode:

<iframe width="640" height="360" src="https://vk.com/video_ext.php?oid=$2&id=$3&hd=1" allow="autoplay; encrypted-media; fullscreen; picture-in-picture;" frameborder="0" allowfullscreen="true"></iframe>
Test message example:



Thanks in advance!

vbgamer45

It looks like the regex will match the embed code too? So that might be the issue.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kuzmitch

I doublechecked and it is not matching the embed code (as of my understanding):



Any other ideas? Maybe something wrong with regex itself or the parsing code?

Kuzmitch

#3774
A few seconds later....

This one is correct regexp:

https?:\/\/(vkvideo\.ru|m\.vkvideo\.ru|vk\.com|m\.vk\.com)\/.*?video(-?\d+)_(\d+).*?

It seems like I had to limit the search of ".*" with ".*?". Thanks for help and amazing plugin.

lord alibaski

Hi

Is there anyway of adding this site?

https://jumpshare.com/v/FvIcwyaNObqAKJkuoos0

Many thanks in advance.

vbgamer45

Doesn't look like it tried the link from
<link rel="alternate" type="application/json+oembed" href="https://jumpshare.com/api/v1/oembed?url=https://jumpshare.com/v/FvIcwyaNObqAKJkuoos0" title="Mega Maggtron_D.J. J.mp3" />
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

lord alibaski

Thanks for trying vbgamer45

What about these 2? not really bothered if these 2 don't work it's not hard for people to just click on the link.

https://tuttu.io/

https://vocaroo.com/

vbgamer45

Would need to see example video links.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

lord alibaski

#3779

edit just notice they both have the embeded option

https://tuttu.io/evkdq5dv

<iframe width="100%" height="99" scrolling="no" frameborder="no" allow="autoplay"
  src="https://tuttu.io/embed/evkdq5dv"></iframe>
https://vocaroo.com/1iG8LB6q0Cwt

<div><iframe width="300" height="60" src="https://vocaroo.com/embed/1iG8LB6q0Cwt?autoplay=0" frameborder="0" allow="autoplay"></iframe><br><a href="https://voca.ro/1iG8LB6q0Cwt" title="Vocaroo Voice Recorder" target="_blank">View on Vocaroo &gt;&gt;</a></div>

Advertisement: