Example #1
0
static void test_media_youtube()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;
  gint i;

  for (i=0; URLs[i] != NULL; ++i)
    {
      memset(&e, 0, sizeof(e));
      memset(&o, 0, sizeof(o));

      e.title = TITLEs[i];
      e.id = IDs[i];

#ifdef _1 /* SKIP: Available to some of the streams only */
      o.s_len_gt0.stream.video.encoding = TRUE;
      o.s_len_gt0.stream.audio.encoding = TRUE;
#endif
      o.s_len_gt0.stream.container = TRUE;

      o.gt0.stream.video.height = TRUE;
      o.gt0.stream.video.width = TRUE;
      o.gt0.duration_ms = TRUE;

      if (strstr(URLs[i], "#t=") != NULL)
        o.gt0.start_time_ms = TRUE;

      qm_test(__func__, URLs[i], &e, &o);
    }
}
Example #2
0
static void test_media_audioboo()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;
  gint i;

  for (i=0; URLs[i] != NULL; ++i)
    {
      memset(&e, 0, sizeof(e));
      memset(&o, 0, sizeof(o));

      e.title = TITLEs[i];
      e.id = IDs[i];

      qm_test(__func__, URLs[i], &e, &o);
    }
}
Example #3
0
static void test_media_vimeo()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;

  memset(&e, 0, sizeof(e));
  memset(&o, 0, sizeof(o));

  e.title = TITLE;
  e.id = ID;

  o.s_len_gt0.stream.container = TRUE;
  o.gt0.stream.video.height = TRUE;
  o.gt0.stream.video.width = TRUE;
  o.gt0.duration_ms = TRUE;

  qm_test(__func__, URL, &e, &o);
}
Example #4
0
static void test_media_clipfish()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;
  gint i;

  for (i=0; URLs[i] != NULL; ++i)
    {
      memset(&e, 0, sizeof(e));
      memset(&o, 0, sizeof(o));

      e.title = TITLEs[i];
      e.id = IDs[i];

      o.gt0.duration_ms = TRUE;

      qm_test(__func__, URLs[i], &e, &o);
    }
}
Example #5
0
static void test_media_cbsnews()
{
    struct qm_test_exact_s e;
    struct qm_test_opts_s o;
    gint i;

    for (i=0; URLs[i] != NULL; ++i)
    {
        memset(&e, 0, sizeof(e));
        memset(&o, 0, sizeof(o));

        e.title = TITLEs[i];
        e.id = IDs[i];

        o.gt0.stream.video.bitrate_kbit_s = TRUE;
        o.s_len_gt0.stream.container = TRUE;

        qm_test(__func__, URLs[i], &e, &o);
    }
}
Example #6
0
static void test_media_tvlux()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;
  gint i;

  for (i=0; URLs[i] != NULL; ++i)
    {
      memset(&e, 0, sizeof(e));
      memset(&o, 0, sizeof(o));

      e.title = TITLEs[i];
      e.id = IDs[i];

      o.gt0.stream.video.height = TRUE;
      o.gt0.stream.video.width = TRUE;

      qm_test(__func__, URLs[i], &e, &o);
    }
}
static void test_media_sevenload()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;
  gint i;

  for (i=0; URLs[i] != NULL; ++i)
    {
      memset(&e, 0, sizeof(e));
      memset(&o, 0, sizeof(o));

      e.title = TITLEs[i];
      e.id = IDs[i];

      o.s_len_gt0.stream.video.encoding = TRUE;
      o.s_len_gt0.stream.audio.encoding = TRUE;
      o.s_len_gt0.stream.container = TRUE;

      qm_test(__func__, URLs[i], &e, &o);
    }
}
Example #8
0
static void test_media_vimeo()
{
  struct qm_test_exact_s e;
  struct qm_test_opts_s o;

  memset(&e, 0, sizeof(e));
  memset(&o, 0, sizeof(o));

  e.title = TITLE;
  e.id = ID;

  /* String values. */

  o.s_len_gt0.stream.video.encoding = TRUE;

  /* Numerical values. */

  o.gt0.duration_ms = TRUE;

  qm_test(__func__, URL, &e, &o);
}