# Sound component for a live radio station

**URL:** <https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271>\
**Category:** Questions about Thunkable X\
**Created:** [August 4, 2020, 4:28pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271 "2020-08-04T16:28:37Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 12:25pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/22 "2020-08-05T12:25:13Z")

</div>

@actech Yeah the solution works, I tried on iPhone using the Thunkable preview app and I have sound only with headphones which is weird then I tried on iPad and it works pretty well so I’m guessing is an internal issue on the iPhone and not something general or relevant? any thoughts about it?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 5, 2020, 12:26pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/23 "2020-08-05T12:26:30Z")

</div>

I have used Android 9 so far and everything works perfectly. I’ll try to see how things are going on my iPhone

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 12:26pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/24 "2020-08-05T12:26:31Z")

</div>

@eoinparkinson I’ll try that out, thanks

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 12:40pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/25 "2020-08-05T12:40:33Z")

</div>

@eoinparkinson @actech @kizzy Yes, my issue on iPhone was the silent mode I had is to switch it off.

So by now I have the video component inside a column and I have the column hidden and then by the Block editor I programmed an interface with play - stop buttons which is good enough for our main goal but I was wondering could it be possible to display the play time of each song? I didn’t find any block in the block editor to do this?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 5, 2020, 12:44pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/26 "2020-08-05T12:44:14Z")

</div>

Do you need to know this time in advance or get it after playing the song? If you need this data before playback, you will need to find out the playlist and the duration of the songs in it.

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [August 5, 2020, 12:58pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/27 "2020-08-05T12:58:40Z")

</div>

i would have to see a smaple of someone else player because it not working out for me .

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 1:13pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/28 "2020-08-05T13:13:28Z")

</div>

Yes, I mean to display the time of the song on real time, for instance 2:04 and the second 2:05 and the next second 2:06 and so on… you know some music players comes with this feature

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 1:14pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/29 "2020-08-05T13:14:54Z")

</div>

@kizzy Happy, to help just share your block of code is actually a very simple block of code, and were you able to hide the player? just share here your codes

---

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [August 5, 2020, 2:11pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/30 "2020-08-05T14:11:11Z")

</div>

This component does not run in the background. I don’t know how you achieved it and I think we will all be happy if you share your project with us.

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 2:29pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/31 "2020-08-05T14:29:51Z")

</div>

@Balanced_Kitchen @kizzy @actech @eoinparkinson I’m afraid, I think we are talking of different things when I said background I mean the video component is not visible at all while the app is open and I control it with a custom user interface. On the other hand, I understand and let me know if I’m wrong, but Thunkable apps can not run on the background (when the application is “minimized”) is this correct? or is it possible to run it while is minimized?

Just to be clear I haven’t been able to achieve it, meanwhile the app is minimized

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [August 5, 2020, 9:43pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/32 "2020-08-05T21:43:46Z")

</div>

i mean when screen is off or minimized audio stops

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 5, 2020, 9:59pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/33 "2020-08-05T21:59:17Z")

</div>

@kizzy Yes when the app is minimized stops playing until is maximized again but I’m not sure if this is going to happen with the real application, I mean this might be due to using the Thunkable preview app? I’m not sure if this change once you install the application and run it without the Thunkable preview app, can anyone confirm on this?

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [August 5, 2020, 9:59pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/34 "2020-08-05T21:59:58Z")

</div>

i have downloaded the apk

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 6, 2020, 7:38am UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/35 "2020-08-06T07:38:20Z")

</div>

For this reason, I made a switch in the demo project: Web (with work in the background) or native mode

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 6, 2020, 1:37pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/36 "2020-08-06T13:37:05Z")

</div>

@actech @eoinparkinson as I understand you guys have made the radio stream app with a web view.

I created one due to the reason that the video component doesn’t continue playing once the Thunkable preview app is minimized and because I love Thunkable and I hope to be able to get this done with the platform…, the web view component continues playing on the background once the Thunkable app is minimized, but 1 - 2 minutes after is minimized the music stops playing, is this just because I’m using the Thunkable preview app? I mean basically web view doesn’t continue playing the music once the app is minimized…

Any suggestions?

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [August 6, 2020, 1:58pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/37 "2020-08-06T13:58:57Z")

</div>

i told you from the start it wont work i have 2 radio in the play store that i cant update from here , my best option was using webview and hide it it worked ok but stops after about mins i have downloaded and try on ios

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 6, 2020, 2:07pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/38 "2020-08-06T14:07:50Z")

</div>

In my example there is one tricky block )) So I listen to the radio until my Android phone’s battery runs out.

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bd54f20fd22bd544a2b51fae32303fe6af1c5280.png)

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [August 6, 2020, 2:20pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/39 "2020-08-06T14:20:13Z")

</div>

i have tried that i think might work with webview audio

---

<div class="post-metadata">

**Author:** ![Scene](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/scene/32/46329_2.png) [@Scene](https://community.thunkable.com/u/Scene)\
**Post date:** [August 6, 2020, 2:38pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/40 "2020-08-06T14:38:13Z")

</div>

@actech I used that block, still no luck on iPhone… all the description that I wrote before this message was already using that block set keep screen awake …

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 6, 2020, 2:46pm UTC](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271/41 "2020-08-06T14:46:17Z")

</div>

Have you tried playing video files in a video component? If so, does the same situation occur there, or does the video file not stop playing if the screen is not minimized?

Why am I asking this? Because something strange is happening on my iOS and I can’t listen to the radio at all right now.

[Previous page](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271.md?page=1)

[Next page](https://community.thunkable.com/t/sound-component-for-a-live-radio-station/720271.md?page=3)
