javascript - Dynamically load video in embedded player -


i have video player on web page:

<object id='mediaplayerobj' width="320" height="285"                          classid='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95'                          codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701'                         standby='loading microsoft windows media player components...' type='application/x-oleobject'>                         <param id='movie' name='filename' value="">                         <param name='animationatstart' value='true'>                         <param name='transparentatstart' value='true'>                         <param name='autostart' value="true">                         <param name='showcontrols' value="true">                         <param name='loop' value="true">                         <embed type='application/x-mplayer2'                              pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'                             id='mediaplayer' name='mediaplayer' displaysize='4' autosize='-1'                              bgcolor='darkblue' showcontrols="true" showtracker='-1'                              showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"                             src="" autostart="true" designtimesp='5311' loop="true">                         </embed>                     </object> 

i have left filename value blank because want dynamically set it. have grid view , load list of videos stored on our server. want player load movie server. here's javascript:

var grid = document.getelementbyid('<%=gvpresentations.clientid %>');         var cell = grid.rows[(+index) + 1].cells[2].textcontent;         var path = "d:\\presentations\\";         document.getelementbyid('movie').value = path + cell; 

however nothing happens when change filename element. missing?


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -