Titanium JIRA Archive
Appcelerator Community (AC)

[AC-625] Music does not play in when pass an audio file URL in WebView and try playing it on Android (5.x or Later)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-02-22T18:35:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsandroid
ReporterAshish Sebastian
AssigneeShak Hossain
Created2016-02-17T12:19:02.000+0000
Updated2016-03-09T18:36:04.000+0000

Description

I had a few web url that play online music, I created an app and added those to a webView. When used the app on iOS (iphone or iPad) it worked fine and the music played. Also worked on my device Samsung S3 (Android version 4.3), but when tried running same app on Nexus 7 with Android version 5.1.1, it failed play the music on webView. I also created an app using Android Studio to cross test if it was an Android issue, but with the same url and WebView component it worked fin on Android Studio on my Nexus 7 device. I am attaching my app.js file to this ticket, hope that help you reproduce the issue.

Attachments

FileDateSize
app.js2016-02-17T12:18:01.000+00001263

Comments

  1. Jebun Naher 2016-02-18

    Hello [~ashishseb], I tested the issue with your provided test code. I was able to play the second webView url of your code : https://soundcloud.com/stroseoflima. *Device info:* Nexux 7: (Android version: 6.0.1) Ti.SDk : 5.1.2GA Appcelerator Studio, build: 4.5.0.201602170831 Could you please test with the latest android version and let us know the update? Thanks.
  2. Ashish Sebastian 2016-02-19

    Hi Jebun Haher, Thanks for a quick reply, I forgot to mention my TiSDK : 3.5.0. Do you have a fix for this version, I understand that I should use the latest SDK available but as the application I am working on is quite old and hasn't be update for quite a while, therefore for time being I need to stick to this SDK and find a fix for the issue. Thanks & Regards Ashish Sebastian
  3. Sharif AbuDarda 2016-02-22

    Hello [~ashishseb], Try using the latest SDK 5.1.2.GA. I have tested your app and it's working. Update your SDK, That's the only solution here. Closing this ticket. Thanks.

JSON Source