2022-01-19 16:27:11 +01:00
|
|
|
#include "modules/config.h"
|
2022-01-11 22:39:15 +01:00
|
|
|
#include "modules/exceptions.h"
|
2022-01-21 17:49:43 +01:00
|
|
|
#include "modules/streamer.h"
|
2022-01-11 20:35:59 +01:00
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <yaml-cpp/yaml.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
2022-01-21 17:49:43 +01:00
|
|
|
IceGStreamer::Config::_config config;
|
2022-01-11 20:35:59 +01:00
|
|
|
try {
|
2022-01-21 17:49:43 +01:00
|
|
|
config = IceGStreamer::Config::load(argc, argv);
|
2022-01-22 19:21:12 +01:00
|
|
|
IceGStreamer::Streamer::start(argc, argv, config);
|
2022-01-18 18:57:43 +01:00
|
|
|
} catch (IceGStreamer::Exceptions::PlayerExceptionBase &e) {
|
2022-01-11 20:35:59 +01:00
|
|
|
std::cerr << "Exception: " << e.what() << std::endl;
|
|
|
|
return 1;
|
|
|
|
} catch (YAML::Exception &e) {
|
|
|
|
std::cerr << e.what() << std::endl;
|
|
|
|
return 1;
|
|
|
|
}
|
2022-01-22 19:21:12 +01:00
|
|
|
// for (int x = 0; x< 1000000000; x++)
|
|
|
|
// IceGStreamer::Streamer::start(argc, argv, config);
|
2022-01-11 20:35:59 +01:00
|
|
|
return 0;
|
|
|
|
}
|