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:
I’m hoping for some iPhone support too 😉
/**
* Get the type of device who made the request
* @return int (a value of DEVICE_XXX const)
*/
public function getDeviceType() {
if ( $this->isWiimc() )
return self::DEVICE_WIIMC;
elseif ( $this->isAndroid() )
return self::DEVICE_ANDROID;
// TODO
/* // not ready for this yet
elseif ( $this->isIPhone())
return self::DEVICE_IPHONE;
elseif ( $this->isIPad())
return self::DEVICE_IPHONE;
*/
else
return self::DEVICE_PC;
}
iPhone/iPad support is planned. I don’t know when (and how), but i will add it. The problem is that i haven’t an iphone, so the support will be a lottery 😛
@SilentException wrote:
Yeah but you should know (when browsing the configuration) what mode is to be used. For example, if I’m browsing from my phones I would like to be certain that right mode is to be used. Later on, perhaps you could choose the mode based on your user agent (which would be saved to database).
The automatic selection procedure is simple. I do an example:
Use case: a known devices (android for example) try to spawn vlc
All outputs available:
- Generic 1 – Priority 0
- Generic 2 – Priority 100
- Android 1 – Priority 50
- Android 2 – Priority 100
- Wiimc 1 – Priority 100
Vlcshares filters outputs for the devices and sorts the list: first outputs that match device and then generic. So the list will be:
- Android 2 – Priority 100
- Android 1 – Priority 50
- Generic 2 – Priority 100
- Generic 1 – Priority 0
The automatic selection always select the first output mode in the sorted list
In the outputs managment interface, outputs mode are sorted by priority. So the automatically selected mode will be the first in the device group.
If you want to change this behaviour, in the mode selection page you can switch from auto to manual selection
Unfortunatly i can’t store devices’s preferences in the db because i haven’t a way to identify the device. I’ve planned a plugin for authentication/acl, but it will not be ready before 0.5.2/3
