Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
hemant_sain
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
Accepted Solution

Play mp3 file on Splash Screen in background.

Hi all,

 

I want to play one mp3 file on splash screen in background.

 

Please provide any suggestion for this its very urgent please.

 

Thanks in advance.

Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Play mp3 file on Splash Screen in background.

the provided splashscreen is displayed by the system. you can display an own splashscreen (we use a sheet, for example) and play sound or do other stuff, of course.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: Play mp3 file on Splash Screen in background.

I am interesting with your own splash screen. I assumed you set up a timer to close the splash sheet, is it correct?

When the sheet is closed, whether do you need to change the scene into your main screen or only close the splash sheet then the main screen will be revealed.

 

The reason for my question is wondering how you can disable the animation of sheet pulling up or pulling down.




p(^_^)q
Good good study, day day up
Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Play mp3 file on Splash Screen in background.

we did not disable the animation, but the screen is displayed so quickly that it is not really noticable.
we use a Sheet and undisplay it when the background processing is finished (some web calls).

to show and hide the splash sheet i used a function in the main.qml and connect it with signals from c++.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: Play mp3 file on Splash Screen in background.

Ok. I got it. It is also a good idea. I remembered Zmey once mentioned dynamically change the scene, maybe we can have a page as a splash, then when to close it, we can change the scene into main screen. I have not had a try but i will do it soon.




p(^_^)q
Good good study, day day up
Developer
hemant_sain
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10

Re: Play mp3 file on Splash Screen in background.

Thanks javayoung,

 

I got it i applied the same way.

 

Now i am able to play the mp3 on splash.

 

Thanks. :smileyhappy:

Contributor
dev_bb10
Posts: 25
Registered: ‎02-14-2013
My Device: Non Blackberry User

Re: Play mp3 file on Splash Screen in background.

Please share it so that we can understand it.

 

Thanks 

Dev:Cowboy: