Re: Re: How to Start/Stop VLC stream of your HD files through Wi
Home › Forums › Third Party Enhancements › VLC Shares › Watch Megavideo,HD,Youtube w/ CC through WiiMC (VLCShares) › Re: Re: How to Start/Stop VLC stream of your HD files through Wi
@SilentException wrote:
Hey ximark!
I have been playing with vlc-shares and vlc12 plugin some more. Some things i’d like to notice:
1. For the vlc12 plugin to work correctly I had to add the following function to Vlc.php:
public function getArg($placeholder) {
return $this->_registredArgs[$placeholder];
}
Ops… in current development version this function already exists. I forgot to backport it 0.4.1. Ahahaha
@SilentException wrote:
2. In Vlc12.php (plugin) I had to trim the source variable of double quotes for the realpath() function to work correctly and also readd double quotes for registerArg():
if ( X_Env::isWindows() && substr($source,0,7) != 'http://' ) {
$source = realpath(trim($source, '"'));
$vlc->registerArg('source', '"$source"');
}
This solution is perfect. Unfortunatly i can’t try vlc-shares in windows environment at this time, so my changes are just theory. In linux env, none of this is needed.
Just a note: you should use ” to delimit the string. If you use ‘, $source will not be substitute with variable content.
$vlc->registerArg('source', ""$source"");
@SilentException wrote:
After that, I got my first stream to work! 🙂 Then I pressed “home” on wiimote, got back to wiiMC and got vlc-shares stream controls. I pressed Stop returned back to video, it played the buffered data (few seconds) then it blocked completely. What is the proper way of stopping the stream?
Pressing stop button is the proper way. Doing this you kill vlc process on the remote pc. Vlc-shares can control vlc on the remote pc, but it has no control on wiimc. There is no way to force wiimc to flush the buffered data. The same thing happen if you use forward/back button. Vlc shifts in time, but wiimc continue playing old buffered datas until they end. After that, you see the video from the new position. Maybe reducing the buffered datas in wiimc options, you will do transition from older to newer datas more fast.
