News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Audio Video Embedder

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

Previous topic - Next topic

engrz

QuoteJust put the link in the post

if im pasting link, it only shows the link in the post


vbgamer45

Make sure you have the options check in the settings area.

For mp4 files it has to end with .mp4 in the link to pick it up.
Community Suite for SMF - Take your forum to the next level built for 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

420SA

Could someone please assist me with embedding Soundcloud songs into a post? What needs to be pasted into a post?

Thanks 

vbgamer45

Doesn't work well with soundcloud at the moment.
Community Suite for SMF - Take your forum to the next level built for 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

badon

Quote from: badon on April 24, 2016, 11:30:54 PM
Quote from: badon on April 03, 2016, 06:27:11 PM
I did a search for "local attach" in this topic, but it didn't find any results, so forgive me if this question has already been discussed. I installed the mod and YouTube etc URL's work fine, but when I attach a video file to a post, it does not get displayed. It also does not work if I paste the URL to the attachment in the post, like I would do if I wanted to display the video file in multiple places. Is something wrong, or does the mod lack the ability to handle attached video files?

Quote from: vbgamer45 on April 03, 2016, 06:33:49 PM
This mod does not handle attached videos. If it is in an attachment to the post.

Quote from: badon on April 03, 2016, 11:15:32 PM
Would it be straightforward to make it work with attached video files, or at the very least the URL to the attachment? In my tests, the URL doesn't work, presumably because you are using RegEx's that search for URL's like youtube.com, etc. To make it work with attachment URL's I'm guessing the mod would need to search for the local domain URL, and detect the MIME type of the file since it lacks an extension. You can view my tests here, to see what I'm talking about:

https://forum.coincompendium.com/index.php?topic=4730.0

Quote from: vbgamer45 on April 03, 2016, 11:59:26 PM
It would not be. That would be very difficult more so since there is no extension.

It looks like it's pretty easy to detect the MIME type without a file extension, the same way SMF itself does:

http://php.net/manual/en/function.mime-content-type.php

So, if the lack of a file extension is not a problem, then it appears to me that it would indeed be straightforward to support attached video files. Correct me if I'm wrong.

Quote from: vbgamer45 on April 24, 2016, 11:39:41 PM
It is more than I would to do a request fetch the file and check the content type which can very intensive. As of right now the mod does not do any remote fetching calls.

Quote from: nend on April 25, 2016, 10:55:58 PM
Quote from: badon on April 24, 2016, 11:45:01 PM
I assume the file name is stored in SMF's database somewhere. Maybe it would be easier to just grab that?
Yes, the mine type and extension are stored in the database. Extensions are sometimes unreliable, you really want to check the headers and go with the mime type. However this is stored in the database.

Quote from: vbgamer45 on April 25, 2016, 10:37:03 PM
The closest thing I found would be http://custom.simplemachines.org/mods/index.php?mod=3770 inline attachments but I don't think it does it automaticlly.
I haven't looked at the source of that mod, but it looks like it only does a few file types. @badon, I suggest you reach out to the author of that mod and see if they could incorporate the mime types you are requesting, since that modification is the closest match to what your suggesting.

I just did a proof-of-concept test to embed HTML5 video without using any mods: Re: test webm. It was a lot easier to do than I expected, because you can specify the mime type in the HTML5 video tags. I did the test successfully with both WebM and MP4 video types. If I can do it this way with no mods, it should be child's play to make it work in a mod.

I'd like to try this same technique with a WebP image and a JavaScript shim/polyfill to get WebP images to display on SMF without using any mods. If it works, I will probably try doing it with BPG images too. I'm not sure yet how to specify a mime type for images, and I'm not sure exactly how to use the JavaScript to make it both display in SMF, and work on browsers that don't support those image types.

One thing I'm sure of is that all of these video and image types should be supported by SMF and modern browsers, because they are all eminently useful for their various strengths. It takes hours to compress a lossless PNG to the maximum possible using zopflipng-cryopng, but mere seconds to do the exact same thing at a significantly smaller size with a lossless WebP.

People talk about WebP replacing JPEG, but that's never going to happen. Where WebP shines is in replacing lossless PNG. BPG is the one that might have a shot at beating JPEG, but in my tests at high quality levels, I think JPEG is still very competitive with BPG. Both BPG and WebP can compete with JPEG at low quality levels, where JPEG starts to look blocky.

The video test above with the WebM format is an ideal replacement for animated GIF. Beating animated GIF is pretty easy, so something, ANYTHING, should be used as soon as possible to get rid of that clunky old dinosaur that animated GIF's have become. The WebM file is only 457 KB, while the same thing in animated GIF is something silly like 20 or 30 MB.

Arantor

Sadly browser support for WebM and WebP is painfully limited and depending on browsers being targeted, you may not even be able to do a decent poly fill, e.g. IE8 doesn't support canvas, so trying to poly fill an image into a canvas... then requires poly filling the canvas too with VML or similar which is a level of awkward no one really wants to deal with.

Until browsers that aren't Chrome step up and take this on, though...

badon

