Jonathontek-gmail
-
12/26/2012 6:52:14 PM
RE:Playing MP4 video
Here is the code I am using..
string HTML = string.Format("<video id=\"my_video_1\" class=\"video-js vjs-default-skin center\" controls preload=\"auto\" width=\"640\" height=\"264\" poster=\"my_video_poster.png\" data-setup=\"{0}\"> <source src=\"{1}\" type=\'video/mp4\'> <source src=\"{1}\" type=\'video/webm\'> </video>", "{}", pathToVideo); - this is being passed to a literal control in custom web part.
URL is retrieved by (FileGuid is hard coded for testing): MediaLibraryHelper.GetMediaFileUrl("B64350CE-195A-4376-82B8-8E2357349775", CMSContext.CurrentSiteName);
|