# Thunkable x and firebase media files

**URL:** https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467
**Category:** Questions about Thunkable X
**Created:** [October 5, 2018, 3:18pm UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467 "2018-10-05T15:18:21Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 5, 2018, 3:18pm UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/1 "2018-10-05T15:18:21Z")

</div>

i want to get sounds files from firebase  
i made it by thunkable and it works

 ![2018-10-05_170440](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c79b79938ea35b8145864c5f1f8ab43d8e5ddd1.png)

how can i do these steps by thunkable x

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 5, 2018, 7:38pm UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/2 "2018-10-05T19:38:26Z")

</div>

Use this block and put the value in the sound component 🙂

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eee1d05c3428978a5ff48db4ff5421c6a51ae66f.png)

[Here for more info on how to use RealtimeDB (Firebase)](https://docs.thunkable.com/thunkable-cross-platform/create/components/data/realtime-db)

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 9:40am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/3 "2018-10-06T09:40:14Z")

</div>

thank you for replying  
but when i do this step  
i don’t know what i must put in key block

![2018-10-06_113516](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b7b3574a2317b815adffcee6ee7ec58748d6904.png)

is it the name of project in firebase

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 10:11am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/4 "2018-10-06T10:11:40Z")

</div>

No, let me explain clearly.

When you save to a database or to firebase or to any other storage, you have a key, and a value.

The key is the name you want to save it under. It is the name your value will take in the Database and the name you will need to save it and to get it. The value is as you understood what you want to save. If you want to replace your value by another one, just enter the same key, but if you want to save different values, you might want to change the key to not overwrite the old value.

Hope I’ve been clear enough. Tell me if not.

Good day !

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 10:14am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/5 "2018-10-06T10:14:08Z")

</div>

can you explain by screen shot of blocks please

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 10:14am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/6 "2018-10-06T10:14:37Z")

</div>

Hang on

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 10:16am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/7 "2018-10-06T10:16:39Z")

</div>

now, i have a database and i have media files  
what is the key and what is the value of them ??  
if one of them refer to another thing … what is this thing??

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 10:19am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/8 "2018-10-06T10:19:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/74db73a8d12496e3c83088faa2f6d82d22ef1633.png)

Basically here the left one saves your data.

Here `number` is the `name` of your object in the database & `1` is it’s value.

The one on the right collects the data with the `name` so `number` and gives it to you under the `value` block

[Project](https://x.thunkable.com/projects/5baa9bb71149e023913113fe/project/properties/designer/)

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 10:54am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/9 "2018-10-06T10:54:11Z")

</div>

which one of these is right …

![2018-10-06_125057](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/6593d084c5bc71323d4b62640c4445d7dad5f586.png) ![2018-10-06_125113](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c10907bb6340e76d682579506d5d4672dad9d2f2.png)

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 10:57am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/10 "2018-10-06T10:57:07Z")

</div>

Here, the sound1 call play is just meant to play the sound you’ve set. So none of these is good, you first need to set `sound1 source to value`, and then do `sound1 call play`  
Basically, just add a `sound1 call play` under the `sound1 set source to value` of your second one.

🙂

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 10:59am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/11 "2018-10-06T10:59:21Z")

</div>

😥😥  
i can’t understand what i must do

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 11:01am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/12 "2018-10-06T11:01:29Z")

</div>

I’m going to send you the blocks and explain. Because if you don’t understand and just copy you’ll be back soon to ask a similar question 🙂

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 11:10am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/13 "2018-10-06T11:10:35Z")

</div>

thank you  
please explain about mp3 file not about text

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 11:16am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/14 "2018-10-06T11:16:07Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9ea1ee5e59b1e5b6673637d6e7deae777fe7b80e.png)

It’s the same just replace the value 1 by your mp3 name

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 11:21am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/15 "2018-10-06T11:21:01Z")

</div>

good … but to what refer ( number) ??

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 11:23am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/16 "2018-10-06T11:23:24Z")

</div>

To your mp3 file, it is the value you want to save and to play later. So here just put your mp3 file

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 11:32am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/17 "2018-10-06T11:32:39Z")

</div>

is it right ???

 ![2018-10-06_133034](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/9/298636af62e84cfea02138105072b6a6af3505fb.png)

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 11:33am UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/18 "2018-10-06T11:33:10Z")

</div>

Yup, test it and see

---

<div class="post-metadata">

### Author: ![hamasat](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hamasat](https://community.thunkable.com/u/hamasat)
#### Post date: [October 6, 2018, 12:06pm UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/19 "2018-10-06T12:06:01Z")

</div>

😭😭😭😭😭😭😭😭  
not working  
when i click the button it takes me to the first screen  
please help me … this is the first time in ( thunkable x )

---

<div class="post-metadata">

### Author: ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)
#### Post date: [October 6, 2018, 12:10pm UTC](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467/20 "2018-10-06T12:10:12Z")

</div>

Can you send me your project link ? Here or in DM

And don’t worry we all have to start somewhere

[Next page](https://community.thunkable.com/t/thunkable-x-and-firebase-media-files/50467.md?page=2)
