I am using FlashVideo to create my video nodes, and I am trying to use the Dash media flash player (with a views playlist) to view my flv videos.

But, I can't get the Dash media player (with a views playlist) to play any of the videos. The views playlist loads fine in the player, but none of the videos will play.

If I go to the actual video node, the video plays fine in the Dash media player.

I have followed the Dash Player in Drupal CMS: Step-By-Step Tutorial, and created my 'videos' view correctly. And the flv files were uploaded correctly (I don't need any conversion since they are in flv format already) into the correct directory.

Is there something I missed?

Comments

travist’s picture

This is strange. What is your URL and I will take a look myself?

Thanks,

Travis.

apersaud’s picture

It's on my localhost. The dash media player is being embedded using:

   $params['width'] = 640;
   $params['height'] = 480;
   $params['playlist'] = 'videos';
   print dashplayer_get_player($params);

Have I created my 'videos' view correctly? See the view export of 'videos' below:

$view = new view;
$view->name = 'videos';
$view->description = 'A playlist of videos';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'title' => array(
'id' => 'title',
'table' => 'node',
'field' => 'title',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'sifkvideo' => 'sifkvideo',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));

travist’s picture

Status: Active » Postponed (maintainer needs more info)

What do you get when you run the dashplayer.getView API in the Services section using videos as the view_name?

apersaud’s picture

Here's what I get:

Result

Array
(
    [nodes] => Array
        (
            [0] => stdClass Object
                (
                    [nid] => 15
                    [type] => sifkvideo
                    [language] => 
                    [uid] => 1
                    [status] => 1
                    [created] => 1225126502
                    [changed] => 1225129016
                    [comment] => 0
                    [promote] => 1
                    [moderate] => 0
                    [sticky] => 0
                    [tnid] => 0
                    [translate] => 0
                    [vid] => 15
                    [revision_uid] => 1
                    [title] => Happy Video
                    [body] => <p>This is the happy video.</p>

                    [teaser] => This is the happy video.
                    [log] => 
                    [revision_timestamp] => 1225129016
                    [format] => 1
                    [name] => admin
                    [picture] => 
                    [data] => a:1:{s:13:"form_build_id";s:37:"form-343cfa0ed17d4b390c325675bcb3fe56";}
                    [path] => happyvideo
                    [play_counter] => 20
                    [taxonomy] => Array
                        (
                        )

                    [files] => Array
                        (
                            [27] => stdClass Object
                                (
                                    [fid] => 27
                                    [uid] => 1
                                    [filename] => happyvideo.flv
                                    [filepath] => files/happyvideo.flv
                                    [filemime] => application/octet-stream
                                    [filesize] => 88722
                                    [status] => 1
                                    [timestamp] => 1225126476
                                    [nid] => 15
                                    [vid] => 15
                                    [description] => happyvideo.flv
                                    [list] => 1
                                    [weight] => 0
                                )

                            [28] => stdClass Object
                                (
                                    [fid] => 28
                                    [uid] => 1
                                    [filename] => happyvideo.flv
                                    [filepath] => files/flv/happyvideo.flv
                                    [filemime] => flv-application/octet-stream
                                    [filesize] => 88722
                                    [status] => 1
                                    [timestamp] => 1225136632
                                    [nid] => 15
                                    [vid] => 15
                                    [description] => happyvideo.flv
                                    [list] => 0
                                    [weight] => 0
                                )

                        )

                    [body_value] => This is the happy video.
                )

            [1] => stdClass Object
                (
                    [nid] => 14
                    [type] => sifkvideo
                    [language] => 
                    [uid] => 1
                    [status] => 1
                    [created] => 1224699179
                    [changed] => 1225128681
                    [comment] => 0
                    [promote] => 1
                    [moderate] => 0
                    [sticky] => 0
                    [tnid] => 0
                    [translate] => 0
                    [vid] => 14
                    [revision_uid] => 1
                    [title] => Sad video test
                    [body] => <p>Sad video test</p>

                    [teaser] => Sad video test

                    [log] => 
                    [revision_timestamp] => 1225128681
                    [format] => 2
                    [name] => admin
                    [picture] => 
                    [data] => a:1:{s:13:"form_build_id";s:37:"form-343cfa0ed17d4b390c325675bcb3fe56";}
                    [path] => sadvideo
                    [play_counter] => 166
                    [taxonomy] => Array
                        (
                        )

                    [files] => Array
                        (
                            [25] => stdClass Object
                                (
                                    [fid] => 25
                                    [uid] => 1
                                    [filename] => sadvideo.flv
                                    [filepath] => files/sadvideo.flv
                                    [filemime] => application/octet-stream
                                    [filesize] => 88722
                                    [status] => 1
                                    [timestamp] => 1224699149
                                    [nid] => 14
                                    [vid] => 14
                                    [description] => sadvideo.flv
                                    [list] => 0
                                    [weight] => 0
                                )

                            [26] => stdClass Object
                                (
                                    [fid] => 26
                                    [uid] => 1
                                    [filename] => sadvideo.flv
                                    [filepath] => files/flv/sadvideo.flv
                                    [filemime] => flv-application/octet-stream
                                    [filesize] => 88722
                                    [status] => 1
                                    [timestamp] => 1224699213
                                    [nid] => 14
                                    [vid] => 14
                                    [description] => sadvideo.flv
                                    [list] => 1
                                    [weight] => 0
                                )

                        )

                    [body_value] => Sad video test

                )

        )

    [total_rows] => 
)
travist’s picture

I am curious why you have two of the same file attached twice to the node, but in different locations. Did FlashVideo do this?

Not sure if the media player is getting confused or what, but that might be the first hint.

You might try deleting one of those videos from each node and see if it plays.

apersaud’s picture

Yes, FlashVideo duplicates the listed file when I save the node. If edit the node again, delete the file (e.g. with the filepath of 'files/sadvideo.flv') and save, the video still plays correctly in the video node. But, it still doesn't play in the Dash Video Player (with the playlist).

travist’s picture

Status: Postponed (maintainer needs more info) » Fixed

I think this should be fixed with the latest version of FlashVideo 6x-1-4-beta5.

Please let me know if this fixes your problem.

Thanks,

Travis.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.