WowzaMediaSystems / gocoder-sdk-samples-android

A sample app for Android that demonstrates the capabilities of the Wowza GoCoder™ SDK.
https://www.wowza.com/products/gocoder/sdk
Other
53 stars 51 forks source link

Timeout occurred while attempting to connect #27

Closed vinayakb-pits closed 5 years ago

vinayakb-pits commented 5 years ago

When I try to connect the sample app using my settings it shows an error Timeout occurred while attempting to connect I tried many times. But it won't connect Please look into the below log details

`D/GoCoderSDK: Scale Mode: -> 2 2019-07-11 20:41:52.222 27493-27493/? I/GoCoderSDKActivityBase: =============== Broadcast Configuration =============== Video enabled : yesUsing HLS : no Video frame size : 640x480 Video rotation (degrees) : 0 (VGA) Video framerate (fps) : 30 Video keyframe interval : 30 Video bitrate (kbps) : 1500 Video profile : null ABR enabled : no

Audio enabled             : yes
Audio channels            : 2
Audio sample rate (hz)    : 44100
Audio bitrate (kbps)      : 64000

Host address              : 0a17d5-sandbox.entrypoint.cloud.wowza.com
Port number               : 1935
Application name          : app-76e9
Stream name               : 1e778580
Username                  : null
Password                  : (not set)

Connection parameters:
appPackageName: com.vinayak
appVersionName: 1.6.0
appVersionCode: 11

Stream metadata:
    androidRelease: 7.0
        androidSDK: 24
 deviceProductName: j7xltedd
deviceManufacturer: samsung
       deviceModel: SM-J710FN

Video broadcaster (class) : WOWZCameraView
Audio broadcaster (class) : WOWZAudioDevice
Broadcast orientation    : same as source
Video source config :
Video enabled             : yesUsing HLS             : no
Video frame size          : 640x480
Video rotation (degrees)  : 0 (VGA)
Video framerate (fps)     : 30
Video keyframe interval   : 30
Video bitrate (kbps)      : 1500
Video profile             : null
ABR enabled               : no

Audio enabled             : yes
Audio channels            : 2
Audio sample rate (hz)    : 44100
Audio bitrate (kbps)      : 64000
=======================================================

2019-07-11 20:41:52.222 27493-27493/? D/GoCoderSDK: [FPS]GoCoderSDKActivity 30 2019-07-11 20:41:52.222 27493-27493/? D/GoCoderSDK: [FPS]WOWZBroadcast 30 2019-07-11 20:41:52.225 27493-27598/? D/GoCoderSDK: [FPS]WOWZBroadcast2 30 2019-07-11 20:41:52.226 27493-27598/? D/BroadcastManager: Broadcast stage: PREPARE_FOR_BROADCAST 2019-07-11 20:41:52.228 27493-27599/? D/BroadcastManager: Transitioning StreamPublisher from IDLE to READY 2019-07-11 20:41:52.228 27493-27599/? D/GoCoderSDK: [FPS]BroadcastManager2b 30 2019-07-11 20:41:52.229 27493-27599/? D/GoCoderSDK: * [FPS]StreamPublisher 30 2019-07-11 20:41:52.229 27493-27599/? D/GoCoderSDK: ** IS VIDEO ENABLED: true 2019-07-11 20:41:52.229 27493-27599/? D/GoCoderSDK: **[FPS] WOWZClient2: 30 2019-07-11 20:41:52.229 27493-27599/? D/WOWZClient: ** 2019-07-11 20:41:52.230 27493-27599/? D/WOWZClient: Host: 0a17d5-sandbox.entrypoint.cloud.wowza.com 2019-07-11 20:41:52.230 27493-27599/? D/WOWZClient: Application: app-76e9 2019-07-11 20:41:52.230 27493-27599/? D/WOWZClient: Stream: 1e778580 2019-07-11 20:41:52.230 27493-27599/? D/WOWZClient: ** 2019-07-11 20:42:05.158 27493-27498/? I/art: Do partial code cache collection, code=20KB, data=31KB 2019-07-11 20:42:05.158 27493-27498/? I/art: After code cache collection, code=20KB, data=31KB 2019-07-11 20:42:05.159 27493-27498/? I/art: Increasing code cache capacity to 128KB 2019-07-11 20:42:16.795 27493-27599/? E/WOWZClient: A timeout occurred while attempting to connect 2019-07-11 20:42:16.795 27493-27599/? E/StreamPublisher: A timeout occurred while attempting to connect 2019-07-11 20:42:16.796 27493-27598/? E/BroadcastManager: A broadcast component reported the following error during the PREPARE_FOR_BROADCAST transition severity : ERROR error class : WOWZStreamingError error code : 49 description : A timeout occurred while attempting to connect 2019-07-11 20:42:16.796 27493-27598/? W/WOWZBroadcast: Ending the broadcast session due to an error that occurred during the transition from idle to ready. 2019-07-11 20:42:16.797 27493-27598/? D/BroadcastManager: Broadcast stage: END_BROADCAST`

