Re: Audio Control on Mobile?

2022-05-15 Thread Dan Friedman via use-livecode
Alan,

Thank you for the info.  I know of the mobileSound items... but, it doesn't 
have all the commands we need.  For example, there is no method to start (or 
change) the sounds play position, or poll the sound for the current position.

My client wants to make a music playing app.  Need to replicate a music 
player... so, we need to keep our [custom] transport in sync with the sound.  
Stop, Start, Pause, Scrub, update current time and time remaining, etc.  EASY 
on desktop, can't seem to do this on mobile with LiveCode.

-Dan
 

On 5/15/22, 5:12 AM, "Alan Stenhouse"  wrote:

Hi Dan,

Check out mobilePlaySoundOnChannel in the dictionary and the related 
commands linked to it.

Don't think there's a player command for mobile, though I may have missed 
it...!

HTH

cheers,

Alan 

> On 15 May 2022, at 1:30 am, use-livecode-requ...@lists.runrev.com wrote:
> 
> Date: Fri, 13 May 2022 19:40:11 +
> From: Dan Friedman 
> To: How to use LiveCode 
> Subject: Audio Control on Mobile?
> Message-ID: <395fac0d-aca3-463e-ab3a-b932d222c...@clearvisiontech.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello!   On desktop, there is the player object which is great!   
However, it doesn't work on Mobile.  Is there a way to deal with an audio file 
on mobile (Android and iOS)?   Here's what I need to do:
> 
> - Load an audio file from a server
> - Play the file
> - Pause file
> - Set the cursor (where to play from or jump to)
> - Know when the end of file is reached
> - length of audio file
> - current play position
> - file state (isPlaying or isPaused)
> 
> Thank you in advance!
> 
> -Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Audio Control on Mobile?

2022-05-15 Thread Alan Stenhouse via use-livecode
Hi Dan,

Check out mobilePlaySoundOnChannel in the dictionary and the related commands 
linked to it.

Don't think there's a player command for mobile, though I may have missed it...!

HTH

cheers,

Alan 

> On 15 May 2022, at 1:30 am, use-livecode-requ...@lists.runrev.com wrote:
> 
> Date: Fri, 13 May 2022 19:40:11 +
> From: Dan Friedman 
> To: How to use LiveCode 
> Subject: Audio Control on Mobile?
> Message-ID: <395fac0d-aca3-463e-ab3a-b932d222c...@clearvisiontech.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello!   On desktop, there is the player object which is great!   However, it 
> doesn't work on Mobile.  Is there a way to deal with an audio file on mobile 
> (Android and iOS)?   Here's what I need to do:
> 
> - Load an audio file from a server
> - Play the file
> - Pause file
> - Set the cursor (where to play from or jump to)
> - Know when the end of file is reached
> - length of audio file
> - current play position
> - file state (isPlaying or isPaused)
> 
> Thank you in advance!
> 
> -Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


20% discount on advanced LiveCode development books

2022-05-15 Thread Andre Garzia via use-livecode
Hi Friends,

I had a wonderful time at the LiveCode DevCon 2022 and decided to extend the 
discount I offered for my books at the con to the wider LC community. These are 
two books that complement each other, one about organising and developing 
effective code and the other about building your own dev tools to help your 
products succeed. 

LIVECODE ADVANCED APPLICATION ARCHITECTURE BOOK

This book will help you learn about LiveCode best practices and advanced 
application architecture. With the techniques contained in it you will build 
applications that are easier to maintain and adapt leading to a more fun and 
profitable future.

https://payhip.com/b/I1Un

DEVELOPMENT ORIENTED DEVELOPMENT BOOK

Development Oriented Development is a novel approach to coding with LiveCode 
that prioritizes developer comfort and robustness by favouring treating 
LiveCode as a mouldable environment. By the end of this book, you'll know how 
and why to build custom plugins to make your development workflow easier, and 
how bespoke project-specific tools lead to software that is easier to maintain.

https://payhip.com/b/18eH

The discount coupon is BOOKS20 and you need to apply it when you're checking 
out.

Best
Andre
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode