Media Player in Sharepoint WSS3.0/ MOSS 2007 / Sharepoint 2010 by passing video url as querystring parameter
By placing the below code in the CEWP a Windows Media Player object will be placed on the page to play audio / video. You can pass the url of the media file as querystring parameter.
//Get request parameters through JavaScript
function getParameter ( queryString, parameterName ) {
// Add "=" to the parameter name (i.e. parameterName=value)
var parameterName = parameterName + "=";
if ( queryString.length > 0 ) {
// Find the beginning of the string
begin = queryString.indexOf ( parameterName );
// If the parameter name is not found, skip it, otherwise return the value
if ( begin != -1 ) {
// Add the length (integer) to the beginning
begin += parameterName.length;
// Multiple parameters are separated by the "&" sign
end = queryString.indexOf ( "&" , begin );
if ( end == -1 ) {
end = queryString.length
}
// Return the string
return unescape ( queryString.substring ( begin, end ) );
}
// Return "null" if no parameter has been found
return "null";
}
}
//Replace * by empty string
<* object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="600" height="400" id="mediaplayer1" title="Media Player" >
<* param name="FileName" value=getParameter(window.top.location.search.substring(1),"mediaurl") >
<* param name="AutoStart" value="True" >
<* param name="ShowControls" value="True" >
<* param name="ShowStatusBar" value="False" >
<* param name="ShowDisplay" value="False" >
<* param name="AutoRewind" value="True" >
<* param name="DisplayBackColor" value="True" / >
<* param name="BufferingTime" value="6" >
<* param name="allowfullscreen" value="true">
<* param name="allowscriptaccess" value="always">
<* embed src=getParameter(window.top.location.search.substring(1),"mediaurl") width="600" height="400" autostart="True" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" filename=getParameter(window.top.location.search.substring(1),"mediaurl") showcontrols="True" showstatusbar="False" showdisplay="False" autorewind="True" displaybackcolor="True" bufferingtime="6" >
<* /embed >
<* /object >
Vinay Chavadi's Blog on Application Development in SharePoint 2010/2013/2016 & SharePoint Online
Wednesday, May 15, 2013
Wednesday, May 8, 2013
Marketing: Suspect, Prospect, Lead & Oppotunity
Suspect – Everyone in your target market
Prospect – Anyone who can be targetted for your marketing efforts and pre sales activities.
Lead – The right person with the ability to buy. A prospect who has shown a certain level of interest in your products or services
Opportunity – The right person who is ready to buy. A lead who is ready to give you a chance to present your services, to discuss up potential project, or submit a formal quote for your products and services.
Prospect – Anyone who can be targetted for your marketing efforts and pre sales activities.
Lead – The right person with the ability to buy. A prospect who has shown a certain level of interest in your products or services
Opportunity – The right person who is ready to buy. A lead who is ready to give you a chance to present your services, to discuss up potential project, or submit a formal quote for your products and services.
Subscribe to:
Posts (Atom)
-
There are 3 SPJobLockType available: 1. SPJobLockType.None -- if you set it none, the instance will run in all the available s...
-
Overview: We define disaster recovery as the ability to recover from a situation in which a data center that hosts SharePoint Server beco...