You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Bandwidth detection: Is there a way to re-map the url extension value, too? Created Nov 16, 2009

This thread is solved

Views: 1341     Replies: 1     Last reply Nov 18, 2009  
You must login first before you can use this feature

LizardHill

Posts: 8

Registered:
Nov 15, 2009

Bandwidth detection: Is there a way to re-map the url extension value, too?

Posted: Nov 16, 2009

The bitRates property allows a dynamic mapping between the detected bitrate value and a label.

Is there a way to dynamically remap the urlExtension value based on the detected bitrate value - so that one could use different encoders for different bitrates?

LizardHill

Posts: 8

Registered:
Nov 15, 2009

Let me rephrase my problems understanding the documentation

Posted: Nov 18, 2009

Reply to: Bandwidth detection: Is there a way to re-map the url extension value, too?, from LizardHill
I have 3 audio files:
test-slow.mp3
test-low.m4a
test-mid.m4a

Using the bandwidth detection plugin parameters...
bitrates: {slow:32, low:48, mid:128 } // set of {1} values

[but]
urlPattern: this parameter confuses me. The datatype is an "array" of ? maybe string patterns ? Trying this--

urlPattern: [ '{0}-{1}.mp3', '{0}-{1}.m4a', '{0}-{1}.m4a'] does not resolve to one of my 3 audio file urls, but rather to a sequence of urls ("...test-slow.mp3, ...test-slow.m4a, ...test-slow.m4a")

so I don't understand the purpose of having an "array" data type.

How can I control applying various values of "{2}" to the urlPattern param to generate one of these urls:
test-slow.mp3
test-low.m4a
test-mid.m4a
???

---
I even tried

urlExtension: "m*",

and created a strangely named file: "test.-slow.mp3"
, and my onBwDone: function receives a url of "...test.-slow.m*" BUT I get the error: "NetStream.Play.StreamNotFound" for "...test.-slow.m*"

I need a solution for my production site. Any help/suggestions would be greatly appreciated.

Peter