return NOERROR;
};
-
+
STDMETHODIMP VLCControl::put_Visible(VARIANT_BOOL isVisible)
{
_p_instance->setVisible(isVisible != VARIANT_FALSE);
}
return result;
};
-
+
STDMETHODIMP VLCControl::pause(void)
{
int i_vlc;
}
return result;
};
-
+
STDMETHODIMP VLCControl::stop(void)
{
int i_vlc;
}
return result;
};
-
+
STDMETHODIMP VLCControl::get_Playing(VARIANT_BOOL *isPlaying)
{
if( NULL == isPlaying )
*isPlaying = VARIANT_FALSE;
return result;
};
-
+
STDMETHODIMP VLCControl::get_Position(float *position)
{
if( NULL == position )
*position = 0.0f;
return result;
};
-
+
STDMETHODIMP VLCControl::put_Position(float position)
{
HRESULT result = E_UNEXPECTED;
}
return result;
};
-
+
STDMETHODIMP VLCControl::get_Time(int *seconds)
{
if( NULL == seconds )
return result;
};
-
+
STDMETHODIMP VLCControl::put_Time(int seconds)
{
_p_instance->setTime(seconds);
return NOERROR;
};
-
+
STDMETHODIMP VLCControl::shuttle(int seconds)
{
HRESULT result = E_UNEXPECTED;
}
return result;
};
-
+
STDMETHODIMP VLCControl::fullscreen(void)
{
HRESULT result = E_UNEXPECTED;
}
return result;
};
-
+
STDMETHODIMP VLCControl::get_Length(int *seconds)
{
if( NULL == seconds )
*seconds = 0;
return result;
};
-
+
STDMETHODIMP VLCControl::playFaster(void)
{
HRESULT result = E_UNEXPECTED;
}
return result;
};
-
+
STDMETHODIMP VLCControl::playSlower(void)
{
HRESULT result = E_UNEXPECTED;
}
return result;
};
-
+
STDMETHODIMP VLCControl::get_Volume(int *volume)
{
if( NULL == volume )
*volume = _p_instance->getVolume();
return NOERROR;
};
-
+
STDMETHODIMP VLCControl::put_Volume(int volume)
{
_p_instance->setVolume(volume);
return NOERROR;
};
-
+
STDMETHODIMP VLCControl::toggleMute(void)
{
int i_vlc;
int i_type;
vlc_value_t val;
-
+
if( VLC_SUCCESS == VLC_VariableType(i_vlc, psz_varname, &i_type) )
{
VARIANT arg;
}
return hr;
};
-
+
STDMETHODIMP VLCControl::get_PlaylistIndex(int *index)
{
if( NULL == index )
*index = 0;
return result;
};
-
+
STDMETHODIMP VLCControl::get_PlaylistCount(int *count)
{
int i_vlc;
*count = 0;
return result;
};
-
+
STDMETHODIMP VLCControl::playlistNext(void)
{
int i_vlc;
}
return result;
};
-
+
STDMETHODIMP VLCControl::playlistPrev(void)
{
int i_vlc;
}
return result;
};
-
+
STDMETHODIMP VLCControl::playlistClear(void)
{
int i_vlc;
}
return result;
};
-
+
STDMETHODIMP VLCControl::get_VersionInfo(BSTR *version)
{
if( NULL == version )
const char *versionStr = VLC_Version();
if( NULL != versionStr )
{
- *version = BSTRFromCStr(_p_instance->getCodePage(), versionStr);
+ *version = BSTRFromCStr(CP_UTF8, versionStr);
return NULL == *version ? E_OUTOFMEMORY : NOERROR;
}
*version = NULL;
return E_FAIL;
};
-
+
STDMETHODIMP VLCControl::get_MRL(BSTR *mrl)
{
if( NULL == mrl )
_p_instance->setAutoLoop((VARIANT_FALSE != autoloop) ? TRUE: FALSE);
return S_OK;
};
-