Magento 2 : How Can Directly Upload Video to ProductMagento 2 add youtube video to media gallery programmaticallyMagento 2 product video won't start because of vimeo http instead of httpsAdd watch video button to magento 2video Not found while add youtube video in magento 2uploading a videoMagento 2 - Why is product image size & dimensions changed after upload?Get product videoCategory has not been created. URL key for specified store already existsMagento 2 CSV image upload from external url saves image name with full url pathMagento 2.3 can't upload product images

Does 5e have an equivalent of the Psychic Paper from Doctor Who?

Why do Martians have to wear space helmets?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

How important is it for multiple POVs to run chronologically?

A positive integer functional equation

Sleepy tired vs physically tired

What are some bad ways to subvert tropes?

What happens if the limit of 4 billion files was exceeded in an ext4 partition?

What exactly does "Stick Sensitivity" do in Smash Ultimate custom controls?

How did the IEC decide to create kibibytes?

Why weren't Gemini capsules given names?

How did Captain Marvel do this without dying?

How to reclaim personal item I've lent to the office without burning bridges?

How to deal with a Murder Hobo Paladin?

Convert integer to full text string duration

Would the Life cleric's Disciple of Life feature supercharge the Regenerate spell?

Taking my Ph.D. advisor out for dinner after graduation

What causes a fastener to lock?

How to supply water to a coastal desert town with no rain and no freshwater aquifers?

Is there a way to change the aspect ratio of a DNG file?

Motorcyle Chain needs to be cleaned every time you lube it?

How would a sea turtle end up on its back?

n-level Ouroboros Quine

Initializing variables variable in an "if" statement



Magento 2 : How Can Directly Upload Video to Product


Magento 2 add youtube video to media gallery programmaticallyMagento 2 product video won't start because of vimeo http instead of httpsAdd watch video button to magento 2video Not found while add youtube video in magento 2uploading a videoMagento 2 - Why is product image size & dimensions changed after upload?Get product videoCategory has not been created. URL key for specified store already existsMagento 2 CSV image upload from external url saves image name with full url pathMagento 2.3 can't upload product images






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I know that, we can upload video via Vimeo and Youtube video url in the product from admin.



However I cannot find a way to directly upload video file same as product image.



Does this means that I cannot host product video in my Magento server?










share|improve this question
























  • you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

    – Nits
    Jan 30 '17 at 10:52


















1















I know that, we can upload video via Vimeo and Youtube video url in the product from admin.



However I cannot find a way to directly upload video file same as product image.



Does this means that I cannot host product video in my Magento server?










share|improve this question
























  • you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

    – Nits
    Jan 30 '17 at 10:52














1












1








1








I know that, we can upload video via Vimeo and Youtube video url in the product from admin.



However I cannot find a way to directly upload video file same as product image.



Does this means that I cannot host product video in my Magento server?










share|improve this question
















I know that, we can upload video via Vimeo and Youtube video url in the product from admin.



However I cannot find a way to directly upload video file same as product image.



Does this means that I cannot host product video in my Magento server?







magento2 product admin file-upload video






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 '17 at 11:20









SR_Magento

3,42911 gold badges52 silver badges97 bronze badges




3,42911 gold badges52 silver badges97 bronze badges










asked Jan 25 '17 at 1:04









user1506075user1506075

3463 silver badges14 bronze badges




3463 silver badges14 bronze badges












  • you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

    – Nits
    Jan 30 '17 at 10:52


















  • you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

    – Nits
    Jan 30 '17 at 10:52

















you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

– Nits
Jan 30 '17 at 10:52






you have two options for upload video in magento 2. 1) upload video via google drive (blog.belvg.com/…) 2) install third party extension to upload video (fmeextensions.com/product-videos-magento-2.html)

– Nits
Jan 30 '17 at 10:52











3 Answers
3






active

oldest

votes


















0














Yes, you can only upload video to Magento 2 product via YouTube or Vimeo.






