Comments (6)
- Set Config.Player.AutoPlay = false
- You should either reset Config.Player.AutoPlay (on OpenCompleted) to true or Listen to Player.SeekCompleted and manually call Player.Play
- Listen to Player.OpenCompleted event and perform a Player.Seek
from flyleaf.
unfortunately it still plays the first part of the stream even with "Config.Player.AutoPlay = false"
from flyleaf.
I just retested to ensure AutoPlay=false works. Can you provide a log file?
from flyleaf.
Autoplay=false works, but when I set the position of the steam and then call play, the first half second of the beginning of the stream plays before it skips to the current stream position. I'm setting the position on the stream itself since it's a combination of raw hevc streams via ssh, so all I know is the length of the stream in bytes, not how long it is etc. Even with autoplay=false I'm assuming it's still buffering the data to play
from flyleaf.
I'm not sure yet how you use it, but the proper way and build-in way to seek will flush the packet queue after the seek has been completed and it will decode until the first video frame to present it. Did you check the (trace) logs? Does the demuxer brings old packets after seek?
from flyleaf.
This is an example of what is happening, I added some log output you can see. I can't use the player seek because i dont know the time in ms that i need to jump to, I only know the percentage. Its a raw HEVC stream over SSH so there is no information about current position / length in ms
[16:46:54 DBG] Opening New Stream
[16:46:54 DBG] Seeking to: 0%
[16:46:54 DBG] Stream Opened
[16:46:54 DBG] Seeking to: 63%
[16:46:54 DBG] Position Set to: 63%
[16:46:54 DBG] Calling Play
[16:46:54 DBG] Buffering Started - Current Stream Position:63%
[16:46:54 DBG] Buffering Complete - Current Stream Position:63%
[16:46:55 DBG] Buffering Started - Current Stream Position:63%
[16:46:55 DBG] Buffering Complete - Current Stream Position:63%
I am calling flush before i call play:
flyleafHost1.Player.Flush();
Serilog.Log.Debug("Calling Play");
flyleafHost1.Player.Play();
from flyleaf.
Related Issues (20)
- about key redefine~ HOT 2
- Audio render should be on different thread HOT 4
- Open/OpenAsync with ClearScreenOnOpen still shows black frame HOT 3
- I would like to print a specific part of the image by blurring it, is this possible? HOT 1
- About ShowFramePrev HOT 2
- Overlaps and Refresh in SharedOverlay
- Stream synchronization issue HOT 7
- Possible handle leak when repeatedly create/play/stop/dispose flyleaf players HOT 13
- FlyleafSharedOverlay in wpf ViewBox HOT 3
- Renderer: Level/Gamma Support HOT 4
- crash by set curtime HOT 2
- SharedOverlay as the Visual of a VisualBrush
- Get FlyleafSharedOverlay DetachedContent as Visual HOT 9
- Decoder (Subtitles): Bitmap Support HOT 1
- Issues of brightness control HOT 1
- [New feature requests]Added multi-threading support for M3U8 HOT 3
- Demuxer: Blu-Ray Support HOT 8
- Subtitles seeking support HOT 2
- Memory Leakage HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyleaf.