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