I am getting a 200 error stream not found when using the current stable 6.x version.

After a bit of digging around I have found that if you don't specify a thumbnail then when the code drops into using the flash flowplayer then it sets the first playlist parameter as '' (or blank). This causes the 200 error not found in this specific usage case.

To fix this I simply moved the $poster variable out of the hardcoded quote tags and only aded them if there was a value.
So in theme/videojs.tpl.php

Lines 27 and 36


<param name="flashvars" value="config={'playlist': [ '<?php print($poster)?>', {'url': '<?php print($flash)?>', 'autoPlay':false, 'autoBuffering':true} ]}" />

flashvars="config={'playlist': [ '<?php print($poster)?>', {'url': '<?php print($flash)?>', 'autoPlay':false, 'autoBuffering':true} ]}"

Changed to:

<param name="flashvars" value="config={'playlist': [ <?php if($poster) print("'".$poster."',"); ?> {'url': '<?php print($flash)?>', 'autoPlay':false, 'autoBuffering':true} ]}" />

flashvars="config={'playlist': [ <?php if($poster) print("'".$poster."',"); ?> {'url': '<?php print($flash)?>', 'autoPlay':false, 'autoBuffering':true} ]}"

After that slight change things seem to work fine.

Comments

AdamGerthel’s picture

I'm having the exact same problem, but your fix didn't help

T1ckL35’s picture

Have you added a second Filefield in your content-type you are using?
I think I did that at the same time and then set that in the videojs admin settings to be the poster (as it was a blank dropdown before).
I cant remember the tutorial I found for setting it up but it had that step missing.

Maybe the combination of the two fixed it?

serjas’s picture

simple fix :) just add a new field with filed name "videojs_poster" (so it ll look like "field_videojs_poster") , filed type > file, data > image

then goto /admin/settings/videojs , select field_videojs_poster as VideoJS Thumbnails .. :)

gbernier’s picture

Hey T1ckL35,

Thanks this helped a lot, had this issue as well and implemented the fix. With my instance we were allowing client to add all 4 supported video formats manually as they were not able to make use of FFMpeg or wanted to pay for Zencoder. First really good help doing it the hard way I found so thanks!

Alex72RM’s picture

Version: 6.x-1.3 » 6.x-1.6

This works fine only the VideoJS standalone version.

In cooperation with Video module, that supply auto-generated thumbnail, this solution (--> create an image field for the thumbnail) isn't usable.

marcopanichi’s picture

Issue tags: +flowplayer autoplay

on file sites/all/modules/video/video/video_formatter.inc you can replace

// kjh: use a playlist to display the thumbnail if not auto playing
if (!$video->autoplay && $video->thimbnail->url ) {

with:

// kjh: use a playlist to display the thumbnail if not auto playing
if (!$video->autoplay && $video->thimbnail->url && false ) {

in order to disable the playlist setting that crashes flowplayer. i've fixed that way

PS: you see, the block of code is running when autoplay is false

VM’s picture

Version: 6.x-1.6 » 6.x-1.x-dev

moving to dev since that's where fixes go

ZuluWarrior’s picture

Sub,

I am running Drupal 7, and under the videojs config options or the field type options there is no option to select the field to use for 'VideoJS Thumbnails'...

themaurice’s picture

Hi,
I struggle a lot of time but I found, a simple way to fix that.
I use this module because I would use HTML5 player for Iphone & Android platform :
Configuration.
Videojs
Video 6.x-4.2
Flowplayer API 6.x-1.0-beta1

Everything working well if I set up for .mp4 format on admin/settings/video/players> Extension: mp4 : default quicktime (but quicktime don't work directly with Android) or FLV Flash player. But when I set up Extension: mp4 : HTML5 player HTML5 Player for mp4 :
Video JS I get 200: not stream found...

I just comment two line on videojs.theme.inc and It's works now, Ok you don't get the thumbs on the surface of the video but I plan to use the thumbnail for gallery with view and don't use the ffmpeg, only mp4.

if (!empty($node->$poster_field)) {
      //$image = $node->{$poster_field}[0]; // take the first image from field
      //$vars['poster'] = file_create_url($image['filepath']);
    }

But you can change by you own code if you want keep the thumbnail on the vidéo.

Thanks to all community for his works !

Jorrit’s picture

Status: Active » Fixed

Fixed in 6.x-1.x, please test this in tomorrows -dev release.

Status: Fixed » Closed (fixed)

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

Yves Litandi’s picture

Great Boy,

Really thx.