# Setting timeout for media streaming app

**URL:** <https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [August 26, 2020, 4:10pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347 "2020-08-26T16:10:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 4:10pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/1 "2020-08-26T16:10:42Z")

</div>

Hello Thunkers!

I am building a media streaming app. In order to keep it free for me + the users, I need to set limits so I don’t use up my streaming allotment on Cloudinary. I’m not sure if this is the most logical / straightforward way to approach this (please be honest if it isn’t! I’m a n00b, but I can handle critique! 😅 ) …

I’m thinking maybe I should set a max amount of streaming for the app?

- Limit the user to 1 total hour of use per day.
- Limit the user to 5 total hours / month.

When their personal limit is reached, the app will navigate from the media screen and hide it if they open the app again during that day (if time elapsed) or that month (if time elapsed).

Is this even possible without user accounts? Is this entering crazy complicated territory land?

Thank you for your wisdom Thunkers! 😆

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [August 26, 2020, 4:50pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/2 "2020-08-26T16:50:44Z")

</div>

Why would anyone want to use your limited app when there are competitors out there that are unlimited and free?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 26, 2020, 6:30pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/3 "2020-08-26T18:30:04Z")

</div>

Yes possible. Not crazy at all. Do it!

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 6:49pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/4 "2020-08-26T18:49:51Z")

</div>

Hi Dean!

I am providing specific media that isn’t out there in this way. I want very much to keep it a 100% unlimited stream + free app, but I’m just plain unsure how to do so with the cost of streaming itself? 😅

I’ve estimated that I’d get about 400 hours of free streaming via the free Cloudinary subscription… so if I had 100 active users, they’d only get 4 hours per month.

I don’t know how else to provide media for people to stream it as much as they like at no cost to myself (or them).

If you have any suggestions though, I am 1000000% all ears! 😃 👏🏻

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 6:50pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/5 "2020-08-26T18:50:47Z")

</div>

Thank you! 👏🏻

Would you have any tips on where to start? 🙃

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 26, 2020, 6:54pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/6 "2020-08-26T18:54:31Z")

</div>

Are you serving videos?

To lock any content for a fixed amount of time, I would use the secondssince1970 block  
You’ll have to do some math but that’s where I’d start.

How many seconds left in the month based on the number of days

Add that value to the current second since 1940 save that to a variable named timetounlock

Then either navigate to a different screen or make that visual component invisible if the current second since 1970 does not equal or is greater than the stored variable timetounlock

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 6:57pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/7 "2020-08-26T18:57:29Z")

</div>

No, just audio! I’m providing about 150 - 200mb on a shuffled loop… wanted it to play for them as long as they liked, but as I researched it more, realised that would be a problem with streaming costs. I didn’t know any of that when I started!

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 26, 2020, 7:00pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/8 "2020-08-26T19:00:00Z")

</div>

Can you compress the MP3’s to a slightly lower but acceptable quality?

Or are there services like YouTube for MP3’s?

With youtube you could share a video in the app via the video link

I’d you could find a mp3 server like YouTube, you’d be in business.

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 7:03pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/9 "2020-08-26T19:03:00Z")

</div>

Thank you so much! I will look into this! I may have more questions in the future, but this is a great place to start. I appreciate the help. 😃

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 26, 2020, 7:11pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/10 "2020-08-26T19:11:52Z")

</div>

Very good questions Jared! So, I the most important function to me is that the app will share all of this audio in a shuffled + totally random order, until the full list of audio is all played, then repeats it all over again shuffled… (the same audio file should not repeat multiple times in a row after it’s already played… there should be a long space before the user hears the same file again).

I _don’t_ want the audio to be in the same order every single time for these users, as in each time they open the app it starts with audio 1, then 2, then 3. Then I might as well just give them a set playlist or send them over to youtube or a podcast station. “Shuffled” is key here.

Would I be able to do all of this via an mp3 server?  
What do you think? 🤔

Thank you for taking the time to dialogue over this. I appreciate your insight!

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 26, 2020, 9:45pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/11 "2020-08-26T21:45:01Z")

</div>

If each mp3 has its own link, should be no problem.

I’d start looking into services like

> **[Clyp - the easiest way to record, upload and share audio.](https://clyp.it/)**
>
> Clyp is the easiest way to record, upload and share audio.

> **[Rocket Streaming Audio Server](https://www.rocketbroadcaster.com/streaming-audio-server/)**
>
> RSAS is a modern alternative to SHOUTcast and Icecast, and delivers streaming audio in MP3, AAC, AAC+, Opus, FLAC, to your listeners on the web and to mobile devices.

> **[Free Shoutcast Server Hosting − Start Your Own Internet Radio − Caster.fm](https://www.caster.fm/)**
>
> Caster.fm provides reliable top quality free and paid shoutcast server hosting packages.

Or other internet radio hosting services.

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [August 27, 2020, 4:39pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/12 "2020-08-27T16:39:50Z")

</div>

Oh WOW! Clyp looks really promising Jared… will look into this one more. Fantastic!  
Thanks a million for sharing these links and all of the advice!

Would love to avoid limiting their time steaming if I can, this would be ideal. I didn’t think it was an option really!

👏🏻 👏🏻 👏🏻 👏🏻 😆

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [September 20, 2020, 1:53pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/13 "2020-09-20T13:53:19Z")

</div>

I just want to add this table in case it helps anyone else.

Drop box is a great option! 20GB traffic / bandwidth per day! You get that in an entire month on the free plan for Cloudinary. Woohoo! 😆

> **[Comparison of file hosting services](https://en.wikipedia.org/wiki/Comparison_of_file_hosting_services)**
>
> This is a comparison of file hosting services which are currently active. File hosting services are a particular kind of online file storage; however, various products that are designed for online file storage may not have features or characteristics that others designed for sharing files have.
> 1 TB with paid Office 365 account by default, can register 5 accounts for up to 5TB combined.\[citation needed\]

You just have to amend the shared link slightly so it will stream.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/setting-timeout-for-media-streaming-app/771347/14 "2024-11-08T12:23:50Z")

</div>


