Comments (11)
hm... strange, it should (I've checked the sources). Ok, will look close a little later. Thanks!
from webchimera.
then maybe it's something with .state
? could it be it doesn't change to 2 (buffering)? or maybe .state
is changed to 2 after the buffering event is triggered?
from webchimera.
I think .state
could skip some state if change was happen very quickly, since state event not tied strong with .state value. And there could be some delay in .state update. Events in this case are more reliable.
from webchimera.
The reason is I emit MediaPlayerStateChanged
not when .state
value was changed (I have no control over it), but when some related event arrive: https://github.com/RSATom/QmlVlc/blob/master/QmlVlcPlayerProxy.cpp#L50
So if you get MediaPlayerBuffering
event, after that you will get MediaPlayerStateChanged
since one triggers another.
from webchimera.
Does MediaPlayerStateChanged
also pass the new state to the callback function?
from webchimera.
Don't sure I understand what you mean.
from webchimera.
If something like MediaPlayerStateChanged( state )
is possible. so it would pass the new state when the event is triggered.
from webchimera.
no, since I have only async access to state. I.e. it will have the same problem.
from webchimera.
but stop, you are right, I can deduce current state from original event. Good Idea.
from webchimera.
There is one more problem with MediaPlayerStateChanged
that I've found. I guess it should trigger only when the state has changed (ie: is different from the previous state), but I added a console.log()
to the event and it's triggering a lot more times for the same exact states in a row.
from webchimera.
Yes, I didn't store previous state value
from webchimera.
Related Issues (20)
- Option to move or show player on another screen HOT 39
- How to change default asceptratio to 16:9 : HOT 4
- Setup nightly builds on http://launchpad.net
- Linux: plugin don't get keyboard events
- playlist item's .setting HOT 1
- Feature Request - nw.js 64-bit support HOT 4
- Crash In Browser HOT 9
- Image frozzen on Firefox with high resolution HOT 8
- Taking snapshots with WebChimera Plugin HOT 112
- accelerated windowsless mode on Windows HOT 23
- Passing custom VLC arguments? HOT 4
- 'application/x-fb-vlc' mode doesn't support autoloop HOT 1
- Plugin crashes at the end of .m3u8 files HOT 3
- Packaging with VLC 3.0 does not work HOT 8
- Filter Invert Colors HOT 11
- Filter - Hue Support HOT 8
- Error: The specified module could not be found. HOT 2
- How do you play local video files HOT 2
- Video not showing when using vlc 2.1.5
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 webchimera.