Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

[libvlc 2.2.x] .audio, .video and .input not working through QWebChannel #64

Open
Ivshti opened this issue Aug 24, 2016 · 5 comments
Open

Comments

@Ivshti
Copy link

Ivshti commented Aug 24, 2016

Tried with a few videos; mp4, mkv;

OS X, libvlc 2.2.x, this is what happens:

vlcDevice.vlc.audio.count
0

vlcDevice.vlc.input.fps
0

vlcDevice.vlc.video.width
0

vlcDevice.vlc.video.height
0

This is consistent.

Will try in pure QML to see if this is QWebChannel specific or not

@Ivshti
Copy link
Author

Ivshti commented Aug 24, 2016

Yep, this is specific to QWebChannel; all those props work OK in QML.

It's possible that the objects that were originally on these properties were replaced, and this was not reflected in the QWebChannel

@Ivshti
Copy link
Author

Ivshti commented Aug 24, 2016

Actually, there are warnings like:

Property 'fps'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'hasVout'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'state'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'position'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'time'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'rate'' of object 'QmlVlcInput' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'width'' of object 'QmlVlcVideo' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'height'' of object 'QmlVlcVideo' has no notify signal and is not constant, value updates in HTML will be broken!
Property 'count'' of object 'QmlVlcVideo' has no notify signal and is not constant, value updates in HTML will be broken!

@RSATom
Copy link
Owner

RSATom commented Aug 24, 2016

Yes, it's the reason. But the problem is libvlc don't notify about change of most of this values, so I can't notify WebChannel about changes. It require some workaround.

@Ivshti
Copy link
Author

Ivshti commented Aug 24, 2016

Can't you somehow trigger a signal to change the entire .input, .video, .audio values once an input is opened/loaded?

@RSATom
Copy link
Owner

RSATom commented Aug 24, 2016

Yes, it's one of possible solutions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants