Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
AdamGerthel CreditAttribution: AdamGerthel commentedI'm having the exact same problem, but your fix didn't help
Comment #2
T1ckL35 CreditAttribution: T1ckL35 commentedHave 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?
Comment #3
serjas CreditAttribution: serjas commentedsimple 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 .. :)
Comment #4
gbernier CreditAttribution: gbernier commentedHey 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!
Comment #5
Alex72RM CreditAttribution: Alex72RM commentedThis 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.
Comment #6
marcopanichi CreditAttribution: marcopanichi commentedon file sites/all/modules/video/video/video_formatter.inc you can replace
with:
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
Comment #7
VM CreditAttribution: VM commentedmoving to dev since that's where fixes go
Comment #8
ZuluWarrior CreditAttribution: ZuluWarrior commentedSub,
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'...
Comment #9
themaurice CreditAttribution: themaurice commentedHi,
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.
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 !
Comment #10
Jorrit CreditAttribution: Jorrit commentedFixed in 6.x-1.x, please test this in tomorrows -dev release.
Comment #12
Yves Litandi CreditAttribution: Yves Litandi commentedGreat Boy,
Really thx.