Giter Club home page Giter Club logo

gocoder-sdk-samples-android's Introduction

Wowza GoCoder SDK for Android Sample App

Wowza Player, Wowza GoCoder SDK, and the technology powering the Ultra Low Latency (ULL) service in Wowza Streaming Cloud will no longer be available on August 31, 2021. Learn more.

This repository contains a sample application that demonstrates the capabilities of the Wowza GoCoder™ SDK for Android and is provided for developer educational purposes. To build your own application, you must use the GoCoder SDK.

Prerequisites

  • Wowza GoCoder SDK for Android v1.9.0.0632

Notes:

  • The GoCoder SDK library necessary to build this app is not provided here. To get the free SDK, complete the GoCoder SDK sign-up form to receive a link to allow you to download the SDK along with a license key. If you already have a license key, you can download the current SDK release here. Be sure to include the .aar file in the libs directory.
  • In the GoCoderSDKActivityBase.java file located at gocoder-sdk-sample-app/java/ui/GoCoderSDKActivityBase.java, be sure to replace the SDK_SAMPLE_APP_LICENSE_KEY value with your license key.
  • In the defaultConfig section of the build.gradle file located at Gradle Scripts/build.gradle (Module: gocoder-sdk-sample-app), be sure to replace the applicationID value with the App ID provided in your GoCoder SDK license welcome email.

Sample App Activities

The sample app includes a number of activities that demonstrate the features of the GoCoder SDK, including:

  • CameraActivity.java, which uses the SDK to capture and broadcast video using the device's internal cameras,
  • InfoActivity.java, which uses the SDK's version and device interrogation APIs to list detailed information about the SDK and the mobile device, and
  • MP4BroadcastActivity.java, which uses WOWZBroadcast, WOWZBroadcastAPI, and related classes and interfaces to broadcast frames from a local MP4 file.

More Resources

Wowza Media Systems™ provides developers with a platform to create streaming applications and solutions. See Wowza Developer Tools to learn more about our APIs and SDK.

Contact

Wowza Media Systems, LLC

License

This code is distributed under the BSD 3-Clause License.

gocoder-sdk-samples-android's People

Contributors

akeller avatar benji-wowza avatar dnelsonwowz avatar fabio-delorenzo-wowza avatar manitou2k avatar mojiit avatar myoung1620 avatar robgabbard-wowza avatar wowzadocs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gocoder-sdk-samples-android's Issues

App crash when try to stop broadcast

When i try to stop broadcast some time it crash.

STACK_TRACE=java.lang.IllegalStateException
at android.media.MediaCodec.dequeueOutputBuffer(Native Method)
at com.wowza.gocoder.sdk.support.c.a.onDrainEncoder(GoCoderSDK:576)
at com.wowza.gocoder.sdk.support.c.a.onStopEncoding(GoCoderSDK:798)
at com.wowza.gocoder.sdk.support.c.a$a.handleMessage(GoCoderSDK:1042)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at com.wowza.gocoder.sdk.support.c.a.run(GoCoderSDK:279)
at java.lang.Thread.run(Thread.java:864)

Add SDK sample that show how to extract metadata from stream

We have a requirement to display titles and timestamps for streams. When opening the stream in desktop VLC, it says no such information is embedded in the stream so we want to know how to provide it in the stream as well (we use our own Wowza server and vMix). Note that we are displaying the stream via ExoPlayer.

If embedding such information is not supported, we would want to know if it is possible to wrap the streams in a playlist and assign titles that way. All these features come out of the box with YouTube and we would prefer if it would be equally easy to work with your product.

java.lang.RuntimeException: (set display orientation failed) at android.hardware.Camera.setDisplayOrientation(Native Method) at com.wowza.gocoder.sdk.api.devices.WOWZCamera.autoDetectOrientation(1081)

java.lang.RuntimeException: (set display orientation failed)
at android.hardware.Camera.setDisplayOrientation(Native Method)
at com.wowza.gocoder.sdk.api.devices.WOWZCamera.autoDetectOrientation(1081)
at com.wowza.gocoder.sdk.api.devices.WOWZCameraView.doConfigChange(1163)
at com.wowza.gocoder.sdk.api.devices.WOWZCameraView.onConfigurationChanged(1178)
at android.app.Application.onConfigurationChanged(Application.java:114)

- Device Info:

Sys
Google Play Status
Services Available
Sys
Time Since App Start

24h
Sys
App State
Active
Sys
Build Product
mido
Sys
Country
IN
Sys
CPU Architecture
aarch64
Sys
Device Locale
en_US
Sys
Device Model
Redmi Note 4
Sys
Device Sub Model
redmi note 4
Sys
Disk Space Free
16GB-32GB
Sys
Disk Size
32GB-64GB
Sys
Java Max Memory
128MB-256MB
Sys
PSS Memory
128MB-256MB
Sys
RSS Memory
<4MB
Sys
Virtual Memory
<4MB
Sys
Max Virtual Memory
<4MB
Sys
Network Status
Wifi connection
Sys
Device Orientation
Landscape
Sys
OS Version
7.0

