# How to broadcast video from Android with a score card section embedded into it

**URL:** <https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609>\
**Category:** Wowza GoCoder SDK\
**Created:** [July 12, 2018, 4:38pm UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609 "2018-07-12T16:38:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rino\_Alias](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@Rino\_Alias](https://community.wowza.com/u/Rino_Alias)\
**Post date:** [July 12, 2018, 4:38pm UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/1 "2018-07-12T16:38:51Z")

</div>

I would like to know how I can I embed a score card into the streaming video. The score card is a bit complex with values coming from server. I need to update the values on the go. Currently, I managed to generate a WZBitmap from an xml file and registered to the WZCameraView with registerFrameRenderer. The code snippet is as given below(Kotlin):

This code displays the image in the broadcast and works fine during initial load. But now I need to update the image based on values obtained from the server on the go, is there any way to get this done with the current implementation?

```auto
val inflatedFrame = layoutInflater.inflate(R.layout.layout_box_score_table, null)
val score = inflatedFrame.findViewById(R.id.score) as TextView
score.text = scoreValue
val frameLayout = inflatedFrame.findViewById(R.id.screen) as FrameLayout
frameLayout.isDrawingCacheEnabled = true
frameLayout.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
        View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED))
frameLayout.layout(0, 0, convertDpToPx(200F), convertDpToPx(100F))
frameLayout.buildDrawingCache(true)
val bm = frameLayout.drawingCache
mWZBitmap = WZBitmap(bm)
mWZBitmap!!.setPosition(WZBitmap.LEFT, WZBitmap.TOP)
mWZBitmap!!.setScale(0.37f, WZBitmap.FRAME_WIDTH)
mWZCameraView!!.registerFrameRenderer(mWZBitmap)

```

---

<div class="post-metadata">

**Author:** ![jenny\_han](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jenny\_han](https://community.wowza.com/u/jenny_han)\
**Post date:** [July 26, 2018, 8:19am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/2 "2018-07-26T08:19:27Z")

</div>

I need to update the values on the go.

[geometrydashfree.com](http://geometrydashfree.com/)

---

<div class="post-metadata">

**Author:** ![Martin\_Wiklund](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Martin\_Wiklund](https://community.wowza.com/u/Martin_Wiklund)\
**Post date:** [August 2, 2018, 7:55am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/3 "2018-08-02T07:55:39Z")

</div>

Currently, updating the image will result in a black square. Wowza know about this issue but are not fixed it. It would be nice if they could fix this issue since we also need to do the exact same thing as you.

---

<div class="post-metadata">

**Author:** ![Martin\_Wiklund](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Martin\_Wiklund](https://community.wowza.com/u/Martin_Wiklund)\
**Post date:** [August 2, 2018, 8:03am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/4 "2018-08-02T08:03:50Z")

</div>

Someone writing about the issue in 2016 [https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/issues/2](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android/issues/2) “If this still occurs, please open a new issue and provide the logging. Thanks!”

---

<div class="post-metadata">

**Author:** ![Rino\_Alias](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@Rino\_Alias](https://community.wowza.com/u/Rino_Alias)\
**Post date:** [August 2, 2018, 8:42am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/5 "2018-08-02T08:42:47Z")

</div>

Hi @Martin Wiklund,

I managed to get this done. Please check on the following link: [https://stackoverflow.com/a/51609700/1826526](https://stackoverflow.com/a/51609700/1826526)

---

<div class="post-metadata">

**Author:** ![Martin\_Wiklund](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Martin\_Wiklund](https://community.wowza.com/u/Martin_Wiklund)\
**Post date:** [August 2, 2018, 11:05am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/6 "2018-08-02T11:05:51Z")

</div>

Thank you so much for this, got it to work! Did you manage to do this is iOS too?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 2, 2018, 4:14pm UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/7 "2018-08-02T16:14:35Z")

</div>

Thank you Rino and Martin for sharing this info for others on our forum. If anyone is still having a problem, please go here for more help. [https://www.wowza.com/support](https://www.wowza.com/support).

---

<div class="post-metadata">

**Author:** ![Rino\_Alias](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@Rino\_Alias](https://community.wowza.com/u/Rino_Alias)\
**Post date:** [August 3, 2018, 6:35am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/8 "2018-08-03T06:35:31Z")

</div>

@Martin WiklundOut team managed to get this done in ios also. Not sure about the implementation though.

---

<div class="post-metadata">

**Author:** ![Martin\_Wiklund](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Martin\_Wiklund](https://community.wowza.com/u/Martin_Wiklund)\
**Post date:** [August 6, 2018, 1:09pm UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/9 "2018-08-06T13:09:57Z")

</div>

Could you ask them how they managed to do that? You don’t need to share any code if you don’t want to. But if you could point me in the right direction would be super helpful. Been stuck with this problem for some time now… Thanks you so much for your help, I really appreciate it!

---

<div class="post-metadata">

**Author:** ![Rino\_Alias](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@Rino\_Alias](https://community.wowza.com/u/Rino_Alias)\
**Post date:** [August 7, 2018, 7:35am UTC](https://community.wowza.com/t/how-to-broadcast-video-from-android-with-a-score-card-section-embedded-into-it/51609/10 "2018-08-07T07:35:32Z")

</div>

@Martin Wiklund Check the SO thread which has been updated with the ios implementation

[https://stackoverflow.com/a/51609700/1826526](https://stackoverflow.com/a/51609700/1826526)
