when i down load wmv file from server so it take long time to display i want to display immedialy how to do this asp.net coding i use embed tag to display wmv file
mswi wrote:
How to reduce startup latency while playing .wmv file - from Javas
21-Aug-08
Hi
We are using html object tag to embed and play the video files(.wmv) by
using classid
22d6f312-b0f6-11d0-94ab-0080c74c7e9
When we try to play the videos from the remote server using http URL, video
buffering is taking more time and then playing the video. The user is
experiencing the latency in playing the video file
The video files are stored at a physical location on the remote server and
accessed by http
<OBJECT ID="MediaPlayer" WIDTH="500" HEIGHT="500"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject" onclick="DisplayVideo();">
<PARAM NAME="FileName" VALUE="testvideo.wmv"
<param name="autoStart" value="false"/>
<param name="showControls" value="false"/
<PARAM name="menu" value="false">
<EMBED TYPE="application/x-mplayer2
SRC="testvideo.wmv
NAME="MediaPlayer"
WIDTH="500 "
HEIGHT="500"
</EMBED>
</OBJECT
As of now we are displaying a message to the user at the time when the video
is getting bufferred
Is there a way to play the video file as soon as the user starts it, instead
of waiting till the whole stream is bufferred
We need a property that we can set from Javascript to the MediaPlayer object
Is there any property exposed by Windows Media Player ti achieve this
We want the video to be played immediately without waiting till the whole
content bufferred
Any help is greatly Appreciated
Regards
mswin
Previous Posts In This Thread:
On Thursday, August 21, 2008 4:24 AM
mswi wrote:
How to reduce startup latency while playing .wmv file - from Javas
Hi
We are using html object tag to embed and play the video files(.wmv) by
using classid
22d6f312-b0f6-11d0-94ab-0080c74c7e9
When we try to play the videos from the remote server using http URL, video
buffering is taking more time and then playing the video. The user is
experiencing the latency in playing the video file
The video files are stored at a physical location on the remote server and
accessed by http
<OBJECT ID="MediaPlayer" WIDTH="500" HEIGHT="500"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject" onclick="DisplayVideo();">
<PARAM NAME="FileName" VALUE="testvideo.wmv"
<param name="autoStart" value="false"/>
<param name="showControls" value="false"/
<PARAM name="menu" value="false">
<EMBED TYPE="application/x-mplayer2
SRC="testvideo.wmv
NAME="MediaPlayer"
WIDTH="500 "
HEIGHT="500"
</EMBED>
</OBJECT
As of now we are displaying a message to the user at the time when the video
is getting bufferred
Is there a way to play the video file as soon as the user starts it, instead
of waiting till the whole stream is bufferred
We need a property that we can set from Javascript to the MediaPlayer object
Is there any property exposed by Windows Media Player ti achieve this
We want the video to be played immediately without waiting till the whole
content bufferred
Any help is greatly Appreciated
Regards
mswin
On Thursday, August 21, 2008 11:10 AM
Neil Smith [MVP Digital Media] wrote:
Re: How to reduce startup latency while playing .wmv file - from Javas
On Thu, 21 Aug 2008 01:24:01 -0700, mswi
<***@discussions.microsoft.com> wrote:
Aaaagghhhh ! Why do people still use embedding code from 1999 ? The
player SDK clearly notes a CLSID starting 69.... for WMP7 and later !
The CLSID you've listed throws the player into compatibility mode for
WMP6.4 so your object model will probably be incorrect or at best,
emulated.
See this page for how to begin embedding WMP 7 and later :
http://msdn.microsoft.com/en-us/library/bb249579.aspx
Considerable improvements in XHTML compliance can be achieved using
adaptations of the Flash Satay type method demonstrated on the site
www.alistapart.com and subsequent links
This is an integral part of video streaming and considered normal
No and there will never be - buffering is integral to streaming. It
can arise from a range of sources, but in your case you're only
encountering the player buffers, not those from a streaming server or
a live encoder.
You can in theory reduce the player buffers for specific content
sources using javascript, but not with that embedding code. See
http://msdn.microsoft.com/en-us/library/bb249243.aspx
player.network.bufferingtime can be set down to zero, typically it's 5
seconds by default but may have been specifically chosen by the user
Tampering with those values is generally a bad idea unless you have
very specific detailed knowledge of the users local network conditions
and the routed path to the user (do you ?)
You can't play immediately, but you also shouldn't get download of the
complete content even over HTTP.
If that's happening, your server is probably reporting the wrong MIME
type for the content (which should be video/x-ms-asf assuming WMV)
You *should* also enable client side caching on your server, so
examine the server headers for no-cache, proxy and expires headers
appropriate to the amount of time you expect your viewers to re-view
the content (i.e. several days at least)
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
On Thursday, August 21, 2008 12:50 PM
Sreejumon [MVP] wrote:
Hello,Instead of using Media Player in HTML (web page), You could give a try
Hello,
Instead of using Media Player in HTML (web page), You could give a try to
silverlight player. There you can get cross platform benifit.
Just check the silverlught player here
http://www.cenracingeast.com/Matrixpro.html
Regards
Sreejumon [MVP]
"mswin" <***@discussions.microsoft.com> wrote in message news:524F2FD1-484E-454E-A184-***@microsoft.com...
On Thursday, August 21, 2008 6:05 PM
Neil Smith [MVP Digital Media] wrote:
Re: How to reduce startup latency while playing .wmv file - from Javas
On Thu, 21 Aug 2008 22:20:37 +0530, "Sreejumon [MVP]"
<***@gmail.com> wrote:
That will have no significant impact on the ability to reduce the
buffering period required in the real world, by real users.
Maybe it will add 5 kudos points to a CV though - who knows !
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
On Wednesday, August 27, 2008 5:00 AM
mswi wrote:
Hi Neil,Thanks a lot for detailed response.I have tgried usingplayer.network.
Hi Neil,
Thanks a lot for detailed response.
I have tgried using
player.network.bufferingtime = 0
but, after setting this the video quality that is played is veru bad and it
get distorted.
I have even tried using silverlight to play the video file, but still the
buffering time seems to be same in both the cases. And moreover, for the
first time this will prompt the user to download silverlight t play the video.
I have very little knowledge on the media player internal working.
When I saw a video clipping on Youtube, even it is big in size, it will
start as soon as I start playing the video.
Is there any alternate approach to play the video files on the webpage,
without the user experiencing latency, using media player.
Thanks in Advance for any thoughts on this.
"Neil Smith [MVP Digital Media]" wrote:
On Wednesday, August 27, 2008 7:19 PM
Neil Smith [MVP Digital Media] wrote:
Re: How to reduce startup latency while playing .wmv file - from J
On Wed, 27 Aug 2008 02:00:01 -0700, mswin
<***@discussions.microsoft.com> wrote:
As I noted, that's because you're subverting the very thing which is
required for smooth playback. There is no workaround to this.
Silverlight is not ubiquitous (and may never be), this is to be
expected.
That's because the page begins preloading the video as soon as the
flash player is instantiated.
Plus they often use the very low quality (but slightly lower latency)
H263 video codec which explains the macroblocking - unless you access
content on pages with alternate paths having On2 VP6 or H264 codecs
also supported in later versions of flash.
H263 was commonly used by video conferencing applications (such as
Netmeeting) because of the lower latency, but also the lower recovery
available for "missing" packets.
Latency cannot be tolerated in video conferencing, and you're trying
to do that, but with codecs optimised for playback quality, which
won't work.
No, there isn't, unless you're prepared to precache the video by
starting playback in a hidden player using script, and immediately
pausing it when the playing event is triggered.
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
On Thursday, August 28, 2008 2:03 AM
mswi wrote:
Hi Neil,I want to have a try with the precache option.
Hi Neil,
I want to have a try with the precache option.
In our case, on a website home page we are showing random 3 videos from our
video store. The video will start playing when the user clicks on Play.
On Page refresh the home page will refresh the videos to play.
In this case if I play the video file in a hidden player on page load, it
will take some time to buffer the video, if the user clicks on the actual
video to play then the user still sees the same problem.
My understanding is, if there is a time gap between playing the hidden
player, and clicking the actual video to play then precache will help.
As the videos displayed are changing on each page refresh, will this
precache option solve the problem.
Any suggestions on this are greatly appreciated.
"Neil Smith [MVP Digital Media]" wrote:
On Monday, September 01, 2008 2:35 AM
mswi wrote:
Hi Neil,Currently the video files are stored at some location on our
Hi Neil,
Currently the video files are stored at some location on our production
server.
If we publish the video files to a Media Management Server, will that help
in this case. I can then access the video files from the Media Management
Server instead of from the production server.
Thanks in Advance for ant thoughts on this.
"mswin" wrote:
On Monday, September 01, 2008 6:42 AM
Neil Smith [MVP Digital Media] wrote:
It depends what you mean by "media management server", yourterminology is off
It depends what you mean by "media management server", your
terminology is off - do you mean you have a windows server 2003 or
2008, setup to provide "windows media services" and administration ?
That won't improve the latency practically by very much, but it *will*
allow for random access with only slight but predictable delays due to
buffering. RTSP transport over RTP uses UDP, so you may find buffering
levels are *increased*, alternately the setup/teardown of connections
may be very slightly faster than using HTTP.
Significant extra delay will be introduced if you make the client
rollover, for example by specifying MMS as the connection protocol,
which was removed in WMP11 - the client will then try to negotiate
RTSP (if available) followed by rolling over to HTTP in adverse
firewall/NAT situations which again adds to the delay.
So if possible, try RTSP only, or HTTP only and check the effects from
a remote location.
If by production server you mean a web server, then you're doing
progressive download, which means seek operations (normally) require
download at least to the point where the viewer wants to play a
forward segment
The content would normally reach CACHE status if the client is capable
of overbuffering (and if the server can deliver content at more than
realtime speed given the number of connections) - you can see that by
checking the Statistics -> Advanced menu in the player, if it goes
from transport HTTP to transport CACHE then the content should be
avaible completely to the client at that point.
HTH
Cheers - Neil
On Sun, 31 Aug 2008 23:35:00 -0700, mswin
<***@discussions.microsoft.com> wrote:
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
On Monday, September 01, 2008 7:50 AM
mswi wrote:
Re: How to reduce startup latency while playing .wmv file - from J
"Neil Smith [MVP Digital Media]" wrote:
Yes, based on the knowledge I have.
We will be accessing it with mms only.
I will check this out.
Thanks
On Wednesday, September 10, 2008 3:01 PM
cenracingeas wrote:
September 10 2008Hey Folks,I have moved a few things aroundGreat Example-
September 10 2008
Hey Folks,
I have moved a few things around
Great Example- http://www.cenracingeast.com/matrixc1.html
(matrixpro.html has changed)
Thanks,
Brian
"Sreejumon [MVP]" wrote:
On Friday, September 12, 2008 12:46 AM
mswi wrote:
Hi,I am intrested in knowing how this is developed using silverlight.
Hi,
I am intrested in knowing how this is developed using silverlight.
And the below URL is giving Page not found, but the old one is opening.
If I use the silverlight in my scenario, it may not solve the buffering
problem.
And one more concern with silverlight usage is that it will prompt the user
to install silverlight on the client machine.
Any suggestions on this are welcome.
"cenracingeast" wrote:
Submitted via EggHeadCafe - Software Developer Portal of Choice
Understanding .NET
http://www.eggheadcafe.com/tutorials/aspnet/f13477c5-7887-469f-ab41-d4a6307f475a/understanding-net.aspx