Go coder SDK Version
implementation 'com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:1.6.0@aar'

Broadcast stops after sometime on 4g(mobile data)

I'm having this issue even on sample app also when I'm broadcasting using 4g(mobile data). Wifi its working fine. If needed I can provide full log from our production app.

Environment info:
Device - Xiaomi Mi4i (ferrari)
Android version - 5.0.2
Android api - 21

device-2018-06-28-185027

mWZBroadcast.registerDataEventListener

hi.i define below code inside oncreateview for listen to server.
WOWZBroadcast mWZBroadcast = new WOWZBroadcast();
mWZBroadcast.registerDataEventListener("onData", new WOWZDataEvent.EventListener() {
@OverRide
public WOWZDataMap onWZDataEvent(String result, WOWZDataMap wowzDataMap) {
Log.i("LOGGGGGGG", "result: " + result);
return null;
}
});
but i can't get any data from server.plz resolve my problem
thx
wowza2

FaceDetectionListener not working

Camera.FaceDetectionListener (FaceActivity) is not working in this source.

@OverRide
public void onFaceDetection(Camera.Face[] faces, Camera camera) {
.........
}

Camera.Face[] faces is always empty.

Camera size results wrong upon orientation change and video results incorrect.

Steps to reproduce:
1 - Open app;
2 - Select 'Stream live video and audio' (I didn't test the other modes, but I assume they have the same problem);
3 - Start a stream, either in portrait or landscape mode;
4 - Change orientation during streaming;
5 - Stop the streaming;
6 - Keep the actual orientation and start a new streaming;
7 - Check on wowza server, using the test player. The video received is correct only in a square, the rest of the rectangle is repeated. See attached pictures:
from_portrait_to_landscape
from_landscape_to_portrait

This does NOT happen if you: 1) start a stream, 2) stop a stream, 3) change orientation, 4) start a new stream. So I suppose that some part of the configuration gets corrupted if you change orientation during streaming.
I couldn't find where the issue is located. I also tried to reset the WZBroadcastConfig and WZCameraView objects upon the Android's onConfigurationChanged event, but this led me to other errors...

Could not open mp4 file for streaming

The app does not seem to be able to open any mp4 file when attempting to use the stream from mp4 file functionality, has anyone figured this out?

Android Live Streaming with Sony Glass using WOWZA

Hi,

I am trying to implement WOWZA with SONY GLASS in android . But I cannot find any way, how to integrate it.

Is anybody can suggest me or provide me any demo or api how to integrate it.

In Sony glass, we just get camera data in bytes, so we need such thing in wowza through which we can send our own bytes instead of WowzaGoCoder Camera

Please guide and help us on these task.

the server hostname or address is not recognized

I got this error message while going to live streaming.

i set below details for configuration:

    goCoderBroadcastConfig!!.hostAddress = "rtmp://someaddress"
    goCoderBroadcastConfig!!.portNumber = 1935
    goCoderBroadcastConfig!!.applicationName = "live"
    goCoderBroadcastConfig!!.streamName = "myStream"

above address, port and streamname run fine while using other rtmp sample app. but its not working in it.
help me with this issue.

Update WZBitmap using WZBitmap.setBitmap() got black overlayview

I download gocoder android example and run the BitmapOverlayActivity, everything is ok but when I try to update the WZBitmap using WZBitmap.setBitmap() like:

private Runnable runnable = new Runnable() {
    @Override
    public void run() {
        if (mWZBitmap != null) {
            if (System.currentTimeMillis() % 2 == 0) {
                mWZBitmap.setBitmap(overlayBitmap1);
            } else {
                mWZBitmap.setBitmap(overlayBitmap2);
            }
        }
        handler.postDelayed(runnable, 5000);
    }
};

private Handler handler = new Handler();

and the camera only shows black view:

image

Android don't have backgroundBroadcastEnabled as iOS

I got wowza email about new release library but I am not getting it. I have checked into iOS and they have parameter like backgroundBroadcastEnabled

Please guide me how to manage Android wowza camera into the background mode as you mentioned into 1.7 release note. Current sample is same as old one. Help us. Thanks

Error during the IDLE to READY transition when starting a broadcast.

