pre-buffering
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
pre-buffering

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
wilma



Joined: 11 Mar 2005
Posts: 12

Posted: Fri Aug 05, 2005 12:55 am    Post subject: pre-buffering Reply with quote

Is there an event that tells you when pre-buffering has started? Or a way of knowing how much of a clip has buffered when it starts?

Back to top
View user's profile Send private message
Neil Smith [MVP Digital M
Guest





Posted: Fri Aug 05, 2005 12:30 pm    Post subject: Re: pre-buffering Reply with quote

On Fri, 05 Aug 2005 03:30:18 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:

Quote:
Is there an event that tells you when pre-buffering has started? Or a
way of knowing how much of a clip has buffered when it starts?

Yes, there is. When the player begins any buffering, it fires the
Player.Buffering(true|false) event, so you can attach that event to
the player object and point it to your event handler.

The other properties you need are player.network.bufferingProgress and
player.network.downloadProgress : These are percentage values.

The bufferingProgress is reset if the user stops the clip or the clip
reaches the end (i.e. it's not reset if the user pauses the clip). The
value is only available for *streaming* content (i.e. not from a web
server).

downloadProgress is only relevant to web servers, when delivering the
following file types : ASF, WMA, WMV, MP3 , MPEG, WAV Some AVI types.

player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in the
player's Menu options, though you can apparently also write to the
value).

player.network.bufferingCount is the number of times the Buffering
event was fired by the player for the current clip (again, it's reset
if the clip ends or the user stops play).


HTH
Cheers - Neil
Back to top
wilma



Joined: 11 Mar 2005
Posts: 12

Posted: Mon Aug 08, 2005 12:57 am    Post subject: Re: pre-buffering Reply with quote

Neil Smith [MVP Digital M wrote:
On Fri, 05 Aug 2005 03:30:18 -0500,
player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in the
player's Menu options, though you can apparently also write to the
value).


player.network.bufferingProgress is useful in that it tells you at the beginning of play that x% of the buffering time has been completed, but I don't seem to get a buffering event *within* a clip (i.e. at T-bufferingTime s) to tell you that the *next* clip has started pre-buffering.

Back to top
View user's profile Send private message
Neil Smith [MVP Digital M
Guest





Posted: Mon Aug 08, 2005 4:30 pm    Post subject: Re: pre-buffering Reply with quote

On Mon, 08 Aug 2005 03:30:14 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:

Quote:
Neil Smith [MVP Digital Mwrote:
On Fri, 05 Aug 2005 03:30:18 -0500,
player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in
the
player's Menu options, though you can apparently also write to the
value).

player.network.bufferingProgress is useful in that it tells you at the
beginning of play that x% of the buffering time has been completed,
but I don't seem to get a buffering event *within* a clip (i.e. at
T-bufferingTime s) to tell you that the *next* clip has started
pre-buffering.

Probably no, I don't remember anything which you could hook to know if
something ~other~ than the currently playing clip is buffering. It
seems to be only for the currentMedia.

Would this be useful though ? I might suggest it as a future
modification to the scripting interface ...

Cheers - Neil
Back to top
MFC_GUY
Guest





Posted: Wed Sep 14, 2005 12:30 am    Post subject: Re: pre-buffering Reply with quote

I have a similiar question. I'm trying to use "currentposition" to jump to a
timespot in the video, and it "kinda" works. I say kinda because although I
do wait for the wmv to be buffered (using the Buffering event), I find that
if the movie isn't 100% downloaded, the movie begins playing at the
beginning, instead at "currentposition." Is there a way to ensure the video
is fully downloaded, before jumping to a certain position?

MG

"Neil Smith [MVP Digital Media]" wrote:

Quote:
On Mon, 08 Aug 2005 03:30:14 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:

Neil Smith [MVP Digital Mwrote:
On Fri, 05 Aug 2005 03:30:18 -0500,
player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in
the
player's Menu options, though you can apparently also write to the
value).

player.network.bufferingProgress is useful in that it tells you at the
beginning of play that x% of the buffering time has been completed,
but I don't seem to get a buffering event *within* a clip (i.e. at
T-bufferingTime s) to tell you that the *next* clip has started
pre-buffering.

Probably no, I don't remember anything which you could hook to know if
something ~other~ than the currently playing clip is buffering. It
seems to be only for the currentMedia.

