rleiman Well-Known Member Licensed User Longtime User Jan 17, 2018 #1 Nice library but it needs a more detailed tutorial. I tried to set the volume like this: Code: exoPlayer.Volume(.5) but I get an error telling me it expects an array. I have not used arrays yet so I found this example: Code: Creates a single dimension array of the specified type. The syntax is: Array [As type] (list of values). If the type is ommitted then an array of objects will be created. Example: Dim Days() As String Days = Array As String("Sunday", "Monday", ...) so I added the following code based on the example: Code: Dim VolumeArray() As Float VolumeArray = Array As Float(.5) exoPlayer.Volume(VolumeArray) exoPlayer.Prepare(exoPlayer.CreateFileSource(File.DirAssets, "quarter.mp3")) exoPlayer.Play but I still get the array expected error. Looks like I did not code the array correctly. An example of setting the volume level would greatly be appreciated. Thanks.
Nice library but it needs a more detailed tutorial. I tried to set the volume like this: Code: exoPlayer.Volume(.5) but I get an error telling me it expects an array. I have not used arrays yet so I found this example: Code: Creates a single dimension array of the specified type. The syntax is: Array [As type] (list of values). If the type is ommitted then an array of objects will be created. Example: Dim Days() As String Days = Array As String("Sunday", "Monday", ...) so I added the following code based on the example: Code: Dim VolumeArray() As Float VolumeArray = Array As Float(.5) exoPlayer.Volume(VolumeArray) exoPlayer.Prepare(exoPlayer.CreateFileSource(File.DirAssets, "quarter.mp3")) exoPlayer.Play but I still get the array expected error. Looks like I did not code the array correctly. An example of setting the volume level would greatly be appreciated. Thanks.
nobbi59 Active Member Licensed User Longtime User Jan 18, 2018 #2 You dont need an Array for Volume, just do Code: exoPlayer.Volume = .5 Upvote 0
rleiman Well-Known Member Licensed User Longtime User Jan 18, 2018 #3 Hi nobbi59, Thanks for the help. Works really well. Upvote 0