HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How do I allow users to embed videos from their computer

I know about automatic embedding for sites like youtube, vimeo and so on. But I want users to be able to upload and embed videos from their computer. Please how do I acheive this.

Comments

  • hgtonighthgtonight ∞ · New Moderator

    You need to allow video uploads via a plugin. The File Attachment plugin should get you that. It should automatically give you a link to the video file.

    If you want a fancy embedded player, you will probably have to write your own format parser for that.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • j1mj1m New
    edited September 2015

    @hgtonight said:
    If you want a fancy embedded player, you will probably have to write your own format parser for that.

    Thanks for your reply.
    A basic player that can play mp4 and 3gp videos is fine. I am not very good at writing plugins for vanilla, I'll appreciate if you would point me to or give me a guide for writing this particular type of plugin. thanks.

  • hgtonighthgtonight ∞ · New Moderator

    http://www.w3schools.com/html/html5_video.asp

    You would need to write some JS to put the right markup in when you upload an attachment.

    Check out https://github.com/hgtonight/Plugin-TestingGround for a sample plugin I use to start working on stuff.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • @j1m Not a good idea. It is better that a video is from a trusted source. Youtube and such hosting sites, know the formats and parse them, so this reduces any security exploits.

    Also hosting large files and streaming them, takes resources and infrastructure. It not something that your average hosting plan is good at.

    Believe me if it was viable everyone would be doing it.

    What you could do is use a service that allows you to act as an upload proxy/interface, but the videos are hosted elsewhere, and have been reformatted and security screened.

    This is a specialist area.

    grep is your friend.

Sign In or Register to comment.