Uploading wmv video file using content editor webpart in sharepoint

Monday, December 9, 2013

Uploading wmv video file using content editor webpart in sharepoint

When you want to upload a video file in flv format but that format is too big and SharePoint is not allowing you to upload that video on you portal so you have some options to fix such issues.
You can convert that video flv or flash video into .wmv format and then try uploading that video on portal when you convert that video into wmv format using tools available there so you would see format is wmv but file size is extremely reduced.
If you want to upload that video using content editor web-part so you can just upload that wmv resource which is reduced file size on your portal but again you might be facing one more issue there,  that video would not be displaying or playing automatically when user would visit your video page.
Actually you want a video player should be there to play that video inside portal when you upload that video using content editor webpart.
Here are few techniques that would help you to upload video from content query web-part easily and this technique would show/display video on portal page and play it accordingly.
You can try copying the following code in content editor web-part in html source area - just edit your sharepoint webpage and modify content editor web-part , you would see text area , from there you can select html code and write the following there:

<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="600" height="400" id="mediaplayer1" title="Win Media Player">
  <param name="FileName" value="http://testserver /English/TS%20Strategy%20English%20ImageFilm2.wmv">
  <param name="AutoStart" value="False">
  <param name="ShowControls" value="False">
  <param name="ShowStatusBar" value="True">
  <param name="ShowDisplay" value="False">
  <param name="AutoRewind" value="False">
  <param name="DisplayBackColor" value="True" />
  <param name="BufferingTime" value="6">
  <embed src= http://testserver /English/TS%20Strategy%20English%20ImageFilm2.wmv" width="500" height="400" autostart="True" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" filename=" http://testserver /English/TS%20Strategy%20English%20ImageFilm2.wmv" showcontrols="True" showstatusbar="False" showdisplay="False" autorewind="True" displaybackcolor="True" bufferingtime="6">

Note: Code is written by sqlservermanagementstudio.net

Object tag has classid attribute that is for media player class id so you don’t worry let it be as it is. You can change some other attributes if you want like auto play, buffer time etc.
You need to change the source file in value attribute of object tag.
Finally when you write this code in content editor weppart so you would see video is displaying and playing inside sharepoint portal.
We have assumed this you have uploaded video in sharepoint video library and just referring it here inside object tag.
You can leave any comment if you are having issues in fixing while uploading video in sharepoint using content editor webpart.

No comments: