Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Hi, I have not been able to play HLS streaming properly for a long time. I searched for an answer to this problem, but could not find a similar case anywhere. The problem is that after loading the streaming I have audio or video only but never both together. It selects randomly.
I have tried to fix this in a number of ways:
None of the ways helped. It always displayed either video or audio.
I will try to describe the process: First I download the url for the video:
In the next step I get a reply with a manifest where the content type is - application/vnd.apple.mpegurl:
Num30435.ts is then downloaded, where the content type is: video/MP2T.
The logs most strangely get different ones as well.
FIRST CASE -> When audio only
timeline
[eventTime=0.69, mediaPos=4.00, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE] period [?] window [10.00, seekable=true, dynamic=true]
audioEnabled
[eventTime=0.91, mediaPos=4.00, window=0, period=0]
tracks[eventTime=0.91, mediaPos=4.00, window=0, period=0]
group
group
Metadata
[eventTime=1.12, mediaPos=4.00, window=0, period=0, id=2, mimeType=null, bitrate=825000]
audioDecoderInitialized[eventTime=1.34, mediaPos=4.00, window=0, period=0, c2.android.aac.decoder]
audioInputFormat[eventTime=1.34, mediaPos=4.00, window=0, period=0, id=2, mimeType=audio/mp4a-latm, bitrate=825000, codecs=mp4a.40.2, channels=1, sample_rate=22050]
state[eventTime=1.59, mediaPos=4.00, window=0, period=0, READY]
isPlaying[eventTime=1.60, mediaPos=4.00, window=0, period=0, true]
timeline[eventTime=3.27, mediaPos=3.55, window=0, period=0, periodCount=1, windowCount=1, reason=SOURCE_UPDATE]
SECOND CASE -> When video only
videoEnabled
[eventTime=0.53, mediaPos=4.00, window=0, period=0]
tracks[eventTime=0.53, mediaPos=4.00, window=0, period=0]
group
group
group
Metadata
[eventTime=0.71, mediaPos=4.00, window=0, period=0, id=2, mimeType=null, bitrate=825000]
videoDecoderInitialized[eventTime=1.07, mediaPos=4.00, window=0, period=0, c2.qti.avc.decoder]
videoInputFormat[eventTime=1.08, mediaPos=4.00, window=0, period=0, id=2, mimeType=video/avc, bitrate=825000, codecs=avc1.4D401F, res=1024x576]
videoSize[eventTime=1.11, mediaPos=4.00, window=0, period=0, 1024, 576]
renderedFirstFrame[eventTime=1.11, mediaPos=4.00, window=0, period=0, Surface(name=null)/@0xda67faf]
state[eventTime=1.18, mediaPos=4.00, window=0, period=0, READY]
isPlaying[eventTime=1.18, mediaPos=4.00, window=0, period=0, true]
Here is a code:
I repeat this on demo app .
I had only audio or video. But never both together.
CASE -> VIDEO only
CASE -> Audio only
This problem does not occur on the old system player using the VideoView.class. Streaming looks fine.
I can forward you the url to the video. Unfortunately we will need to be in direct contact as there will be a short window for debugging opportunities. The link will be available as long as the race is running. Additionally, Geo Rules are required. A vpn to the UK will be required
Android media3-exoplayer 1.1.0 The same problem exists in version exoplayer-core 2.19.0 Tested on:
I would be grateful for any help!