Question: I need to play videos on my drupal 6 site that would run well on IOS device (HTML5?).
Is such solution available?

My site currently serving flv files using jwplayer 6.x-1.1.

Answer: 
If you are looking for a ready to use function, take a look at [comment\_render()](http://api.drupal.org/api/drupal/modules--comment--comment.module/function/comment_render/6).

Example use (say the node you want comments for has nid = 5):

```
<?php
  $node = node_load(5);
 print comment_render($node);
?>

```

Or else you can manually query the database (comments table) to get all comments that have a matching nid.

```
<?php
  $nid = 5;
  db_query('SELECT * FROM {comments} WHERE nid = %d', $nid);
?>

```
If you like to load the complete comment objects you can use this:

```
$result = db_select('comment')
  ->fields('comment', array('cid'))
  ->condition('nid', $node->nid, '=')
  ->execute();

$cids = $result->fetchCol();
$comments=comment_load_multiple($cids);

foreach($comments as $comment) {
  //do some stuff with the comment
  print $comment->comment_body ["und"][0] ["value"];
}

```