Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
- created the right content type: video field as file and file-widget, display with videojs player.
- created content with 2 video files (mp4 and webm)
- the node shows the video perfect in all browsers and picks the right video with supported codec.
- now I can't get the player to show in any views setup page or block.
It seems the video.js module and library script is not loaded in my views.
Can anyone point me in the right direction on how to get video.js to show up in views?
I am pretty new to drupal and programming, but willing to learn.
Comment | File | Size | Author |
---|---|---|---|
#11 | Clipboard01.png | 84.51 KB | bart3d |
#11 | Clipboard02.png | 74.81 KB | bart3d |
Comments
Comment #1
bart3d CreditAttribution: bart3d commentedno answers... so I guess this is not possible... yet.
switching over to mediafront module, at least i got that to work in the views module.
to bad; I would have liked to use the videojs player.
Comment #2
EkomAK CreditAttribution: EkomAK commentedI have the same issue not videojs load in created views. I use the same step asbart3d
Comment #3
bart3d CreditAttribution: bart3d commentedgood to see I am not the only one.
why is this not resolved?
without views this module is useless for me.
I would guess this a major bug!
If not a bug, then I would like to see a decent description in the documentation on how to get this working.
Comment #4
ghosts CreditAttribution: ghosts commented+1
would really like to have views capability!
Comment #5
michael.k CreditAttribution: michael.k commentedA basic view should come together rather quickly if other things are working properly.
In case it helps, here's how to make a simple video gallery with Views:
1) First confirm that the video content type is set to display properly as a teaser.
- Structure >> Content types >> Video >> Manage display >> Teaser
- Video field format should show "Video thumbnail" with style set to either "medium" or "thumbnail"
2) Add new view "Test Gallery" and keep all the defaults.
- select "Continue & edit"
- you should see a page of nodes with thumbnails (if not, check #1)
3) Change the Format from "Unformatted list" to "Grid"
- set "Number of columns" to 3
- leave the other setting at its default of "Content | Teaser" (not Fields)
4) Click "Save"
5) Visit your gallery view at its default path of example.org/test-gallery
Comment #6
bart3d CreditAttribution: bart3d commentedI know how the basics of views works by now, but..
The description given in #5 works only if you have the video mod also installed, witch I don't really want because I convert my own video's.
Besides that; using views without the use of fields is kind of useless for me. I got videojs working on a node base, but that is not what I want.
I don't see any answers from the maintainers, is this still Actively maintained?
Comment #7
Jorrit CreditAttribution: Jorrit commentedI will look into this soon, thanks for your patience. I have been fixing a lot of bugs today, maybe I accidentally also fixed this one. You might want to try the 7.x-1.x-dev release of tomorrow.
Comment #8
Jorrit CreditAttribution: Jorrit commentedI have tested it myself and the AJAX Views preview loads Video.js players perfectly. Please reopen if you have a case where it doesn't work.
Comment #9
bart3d CreditAttribution: bart3d commentedThanks for looking into it Jorrit.
I tried it yesterday with the dev version of 5 feb. and it did not work. Maybe I did something wrong?
I see that there is a new dev version today, but it says "file not on server"?
Comment #10
Jorrit CreditAttribution: Jorrit commentedAre there javascript errors? Can you post a screenshot?
Comment #11
bart3d CreditAttribution: bart3d commentedNo errors when I use unformatted list as format, there is just nothing showing. There is a mp4 and a webm file is the video field.
clipboard 01 are my settings.
When I use VideoJS : HTML5 Video Player as a format I get clipboard02 as an error. Which seems to be the same bus as http://drupal.org/node/1291854
Comment #12
Jorrit CreditAttribution: Jorrit commentedThe view format is utterly broken, see #1291854: db_fetch_object in videojs_style_plugin.inc line 94.
Did you select the video formatter for the video field?
Comment #13
bart3d CreditAttribution: bart3d commentedyes I selected VideoJS : HTML5 Video Player as formatter for the video field.
Or did you mean the video formatter from the (other) video module?
I will try the latter, but as I remember from before when i tried that, all the video formats were shown (mp4 + webm). I will try it again now, see what it does now.
But from my understanding you do not really need the video module if you only want to play your own uploaded videos?
update:
confirmed that with the formatter as video (from the video module) for the file field , it shows both files (mp4 with flowplayer, webm as videojs)
+ I get this error:
"Notice: Undefined index: filemime in template_preprocess_videojs() (line 74 of D:\wamp\www\Video\sites\all\modules\videojs\includes\videojs.theme.inc)."
Video 7.x-2.4
VideoJS 7.x-1.10+12-dev
videojs 2.0.2
Comment #14
Jorrit CreditAttribution: Jorrit commentedIs it possible for you to recreate this on a Drupal 7 instance that I can get enough permissions on to access the view and reproduce the problem?
Comment #15
bart3d CreditAttribution: bart3d commentedSure, is there a way I can contact you private to give the details?
At the moment I have only a local setup, but I can create an online version to test.
btw:
Right now I have an working version with the method described in #5, using content instead of fields, then tidy stuff up with css. Works without errors (thanks for all the updates!) but it is not the preferred way to go in views I guess.
Comment #16
Jorrit CreditAttribution: Jorrit commentedUse my personal contact form: http://drupal.org/user/161217/contact
Comment #17
Jorrit CreditAttribution: Jorrit commentedI have fixed the bug in branches 7.x-1.x and 7.x-2.x.
Comment #18
bart3d CreditAttribution: bart3d commentedworks like a charm now.
great work Jorrit!
Comment #20
DanielFriis CreditAttribution: DanielFriis commentedThis bug still exists for me in 7.x-2.x. No matter what view mode I use or if I print fields or nodes I cannot view videos through views. I have tried with both 7.x-2.2 and the latest dev and it behaves exactly like in this issue's summary description.
I'm using Video 7.x-2.9 and Video.js library version 3.2.0.
Comment #21
DanielFriis CreditAttribution: DanielFriis commentedForgot to reopen ticket.
Comment #22
Jorrit CreditAttribution: Jorrit commentedCan I see this online somewhere?
Comment #23
Jorrit CreditAttribution: Jorrit commentedClosed because of lack of response. Perhaps try the newest version: 3.0-alpha1 with Video.js 4.