I named my added field when I created my cdn2 video content type "cdn2_video" instead of just "video" so I got this error
when displaying my video:

"Invalid argument supplied for foreach() in
.../cdn2/players/cdn2_flowplayer/cdn2_flowplayer.module on line 48."

The code:
$assets = $node->field_video[0][assets];
foreach($assets as $new_asset) {

I put in a change for my code to read:
$assets = $node->field_cdn2_bvideo[0][assets];

this fixes the problem and now I can see my assets. A fix is needed that will get the field name the user created instead of
expecting they will name it merely "video"

Comments

marita93’s picture

I fat fingered my fix:
change :
$assets = $node->field_cdn2_bvideo[0][assets];

to :
$assets = $node->field_cdn2_video[0][assets];

IncrediblyKenzi’s picture

Version: 6.x-1.8 » 6.x-1.9
Assigned: Unassigned » IncrediblyKenzi
Status: Active » Fixed

And here I was sitting on a fix to this for about a day.. Take a look at version 6.x-1.9 once it's built. This should resolve your issue.

Status: Fixed » Closed (fixed)

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