vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

applebeef 07-07-2009 10:58 PM

Hi the geek, I'm interested in using AME for two things:

-Youtube (works beautifully out of the box)

-local hosted .swf


The second one is what I'm having trouble with... I've imported the definition for it and configured my hostname for it (only 2 instances right?)


I can't get it to work though. It embeds the .swf, and shows the background or first frame of it, but otherwise is unresponsive. For an example see this: http://charles-song.com/testvb/showt...hp?p=17#post17

The .swf (a slideshow) works fine in other areas of my site, and by itself, if I put the direct url in my browser.

What am I doing wrong?

Makc666 07-08-2009 07:39 AM

Quote:

Originally Posted by The Geek (Post 1844533)
You only use the Embedding Regexp if the data needed to embed cannot be found within the URL itself.

For example:

if the embed code for www.myvideo.com/watch.php?v=123456 looks like:
<embed src="http://www.myvideo.com/watch.php?v=abcdef" ... />

In this instance, the URL doesnt 'tie up' to the embed HTML so AME needs to go to www.myvideo.com/watch.php?v=123456 and find the abcdef part. With the Embedding Regexp, AME pulls down the page and runs something like:

http://www\.myvideo\.com/watch\.php\?v=(\w+)

Which grabs the abcdef part so the video will properly embed.

In the event that the URL contains the information you need (i.e. the dailymotion definition I just posted) then this process is redundant and a time waster. Furthermore, the Embedding Regexp is generally different than the regexp used to match the URL in the first place.

Hope this helps.

The Geek, 1st, I am much appreciated that you speak with me.

2nd, I understand that for the current moment the dailymotion can work only with "Regular expression". This is 100% clear for me.

3rd, I am just trying based on dailymotion to make it working also with "Extract destination data".

As I understand this one can be done so?

And at this point I meet with the problem.

Here is my test case.
  1. I use URL
    http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creatio
  2. There in HTML Source I see:
    HTML Code:

        <link rel="canonical" href="/video/x9m63m_canarias-timelapse_creation" />[*]
  3. I am trying to get the needed video name from this line.
  4. So I make:
    • Regular expression
      PHP Code:

      http://[w\.]*dailymotion\.[com|alice\.it]+/[\w/\-%]*video/([\w\-]+) 

    • Extract destination data
      Yes
    • Embedding Regexp
      PHP Code:

      <link rel="canonical" href="/video/([a-z_0-9-]+)" 

      • I also tried:
        PHP Code:

        href="/video/([a-z_0-9-]+)" 


And this one doesn't work.

I am trying to understand - why?

What I am doing wrong? :(

daihlo 07-08-2009 10:12 AM

Hi 'The Geek' firstly thanks for looking into CAgeFilm.com before.
I have disabled the registration process on the site to ask if you could have another quick look for me, see if this site will work with AME?

I would realy appreciate your help. Am trying to launch my forum this weekend and the vid embedding is a key feature!

Thanks - Tim

The Geek 07-08-2009 10:57 AM

Quote:

Originally Posted by applebeef (Post 1844836)
Hi the geek, I'm interested in using AME for two things:

-Youtube (works beautifully out of the box)

-local hosted .swf


The second one is what I'm having trouble with... I've imported the definition for it and configured my hostname for it (only 2 instances right?)


I can't get it to work though. It embeds the .swf, and shows the background or first frame of it, but otherwise is unresponsive. For an example see this: http://charles-song.com/testvb/showt...hp?p=17#post17

The .swf (a slideshow) works fine in other areas of my site, and by itself, if I put the direct url in my browser.

What am I doing wrong?

Sadly, I can't really help with the local files as I haven't ever even looked into it before. Its a question best suited for DJ ;)

The Geek 07-08-2009 11:00 AM

Quote:

Originally Posted by Makc666 (Post 1844996)
The Geek, 1st, I am much appreciated that you speak with me.

2nd, I understand that for the current moment the dailymotion can work only with "Regular expression". This is 100% clear for me.

3rd, I am just trying based on dailymotion to make it working also with "Extract destination data".

As I understand this one can be done so?

And at this point I meet with the problem.

Here is my test case.
  1. I use URL
    http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creatio
  2. There in HTML Source I see:
    HTML Code:

        <link rel="canonical" href="/video/x9m63m_canarias-timelapse_creation" />[*]
  3. I am trying to get the needed video name from this line.
  4. So I make:
    • Regular expression
      PHP Code:

      http://[w\.]*dailymotion\.[com|alice\.it]+/[\w/\-%]*video/([\w\-]+) 

    • Extract destination data
      Yes
    • Embedding Regexp
      PHP Code:

      <link rel="canonical" href="/video/([a-z_0-9-]+)" 

      • I also tried:
        PHP Code:

        href="/video/([a-z_0-9-]+)" 


And this one doesn't work.

I am trying to understand - why?

What I am doing wrong? :(

I don't think I totally understand what you are trying to do. The embed Regexp is designed to extract important parameters from a web page where the URL doesnt contain enough data that it needs. This feature won't extract other information for other uses (i.e. the title), though I suppose I could add a hook into the system which would make it easier.

The Geek 07-08-2009 11:01 AM

Quote:

Originally Posted by daihlo (Post 1845032)
Hi 'The Geek' firstly thanks for looking into CAgeFilm.com before.
I have disabled the registration process on the site to ask if you could have another quick look for me, see if this site will work with AME?

I would realy appreciate your help. Am trying to launch my forum this weekend and the vid embedding is a key feature!

Thanks - Tim

I responded to your last post here: https://vborg.vbsupport.ru/showpost....&postcount=642

applebeef 07-08-2009 03:43 PM

Quote:

Originally Posted by The Geek (Post 1845047)
Sadly, I can't really help with the local files as I haven't ever even looked into it before. Its a question best suited for DJ ;)

Thanks, hopefully DJ will chime in. I really need to get this ironed out before I take it on my 'real' forum. :up:

Makc666 07-08-2009 08:25 PM

Quote:

Originally Posted by The Geek (Post 1845048)
I don't think I totally understand what you are trying to do. The embed Regexp is designed to extract important parameters from a web page where the URL doesnt contain enough data that it needs.

The Geek, I am trying to extract data from HTML source of that page.

As I can see there is no meter if the URL does contain enough data or URL doesn't contain enough data.
We can extract in both cases.

Quote:

Originally Posted by The Geek (Post 1845048)
This feature won't extract other information for other uses (i.e. the title), though I suppose I could add a hook into the system which would make it easier.

I didn't understand this one.

Any HTML page consists smth like this:

HTML Code:

<HTML>
<TITLE>Test</TEST>
<BODY>
</BODY>

That future Embedding Regexp can't extract data from any part of HMTL Source? Can extract from only specific one? :eek:

LI_Pets 07-10-2009 10:11 AM

I recieved the message

YouTube
Duplicate key.This key would clash with an existing item

I understand an old one needs to be deleted.

Where do I find it to delete it?

Then I assume I need to upload the xml again?

When I get to the media definitions page do I "add new" or "save"?

The Geek 07-10-2009 03:47 PM

Quote:

Originally Posted by LI_Pets (Post 1846287)
I recieved the message

YouTube
Duplicate key.This key would clash with an existing item

I understand an old one needs to be deleted.

Where do I find it to delete it?

Then I assume I need to upload the xml again?

When I get to the media definitions page do I "add new" or "save"?

It means that you are importing a definition that you already have, or that conflicts with one that is installed. Change the key and/or delete the one that is installed you are replacing.


All times are GMT. The time now is 10:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02270 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete