diff options
author | Heshan <heshan@heidisoft.com> | 2011-04-06 21:47:46 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-04-06 21:47:46 +0530 |
commit | 0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a (patch) | |
tree | d07484b2f7e7de07fe2fec0a27198a6857bc629f /includes/video_helper.inc | |
parent | 33aed9a2bc33078ffd2ba46d2e77ac78de187512 (diff) | |
download | video-0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a.tar.gz video-0ce24fea04b8b571ef887d184a7f8cdeca2d4c4a.tar.bz2 |
#1092668 by anglo VideoJS player
Diffstat (limited to 'includes/video_helper.inc')
-rw-r--r-- | includes/video_helper.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/video_helper.inc b/includes/video_helper.inc index dfbb29f..41a8293 100644 --- a/includes/video_helper.inc +++ b/includes/video_helper.inc @@ -40,6 +40,7 @@ class video_helper { $video->files->{$extension}->filename = pathinfo($variables['item']['filename'], PATHINFO_FILENAME) . '.' . $extension; $video->files->{$extension}->filepath = $variables['item']['uri']; $video->files->{$extension}->url = file_create_url($variables['item']['uri']); + $video->files->{$extension}->uri = $variables['item']['uri']; $video->files->{$extension}->extension = $extension; // set the player to play $video->player = $extension; @@ -97,6 +98,10 @@ class video_helper { } $thumbnail->url = file_create_url($thumbnail->filepath); + // uri + $thumbnail->uri = $thumbnail->filepath; + //mime + $thumbnail->filemime = file_get_mimetype($thumbnail->filepath); //swftools appends sites/default/files to the front of our path... //@todo Is this a setting? Need to figure this out. |