Android Question MEDIA_ERROR_UNKNOWN

Discussion in 'Android Questions' started by Victor Donato, Jun 26, 2015.

  1. Victor Donato

    Victor Donato New Member Licensed User

    We are trying, using MediaPlayerStrem, to listen an audio webradio URL like http://200.150.xxx.xxx:xxxx.
    Using Anroid VLC we can liste this URL audio webradio without any issues.
    Using MediaPlayerStream we getting the MEDIA_ERROR_UNKNOWN IN BOTH bridged device and emulator.
    Any hint about this isuue is welcome.
    Regards.
    Code being used:



    Sub Process_Globals
    Dim mp As MediaPlayerStream
    End Sub

    Sub Activity_Create(FirstTime As Boolean)

    If FirstTime Then
    mp.Initialize("mp")
    End If
    mp.Load(http://200.150.171.34:3690)

    End Sub

    Sub mp_StreamReady
    Log("starts playing")
    mp.Play
    End Sub

    Sub mp_StreamError (ErrorCode As String, ExtraData As Int)
    Log("Error: " & ErrorCode & ", " & ExtraData)
    ToastMessageShow("Error: " & ErrorCode & ", " & ExtraData, True)
    End Sub

    Sub mp_StreamBuffer(Percentage As Int)
    Log(Percentage)
    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    This means that media player doesn't support the file encoding. Android VLC probably uses a custom decoder.
     
  3. stanks

    stanks Active Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice