You can find the documentation for Plug-ins here: http://help.adobe.com/en_US/flashmediaserver/plugin_apiref/index.html http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0d662434-7ff6PluginAPI.html Basically you need to concentrate on E_PLAY event and two fields F_STREAM_LENGTH & F_STREAM_POSITION. I am pasting below some code which you need to paste in your sample Auth Plug-in which you can find in : <installdir>/samples/plug-ins. You would have paste below code in case E_PLAY section in MyFmsAuthorizeEvent::authorize() function and compile it. You would basically get AuthModule.dll which you need to place in modules/auth and restart FMS. // Set the Stream to be played back only for 10 seconds starting from 10 th second // Stream will play from 10th Second to 20th Second float fValue; char buf[1024]; if (getFloatField(m_pAev, IFmsAuthEvent::F_STREAM_LENGTH, fValue)) { float fLength = fValue; // in seconds sprintf(buf,"Original Stream length value passed from player %f\n",fLength); m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false); fLength=10.0; sprintf(buf,"Modifying Stream length value passed from player %f\n",fLength); m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false); setFloatField(m_pAev,IFmsAuthEvent::F_STREAM_LENGTH,fLength); } if (getFloatField(m_pAev, IFmsAuthEvent::F_STREAM_POSITION, fValue)) { float iPosition = fValue; // in seconds sprintf(buf,"Original Stream Position value passed from player %f\n",iPosition); m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false); iPosition=10.0; sprintf(buf,"Modifying Stream length value passed from player %f\n",iPosition); m_pFmsAuthServerContext->log(buf, IFmsServerContext::kInformation, false); setFloatField(m_pAev,IFmsAuthEvent::F_STREAM_POSITION,iPosition); }
... View more