E/a: The connection attempt was refused by the remote destination or the destination could not be reached
java.net.ConnectException: failed to connect to /xx.xx.xxx.xx (port 1935) after 8000ms: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:238)
at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
at libcore.io.IoBridge.connect(IoBridge.java:122)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
at java.net.Socket.connect(Socket.java:882)
at com.wowza.gocoder.sdk.support.wse.b.c(GoCoderSDK:196)
at com.wowza.gocoder.sdk.support.wse.a.prepareForBroadcast(GoCoderSDK:161)
at com.wowza.gocoder.sdk.support.b.b$1.a(GoCoderSDK:194)
at com.wowza.gocoder.sdk.support.b.b$1.call(GoCoderSDK:181)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:223)
at libcore.io.IoBridge.connectErrno(IoBridge.java:171) 
at libcore.io.IoBridge.connect(IoBridge.java:122) 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) 
at java.net.Socket.connect(Socket.java:882) 
at com.wowza.gocoder.sdk.support.wse.b.c(GoCoderSDK:196) 
at com.wowza.gocoder.sdk.support.wse.a.prepareForBroadcast(GoCoderSDK:161) 
at com.wowza.gocoder.sdk.support.b.b$1.a(GoCoderSDK:194) 
at com.wowza.gocoder.sdk.support.b.b$1.call(GoCoderSDK:181) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:818) 
E/b: A broadcast component reported the following error during the PREPARE_FOR_BROADCAST transition
severity : ERROR
error class : WZStreamingError
error code : 60
description : The connection attempt was refused by the remote destination or the destination could not be reached
exception : java.net.ConnectException: failed to connect to /xx.xx.xxx.xx (port 1935) after 8000ms: isConnected failed: ECONNREFUSED (Connection refused)
W/WZBroadcast: Ending the broadcast session due to an error that occurred during the IDLE to READY transition
E/GoCoderSDKFragmentBase: The connection attempt was refused by the remote destination or the destination could not be reached
java.net.ConnectException: failed to connect to /xx.xx.xxx.xx (port 1935) after 8000ms: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:238)
at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
at libcore.io.IoBridge.connect(IoBridge.java:122)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
at java.net.Socket.connect(Socket.java:882)
at com.wowza.gocoder.sdk.support.wse.b.c(GoCoderSDK:196)
at com.wowza.gocoder.sdk.support.wse.a.prepareForBroadcast(GoCoderSDK:161)
at com.wowza.gocoder.sdk.support.b.b$1.a(GoCoderSDK:194)
at com.wowza.gocoder.sdk.support.b.b$1.call(GoCoderSDK:181)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:223)
...

