gpt4 book ai didi

flash - 如何将视频嵌入到 GitHub README.md 中?

转载 作者:行者123 更新时间:2023-12-03 16:20:11 46 4
gpt4 key购买 nike

是否可以将 Flash 视频嵌入到 GitHub 上的 README.md 中?它没有出现:https://github.com/mattdipasquale/PicSciP

最佳答案

2021 年 5 月更新:

Video uploads now generally available


Video upload is now supported everywhere you can author Markdown in GitHub, including from the mobile app.

Share demos, show reproduction steps, and more in issue, pull request, and discussion comments as well as on repository Markdown files such as READMEs.


Lauren Brose (GitHub 问题的产品经理)详细信息,这可以帮助:
  • 帮助维护者重现错误
  • 为审阅者提供拉取请求的上下文
  • 分享功能如何形成
  • 从任何地方上传您的视频! (现在所有用户都可以从 iOS 和 Android GitHub 移动应用程序上传视频)

  • 注意:如 commented来自 Sancarn , webm (打开网络媒体项目)似乎不直接支持。
    虽然...正如 Garrett LeSage 所指出的:

    If you change the extension from .webm to .mov (or just tack on .mov after .webm), @GitHub accepts the video and even displays it inline.


    Matthew Gregg补充:

    Does webm play on iOS devices? This might be why they soft block.



    2021 年 2 月更新,如 Abhishek Singh 所述在 comments , 和 Nat Friedman on Twitter :

    You can now – finally! – drop images and videos (mp4, gif) onto the Markdown file editor on GitHub.

    image and video

    Paste works too, if you're into that kind of thing.
    It's worked in issues and PRs for a while; what's new here is support in markdown files.

    GitHub Enterprise Server tends to lag http://github.com by a couple of months, but it will get there in a future release.


    Kyle Daigle (GitHub 特殊项目高级总监)补充说:

    Currently, the file is stored as an asset outside the repository (sort of like an image uploaded to an image).
    (Uploads to githubusercontent and stores it there. Then makes a link in the markdown to that uploaded image.)

    The team is interested in exploring adding the image to the repo too... would you want something like that?


    Sven-Michael Stübe评论:

    I usually add the images to my repo. Especially if you host your blog as github page w/ a custom domain.

    But I think this feature would also add a lot of complexity. It's not a big pain to add the image manually. For PRs+Comments the drag&drop is more essential


    凯尔回答:

    For the blog case (which is what made us think about image upload to the repo) you're totally right.
    This type of drag and drop is helpful when adding an image to a README or other in-repo documentation though (when you don't want to upload to the repo).


    initial proposal... back in 2012(!) 以来,该功能已经取得了长足的进步。

    2020 年 12 月更新:参见“ Video upload public beta ”,其中嵌入了视频(仅嵌入,而非链接/引用)
    https://i0.wp.com/user-images.githubusercontent.com/22751162/101841526-ebf6ff00-3afa-11eb-965d-5ce11efdb9f8.png?ssl=1

    2010:“ Github Flavored Markdown”不支持任何页面的这种功能:
    一个旧的支持线程“在 Markdown 文件中嵌入 YouTube 视频”指出:

    With pages.github.io, yes, everywhere else, no.


    (注意:如“ Github Top-Level Project Page”中所述, github.io user and organization pages 自 2013 年 4 月以来的新域。
    page GitHub publication is presented here )
    这可能是像语法高亮一样的功能请求。
    例如:“ HTML5 video in markdown ”(2010 年 8 月):

    Is there any way to implement a HTML5 video into the README.markdown file?


    目前还没有,但我们将来可能会扩展您可以使用自述文件执行的操作。
    同时,您可以使用 GitHub Pages 和我们的 Wiki 执行此操作。

    Benjamin Oakes在评论中确认(2012 年 5 月):

    I sent in a support request. The response was that embedding videos is not supported.

    关于flash - 如何将视频嵌入到 GitHub README.md 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4279611/

    46 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com