Android prevents my app from catching the server data? #2918
kanisuki
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@kanisuki |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two problems.
I made an android app.
The app has the function that plays music in the web server.
The script is below.
import flash.netURLRequest;
import flash.media.Sound;
import flash.media.SoundChannl;
var request:URLRequest = new URLRequest("https://*****.com/music1.mp3"); //This URL is false.
Var sound:Sound = new Sound();
var sndCh:SoundChannel;
music1Btn.addEventListener(MouseEvent.CLICK,music1BtnClick);
function music1BtnClick(evt){
sound.load(request);
sndCh = sound.play(0,100);
}
animate ver 24.0
AIRSDK ver 50.2.2.2
I previewed the app in PC.
It played the music in the web server.
I changed the app into the android apk with AIR.
I installed the android apk into my phone and BlueStacks5 in my PC.
But the android apk did not play the music in the web server.
Is this caused by AIR?
Next question,
I changed the music in the web server, but the music name was same "music1".
Then I previewed the app, but the app played the former music1.
It never plays the changed music. Why?
Beta Was this translation helpful? Give feedback.
All reactions