Wowza-Rose commented 5 years ago

Hi @vinayakb-pits, The error 'Connection Time Out' indicates that the encoder can not connect to Wowza. However, in this case you are getting that error because you can't connect an encoder to the Cloud sandbox. The sandbox is only for testing API commands, you can't actually publish or playback from it. You will need to set up the Cloud trial and run the sample app connecting to Cloud.

Here is a full tutorial on how to do that:

https://www.youtube.com/watch?v=M9IQns6lLsc&list=PLDA4I83jF6ZtUazHsXHIvgJaKY9I4AGK4&index=2

Hope that helps!

vinayakb-pits commented 5 years ago

I followed this tutorial. but the result is the same.

` Video enabled : yesUsing HLS : no Video frame size : 640x480 Video rotation (degrees) : 0 (VGA) Video framerate (fps) : 30 Video keyframe interval : 30 Video bitrate (kbps) : 1500 Video profile : null ABR enabled : no

Audio enabled             : yes
Audio channels            : 2
Audio sample rate (hz)    : 44100
Audio bitrate (kbps)      : 64000

Host address              : d04234.entrypoint.cloud.wowza.com
Port number               : 1935
Application name          : app-dffa
Stream name               : f4a9a8ad
Username                  : client43897
Password                  : ********

Connection parameters:
appPackageName: com.vinayak
appVersionName: 1.6.0
appVersionCode: 11

Stream metadata:
    androidRelease: 7.0
        androidSDK: 24
 deviceProductName: j7xltedd
deviceManufacturer: samsung
       deviceModel: SM-J710FN

Video broadcaster (class) : WOWZCameraView
Audio broadcaster (class) : WOWZAudioDevice
Broadcast orientation    : same as source
Video source config :
Video enabled             : yesUsing HLS             : no
Video frame size          : 640x480
Video rotation (degrees)  : 0 (VGA)
Video framerate (fps)     : 30
Video keyframe interval   : 30
Video bitrate (kbps)      : 1500
Video profile             : null
ABR enabled               : no

Audio enabled             : yes
Audio channels            : 2
Audio sample rate (hz)    : 44100
Audio bitrate (kbps)      : 64000`

com.vinayak E/WOWZClient: A timeout occurred while attempting to connect 2019-07-12 10:44:42.633 31802-1184/com.vinayak E/StreamPublisher: A timeout occurred while attempting to connect 2019-07-12 10:44:42.634 31802-1183/com.vinayak E/BroadcastManager: A broadcast component reported the following error during the PREPARE_FOR_BROADCAST transition severity : ERROR error class : WOWZStreamingError error code : 49 description : A timeout occurred while attempting to connect

vinayakb-pits commented 5 years ago

Sorry . It's working . I created another account. I think I didn't properly set up the Cloud trial . Thanks for your help

Wowza-Rose commented 5 years ago

Great to hear! Thanks for letting me know.