Would this be useful though ? I might suggest it as a future
modification to the scripting interface ...

Cheers - Neil

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Wed Sep 14, 2005 12:30 pm    Post subject: Re: pre-buffering Reply with quote

On Tue, 13 Sep 2005 15:33:02 -0700, "MFC_GUY"
<MFCGUY@discussions.microsoft.com> wrote:

With http delivery (from a web server only), you can use
player.network.downloadProgress which gives you the percentage of the
entire clip data that's been downloaded so far to the player. It's
available for WMP7 and later versions.

I'm pretty sure though not tested, that your web server will have to
send a Content-Length header to tell the player the overall byte count
of the content stream. Most of them do, but if you get problems
getting a stable value, that's where I'd start looking.

HTH
Cheers - Neil

Quote:
I have a similiar question. I'm trying to use "currentposition" to jump to a
timespot in the video, and it "kinda" works. I say kinda because although I
do wait for the wmv to be buffered (using the Buffering event), I find that
if the movie isn't 100% downloaded, the movie begins playing at the
beginning, instead at "currentposition." Is there a way to ensure the video
is fully downloaded, before jumping to a certain position?

MG

"Neil Smith [MVP Digital Media]" wrote:

On Mon, 08 Aug 2005 03:30:14 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:

Neil Smith [MVP Digital Mwrote:
On Fri, 05 Aug 2005 03:30:18 -0500,
player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in
the
player's Menu options, though you can apparently also write to the
value).

player.network.bufferingProgress is useful in that it tells you at the
beginning of play that x% of the buffering time has been completed,
but I don't seem to get a buffering event *within* a clip (i.e. at
T-bufferingTime s) to tell you that the *next* clip has started
pre-buffering.

Probably no, I don't remember anything which you could hook to know if
something ~other~ than the currently playing clip is buffering. It
seems to be only for the currentMedia.

Would this be useful though ? I might suggest it as a future
modification to the scripting interface ...

Cheers - Neil

Back to top
MFC_GUY
Guest





Posted: Wed Sep 14, 2005 8:30 pm    Post subject: Re: pre-buffering Reply with quote

Thanks Neil.

So would think that by setting autostart to false, then setting the URL to
http:// that the video would begin just downloading (ie. not playing) so I
could poll for the downloadprogress and start when it's 100%?

Thanks again for your input.
Mark

"Neil Smith [MVP Digital Media]" wrote:

Quote:
On Tue, 13 Sep 2005 15:33:02 -0700, "MFC_GUY"
MFCGUY@discussions.microsoft.com> wrote:

With http delivery (from a web server only), you can use
player.network.downloadProgress which gives you the percentage of the
entire clip data that's been downloaded so far to the player. It's
available for WMP7 and later versions.

I'm pretty sure though not tested, that your web server will have to
send a Content-Length header to tell the player the overall byte count
of the content stream. Most of them do, but if you get problems
getting a stable value, that's where I'd start looking.

HTH
Cheers - Neil

I have a similiar question. I'm trying to use "currentposition" to jump to a
timespot in the video, and it "kinda" works. I say kinda because although I
do wait for the wmv to be buffered (using the Buffering event), I find that
if the movie isn't 100% downloaded, the movie begins playing at the
beginning, instead at "currentposition." Is there a way to ensure the video
is fully downloaded, before jumping to a certain position?

MG

"Neil Smith [MVP Digital Media]" wrote:

On Mon, 08 Aug 2005 03:30:14 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:

Neil Smith [MVP Digital Mwrote:
On Fri, 05 Aug 2005 03:30:18 -0500,
player.network.bufferingTime is another property you might want to
look at (it's how long the player has been set to buffer items, in
the
player's Menu options, though you can apparently also write to the
value).

player.network.bufferingProgress is useful in that it tells you at the
beginning of play that x% of the buffering time has been completed,
but I don't seem to get a buffering event *within* a clip (i.e. at
T-bufferingTime s) to tell you that the *next* clip has started
pre-buffering.

Probably no, I don't remember anything which you could hook to know if
something ~other~ than the currently playing clip is buffering. It
seems to be only for the currentMedia.

Would this be useful though ? I might suggest it as a future
modification to the scripting interface ...

Cheers - Neil



Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB