Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20562] Android: Music does not play in when pass an audio file URL in WebView.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid
Reporteroht
AssigneeUnknown
Created2016-03-09T18:36:03.000+0000
Updated2018-02-28T19:55:10.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
Screen Shot 2016-03-10 at 1.35.15 AM.png2016-03-09T19:35:57.000+0000332015
Screen Shot 2016-03-10 at 1.35.28 AM.png2016-03-09T19:35:54.000+000069481

Comments

  1. oht 2016-03-09

    device : GALAXY J android version : 5.0 ti sdk: 5.4.0.v20160308204215 [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [ERROR] cr_MediaResourceGetter: Error configuring data source: setDataSource failed: status = 0x80000000 [ERROR] cr_MediaResourceGetter: Unable to configure metadata extractor
  2. Sharif AbuDarda 2016-03-09

    Hello, Use Ti SDK 5.2.0.GA. I Just tested it and it's works with the sample code from your previous ticket. Which was closed because our developers can't reproduce the issue. Please Use the SDK recommended and if possible, please provide a video of the issue that you are having. The issue is not reproducible in our end. See the screenshots. Use the url : "https://soundcloud.com/stroseoflima", for test. Thanks.
  3. oht 2016-03-10

    http://download.wavetlan.com/SVV/Media/HTTP/http-aac.htm Set the above site to webview. What music does not play . Version 5.2.0.GA [ERROR] E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present [TRACE] V/MediaPlayer-JNI: setParameter: key 1400 [TRACE] MediaPlayer: MediaPlayer::setParameter(1400) [TRACE] V/MediaPlayer-JNI: setAudioStreamType: 3 [TRACE] MediaPlayer: MediaPlayer::setAudioStreamType [TRACE] V/MediaPlayer-JNI: set_session_id(): 669 [TRACE] MediaPlayer: MediaPlayer::setAudioSessionId(669) [TRACE] V/MediaPlayer-JNI: setDataSourceFD: fd 144 [TRACE] MediaPlayer: setDataSource(144, 26805928, 58) [TRACE] MediaPlayer: message received msg=8, ext1=0, ext2=0 [TRACE] MediaPlayer: notify(8, 0, 0) callback on disconnected mediaplayer [TRACE] MediaPlayer: setVideoSurfaceTexture [TRACE] MediaPlayer: prepare [TRACE] MediaPlayer: message received msg=200, ext1=973, ext2=0 [WARN] MediaPlayer: info/warning (973, 0) [TRACE] MediaPlayer: callback application [TRACE] MediaPlayer: back from callback [TRACE] MediaPlayer: message received msg=5, ext1=0, ext2=0 [TRACE] MediaPlayer: New video size 0 x 0 [TRACE] MediaPlayer: callback application [TRACE] MediaPlayer: back from callback [TRACE] MediaPlayer: message received msg=1, ext1=0, ext2=0 [INFO] MediaPlayer: Don't send intent. msg.arg1 = 0, msg.arg2 = 0 [TRACE] MediaPlayer: prepared [TRACE] MediaPlayer: signal application thread [TRACE] MediaPlayer: callback application [TRACE] MediaPlayer: back from callback [ERROR] MediaPlayer: Should have subtitle controller already set [TRACE] MediaPlayer: prepare complete - status=0 [ERROR] MediaPlayer: Should have subtitle controller already set [DEBUG] MediaHTTPConnection: filterOutInternalHeaders: key=User-Agent, val= Samsung SC-02F stagefright/Beyonce/1.1.9 (Linux;Android 5.0) [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [TRACE] MediaHTTPConnection: mTotalSize is 4997746 [TRACE] MediaHTTPConnection: Server doesnt support Partial Request [TRACE] MediaHTTPConnection: Return -EPIPE [INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false [TRACE] MediaHTTPConnection: mTotalSize is 4997746 [DEBUG] cr_MediaResourceGetter: [MediaResourceGetter.java:166] resource doesn't have video [DEBUG] cr_MediaResourceGetter: [MediaResourceGetter.java:195] extracted valid metadata: MediaMetadata[durationInMilliseconds=307525, width=0, height=0, success=true] [TRACE] V/MediaPlayer-JNI: release [TRACE] MediaPlayer: setListener [TRACE] MediaPlayer: disconnect [TRACE] MediaPlayer: destructor [TRACE] MediaPlayer: disconnect

JSON Source