-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lag in playing VOD stream over ExoPlayer. #52
Comments
Nice try! In order for the P2P algorithm to work, we have to know what segment is currently playing. This is how we can assign priorities to segments in the segment queue and for example, decide to download a segment over P2P or force HTTP download if it is very close to playhead position. That is why calling Most likely you have to create separate integration for Main responsibility of a player integration is create segments queue, starting from a segment next to currently playing and pass it to load(segments: Segment[], swarmId: string) method. When the queue changes (play list updated and new segments added to the queue or playhead moved to another segment etc.) you should build new segments queue and pass it to Everything else will be handled by |
This is awesome. I need a p2p-media-loader over ExoPlayer myself. is't open source? any github repo available? looking for a ios solution as well... even for solution that is not over p2p-media-loader but any WebRTC solution can work as long as it works cross android, ios & web with WebRTC |
@kishanio can you throw some lite on how you made the wrapper for the ExoPlayer. I am also trying the same solution, i.e. sharing the packets from HLS to Exo in Android. |
any news? |
Most likely it can be done only be implementing a proxy like it is done in similar paid solutions. |
yes. i created a proxy. |
@kishanio você poderia compartilhar sua solução? |
fiz em webview, ficou muuito prático.
Att.
Rafael Machado
REGS IT LTDA.
ANTIK Business Representative BRASIL
"Believe in the future, believe in your success"
"Não existe patch para a estupidez humana"
Em seg., 19 de abr. de 2021 às 10:52, vipeweb ***@***.***>
escreveu:
… @kishanio <https://github.com/kishanio> você poderia compartilhar sua
solução?
acredito que seria um avanço importante essa integração do android nativo
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBIDCQXIFDDAWU4CDNXNXDTJQYTNANCNFSM4G6W7C7A>
.
|
I have made a tiny wrapper utilising P2P media loader HLS package to be consumed in an Android App. There's 2 things i was wondering if someone can help me cross verify.
Likewise in exoplayer i'm tad-bit confused which event would call this. RIght now i'm using onLoadCompleted. Not sure if
setPlayingSegment
is to be called when frame is requested or responded.One of the solutions i'm tried today was to read chunk list and request for packets ahead of time and keep track of it so when player requests it i can directly resolve it. Though i get this error,
Cancel segment request: simultaneous segment requests are not supported
.Just wanted to run it through @mrlika if you have more ideas. Also kudos on library. Lemme know if there's anything i can help with. By now i'm very close to finish reading almost your entire source code to make it work over android.
P.s.: I know i'mma not have a perfect solution (hacky solution ofcourse 😏) just wanted todo a POC that p2p between web+android is possible using webrtc. I think peer5 does same underhood.
The text was updated successfully, but these errors were encountered: