html5 - how to share a video from my website on facebook like youtube -


i have website has html5 video player.

i want share link ( ex: http://site.com/video/example-2 ) on facebook , 1 users click on image of post on facebook starts playing video there.

just youtube videos , vimeo videos.

how can that?

thanks

i have website has html5 video player.

you want find swf (*.swf) video player can stream video url={video_hot_link} (pass url parameter swf player)

now after got swf player ready streaming videos add facebook open graph <head> tag below:

<meta property="og:type" content="video"> <!-- site/page type more information http://ogp.me/ --> <meta property="og:video:type" content="application/x-shockwave-flash"> <!-- need because player swf player --> <meta property="og:video:width" content="width in pixels"> <!-- player width --> <meta property="og:video:height" content="height in pixels"> <!-- player height --> <meta property="og:video" content="http://example.com/{path_to}/{swf_player}.swf?url={video_soure}"> <!-- need echo/print video source (*.mp4) server-side code --> <meta property="og:video:secure_url" content="https://example.com/{path_to}/{swf_player}.swf?url={video_soure}"> <!-- required users whom use ssl (actually facebook forces use ssl you're required use og:video:secure_url) 1 --> 

additionally, need add following prefix <html> likeso

<html prefix="og: http://ogp.me/ns#"> 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -