# Wowza android player

**URL:** https://community.wowza.com/t/wowza-android-player/51416
**Category:** Wowza GoCoder SDK
**Created:** [June 5, 2018, 4:17pm UTC](https://community.wowza.com/t/wowza-android-player/51416 "2018-06-05T16:17:21Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Andrii\_Nazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrii\_Nazar](https://community.wowza.com/u/Andrii_Nazar)
#### Post date: [June 5, 2018, 4:17pm UTC](https://community.wowza.com/t/wowza-android-player/51416/1 "2018-06-05T16:17:21Z")

</div>

I try get metadata from Low Latency Stream. Try add DataEventListener to WZPlayerView. But I get:

NullPointerException: Attempt to invoke virtual method ‘boolean java.util.HashMap.containsKey(java.lang.Object)’ on a null object reference  
at com.wowza.gocoder.sdk.api.player.WZPlayerView.registerDataEventListener(WZPlayerView.java:1338)

I need to get data that showing on LOG:

06-05 08:39:46.430 27368-27435 D/WMSTransport: Function call request received: onTextData() wth the following parameters:

06-05 08:39:46.431 27368-27435 D/WMSTransport: [00]: “onTextData”,  
[01]: {“Key1”: “Val1”,  
“Key2”: “Val2”,  
“Key3”: “Val3”,  
“Key4”: “Val4”,  
“Key5”: “Val5”,  
“Key6”: 10,  
“Key7”: 65536}  
Invoking registered function handler onCall() for function onTextData()

Can you help me, or get some simple for getting this data.

---

<div class="post-metadata">

### Author: ![Mojtaba\_Golmohammadi](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mojtaba\_Golmohammadi](https://community.wowza.com/u/Mojtaba_Golmohammadi)
#### Post date: [September 8, 2018, 10:27am UTC](https://community.wowza.com/t/wowza-android-player/51416/2 "2018-09-08T10:27:17Z")

</div>

i have same problem.any answer???

---

<div class="post-metadata">

### Author: ![Andrii\_Nazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrii\_Nazar](https://community.wowza.com/u/Andrii_Nazar)
#### Post date: [September 8, 2018, 11:44am UTC](https://community.wowza.com/t/wowza-android-player/51416/3 "2018-09-08T11:44:08Z")

</div>

This error is fixed on last version sdk.

---

<div class="post-metadata">

### Author: ![Mojtaba\_Golmohammadi](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mojtaba\_Golmohammadi](https://community.wowza.com/u/Mojtaba_Golmohammadi)
#### Post date: [September 9, 2018, 5:01pm UTC](https://community.wowza.com/t/wowza-android-player/51416/4 "2018-09-09T17:01:06Z")

</div>

hi Andrii.i have one question.can you help me??

i will get data from server when playing stream.

my code is :

```auto
WOWZBroadcast wowzBroadcast = new WOWZBroadcast();

wowzBroadcast.registerDataEventListener("onData", new WOWZDataEvent.EventListener() {

@Override

```

```auto
public WOWZDataMap onWZDataEvent(String s, WOWZDataMap wowzDataMap) {

```

```auto
Log.i("LOGGGGGGGG", s);

```

```auto
return null; 

```

```auto
 }});

```

```auto
but i havenot any response from server.

```

---

<div class="post-metadata">

### Author: ![Andrii\_Nazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrii\_Nazar](https://community.wowza.com/u/Andrii_Nazar)
#### Post date: [September 10, 2018, 8:26am UTC](https://community.wowza.com/t/wowza-android-player/51416/5 "2018-09-10T08:26:57Z")

</div>

Try use this request for check callbacs

registerDataEventListener(“onWowzaLatencyBeacon”, new WOWZDataEvent.EventListener() {  
@Override  
public WOWZDataMap onWZDataEvent(String s, WOWZDataMap wowzDataMap) {  
return wowzDataMap;  
}  
});

Try use callback “onTextData”

---

<div class="post-metadata">

### Author: ![Amir\_Zandi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Amir\_Zandi](https://community.wowza.com/u/Amir_Zandi)
#### Post date: [September 11, 2018, 3:25pm UTC](https://community.wowza.com/t/wowza-android-player/51416/6 "2018-09-11T15:25:54Z")

</div>

Hello Andrii,

We have also upgraded to the latest version but the problem is still here. While we send data through video to clients, iOS clients are receiving but Androids are not.

We have implemented the code like how Mojtaba did.

If you got a chance to resolve this issue, would you please update me on this case?

Thank you very much.

---

<div class="post-metadata">

### Author: ![Andrii\_Nazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrii\_Nazar](https://community.wowza.com/u/Andrii_Nazar)
#### Post date: [September 11, 2018, 4:12pm UTC](https://community.wowza.com/t/wowza-android-player/51416/7 "2018-09-11T16:12:56Z")

</div>

First of all try check this callback.

registerDataEventListener(“onWowzaLatencyBeacon”, new WOWZDataEvent.EventListener() {  
@Override  
public WOWZDataMap onWZDataEvent(String s, WOWZDataMap wowzDataMap) {  
return wowzDataMap;  
}  
});

after that try use callback “onTextData” for data that you send from server. It possibly that in last public build this error was not fixed. Try use ask Wowza for sending dev build. In dev build it fixed.

---

<div class="post-metadata">

### Author: ![Andrii\_Nazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrii\_Nazar](https://community.wowza.com/u/Andrii_Nazar)
#### Post date: [September 11, 2018, 4:13pm UTC](https://community.wowza.com/t/wowza-android-player/51416/8 "2018-09-11T16:13:22Z")

</div>

First of all try check this callback.

registerDataEventListener(“onWowzaLatencyBeacon”, new WOWZDataEvent.EventListener() {  
@Override  
public WOWZDataMap onWZDataEvent(String s, WOWZDataMap wowzDataMap) {  
return wowzDataMap;  
}  
});

after that try use callback “onTextData” for data that you send from server. It possibly that in last public build this error was not fixed. Try use ask Wowza for sending dev build. In dev build it fixed.

---

<div class="post-metadata">

### Author: ![Amir\_Zandi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Amir\_Zandi](https://community.wowza.com/u/Amir_Zandi)
#### Post date: [September 11, 2018, 4:18pm UTC](https://community.wowza.com/t/wowza-android-player/51416/9 "2018-09-11T16:18:07Z")

</div>

we somehow found out where the problem is and I have reported that in their github which is available through here: [https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/issues/19](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/issues/19)

How can I get the dev build from wowza?

---

<div class="post-metadata">

### Author: ![Amir\_Zandi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Amir\_Zandi](https://community.wowza.com/u/Amir_Zandi)
#### Post date: [September 11, 2018, 4:24pm UTC](https://community.wowza.com/t/wowza-android-player/51416/10 "2018-09-11T16:24:19Z")

</div>

What do you mean by try using “onTextData” ? the event that implemented on server is “onData”.
