Breaking Popcorn Down into Parts

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
kreynen's picture

Using the Popcorn 101 YouTube example to demonstrate how a few modules can be used together to create flexible Popcorn output from Drupal.

Comments

I committed Popcorn Loader to

kreynen's picture

I committed Popcorn Loader to my sandbox (http://drupal.org/sandbox/kreynen/1795178). This includes a module called popcorn_fave_view that returns what I'd like to see replaced with views of Cues replace, but you can see it working at http://popcorn.alittlehelphosting.com/popcorn/load/1/fake or http://popcorn.alittlehelphosting.com/popcorn/load/3/fake

Right now 1 and 3 are the entity ids of media_youtube videos and fake is the variable configured in popcorn_fave_view.

If you want to check out the configuration, sign up for an account and I'll give you admin access. The loader needs a bit more work to load other providers in var example = Popcorn.youtube, but that's easy. The bigger job is the view output.

Looking forward to Thursday!

Glad its still early...

slewazimuth's picture

I only looked at popcorn for the first time a couple weeks ago and started mucking around with the Drupal module which installs the popcorn.js jquery library into Drupal 7. It had some issues which I sorted out as I took a look at how it would work with Drupal 6. I'm running php 5.4 on my local box and 5.3 for both D6 and D7 sites mentioned below. The D6 site has an flv video running from a local Flash player but that was no problem as I just let popcorn instantiate into an html5 video tag which I allowed the .text plug-in to target. I used the same hokey menu_callback style as a quick 'n' dirty test for both sites. D6 Test. D7 Tests. The D6 test uses a local flv video while the D7 tests call up some youtube videos from a television pilot I DP'ed a few years ago on a Red One (#214). The D7 tests are launched by links from the thumbnails.

Do you have any demos

sunnydeveloper's picture

Do you have any demos available?
It is indeed still early - I've been playing with the drupal block/ popcorn include module , some of my own remix of suggestions Bryan has made/things I have tested while keeping Kevin & Emilys work in mind. Seems there are a lot of ways to do this....
Plan is to have another community call next Thursday, hope to see you there.

There were links in my

slewazimuth's picture

There were links in my previous comment to demos on both D6 and 7 but in case they're not working for you:

http://drupalcalgary.org - Click on any thumbnail to launch its popcorn associated video. (This is the D7 based demo)

http://kvrdiaries.com/kvr (This is the D6 demo)

Awesome!

sunnydeveloper's picture

Hey sorry I missed those - the d6 demo didn't work for me, but that's OK D7 looked great.
do you have a sandbox anywhere?

Also are you from Calgary? That's where I'm from originally (on van isle now :)

I was wondering if the D6

slewazimuth's picture

I was wondering if the D6 demo would fail for you. Its likely the exact same thing I had happen originally with the popcorn installer, except in reverse. If it is what I suspect, it will now work just fine for you.

@slewazimuth First request,

kreynen's picture

@slewazimuth First request, if you had issues with the popcornjs module, PLEASE post them. I can't fix what I don't know about.

For the D7 version, I think we are doing the same thing... but it's hard to tell since I can only see the output. Second request, can we PLEASE get the code people are working on committed to sandboxes on Drupal.org or on GitHub? It doesn't take very long to understand the basics of git and version control and saves a lot of time when trying to work together. There are dozens of step by step tutorials available, but I can help anyone who is having trouble. The only code that's gold is code other developers can actually see.

It looks like http://drupalcalgary.org/ivideos/3 is using a menu_call back and the entity id of the media entity that is also available at http://drupalcalgary.org/media/3

That is the same thing is happening here...

http://popcorn.alittlehelphosting.com/popcorn/load/1/fake
http://popcorn.alittlehelphosting.com/media/1

The "fake" in Popcorn Loader is meant to be replaced by a view that woud output this part of your page...

start:3,
                                 end:8,
                                 target:'ioverlay',
                                       text:'La Fontaine - Rachael is Back Scene',}).text({
                                 start:62,
                                  end:66,
                                    target:'ioverlay',
                                       text:'Angela Case',}).text({
                                 start:23,
                                  end:26,
                                    target:'ioverlay',
                                       text:'R. Cameron Gordon',}).googlemap({
                      start: 12, // Our start time in seconds
                        end: 24, // Our end time in seconds
                        type: "ROADMAP", //
                      target: "map",  // The id of our target DoM element
                      location: "Reid Rd.,Lavington,BC", //  The location we want our map to display at
                        zoom: 14 // Setting the zoom that we would like
                }).text({   start:26,

Where is that coming from in ivideo?

Do you have code that addresses http://drupal.org/node/1796906 ?

I'd recommend making a

btopro's picture

I'd recommend making a popcorn views display format similar to how http://drupal.org/project/views_data_export can kick a view out as XML and other formats. Could also draw inspiration from http://drupal.org/project/google_chart_tools as that takes data points and passes them over to a 3rd party in order to make charts. The popcorn kernals would each be collections of structured data points in a similar way.

...is what output I

slewazimuth's picture

Only local images are allowed.
...is what output I originally got from your vanilla installer. Notice the popcorn path.

A drupal_set_message notation:
Only local images are allowed.

I'll commit code when I have

sunnydeveloper's picture

I'll commit code when I have something to share :)
my time is contrib (after work etc) so takes a bit longer to compile.
I have an old Drupal sandbox : http://drupal.org/sandbox/emmairwin/1711594 which defined a custom popcorn field group, but abandoned .

I've also checked out popcorn maker butter/cornfield and am trying to understand those basics as well.

I'll commit code when I have

sunnydeveloper's picture

I'll commit code when I have something to share :)
my time is contrib (after work etc) so takes a bit longer to compile.
I have an old Drupal sandbox : http://drupal.org/sandbox/emmairwin/1711594 which defined a custom popcorn field group, but abandoned .

I've also checked out popcorn maker butter/cornfield and am trying to understand those basics as well.

We almost need a sprint to

sunnydeveloper's picture

We almost need a sprint to get everyone on the same track/working together

We almost need a sprint to

sunnydeveloper's picture

We almost need a sprint to get everyone on the same track/working together

Popcorn

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: