OK, I made a test as suggested (see code below).
I tried with different streams from different providers. None is working.
Also I reissued the certificates just to make sure.
Same results: Audio don't play but seems loading properly. I can't see any error.
Q: Is there any other alternative to play a streaming in iOS?
Thanks in advance !
B4X:
'Code module
#Region Project Attributes
#ApplicationLabel: AudioTest
#Version: 3.5.1
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait
#iPadOrientations: Portrait
#Target: iPhone, iPad
#ATSEnabled: False
#MinVersion: 12
#CertificateFile: ios_distribution.cer
#ProvisionFile: audiotest.mobileprovision
'#ProvisionFile: store.mobileprovision
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private xui As XUI
Private player1 As NativeObject
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("Page1")
NavControl.ShowPage(Page1)
player1 = CreatePlayer("https://cp3.shoutcheap.com:18019/stream")
player1.RunMethod("play", Null)
End Sub
Sub CreatePlayer(url As String) As NativeObject
Dim u As NativeObject
u = u.Initialize("NSURL").RunMethod("URLWithString:", Array(url))
Dim player As NativeObject
player = player.Initialize("AVPlayer").RunMethod("alloc", Null) _
.RunMethod("initWithURL:", Array(u))
Return player
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
Private Sub Page1_Resize(Width As Int, Height As Int)
End Sub