share|improve this answer






























    0














    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">
    </video>





    share|improve this answer






























      0














      If Display video in product page using mp4 video and another types of video



      We have to need create attribute for add video name



      Then get this video name to where want to display video



      <?php
      $_helper = $this->helper('MagentoCatalogHelperOutput');
      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
      $_product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
      ?>

      <?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
      <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
      <div class="prod_video_bg">
      <video width="400" controls>
      <source src="<?php echo $videoUrl; ?>" type="video/mp4">
      </video>
      </div>
      <?php endif; ?>





      share|improve this answer

























        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "479"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f156286%2fmagento-2-how-can-directly-upload-video-to-product%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        Yes, you can only upload video to Magento 2 product via YouTube or Vimeo.






        share|improve this answer



























          0














          Yes, you can only upload video to Magento 2 product via YouTube or Vimeo.






          share|improve this answer

























            0












            0








            0







            Yes, you can only upload video to Magento 2 product via YouTube or Vimeo.






            share|improve this answer













            Yes, you can only upload video to Magento 2 product via YouTube or Vimeo.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 30 '17 at 10:37









            Syed Muneeb Ul HasanSyed Muneeb Ul Hasan

            6503 silver badges17 bronze badges




            6503 silver badges17 bronze badges























                0














                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">
                </video>





                share|improve this answer



























                  0














                  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">
                  </video>





                  share|improve this answer

























                    0












                    0








                    0







                    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">
                    </video>





                    share|improve this answer













                    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">
                    </video>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 25 '18 at 4:10









                    crashtestxxxcrashtestxxx

                    1933 silver badges12 bronze badges




                    1933 silver badges12 bronze badges





















                        0














                        If Display video in product page using mp4 video and another types of video



                        We have to need create attribute for add video name



                        Then get this video name to where want to display video



                        <?php
                        $_helper = $this->helper('MagentoCatalogHelperOutput');
                        $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                        $_product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
                        ?>

                        <?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
                        <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
                        <div class="prod_video_bg">
                        <video width="400" controls>
                        <source src="<?php echo $videoUrl; ?>" type="video/mp4">
                        </video>
                        </div>
                        <?php endif; ?>





                        share|improve this answer



























                          0














                          If Display video in product page using mp4 video and another types of video



                          We have to need create attribute for add video name



                          Then get this video name to where want to display video



                          <?php
                          $_helper = $this->helper('MagentoCatalogHelperOutput');
                          $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                          $_product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
                          ?>

                          <?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
                          <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
                          <div class="prod_video_bg">
                          <video width="400" controls>
                          <source src="<?php echo $videoUrl; ?>" type="video/mp4">
                          </video>
                          </div>
                          <?php endif; ?>





                          share|improve this answer

























                            0












                            0








                            0







                            If Display video in product page using mp4 video and another types of video



                            We have to need create attribute for add video name



                            Then get this video name to where want to display video



                            <?php
                            $_helper = $this->helper('MagentoCatalogHelperOutput');
                            $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                            $_product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
                            ?>

                            <?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
                            <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
                            <div class="prod_video_bg">
                            <video width="400" controls>
                            <source src="<?php echo $videoUrl; ?>" type="video/mp4">
                            </video>
                            </div>
                            <?php endif; ?>





                            share|improve this answer













                            If Display video in product page using mp4 video and another types of video



                            We have to need create attribute for add video name



                            Then get this video name to where want to display video



                            <?php
                            $_helper = $this->helper('MagentoCatalogHelperOutput');
                            $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                            $_product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
                            ?>

                            <?php if($proVideo = $_helper->productAttribute($_product,$_product->getVideoName(), 'video_name')):?>
                            <?php $videoUrl = $this->getUrl('pub/media/catalog/product/videos/').$proVideo; ?>
                            <div class="prod_video_bg">
                            <video width="400" controls>
                            <source src="<?php echo $videoUrl; ?>" type="video/mp4">
                            </video>
                            </div>
                            <?php endif; ?>






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 18 at 6:30









                            AB SaiyadAB Saiyad

                            855 bronze badges




                            855 bronze badges



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Magento Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f156286%2fmagento-2-how-can-directly-upload-video-to-product%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                                Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                                Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form