Hello,
I am having trouble making the player work for Drupal7.7. The player keep looping and no image is shown and no video is loading, but I can see the title of the different videos. I read the documentation about how to set it up, I might be missing some crucial part but am not sure.

Checking the view theming information shows this error "mediafront-player-view.tpl.php (File not found, in folder sites/all/modules/mediafront/views/)", Where can I get this file? I don't know if this is the reason the videos not showing or it is something else.

- I have the view format to "media player" with a preset selected. Filters content:published and content type: video

- I have a content type video with a video upload field for uploading the video

I also did try the other alternative which is adding a cck media player instead of the view but the result is the same. The videos I am using are flv files converted using ffmpeg transcoder. The video upload and convert fine with thumbnail, I can play it using flowplayer.

Thanks a lot for helping

Comments

voyelle’s picture

Sorry I only meant to post it once, didn't want to duplicate. But I cannot delete it

travist’s picture

Status: Active » Postponed (maintainer needs more info)

What version of Views and Drupal 7 are you using? This seems that views is looking for a template file that does not exist. Not convinced this is a MediaFront issue.

voyelle’s picture

Thank you Travis for your help, I am using
- Drupal 7.7
- Views 7.x-3.0-rc1
- MediaFront 7.x-1.2
- Video 7.x-1.0-alpha2
- Media 7.x-1.0-beta5

dezb’s picture

StatusFileSize
new39.9 KB

Attached is a screen shot of the message received in Views setup page (under Advanced>Other>Theme:Information) that I've also experienced. This may also be related to a bug report I registered on August 9th 2011 at http://drupal.org/node/1241952.

I am using;
- Drupal 7.7
- Views 7.x-3.0-rc1
- MediaFront 7.x-1.2

Hope this is of some assistance.

voyelle’s picture

Thanks #dezb, I was using UrbanSolice theme, I change it to Bartik-7.7, it's still the same problem. The player keep looping and no image or video is shown. The timing on the video always shows 00:00, but if I use a different player (flowplayer or mediaelement video), the video play just fine.

voyelle’s picture

StatusFileSize
new12.53 KB

Attach is the printscreen of the view page.

travist’s picture

voyelle,

Is your site live to where I can take a look? I might be able to figure out what is going on by just glancing at page.

Thanks,

Travis.

artatum’s picture

From your screen, I would say there is no video asset in your query.
If you use Media, then in your video content type change your ' video upload' field for :
video_media_asset field_video_media_asset Multimedia asset Media file selector
It is really better to use, and it works in Views.

voyelle’s picture

Thanks Travis,
Here is the link to the view page http://www.cnnafrique.com/videos
Here are the links to the individual videos page with flowplayer
- http://www.cnnafrique.com/videos/test
- http://www.cnnafrique.com/videos/one_day
- http://www.cnnafrique.com/videos/pirates_caribes

artatum’s picture

Hi
Well, my name is not Travist...

Anyway I assume your purpose would be better accomplished by adding
body{
background-attachment:fixed;
}
in your css...
But I may be wrong...

voyelle’s picture

Sorry Artatum, Thanks I changed the background-attachement as suggested. Unfortunately it didn't change the player from looping. I have the impression that the player is looking somewhere else for the video file.

voyelle’s picture

I checked the source code on mediafront to compare with mine to see if I can figure something out.
Mine doesn't have a img or video tags only empty div

<div style="overflow: hidden;" id="mediafront_player_mediapreview"></div>
        <div id="mediafront_player_mediadisplay"></div>

while on mediafront:

<div style="overflow: hidden;" id="mediafront_front_mediapreview"><img style="display: block; margin-left: 0pt; margin-top: 54px; width: 450px; height: 248px;" src="http://www.mediafront.org/sites/default/files/imagecache/preview/big_buck_bunny.png"></div>
        <div id="mediafront_front_mediadisplay"><video preload="none" autoplay="autoplay" tabindex="0" style="position: absolute; width: 450px; height: 356px;" id="mediafront_front_video" poster="http://www.mediafront.org/sites/default/files/imagecache/preview/big_buck_bunny.png" src="http://www.mediafront.org/sites/default/files/video/big_buck_bunny.ogg">media.</video></div>

This look like the playlist is not being generated properly in my case. Anyone know how the module is generating playlist from the view result ?

Thanks

voyelle’s picture

I figured that the view is not generating the playlist correctly in my case.

When I modify the playlist.xml under sites/all/modules/mediafront/players/osmplayer/player/playlist.xml to put manually my videos and specify this playlist on the preset settings, I can call the player with this preset on a page that will work. The only thing this is not optimal because it's done manually and in case I update the mediafront module I might have to start over again. So anyone who has been able to make it work for Drupal 7.7 please let me know.

Thanks

artatum’s picture

Did you try #8 suggestion?

voyelle’s picture

Yes I did

voyelle’s picture

I had the locale and translation modules enabled. That was causing the problem I guess, because when the player was looking for the file to load, he was looking into a path with 'und' in it. Which is for 'language none' and my videos all had language set. I change it to 'language neutral' now the videos show up fine.

I noticed a couple of javascripts problems:
- If 'aggregate javascript' is selected under performance: the videos will not show or play for any users role other than the administrator. the log will show "file_get_contents(1)" error.

- Google chrome developer tools report this error: medifront.js line 31: Uncaught TypeError: Object #<object> has no method 'onLoaded'

- When using the media player block generated by the module with a preset with shockplayer template : the player, the previous and next arrows work fine, but when you select the video from the view, he just load a random video not the one you clicked on.

Thanks everyone for helping, I will post back if I find out about theses. Very cool module

enjoylife’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)