urmyfaith
V2EX  ›  macOS

github 上的 markdown 文件在显示的时候不支持视频?

  •  
  •   urmyfaith · Dec 25, 2014 · 5349 views
    This topic created in 4196 days ago, the information mentioned may be changed or developed.

    github上的markdown文件在显示的时候不支持视频?

    使用的是

    <iframe height=1024 width=960 src="http://localhost/~zx/video-js/demo.html" frameborder=0 allowfullscreen></iframe>
    

    其中http://localhost/~zx/video-js/demo.html是使用video.js搭建的html5视频播放.

    在本地打开markdown文件可以显示视频,例如使用Mou,使用Atom来预览文件都可以.

    但是在github上传上去之后,iframe不支持显示.

    有在github仓库的markdown文件中显示视频的方法么?

    2014-12-25 v1

    6 replies    2014-12-27 20:05:23 +08:00
    urmyfaith
        1
    urmyfaith  
    OP
       Dec 25, 2014
    ???都关❤12306去了?
    otakustay
        2
    otakustay  
       Dec 26, 2014
    github的markdown是不支持嵌入HTML的,否则太容易造成各种攻击。所以iframe没戏,别想了
    urmyfaith
        3
    urmyfaith  
    OP
       Dec 26, 2014
    @otakustay 好吧,我想多了 .
    hzlzh
        4
    hzlzh  
    PRO
       Dec 27, 2014
    视频转成 GIF 图就 ok 了
    urmyfaith
        5
    urmyfaith  
    OP
       Dec 27, 2014
    @hzlzh 开始使用过,但是视频在1分钟左右,图片就大了点.
    hzlzh
        6
    hzlzh  
    PRO
       Dec 27, 2014
    @urmyfaith 图片大就用低帧图方案,Gif 总比 Video 小
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2328 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.