# Core API how to play when lock screen in IOS?

**URL:** <https://qa.fmod.com/t/core-api-how-to-play-when-lock-screen-in-ios/14995>\
**Category:** FMOD Engine\
**Created:** [August 29, 2019, 8:12am UTC](https://qa.fmod.com/t/core-api-how-to-play-when-lock-screen-in-ios/14995 "2019-08-29T08:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iris61](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@iris61](https://qa.fmod.com/u/iris61)\
**Post date:** [August 29, 2019, 8:12am UTC](https://qa.fmod.com/t/core-api-how-to-play-when-lock-screen-in-ios/14995/1 "2019-08-29T08:12:03Z")

</div>

I used the 2.0 version Core API to play sound at the ios platform, however, when I lock the screen, the sound will stop.

I searched on the internet, all suggest to set the  
extradriverdata.sessionCategory = FMOD\_IPHONE\_SESSIONCATEGORY\_MEDIAPLAYBACK;

but extradriverdata is void type, how can I set something to it???  
thanks!!

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [September 3, 2019, 4:47am UTC](https://qa.fmod.com/t/core-api-how-to-play-when-lock-screen-in-ios/14995/2 "2019-09-03T04:47:13Z")

</div>

You can find more information in the [Platform Details](https://www.fmod.com/resources/documentation-api?version=2.0&page=platforms-ios.html) of the API docs, specifically the [Lock Screen & Background Audio](https://www.fmod.com/resources/documentation-api?version=2.0&page=platforms-ios.html#lock-screen-background-audio) section.

---

<div class="post-metadata">

**Author:** ![iris61](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@iris61](https://qa.fmod.com/u/iris61)\
**Post date:** [September 3, 2019, 4:49am UTC](https://qa.fmod.com/t/core-api-how-to-play-when-lock-screen-in-ios/14995/3 "2019-09-03T04:49:07Z")

</div>

Thanks! I already solved it, in the latency part the buffer size is the point, thank you so much!