HTML5 supports fallbacks to other formats, with multiple source tags. None of the problems your mention are deal-breakers. I did it myself with webm and mp4 with no fancy coding, no worrying about browser support, no IE8, no canvas, no polyfill, no VML, no awkward, no nothing. It was braindead easy. SMF should support it so administrative rights to use HTML BBCode is unnecessary.

alexetgus

Warning !
A JavaScript is loaded in the administration page !

<script language="JavaScript" type="text/javascript" src="http://www.smfhacks.com/versions/autoembedmediapro.js?t=1465581765"></script>


Normally , this code is harmless. But beware!

engrz

Quote from: alexetgus on June 10, 2016, 02:04:32 PM
Warning !
A JavaScript is loaded in the administration page !

<script language="JavaScript" type="text/javascript" src="http://www.smfhacks.com/versions/autoembedmediapro.js?t=1465581765"></script>


Normally , this code is harmless. But beware!


There is no any code in my administrator or any setting page or this mod at http://www.engrz.org

alexetgus

Oh que si !

http://URL_FOR_YOUR_SITE/index.php?action=admin;area=mediapro;sa=settings

An SSL connection block this JavaSscript.

vivien

4 new bug (3 for local video - 1 for Dailymotion) with Simple Audio Video Embedder 3.6.2 :

1 / Local video : The last character of the file name is deleted (the workaround is to add an extra character to the file name)

Example with this video: https://lafibre.info/videos/test/201606_test_mpeg-4_avc_aac.mp4 [nofollow]

The generated code:
<video height="640" width="425" controls="">
  <source src="https://lafibre.info/videos/test/201606_test_mpeg-4_avc_aa.mp4" type="video/mp4">
  <object data="https://lafibre.info/videos/test/201606_test_mpeg-4_avc_aa.mp4" height="640" width="425">
    <param name="src" value="http://ps.mp4">
    <param name="AutoPlay" value="true">
    <param name="Controller" value="false">
    <embed src="http://ps.mp4" height="640" width="425">
  </object>
</video>


It lacks the "c" before .mp4

2 / Local video with a webm video, there is an additional bug: integration only works for http and not https

Example with this video: https://lafibre.info/videos/test/201606_test_webm_vp9_opus.webm [nofollow]

(No generated code)


3 / Local video: The integration of video is ugly: it forces the portrait. There is wasted space above and below the video.

Would it be possible to replace the code:
<video height="640" width="425" controls="">

By the code:
<video width="100%" controls="">

My setup:
Default Video Player Height: 0 (Use 0 to use media player defaults)
Default Video Player Width: 0 (Use 0 to use media player defaults)


4 / Dailymotion : put two videos in one message, is impossible

Example with this 2 videos :
http://www.dailymotion.com/video/x2ol443_ce-bebe-leopard-a-bien-du-mal-a-se-reveiller_animals
Hello !
Hi !
http://www.dailymotion.com/video/x3856h8_une-chienne-maman-nourrit-ses-bebes_animals


The generated code:
<iframe frameborder="0" width="480" height="360" src="//www.dailymotion.com/embed/video/x2ol443" allowfullscreen></iframe>

The second video, and text between the two videos were deleted !

adapa

sorry for the seemingly simple question

where is the control panel for SAVEmbedder in smf 2.0.11?  I'm asking because prior to my move to awsAmazon servers it was working and now it's not.

I had thought to uninstall & reinstall but the uninstall is throwing some odd 'test failed' errors- like in php files it is suggesting to delete "?>" or suggesting i need to delete bits of code that aren't there.

My thought is that once i am able to access the SAVE control panel i can sort the issues out.  so either i'm not looking in the right place Admin-Configuration OR i need to add/subtract a bit of code in the files.

vbgamer45

It should be in the admin configuration area. it has it's own section
Community Suite for SMF - Take your forum to the next level built for 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

adapa

Quote from: vbgamer45 on June 16, 2016, 11:37:00 AM
It should be in the admin configuration area. it has it's own section

thx- i seem to be missing all the menu items that have their own section after th emove to new servers-

can i get a url for someone's SAVE control panel ? I'm just looking for teh bit after the '.....index.php?" I'll modify that to get into mine while i figure out how to get the main menu working ....


vbgamer45

action=admin;area=mediapro;sa=admin I belive
Community Suite for SMF - Take your forum to the next level built for 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

Steve

action=admin;area=mediapro;sa=settings is what I got. :)
DO NOT pm me for support!

rafeal

please add support >> hxxp:streamable.com [nonactive]

vbgamer45

Need example links and embed code.
Community Suite for SMF - Take your forum to the next level built for 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

badon

Is there a way to NOT embed a video, and just get a plain link? I'm trying to put a plain link into forum signatures, but it embeds the video. I even tried using HTML tags with an HTML link, in case that would prevent it from being embedded, but it didn't work. Ideas?

Steve

I can make it show the url by using the 'code' bbcode tags or by bolding the first letter of it but that prevents it from being an actual link. One would have to copy and paste your signature url into their address bar. Maybe someone else knows of a different way.
DO NOT pm me for support!

Advertisement: