|
|
@ -59,8 +59,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
#ifdef Q_OS_WIN |
|
|
|
#include "ffmpeg/UBFFmpegVideoEncoder.h" |
|
|
|
#include "windowsmedia/UBWindowsMediaVideoEncoder.h" |
|
|
|
#include "ffmpeg/UBMicrophoneInput.h" |
|
|
|
#include "windowsmedia/UBWaveRecorder.h" |
|
|
|
#elif defined(Q_OS_OSX) |
|
|
|
#elif defined(Q_OS_OSX) |
|
|
|
#include "ffmpeg/UBFFmpegVideoEncoder.h" |
|
|
|
#include "ffmpeg/UBFFmpegVideoEncoder.h" |
|
|
|
#include "ffmpeg/UBMicrophoneInput.h" |
|
|
|
#include "ffmpeg/UBMicrophoneInput.h" |
|
|
@ -308,7 +308,13 @@ void UBPodcastController::start() |
|
|
|
|
|
|
|
|
|
|
|
applicationMainModeChanged(UBApplication::applicationController->displayMode()); |
|
|
|
applicationMainModeChanged(UBApplication::applicationController->displayMode()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|
|
|
|
mVideoEncoder = new UBWindowsMediaVideoEncoder(this); //deleted on stop
|
|
|
|
|
|
|
|
#elif defined(Q_OS_OSX) |
|
|
|
|
|
|
|
mVideoEncoder = new UBFFmpegVideoEncoder(this); |
|
|
|
|
|
|
|
#elif defined(Q_OS_LINUX) |
|
|
|
mVideoEncoder = new UBFFmpegVideoEncoder(this); |
|
|
|
mVideoEncoder = new UBFFmpegVideoEncoder(this); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (mVideoEncoder) |
|
|
|
if (mVideoEncoder) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -799,7 +805,13 @@ QStringList UBPodcastController::audioRecordingDevices() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QStringList devices; |
|
|
|
QStringList devices; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|
|
|
|
devices = UBWaveRecorder::waveInDevices(); |
|
|
|
|
|
|
|
#elif defined(Q_OS_OSX) |
|
|
|
devices = UBMicrophoneInput::availableDevicesNames(); |
|
|
|
devices = UBMicrophoneInput::availableDevicesNames(); |
|
|
|
|
|
|
|
#elif defined(Q_OS_LINUX) |
|
|
|
|
|
|
|
devices = UBMicrophoneInput::availableDevicesNames(); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
return devices; |
|
|
|
return devices; |
|
|
|
} |
|
|
|
} |
|
|
|