RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

the player audio channel always is 0(stereo) when player loaded and can't be change to Left or Right. #17

Closed kingctan closed 10 years ago

kingctan commented 10 years ago

the player audio channel always is 0(stereo) when player loaded and can't be change to Left or Right util the video played for a while. I want to change the channel from the beginning when playing.

//////////////added: the situation: I play video in C++, and then send a signal to notify QML to change the audio channel and the volume, I found it not work when setting channel and volume in QML. for example: in C++:

player.play(mrl);
emit playnextinfo("L",100);

in QML:

onPlaynextinfo:{
if(stereomode=="L"){
player.audio.channel = VlcAudio.Left;
player.volume = volume;
}

QML received the signal but it not work to set the player.

/////added end.

RSATom commented 10 years ago

you could try attach to some event

.mediaPlayerPlaying

for example, and do the same there

kingctan commented 10 years ago

I tried, attach the mediaPlayerPlaying event and send playnextinfo. it's the same as before. channel and volume can't be change in QML.

then I change volume and channel in the event slot function,it also can't. why?

Thanks.

RSATom commented 10 years ago

then you could try to do it in on first (or second/third ) fire of .mediaPlayerPositionChanged