RE: [Flashcoders] VitalStream Bandwidth detection

2006-10-04 Thread Rob Bayne
looks like bwcheck to me. i'd just use p_bw in a condition where p_bw is 
detected bandwidth.

if p_bw is less than than x play stream1, else if p_bw is greater than x and 
less than y play stream2, else play stream3. 
ie. stream1=56kbps; stream2=150kbps; stream3=300kbps;

i usually run the bwcheck on an interval several times and get an average bw 
figure to go by and even dynamically change streams-- you can do it seemlessly 
by bookmarking ns.time and seeking to it once new stream has loaded.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brian
Weil
Sent: Tuesday, October 03, 2006 12:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] VitalStream Bandwidth detection


Does anybody have code to detect users bandwidth on VitalStream? I'm using
the custom player source provided by vitalstream but it only works with
single bitrate streams. When I try to use a multi bitrate stream as the
sname parameter in the m_XMLURI string the player fails. Looking through the
source code I found some clues as to why it is not working, but don't have a
lot of time to debug the code and find the solution. I've been working with
VitalStream support on this and they are no help at all. They sent me links
to an irrelevent adobe tutorial as their solution.

Here is a fragment of code from that player that hints about bandwith
detection but also says it is not used?!!?

[code]
//the server calls this object to continue (auto bandwidth detection is
complete)
this[nc+i].onBWDone = function(p_bw) {
trace(onBWDone: +p_bw);
//we pass the successful netConnection and the
calculated bandwidth speed to
// the onconnected function to continue
this.mc.onConnected(this, p_bw);
};
m_payload = 0;
//this function is not currently used; it is for checking
bandwidth speed
// initiated by the server
this[nc+i].onBWCheck = function() {
trace(onBWCheck returning:
+(this.mc.m_payload+1));
return ++this.mc.m_payload;
};
[/code]

So my question is: Does anybody have a working (multi-bitrate streams)
example of a video player for the VitalStream content delivery system? They
have players that work with multi-bitrate streams in .swf format but do not
release the flv source for those players. 

Any help would be appreciated. A working .fla example would be priceless!

Thanks,
Brian


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] VitalStream Bandwidth detection

2006-10-03 Thread Brian Weil
Does anybody have code to detect users bandwidth on VitalStream? I'm using
the custom player source provided by vitalstream but it only works with
single bitrate streams. When I try to use a multi bitrate stream as the
sname parameter in the m_XMLURI string the player fails. Looking through the
source code I found some clues as to why it is not working, but don't have a
lot of time to debug the code and find the solution. I've been working with
VitalStream support on this and they are no help at all. They sent me links
to an irrelevent adobe tutorial as their solution.

Here is a fragment of code from that player that hints about bandwith
detection but also says it is not used?!!?

[code]
//the server calls this object to continue (auto bandwidth detection is
complete)
this[nc+i].onBWDone = function(p_bw) {
trace(onBWDone: +p_bw);
//we pass the successful netConnection and the
calculated bandwidth speed to
// the onconnected function to continue
this.mc.onConnected(this, p_bw);
};
m_payload = 0;
//this function is not currently used; it is for checking
bandwidth speed
// initiated by the server
this[nc+i].onBWCheck = function() {
trace(onBWCheck returning:
+(this.mc.m_payload+1));
return ++this.mc.m_payload;
};
[/code]

So my question is: Does anybody have a working (multi-bitrate streams)
example of a video player for the VitalStream content delivery system? They
have players that work with multi-bitrate streams in .swf format but do not
release the flv source for those players. 

Any help would be appreciated. A working .fla example would be priceless!

Thanks,
Brian


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] VitalStream Bandwidth detection

2006-10-03 Thread Ryan Potter
Hey Brian.  Can you give a little more info?  Are you passing a smil xml
file to the flv player or are you trying to detect based on the bandwidth
profile being returned from the server?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Weil
Sent: Tuesday, October 03, 2006 10:38 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] VitalStream Bandwidth detection

Does anybody have code to detect users bandwidth on VitalStream? I'm using
the custom player source provided by vitalstream but it only works with
single bitrate streams. When I try to use a multi bitrate stream as the
sname parameter in the m_XMLURI string the player fails. Looking through
the
source code I found some clues as to why it is not working, but don't have
a
lot of time to debug the code and find the solution. I've been working with
VitalStream support on this and they are no help at all. They sent me links
to an irrelevent adobe tutorial as their solution.

