I ended up doing it with the risky inserts directly into the tables.
the tables involved are (in this order)
This should happen inside one class.
If anyone is struggling with this, it's fixed in Magento 2.1.8 EE:
and Magento 2.1.8 CE:
You can follow these steps to achieve the above scenario
1- Create a custom variable from
Admin-> System-> Other Settings-> Custom Variable
Then save the configurations.
2- Create a block and add an iframe embed code. Add a custom variable that you want to link.
Uploading video for extensions in addition to the images is available for older or existing Magento partners (all levels) since Magento Connect update in 2012.
See part of the partners email newsletter:
Please contact your partner manager do get detailed instructions regarding the video size, lengths and quality standards.
I don't like to overrule Marius' opinion because the answer he's given is really excellent & actually works! However, if you or your company isn't so inclined to run direct SQL queries like that I'd suggest something more like this, using Magento 2's API:
$data = [
'entry' => [
'id' => null,
'media_type' => 'external-video',
You can add a video by edit some code in below plugin
You need to add below code in di.xml file, file location etc/adminhtml/di.xml
<item name="mp4" xsi:type="string">video/mp4</item>
For video tag, you need to add below code in this file Controller/...
It's not recommended to host videos on your server as it may consume resources and large storage from your server, this is why even large ecommerce depends on 3rd party video providers to embed required videos. Youtube embedded videos give you the ability to style the embedded video so that you can style it according to your website design
However, if you ...
Hey You can use to upload video anywhere in your magento site
Use below Code:
<iframe width="500" height="300" src="https://www.youtube.com/watch?v=5fzb-qLL2wo" frameborder="0" allowfullscreen></iframe>
If you're looking to upload product video then there is one more method do it via YouTube. These are the steps which you have to follow:
Upload your video to YouTube.
Go to google developer console and generate YouTube Data API.
Then add the generated Youtube API key to your Magento 2 store by
going to STORES --> Configuration.
At last, just add Video URL (...
As an alternative solution, if you don't want to use YouTube or Vimeo, upload file directly in to your server, and using browser native html video tag, you can insert video manually. Just simple example bellow, inside product page description.
<video width="480" controls>
<source src="/pub/media/video/your-video-file.mp4" type="video/mp4">
download your extension and check if extension layout and phtml files were in the rwd/default folder or in the default/default folder,
if its in default/default folder than copy into your Yourpackage/Yourtheme folder and do same as for skin folder to .
Hope this will help you
You can add a product video without using an extension. You can do so by editing some files programmatically as explained below.
Create “video” text input attribute. Add it to appropriate attribute set and reindex your data.
Go to the following file.
Find the following code in ...
there is a bug in magento2 v. 2.1 and still in 2.1.2.
There is a workaround:
Bugtracking and solution
Its not working for me but it work for some other ppl. I cant set all xml construction of my catalog_product_view in the default theme. Thats why I cant accept that i have to backstep to the default magento theme to fix it.
You will need video player to run the video, have you looked into this https://www.apptha.com/category/extension/magento/hd-flv-player-magento
And you can use this http://magento-flv-player.soft112.com/
I didn't use it myself but you free to give it a try
Just google for free magento video extension
The question is, how to import the videos afterwards, but I'm quite sure, that the videos are an attribute, therefore you can just write them into the eav_table for videos I would guess.