Timeout occurred while attempting to connect

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`

Timeout occured while attempting to connect

I get this message Timeout occured while attempting to connect, I put on the correct source user + password + ip + port ...

But it somehow does not connect.

I even opened so that I do not need a source user nor a password.

But it does not work

Problem with WZCameraView, getting java.lang.OutOfMemoryError

Hello, I am using WZCameraView for broadcast After streaming for a certain period of time the app will automatically crash with below error

E/EventThread: Task threw exception
java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 2968 free bytes and 2968B until OOM
at io.socket.engineio.client.Transport.onPacket(Transport.java:134)
at io.socket.engineio.client.Transport.onData(Transport.java:126)
at io.socket.engineio.client.transports.WebSocket.access$100(WebSocket.java:24)
at io.socket.engineio.client.transports.WebSocket$2$2.run(WebSocket.java:99)
at io.socket.thread.EventThread$2.run(EventThread.java:80)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Please help wowza team. I am stuck with this issue.

WZH264Broadcaster examples

Are there any examples of how to use the WZH264Broadcaster?

I am trying to broadcast video from an external camera but and I think this is what I am looking for since it uses H.264 for it's video feed data.

More of my questions are around registering a WZSinkAPI.StreamingVideoSink as it seems to be the only thing accepting frame data. There's 13 methods that need to be implemented but very little of them or the WZH264Broadcaster have any documentation around creating one other than decompiling the WZCameraView

FILL_VIEW in GoCoder SDK for Android works incorrectly

I am running this demo with FILL_VIEW scale mode in Huawei P20 Pro. Android 8.0.1 device. But camera preview is stretched. Also checking in Samsung note 5.

I checked documentation from this link: https://www.wowza.com/docs/how-to-use-the-camera-view-in-gocoder-sdk-for-android and it is like below:

WOWZMediaConfig.FILL_VIEW | Scale the camera preview to fill the entire screen area. The preview may be cropped to maintain the aspect ratio.

It is not cropping preview for fill the screen instead of stretch preview. I stuck with it.

Please anyone help me for sort out this issue.

A BUG in WOWZPlayerView

It seems that there is a problem available in initializing the B value in WOWZPlayer file:
private HashMap<String, ArrayList<EventListener>> B;

It may leads you to a crash while sending in-stream data from server to clients.

The iOS version is working fine unlike the Android version.

Please resolve this issue as soon as possible.

How to play RTSP stream?

I tried to build an live video chat Android application using Wowza Streaming Engine and Gocoder sdk. I have successfully published myStream to the Wowza server. Now I want to receive it and play it on my Android device.

I found class WZPlayerView in you sdk bundle. But i'm not sure how to use it. Below is what I have tried.

private void playStream() {
        WZPlayerConfig playerConfig = new WZPlayerConfig();
        playerConfig.setHostAddress("192.168.1.163");
        playerConfig.setPortNumber(1935);
        playerConfig.setApplicationName("videochat");
        playerConfig.setStreamName("myStream");

        playerView.play(playerConfig, new WZStatusCallback() {
            @Override
            public void onWZStatus(WZStatus wzStatus) {
                Log.e("player", wzStatus.getState() + "");
            }

            @Override
            public void onWZError(WZStatus wzStatus) {
                Log.e("player error", wzStatus.getLastError().getErrorDescription());
            }
        });
    }

It seems to be not working. Please help.

Can we pause streaming while user goes in background ?

Currently we tried
mWZCameraView.onPause();

This works fine but when user open camera and try to record the video it terminate app. Give mic error.
I also tried all these option.

       mWZAudioDevice.setAudioEnabled(false);
        mWZAudioDevice.setMuted(true);
        mWZAudioDevice.setAudioPaused(true);
        mWZAudioDevice.stopAudioSampler();

But nothing works. Please help

Failed to resolve: com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:2.0.0

Failed to resolve: com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:2.0.0

Gradle config:

dependencies {
    implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    // Include the GoCoder SDK library dependency declaration
    implementation 'com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:2.0.0@aar'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}
allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        flatDir{
            dirs 'libs'
        }
    }
}

Crashes

when clicking on "play a live stream":

2019-11-04 11:34:47.327 19161-19161/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.wowza.gocoder.sdk.sampleapp, PID: 19161
    java.lang.RuntimeException: Unable to resume activity {com.wowza.gocoder.sdk.sampleapp/com.wowza.gocoder.sdk.sampleapp.PlayerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.wowza.gocoder.sdk.api.player.WOWZPlayerConfig.isAudioEnabled()' on a null object reference
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4205)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.wowza.gocoder.sdk.api.player.WOWZPlayerConfig.isAudioEnabled()' on a null object reference
        at com.wowza.gocoder.sdk.sampleapp.PlayerActivity.syncUIControlState(PlayerActivity.java:500)
        at com.wowza.gocoder.sdk.sampleapp.PlayerActivity.onResume(PlayerActivity.java:289)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1453)
        at android.app.Activity.performResume(Activity.java:7939)

when clicking on "kotlin player":

2019-11-04 11:35:54.182 19285-19285/com.wowza.gocoder.sdk.sampleapp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.wowza.gocoder.sdk.sampleapp, PID: 19285
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wowza.gocoder.sdk.sampleapp/com.wowza.gocoder.sdk.sampleapp.KotlinPlayerActivity}: java.lang.IllegalStateException: WowzaGoCoder.getLastError() must not be null
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
     Caused by: java.lang.IllegalStateException: WowzaGoCoder.getLastError() must not be null
        at com.wowza.gocoder.sdk.sampleapp.KotlinPlayerActivity.onCreate(KotlinPlayerActivity.kt:225)
        at android.app.Activity.performCreate(Activity.java:7802)
        at android.app.Activity.performCreate(Activity.java:7791)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)

Data usage with video disabled

Hello,
While investigating the GoCoder SDK for a feasibility test for our application, we used the following video stream:

{
                HostAddress = "wowzaec2demo.streamlock.net",
                ApplicationName = "vod",
                StreamName = "mp4:bigbuckbunny_450.mp4"
} 

We did some profiling and noticed that the data usage is the same, regardless of using videoEnabled true or false. Do you know if this is expected, or does it have something to do with the file format or the protocol?

Thank you,
Andrei

experienced Fatal Exception: java.lang.IllegalStateException at android.media.MediaCodec.native_dequeueOutputBuffer(MediaCodec.java) on huawei device running android 6.0

Fatal Exception: java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(MediaCodec.java)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2406)
at com.wowza.gocoder.sdk.api.devices.WOWZAudioDevice.onDrainEncoder(WOWZAudioDevice.java:892)
at com.wowza.gocoder.sdk.api.devices.WOWZAudioDevice.onStartEncoding(WOWZAudioDevice.java:870)
at com.wowza.gocoder.sdk.api.devices.WOWZAudioDevice.access$2000(WOWZAudioDevice.java:59)
at com.wowza.gocoder.sdk.api.devices.WOWZAudioDevice$AudioEncoderHandler.handleMessage(WOWZAudioDevice.java:1019)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:150)
at com.wowza.gocoder.sdk.api.devices.WOWZAudioDevice$3.run(WOWZAudioDevice.java:709)
at java.lang.Thread.run(Thread.java:833)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.