Share HTML5 player on Facebook wall

后端 未结 1 701
梦毁少年i
梦毁少年i 2020-12-08 23:14

I have a player both in Flash as well the same in HTML5 version. I am calling a page through iframe which detects the browser and device and loads the player accordingly and

相关标签:
1条回答
  • 2020-12-08 23:46

    Check the section corresponding to audio and video data on the open graph documentation page.

    You will need to add the following open graph tags to the resource page as given in the documentation.

    <html xmlns:og="http://ogp.me/ns#"> 
        <head>
            ...
            [REQUIRED TAGS]
            <meta property="og:video" content="http://example.com/awesome.swf" />
            <meta property="og:video:height" content="640" />
            <meta property="og:video:width" content="385" />
            <meta property="og:video:type" content="application/x-shockwave-flash" />
            <meta property="og:video:secure_url" 
                  content="https://secure.example.com/awesome.swf" />
            <meta property="og:video" content="http://example.com/html5.mp4" />
            <meta property="og:video:type" content="video/mp4" />
            <meta property="og:video" content="http://example.com/fallback.vid" />
            <meta property="og:video:type" content="text/html" />
            ...
        </head>
    
    0 讨论(0)
提交回复
热议问题