Could you please provide documentation and syntax/examples for these?

Overriding default width, height and autoplay setting in the filtered code.
Show random video from comma sepparated list of urls
Aligning the embedded video left or right.
Extensions may use additional attributes, e.g. the YouTube extension has a playlist attribute to load a random video from a playlist.

Comments

fokkezb’s picture

Status: Active » Closed (fixed)

Documentation about writing a codec is on:
http://drupal.org/project/video_filter

Documentation on usage is in the filter help once you've installed the module.

The playlist method is not yet supported.

alaneKilauea’s picture

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

I have been all over the administer section looking for the documentation but I can't find it, please where in the admin can I find the documentation on usage?

Administer > Site Configuration > Input Formats
I was able to add an input format for video and to extend the Full HTML format to use the video filter but I can't find any trace of the documentation mentioned that will show me how to override the height/width or how to format the comma separated list of urls when I call video into a page.

Thank you!

treehacker’s picture

I just looked at the modul file itself and found the syntax for resizing and so on.
Here it is:

Note: Since the x.2 version, the full video path needs to be given.

Examples:

  • Single video:
    [video:http://www.youtube.com/watch?v=uN1qUeId]
  • Random video out of multiple:
    [video:http://www.youtube.com/watch?v=uN1qUeId1,http://www.youtube.com/watch?v=uN1qUeId2]
  • Override default autoplay setting: [video:http://www.youtube.com/watch?v=uN1qUeId autoplay:1]
  • Override default width and height:
    [video:http://www.youtube.com/watch?v=uN1qUeId width:X height:Y]
  • Align the video:
    [video:http://www.youtube.com/watch?v=uN1qUeId align:right]
randomuser’s picture

thanks for that treehacker.

I want to have a CCK field where the user inputs the URL to the video so will I have to edit the theme so that [video:<?php print $node->field_urlofyoutubevideo[0]['value']; ?>] so that it comes out as [video:http://youtube.com/whatever]?

I just want to have a simple submit page with a title field and a field for the URL.

P.S It seems to work for the embed code but the URL would make it easier and is exactly what im looking for.

harouni’s picture

Thanks, I was looking for exactly that :)

treehacker’s picture

@Randomuser,

the syntax of the url described is correct... but the Video module is a FILTER. That means, that when you write [video:url] on a page an then save it, the modul will convert it to an embed tag.
I suppose you will format your output using views, so there just build your own embed tag with the url of the CKK field.
I'm not very into it.. but maybe you can use also a function from the video filter modul to convert automaticaly the url into an embed tag.

blackdog’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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

nick johnson’s picture

Category: support » feature

Omit related videos:
[video:http://www.youtube.com/watch?v=uN1qUeId related:0]

Can this list be added to the README?

Thanks for this module, your work is very much appreciated.

blackdog’s picture

@nick johnson - please don't use existing issues for new requests. Open a new issue instead.