bilibili / bilibili/ijkplayer

play http stream avi file

Open
#601 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

not-on-plan
Dominant language
C
Stars
33.2k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

I played a avi file with http protocol. The file path is like http://192.168.128.100:8080/1080P/1080p.avi. The file size is 250981314. About ten senconds before the end of stream, following log occurred D/IJKMEDIA( 1263): request: GET /1080P/1080p.avi HTTP/1.1
D/IJKMEDIA( 1263): User-Agent: Lavf/56.40.101
D/IJKMEDIA( 1263): Accept: /
D/IJKMEDIA( 1263): Range: bytes=250981314-
D/IJKMEDIA( 1263): Connection: close
D/IJKMEDIA( 1263): Host: 192.168.128.100:8080
D/IJKMEDIA( 1263): Icy-MetaData: 1
D/IJKMEDIA( 1263):
D/IJKMEDIA( 1263):
W/IJKMEDIA( 1263): HTTP error 416 Requested Range Not Satisfiable
I/IJKMEDIA( 1263): Switching to NI mode, due to poor interleaving

then there is no trigger for CompletionListener when the stream is reading end.

if seeking to some pos to play again, the playing will not be fluent. The movie will play then blocked, then repeat playing and blocking.

I think the problem is caused from the point indicated by the log. Please help me.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce playback with the provided HTTP AVI URL and inspect the logged HTTP range request, the end-of-stream handling, and the CompletionListener path. Then test seeking after the stream ends; done means completion is reported and resumed playback no longer repeatedly blocks.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.