View Single Post
  #6 (permalink)  
Old 03-18-2007, 01:16 AM
zachd [MSFT]
Newsgroup Contributor
 
Posts: n/a
Re: to diminish the time of delay


According to the data you provided, you are using "video.wmv" as the
filename. Due to the way HTML works, that means that you are using an HTTP
server. You cannot do that if you want to diminish the time of delay here.
You would need to use a Windows Media Server, which you should be able to
install and turn on on your Windows Server 2003 PC pretty easily.

Until you do that, this is expected.

--
Speaking for myself only.
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--

"Dimitris" <nome@example.com> wrote in message
news:4A447B9E-0FD3-44F0-AA23-0C51B62E518B@microsoft.com...
>I work with lessons on-line I will want myself to see a sample of my work
> this in this address,
>
> http://www.atualizemed.com.br/aula2/index.htm
>
> I use following script of embedding player in the web page
>
> <object
> id="VPlay"
> name="VPlay"
> width="240"
> height="160"
> type="application/x-oleobject"
> classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
> <param name="AnimationAtStart" value="0" />
> <param name="AutoStart" value="0" />
> <param name="CurrentMarker" value="0" />
> <param name="EnablePositionControls" value="0" />
> <param name="EnableTracker" value="0" />
> <param name="ShowAudioControls" value="0" />
> <param name="ShowCaptioning" value="0" />
> <param name="ShowControls" value="0" />
> <param name="ShowDisplay" value="0" />
> <param name="ShowGotoBar" value="0" />
> <param name="ShowPositionControls" value="0" />
> <param name="ShowStatusBar" value="0" />
> <param name="ShowTracker" value="0" />
> <param name="SRC" value="video.wmv" />
> <param name="TransparentAtStart" value="1" />
> <!-- <param name="Volume" value="-600"> -->
> <embed>
> src="video.wmv"
> width="240"
> height="160"
> autostart="0"
> type="application/x-mplayer2"
> id="VPlay"
> name="VPlay"
> showdisplay="0"
> showcontrols="0"
> animationatstart="0"
> transparentatstart="1"
> showstatusbar="0"
> showtracker="0"
> currentmarker="0"
> enablepositioncontrols="0"
> enabletracker="0"
> showcaptioning="0"
> showaudiocontrols="0"
> showgotobar="0"
> volume="-600"
> showpositioncontrols="0">
> </embed>
> </object>
>
> I use following script to synchronize the video with slide show and to
> advance or playback slides
>
> if ((x=findObj('VPlay'))!=null)
> var vidRef = x
>
> var VDState = 0
> var VDEnd = 0
> var VDNS = 0
>
> var VDCurrent
> var VDDuration
> var VDSlide_Old
> var NVDCurrent
>
> document.title = "Palestra - " + VDTitulo
>
> VITitulo.innerHTML = VDTitulo
> VIAutor.innerHTML = VDAutor
> VITime.innerHTML = VDTempoFinal
> VISlides.innerHTML = VDNS + "/" + (Number(VDSlides.length)-1)
>
> function mPlay(){
> document.all.DInfo.style.visibility = 'hidden'
>
> if ((x=findObj('DVideo'))!=null)
> x.style.visibility = 'visible'
>
> if(VDState == 1){
> mPause()
> }
> else{
> vidRef.Play();
> swapImage('bt2','','../images/pause.jpg',1)
> VDState = 1
> VDDuration = vidRef.Duration
> CKPosition()
> }
> }
>
> function mStop(){
> vidRef.Stop();
> VDState = 0
> swapImage('bt2','','../images/play.jpg',1)
> document.all.DInfo.style.visibility = 'visible'
>
> if ((x=findObj('DVideo'))!=null)
> x.style.visibility = 'hidden'
>
> vidRef.CurrentPosition = 0;
> }
>
> function mPause(){
> swapImage('bt2','','../images/play.jpg',1)
> vidRef.Pause();
> VDState = 2
> }
>
> function CKPosition(){
> VDCurrent = vidRef.CurrentPosition
>
> CKSlide()
> setTimeout('CKPosition()',500);
> }
>
> function CKSlide() {
> NVDCurrent = VDCurrent.toString()
>
> if (NVDCurrent.indexOf(".") != -1) NVDCurrent = NVDCurrent.substr(0,
> NVDCurrent.indexOf("."))
>
> t = NVDCurrent
> s = t%60
> m = (t-s)/60
>
> if (s < 10) s = "0"+ s
> if (m < 10) m = "0"+ m
> if (m+":"+s >= VDTempoFinal){
> VDEnd = 1
> mStop()
> mQuest()
> }
>
> VTime.innerHTML = m + ":" + s
> VISlides.innerHTML = VDNS + "/" + (Number(VDSlides.length)-1)
>
> if (NVDCurrent != VDSlide_Old){
> for (ns=1;ns<VDSlides.length;ns++){
> if ((Number(NVDCurrent) == (Number(VDTimeDiff) + Number(VDSlides[ns])))
> && (ns != 0)){
> swapImage('VSlide','','slides/img' + ns + '.jpg',1)
> VDSlide_Old = NVDCurrent
> VDNS = ns
> }
> }
> }
> }
>
> function FetchSlide(way) {
> nx_slide = eval("VDNS" + way +"1");
>
> if(nx_slide > VDSlides.length) {
> nx_slide = VDSlides.length - 2;
> } else if(nx_slide < 0) {
> nx_slide = 0;
> }
>
> GoToSlide(nx_slide)
> }
>
> function GoToSlide(slide_id) {
> try {
> vidRef.CurrentPosition = VDSlides[slide_id];
> VDState = 0;
> mPlay();
> } catch(e) {
> alert("Erro ao encontrar o slide solicitado.")
> }
> }
>
> This is mime tipes configure em IIS (windows 2003 server)
>
> File extension MIME type
> .asf video/x-ms-asf
> .asx video/x-ms-asf
> .wma audio/x-ms-wma
> .wax audio/x-ms-wax
> .wmv video/x-ms-wmv
> .wvx video/x-ms-wvx
> .wm video/x-ms-wm
> .wmx video/x-ms-wmx
> .wmz application/x-ms-wmz
> .wmd application/x-ms-wmd
>
> I wait to be able to have shown what it occurs and pardons me the English,
> my native language is the Portuguese.
>
> "zachd [MSFT]" wrote:
>
>>
>> Could you clarify what exactly are you doing? A working sample would be
>> good.
>>
>> If mms:// is pointing to an IIS or Apache server, no benefit would be
>> gained. If you could provide an actual working URL or sample, that would
>> be
>> most effective.
>>
>> Kind regards,
>> -Zach
>> --
>> Speaking for myself only.
>> See http://zachd.com/pss/pss.html for some helpful WMP info.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> --
>>
>> "Dimitris" <nome@example.com> wrote in message
>> news:D337D762-9549-4643-BECF-0ED09D982A83@microsoft.com...
>> > Debtor for the attention, was valuable its indication, really has much
>> > good
>> > thing in this site.
>> > But what he happens and that exactly, calling for the protocol mms: //
>> > the
>> > problem continues.
>> > What I can make to speed up the processing of the heading of the file?
>> > where
>> > they are indexs and the marks.
>> > Dimitris
>> >
>> > "zachd [MSFT]" wrote:
>> >
>> >>
>> >> In the example below, the content is coming from an HTTP server, and
>> >> thus
>> >> it
>> >> is not optimized for seeking and other "trick" functionality. If you
>> >> put
>> >> this content upon a Windows Media Server, you should then be able to
>> >> instantly seek / fast-forward.
>> >>
>> >> --
>> >> Speaking for myself only.
>> >> See http://zachd.com/pss/pss.html for some helpful WMP info.
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >> --
>> >>
>> >> "Dimitris" <nome@example.com> wrote in message
>> >> news:24156624-A2A6-485F-98C7-B336639934BC@microsoft.com...
>> >> >I have a question to make for the staff most experienced of fórum and
>> >> >wait
>> >> >to
>> >> > be able to get a result.
>> >> > I have a video of a HTML page , the codified video this with stream,
>> >> > index
>> >> > and marks.
>> >> >
>> >> > What it occurs and that the functions To fast-forward and fast
>> >> > rewind
>> >> > so
>> >> > after function to have passed the time of 4 minutes. I do not obtain
>> >> > to
>> >> > understand the reason, simply in these 4 minutes initial the buttons
>> >> > to
>> >> > fast
>> >> > forward and to fast rewind they do not function and also not me of
>> >> > the
>> >> >
>> >> > acknowledgment of error, after this time they function very well.
>> >> > In the audio version alone of the functions to fast forward and to
>> >> > fast
>> >> > rewind they function immediately and and alone this when I call the
>> >> > video
>> >> > to
>> >> > standalone player does not happen the same thing fast-forward and
>> >> > to
>> >> > fast
>> >> > rewind they only function after 4 minutes passed the video Somebody
>> >> > can
>> >> > say
>> >> > me as makes to correct this, as poso to diminish this open assembly
>> >> > time?
>> >> > The housed video this in a server Windows 2003
>> >> > Any aid and very well coming
>> >> > Dimitris
>> >> >
>> >> > The code of embedded player in the page and the following one
>> >> > <object
>> >> > id="VPlay"
>> >> > name="VPlay"
>> >> > width="240"
>> >> > height="160"
>> >> > type="application/x-oleobject"
>> >> > classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
>> >> > <param name="AnimationAtStart" value="0" />
>> >> > <param name="AutoStart" value="0" />
>> >> > <param name="CurrentMarker" value="0" />
>> >> > <param name="EnablePositionControls" value="0" />
>> >> > <param name="EnableTracker" value="0" />
>> >> > <param name="ShowAudioControls" value="0" />
>> >> > <param name="ShowCaptioning" value="0" />
>> >> > <param name="ShowControls" value="0" />
>> >> > <param name="ShowDisplay" value="0" />
>> >> > <param name="ShowGotoBar" value="0" />
>> >> > <param name="ShowPositionControls" value="0" />
>> >> > <param name="ShowStatusBar" value="0" />
>> >> > <param name="ShowTracker" value="0" />
>> >> > <param name="SRC" value="video.wmv" />
>> >> > <param name="TransparentAtStart" value="1" />
>> >> > <!-- <param name="Volume" value="-600"> -->
>> >> > <embed>
>> >> > src="video.wmv"
>> >> > width="240"
>> >> > height="160"
>> >> > autostart="0"
>> >> > type="application/x-mplayer2"
>> >> > id="VPlay"
>> >> > name="VPlay"
>> >> > showdisplay="0"
>> >> > showcontrols="0"
>> >> > animationatstart="0"
>> >> > transparentatstart="1"
>> >> > showstatusbar="0"
>> >> > showtracker="0"
>> >> > currentmarker="0"
>> >> > enablepositioncontrols="0"
>> >> > enabletracker="0"
>> >> > showcaptioning="0"
>> >> > showaudiocontrols="0"
>> >> > showgotobar="0"
>> >> > volume="-600"
>> >> > showpositioncontrols="0">
>> >> > </embed>
>> >> > </object>
>> >>
>> >>
>> >>

>>
>>
>>



Reply With Quote

 
Old 03-18-2007, 01:16 AM