i see that you have embed code for people to use in other sites. the player is ok, i guess, but not as nice as the osm player. is there any way to embed the osm player in other sites?

i'm going to look at a module that claims one can embed any drupal content in other sites, but i figure a solution provided by this module itself would be better for just doing videos.

Comments

travist’s picture

So, what module is it that allows you to embed any drupal content on another site? I would love to dig in their code and implement the same in the mediafront module.

rconstantine’s picture

i'm just now downloading it, so I'm not sure it will work, but it is here: http://drupal.org/project/embed_widgets

rconstantine’s picture

i've been playing with the 2.x dev version of that module and it's promising. i think i'll have to look at the code to really understand what is going on. i'm hoping i can use a tpl file that loads just when it is embedded that restricts the node contents to just the osm player. it doesn't seem to care about permissions. it is showing everything on the page and i have yet to give the anonymous user rights to do anything other than "access content". cck permissions are turned on, so supposedly, without view perms, anonymous users shouldn't be seeing anything.

rconstantine’s picture

now i just finished playing with the 1.x dev version.

i'm not sure which i like better. they are drastically different.

in 2.x, you enable the KINDS of content you want to be embeddable and you simply lookup the embed code on the edit tab (for nodes) or click a link for other kinds.

in 1.x, you can style the embedded content, but you have to do so one at a time with specific content. so you'd have to do one for each video by hand. kind of a pain.

both show all data despite my not having given anonymous users perms to see those fields. but the vids do play using the osm player in both 1.x and 2.x!!!

travist’s picture

Ryan,

Thanks for your help. I really do appreciate it. I just looked at your track record in your profile, and it definitely seems you know your stuff man. I gave you CVS access to this project so if you come across a solution, I would love for you to contribute it!

Thanks again,

Travis.

rconstantine’s picture

Thanks for the kudos. I'm afraid due to work, I have had to neglect most of my contributed modules which were developed while at a different company. I do use Drupal at the new job, but it's almost all internal stuff unfortunately and although I have time to contribute to existing projects, I can't afford the time to create anything from scratch or maintain my old stuff. :( But the contribution I'm annoyed wasn't absorbed is the one I made to CCK. I created a large patch which allowed for nested fieldgroups. This let me have fieldgroups inside of fieldgroup tabs (another module), as well as multigroups inside of those same tabs. It also had the side effect of exposing a couple of new hooks for other modules to use to manipulate the field structure of the node. Perhaps I'll try again once D7 is out if that feature isn't included. I also freelance on the side, usually for other developers.

Anyway, I'm creating an internal media server and after looking over the current options, I'll be using your module for sure. So I'll be happy to help where I can.

As for embedding, I think I'll try and make the 2.x version of the above-mentioned module work. The fact that you can set the KINDS of things you want to have embedded, rather than individually creating each item, is huge. I just have to figure out the permissions issue as well as some formatting stuff.

rconstantine’s picture

the embedding works great using the module i mentioned. one just needs to adjust some css. i will post more details of what i did once i'm done dialing things in.

travist’s picture

Status: Active » Postponed

Postponed until after the 1.0 release.

rconstantine’s picture

StatusFileSize
new18.22 KB
new83.85 KB
new32.28 KB
new34.79 KB
new64.58 KB

As an fyi, this is what i did. Hopefully the screenshots make sense.

In images 1-3, you see the standard embed widget settings. I believe I'm using version 2 which lets you make settings by content type, rather than per node.

Image 4 is a special block i built to aid my video uploaders/embedders in overriding the embed settings as seen in image 5. This is to accommodate both the size of the player I'm using as well as a little border around the edge of like 5 pixels. Note that the default size takes into account the widest dimension and the tallest. In my case those are not found in the same content type. I have a short, wide 16:9 size and a narrower, taller 4:3 size.

Because I use embedding - in this case into both SharePoint and other Drupal sites - viewers are anonymous. They don't know about the video server as the presentation is seamless. So all metadata fields that I have on the video nodes are hidden to them and the embed iFrame fits just the video player. You could alternatively grant view permission to any other fields you include on your video nodes and then grant anonymous users view permission for those fields and adjust the dimensions of the embed accordingly.

travist’s picture

Wow! Thanks Ryan. This will be a huge benefit to the community. I might add a check to see if this module is installed, and then change the "Embed" code so that you can embed the whole player. That would be huge.

Thank you so much for your efforts.

greygoo’s picture

Sounds very promising!

darol100’s picture

Issue summary: View changes
Status: Postponed » Closed (fixed)