AIR AS3 Android Sound plays once but never again after fade - android

I have an AIR Android application which has multiple pages, each page has their own music and sound effects. Music is executed via code and the effects are part timeline and part code executed.
This all works fine on the AIR Simulator but as soon as I run it on a Tablet with Android 4.4.2 it is ok for the first page, but once the first page music and effects sound channels have been faded out (via a volume tween) you wont hear a sound from the application again. Android 4.2.2 however is fine.
I've traced the volumes and the values are fine, I've even tweened the SoundMixer volume itself and still not a sound.
The code is just basic soundmixer and soundtransform code, virtually identical to what is on adobe live docs. I've even skipped the first page and gone directly to the second to see if the sounds are working correctly and they are fine.
Anyone got any suggestions?

Issue was: omni-4.4.2-20140128
Flashed version: omni-4.4.2-20140318
and all is fine in the world once again!

Related

How to stream webrtc video from the phone in background

I have an application that allows users to stream video and audio from their phones using webrtc to the server. The streaming should not be interrupted if the device locks down or the app goes to background. Everything works perfectly in the first case. In the second case, however, when I press the home button, audio still works perfectly but the video freezes. Any help would be much appreciated here.
P.S. I'm using ionic with capacitor.

Youtube API Video stops when not on full screen

I'm using the youtube API and I did the instructions from this tutorial:
http://javatechig.com/android/youtubeplayerview-example-in-android-using-youtube-api
All is well, but when I'm not on full screen, the video keeps stopping every second. It's like it plays for 1 second, stops, then I have to press the play button again, then it will stop again after 1 second. On full screen, it plays perfectly. I'm 100% sure it's not the internet connection because I tried it with many connections and it ONLY plays properly on full screen. Any idea how I can fix this?
EDIT: It's not the phone either, I tried it on a Nexus 5, Sony Xperia z1, HTC One, a number of Samsung Galaxies. I rechecked the code multiple times, it's exactly the same, even did a copy paste of the tutorial. It still stops when it's not on full screen. I only used the tutorial, since I wanted to make sure it works before embedding it to my main project.
I solved my problem by removing the padding in the youtube video player. It now plays perfectly regardless of orientation.

Playing Audio in Background Thread (when Screen is Off) Cordova Plugin

is there any Cordova/Phonegap media plugin available, which can play the audio in background, when screen is locked, particularly for Android. This feature is there by default for iOS, but this doesn't work for Android. I am looking for Cordova/Phonegap media plugin, which works even the screen is turned off for both Android and iOS. Thanks for the help.
A little late but in case anyone needs it.
Phone gap supports audio playing as a built in API. I've had success getting it to work even when the screen is locked. The link to the API page is below:
http://docs.phonegap.com/en/2.3.0/cordova_media_media.md.html

android chrome embed video shows in full screen only

I made a static website tool that runs in all major browsers and iPad and Android(chrome). I show .mp4 video source with a simple embed tag. This was working just dandy until sometime this weekend. Come monday testing the video in android chrome, it plays audio only when not full screen, and plays correctly when full screen. I tested with the html5 video tag I use in other tools and actually same bug. I converted the video to other formats and codec, same bug. I tested tools that were completed months ago and working perfectly when sold, same bug. Seems likely that it started when chrome updated sometime after the 10/11 over the weekend. But as this project is on the home stretch and I had just debugged the last bugs I am putting it out there hoping for some feedback. I can't be the only one as it is happening with the video tag as well as the embed tag. It has to be chrome that changed my code didn't. Any insights out there?

Android MediaPlayer Doesn't Display Video on Scroll Plus 7 device when Native App calls eglSwapBuffers

I've an app that uses a Native Activity as it is mostly C++ code (cross platform).
I also need to play Video and Audio so have another Activity that uses MediaPlayer to play video and/or audio. This is used in conjunction with the Native Activity to play Video in front of the OpenGL rendered application.
The MediaPlayer activity is based upon that in the ApiDemos example, and works fine on MOST devices (Nexus 7/10, Galaxy S3/Tab2, even some low-cost devices like Fusion5).
BUT running it on a low-cost Scroll Plus 7" tablet - the code functions, but no Video is displayed.
The Audio plays, the Video Controls show and are usable.
NOTE: I have actually been able to hack with the code to get the Video showing - though this is not a solution it may help someone identify the problem.
In my Native Code where the Open Gl render calls eglSwapBuffers, if I comment this line out the Video shows. (I complete the rendering in a loop inside android_main)
Obviously this means my OpenGL Rendering that needs to go on in the background stops working, so I cannot fix it this way.
Device:
Scroll Plus
7" TABLET by Storage Options
Jelly Bean 4.1
From LogCat i believe it is running a CedarX-based Media Decoder/Renderer.
After 4 days on this issue, I've finally found out that the Video was being drawn BEHIND my OpenGL. Why only on this device I don't know. All the other aspects of the Video Activity (the controls etc) are in front where it should be.
The eglSwapBuffers was a red-herring, in that case I was not drawing anything to the screen.

Categories

Resources