Extension:WMPEmbed/bntv

This is a standalone file, not indended for use within MediaWiki, it uses the Tigra Slider control, available from http://www.softcomplex.com/products/tigra_slider_control/.

sctv.php
     >" onclick="WMPAX.Controls.Fastforward" />      var B_TPL = { 'b_vertical' : false, 'b_watch': true, 'n_controlWidth': 110, 'n_controlHeight': 10, 'n_sliderWidth': 16, 'n_sliderHeight': 18, 'n_pathLeft' : 1, 'n_pathTop' : -3, 'n_pathLength' : 90, 's_imgControl': 'img/sldr5h_bg.gif', 's_imgSlider': 'img/sldr4v_sl.gif', 'n_zIndex': 0 }								var B_INIT = { 's_name': 'Vol', 'n_minValue' : 0, 'n_maxValue' : 100, 'n_value' : 12, 'n_step' : 1 }								var volslider = new slider(B_INIT, B_TPL); <td style="height: 15"><input name="Fullscreen" type="button" value="Fullscreen" onclick = "WMPAX.fullscreen='true';" /> <td style="height: 15"><input name="streaminfo" value="00:00:00 / 00:00:00" type="text" style="border-style: none; width: 120px; font-family: Arial, Helvetica, sans-serif; font-weight: normal; color: white; background-color: black; text-align: center;"/> <td style="height: 15"> Seek  <input name="hr" type="text" value="00" style="width: 20px" size="2"/>:<input name="min" type="text" value="00" style="width: 20px" size="2" />:<input name="sec" type="text" value="00" style="width: 20px" size="2" /> <input name="Go" type="button" value="Go" onclick="var hr=0;							var min=0;							var sec=0;							hr = eval(document.forms.main.hr.value);							min = eval(document.forms.main.min.value);							sec = eval(document.forms.main.sec.value);							document.forms.main.hr.value = '00';							document.forms.main.min.value = '00';							document.forms.main.sec.value = '00';							var gotime=0;							min = min*60;							hr = hr*3600;							gotime = hr+min+sec;							WMPAX.controls.currentposition = gotime;"> <td colspan="11" class="style3"> Episode Select <select name="fileindex" style="width: 250px" class="style1" onchange =	"WMPAX.URL = 'mms://mms.bntbtc.com/sctv/' + (fileindex.value);										WMPAX.Controls.Play"> <?php $dir = "f:/webapps/rtsp/wmroot"; $files = scandir($dir); //the main code foreach ($files as $tfs) { $strlen = strlen($tfs); if ($strlen > 4) { $ext = substr($tfs, -3); if ($ext == "wmv") { $fsrs = substr($tfs, 0, 4); if (strtolower($fsrs) == "sctv") { $selectedstring = " "; if ($index == $fileindex) { $selectedstring = " selected=\"\" "; }										$enum = substr($tfs, 4); $enum = substr($enum, 1); $enum = ltrim($enum, "0"); $enum = substr($enum, 0, -4); echo "<option".$selectedstring."value=\"".$tfs."\">"; echo "SCTV Episode ".$enum; echo " "; }									}								}							}						?>	 BNTV Player Version <?php echo $version; ?> Designed By Philip Gustafson, (C)2000-2010 Philip Technologies Inc.  Powered by PHP <?php echo phpversion; ?> and Windows Media Player Version document.write(document.forms.main.WMPAX.versionInfo);