Here is a fragment of code from that player that hints about bandwith
detection but also says it is not used?!!?

[code]
//the server calls this object to continue (auto bandwidth detection is
complete)
this[nc+i].onBWDone = function(p_bw) {
trace(onBWDone: +p_bw);
//we pass the successful netConnection and the
calculated bandwidth speed to
// the onconnected function to continue
this.mc.onConnected(this, p_bw);
};
m_payload = 0;
//this function is not currently used; it is for checking
bandwidth speed
// initiated by the server
this[nc+i].onBWCheck = function() {
trace(onBWCheck returning:
+(this.mc.m_payload+1));
return ++this.mc.m_payload;
};
[/code]

So my question is: Does anybody have a working (multi-bitrate streams)
example of a video player for the VitalStream content delivery system? They
have players that work with multi-bitrate streams in .swf format but do not
release the flv source for those players. 

Any help would be appreciated. A working .fla example would be priceless!

Thanks,
Brian


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] VitalStream Bandwidth detection

2006-10-03 Thread Rob Sandie
VBR and Flash Media Server stream length detection could be the source of
this problem. I have done work for VitalStream before and seen this issue
come up with MP3 streaming at least. To get a more detailed answer, this is
a question better asked on the Flash Media Server forums: FlashMedia
[EMAIL PROTECTED]


- rob sandie




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Weil
Sent: Tuesday, October 03, 2006 12:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] VitalStream Bandwidth detection

Does anybody have code to detect users bandwidth on VitalStream? I'm using
the custom player source provided by vitalstream but it only works with
single bitrate streams. When I try to use a multi bitrate stream as the
sname parameter in the m_XMLURI string the player fails. Looking through the
source code I found some clues as to why it is not working, but don't have a
lot of time to debug the code and find the solution. I've been working with
VitalStream support on this and they are no help at all. They sent me links
to an irrelevent adobe tutorial as their solution.

Here is a fragment of code from that player that hints about bandwith
detection but also says it is not used?!!?

[code]
//the server calls this object to continue (auto bandwidth detection is
complete)
this[nc+i].onBWDone = function(p_bw) {
trace(onBWDone: +p_bw);
//we pass the successful netConnection and the
calculated bandwidth speed to
// the onconnected function to continue
this.mc.onConnected(this, p_bw);
};
m_payload = 0;
//this function is not currently used; it is for checking
bandwidth speed
// initiated by the server
this[nc+i].onBWCheck = function() {
trace(onBWCheck returning:
+(this.mc.m_payload+1));
return ++this.mc.m_payload;
};
[/code]

So my question is: Does anybody have a working (multi-bitrate streams)
example of a video player for the VitalStream content delivery system? They
have players that work with multi-bitrate streams in .swf format but do not
release the flv source for those players. 

Any help would be appreciated. A working .fla example would be priceless!

Thanks,
Brian


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] VitalStream Bandwidth detection

2006-10-03 Thread Brian Weil
 Hey Brian.  Can you give a little more info?  Are you passing a smil 
 xml file to the flv player or are you trying to detect based on the 
 bandwidth profile being returned from the server?

I think you would have to be familiar with the vitaltream service to really
understand my question. I'm using their flash streaming service and they
have a specific protocol for accessing the video stream. I'll explian the
service briefly:
- They host all of your .flv video content and mirror it worldwide and
stream using Flash Media Server.
- They offer two ways to display your .flvs: 
- 1. embed their pre-compiled .swf player by passing parameters to the swf
via html. 
- 2. a custom player where they provide the .flv source, you customize and
compile.

The XML file is telling flash the fastest mirror to connect and stream name
containing the flv files. This stream name works fine when there is only one
filename being passed but when multiple filenames are passed the code fails.
There is no bandwidth detection in their source code so it does not know
which stream to deliver. If anyone has created a custom VitalStream player
they may have already created this code. VitalStream will not release the
source code for their pre-compiled players.
I hope you understand this because I'm confusing myself trying to explain! I
can send you the player source offline if you want to take a look.

Thanks,
Brian

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com