var APP_CONFIG = {
  ADV_LIST_URL:  '/smart_tv/noni/app/smart_api/adv.js',
  ADV_BASE_URL: '/smart_tv/noni/app/smart_api/',

  SCALING_TO_HEIGHT: 980,

  IPTV_CHANNELS_URL: '/smart_tv/noni/app/smart_api/channels.js',
  IPTV_ICONS_URL: '/smart_tv/noni/app/smart_api/icons/',
  IPTV_CHANNELS_UPDATES_INFO_URL: '/smart_tv/noni/app/smart_api/index.php?info',
  IPTV_SCREENSHOT_PATH: '/smart_tv/noni/app/smart_api/screenshots/results/',
  IPTV_HIDE_INTERFACE_TIMER_MS: 5000,
  IPTV_TOKEN: 'hAgBBwOCqyrSwdcfCREm',

  VLIB_BUFFERING_TIMEOUT_ERROR_MS: 30000,

  RUNTEXT_URL: '/smart_tv/noni/app/smart_api/runtext.js',
  RUNTEXT_ENABLED: true,
  RUNTEXT_SPEED_MS: 15000,

  ALLNET_SUBNET_CUSTOMERS_ONLY: false,

  VIDEO_API_URL: 'http://rudny-online.kz/smart_tv/noni/app/smart_api/api_video.php',
  VIDEO_PREPARE_ATTEMPTS_BEFORE_ERROR_COUNT: 3,
  VIDEO_PREPARE_TIMEOUT_ERROR_MS: 30000,
  VIDEO_DISPLAY_RECT_WIDTH: 1920,
  VIDEO_DISPLAY_RECT_HEIGHT: 1080,
  VIDEO_PLAYER_REWIND_PERCENT: 3,
  VIDEO_PLAYER_AOUTHIDE_MS: 5000,
  VIDEO_SUPPORTED_FORMATS: ['HD', 'DVD', 'TV', 'FULLHD', 'HLS'],
  VIDEO_PREPARE_MEDIA_ASYNC: true,

  VIDEO_BUFFER_CLEAR_AFTER_RESTORE_PLAY_FOR_IPTV: true,
  VIDEO_BUFFER_CLEAR_ONCE_PER_MINUTES: 15,
  VIDEO_BEFFER_CONFIG_ENABLED: true,
  VIDEO_BUFFER_FOR_PLAY_SIZE_IN_SECOND: 5,
  VIDEO_BUFFER_FOR_RESUME_SIZE_IN_SECOND: 10,
  VIDEO_BUFFER_TIMEOUT_IN_SECOND: 10,

  CONNECTION_PING_URL: 'http://connectivitycheck.gstatic.com/generate_204',
  CONNECTION_PING_BROWSER_URL: 'https://api.flickr.com/services/rest/',
  CONNECTION_PING_INTERVAL_MS: 10000,
  CONNECTION_PING_TIMEOUT_MS: 2000,
  CONNECTION_ERROR_CHECK_INTERVAL_MS: 2000,
  CONNECTION_ERROR_WHEN_DISCONNECT_COUNT: 5,

  CONNECTION_LOCAL_ENABLED: false,
  CONNECTION_LOCAL_PING_URL: 'http://172.16.0.100',
  CONNECTION_LOCAL_PING_INTERVAL_MS: 5 * 60 * 1000,

  SERVERS: [
    { name: 'asia', url: 'http://rudny-online.kz' },
    { name: 'eu', url: 'http://rudny-online.kz', default: true },
    { name: 'usa', url: 'http://rudny-online.kz' }
  ],

  SEARCH_DESCRIPTION_MAX_LENGTH: 600,

  LOG_BUFFERING_ONCE_PER_PERCENT: 30
};
