Audio and Videos not working properly
Posted: Mon Oct 01, 2018 1:11 pm
Good morning or evening every one,
I am currently encountering an issue while using the LiveCode media player.
I used to worked on the Community Edition 8.1.7 and I have now started working with the Community Edition 9.0.1.
Before my scripts for audio or videos (8.1.7) used to work on development environment and also windows exe. but now my audios work only and development and the videos not anymore. And when I try to generate an apk, the media doesn't work at all.
Here is the code I use for audio:
on mouseUp
if the environment is "mobile" then
put (specialFolderPath("engine") & "/2AF/Audio/Leson 1/haiti chéri pil bel peyi.mp3") into tPath
set the filename of player "AudioPlayer" to tPath
start player "AudioPlayer"
else
put (specialFolderPath("resources") & "/2AF/Audio/Leson 1/haiti chéri pil bel peyi.mp3") into tPath
set the filename of player "AudioPlayer" to tPath
start player "AudioPlayer"
end if
end mouseUp
Here is the one for videos:
if the environment is "mobile" then
put (specialFolderPath("engine") & "/2AF/Videos/Leson 1/Earth_to_Haiti.mp4") into tPath
set the filename of player "VideoPlayer" to tPath
start player "VideoPlayer"
else
put (specialFolderPath("documents") & "/2AF/Videos/Leson 1/Earth_to_Haiti.mp4") into tPath
set the filename of player "VideoPlayer" to tPath
start player "VideoPlayer"
end if
Thanks in advance for any comment.
I am currently encountering an issue while using the LiveCode media player.
I used to worked on the Community Edition 8.1.7 and I have now started working with the Community Edition 9.0.1.
Before my scripts for audio or videos (8.1.7) used to work on development environment and also windows exe. but now my audios work only and development and the videos not anymore. And when I try to generate an apk, the media doesn't work at all.
Here is the code I use for audio:
on mouseUp
if the environment is "mobile" then
put (specialFolderPath("engine") & "/2AF/Audio/Leson 1/haiti chéri pil bel peyi.mp3") into tPath
set the filename of player "AudioPlayer" to tPath
start player "AudioPlayer"
else
put (specialFolderPath("resources") & "/2AF/Audio/Leson 1/haiti chéri pil bel peyi.mp3") into tPath
set the filename of player "AudioPlayer" to tPath
start player "AudioPlayer"
end if
end mouseUp
Here is the one for videos:
if the environment is "mobile" then
put (specialFolderPath("engine") & "/2AF/Videos/Leson 1/Earth_to_Haiti.mp4") into tPath
set the filename of player "VideoPlayer" to tPath
start player "VideoPlayer"
else
put (specialFolderPath("documents") & "/2AF/Videos/Leson 1/Earth_to_Haiti.mp4") into tPath
set the filename of player "VideoPlayer" to tPath
start player "VideoPlayer"
end if
Thanks in advance for any comment.