Hi friends, I'm having problems to play a MP3 (5 MB) from my server. And yes, I waited up to a minute before I closed the app. Works fine when I play it locally.
The device is connected via (not slow) W-Lan to the internet. LC 9.6.10, macOS 12.7, Android 8.01 I created two buttons for create and delete and put this into the card script ------------------------------------------------- command create_player ## This creates a black rect and nothing more?! ## I don't even see the ANSWER at the end of the script put "https://www.major-k.de/blueprint.mp3" into tURL ## Works immediately when using Safari browser on my Mac, ## so the file is definitively there and URL correct! ## And yes, I added SSL & Encryption neccessary for -> httpS ## This works as advertised ## put specialfolderpath("resources") & "/blueprint.mp3" into tURL mobilecontrolCreate "player", "mplayer" mobileControlSet "mplayer", "visible", TRUE ## That grc is hidden: mobileControlSet "mplayer", "rect", (the rect of grc "player") mobileControlSet "mplayer", "backgroundcolor", "213,143,116" mobileControlSet "mplayer", "showController", TRUE mobileControlSet "mplayer", "filename", tURL if mobileControlGet("mplayer", "duration") = 0 then answer "Player is not initialised correctly" end if mobileControlDo "mplayer", "play" end create_player command delete_player mobileControlDo "mplayer", "stop" mobileControlDelete "player", "mplayer" end delete_player ------------------------------------------------ Most of the time I have to tap the "delete" button at least 5 times or more before the player finally disappears? However the sound stops immediately at the first tap!? What am I missing? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de _______________________________________________ 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