• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Add More Video Sites] BB Code Media

Why can't Dave read? I thought this was asking for codes. I'm just going to slink away over there ==> and pretend I was never here.
 
No problemo Dave :p

Im trying to make an embed code for Soundcloud now too, it works, but i think the match url is wrong because i get the "the specified url cannot be embedded as media" error when i try and insert this url: http://soundcloud.com/trancemixdotorg/edgy-and-danny-p-metamorphic as media. Here's the working example using the BBCode i show at the bottom of this message: http://djmixes.org/forum/index.php?threads/test.440/.

Match URL:

Code:
#http://soundcloud\.com/(?P<id>[\-a-z0-9_]+/[\-a-z0-9_]+/)$#siU

Embed HTML:

HTML:
<object height="81" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2F{$id}&amp;show_comments=true&amp;auto_play=false&amp;color=ff7700"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="81" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2F{$id}&amp;show_comments=true&amp;auto_play=false&amp;color=ff7700" type="application/x-shockwave-flash" width="100%"></embed>
</object>

The player works when in use this BBCode:

Code:
[media=soundcloud]trancemixdotorg/edgy-and-danny-p-metamorphic[/media]

Im guessing its something wrong with my match url, probably something stupidly simple.
 
Is it possible to use PCRE to create a match url for this? http://diversifiedsound.podomatic.com/entry/2011-12-01T16_15_09-08_00. The ID of the track is the easy part, but is there a way to do the same for the userName bolded below?

Code:
#http://[B]diversifiedsound[/B]\.podomatic\.com/entry/(?P<id>[\-a-z0-9_]+)$#siU

This is the embed HTML:

HTML:
<object width='100%' height='85'>
<param name='movie' value='http://diversifiedsound.podomatic.com/swf/joeplayer_v18c.swf'></param>
<param name='flashvars' value='minicast=false&jsonLocation=http%3A%2F%2Fdiversifiedsound.podomatic.com%2Fentry%2Fembed_params%2F{$id}%26color%3D43bee7%26autoPlay%3Dfalse%26width%3D100%%26height%3D85'></param>
<param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://diversifiedsound.podomatic.com/swf/joeplayer_v18c.swf' flashvars='minicast=false&jsonLocation=http%3A%2F%2Fdiversifiedsound.podomatic.com%2Fentry%2Fembed_params%2F{$id}%26color%3D43bee7%26autoPlay%3Dfalse%26width%3D100%%26height%3D85' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='100%' height='85'></embed>
</object>
 
I arrived to this thread via a forum search and I imagined that someone would be keeping a master list of all these as well as offering a download that could be uploaded to our own installs (so that we don't all have to do the work manually).

If this is possible and someone can explain to me how to do it, I would be more than happy to start a new thread and commit to updating it every X amount of weeks.
 
Can someone please try to do Grooveshark?

For example:
http://grooveshark.com/#/playlist/Southern Rock/56375296

HTML:
<object width="250" height="250" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="gsPlaylist5637529628" name="gsPlaylist5637529628"><param name="movie" value="http://grooveshark.com/widget.swf" /><param name="wmode" value="window" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID=56375296&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" /><!--[if !IE]>--><object type="application/x-shockwave-flash" data="http://grooveshark.com/widget.swf" width="250" height="250"><param name="wmode" value="window" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID=56375296&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" /><span><a href="http://grooveshark.com/playlist/Southern+Rock/56375296" title="Southern Rock by OldRow on Grooveshark">Southern Rock by OldRow on Grooveshark</a></span></object><!--<![endif]--></object>
 
Try this.

Match URL:
Code:
http://grooveshark.com/#/playlist/*/{$id}
HTML-code:
Code:
<object width="250" height="250" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="" name="">
        <param name="movie" value="http://grooveshark.com/widget.swf" />
        <param name="wmode" value="window" />
        <param name="allowScriptAccess" value="always" />
        <param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID={$id}&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" />
        <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="http://grooveshark.com/widget.swf" width="250" height="250">
                          <param name="wmode" value="window" />
                          <param name="allowScriptAccess" value="always" />
                          <param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID={$id}&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" />
                          <span>
                                    <a href="http://grooveshark.com/#/playlist//{$id}" title=""></a>
                          </span>
                  </object>
        <!--<![endif]-->
</object>
 
Try this.

Match URL:
Code:
http://grooveshark.com/#/playlist/*/{$id}
HTML-code:
Code:
<object width="250" height="250" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="" name="">
        <param name="movie" value="http://grooveshark.com/widget.swf" />
        <param name="wmode" value="window" />
        <param name="allowScriptAccess" value="always" />
        <param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID={$id}&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" />
        <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="http://grooveshark.com/widget.swf" width="250" height="250">
                          <param name="wmode" value="window" />
                          <param name="allowScriptAccess" value="always" />
                          <param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID={$id}&bbg=000000&bth=000000&pfg=000000&lfg=000000&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" />
                          <span>
                                    <a href="http://grooveshark.com/#/playlist//{$id}" title=""></a>
                          </span>
                  </object>
        <!--<![endif]-->
</object>
Didn't seem to work... Help please from anyone... grooveshark auto embedding would drive literally thousands more users to my site.
 
Actually it works if you click the media button and enter the grooveshark URL!!! but it does not work just by pasting the URL in the reply box. Auto embedding the URL would be KEY!!!
 
Actually it works if you click the media button and enter the grooveshark URL!!! but it does not work just by pasting the URL in the reply box. Auto embedding the URL would be KEY!!!
It's worked by pasting the correct URL.
If your URL have space symbol, then it's not correcting. Need change space to %20. Example:
Code:
http://grooveshark.com/#/playlist/Southern Rock/56375296
Code:
http://grooveshark.com/#/playlist/Southern%20Rock/56375296
The matter is that parcer XenForo defines the link to:
1) the terminations of a line;
2) to whitespace character or tabulation;
3) to punctuation characters.
I.e., the link with a gap inside a parcer will be processed, as
Code:
http://grooveshark.com/#/playlist/Southern
 
Could someone assist me with embedding videos from MTV (yes, they do still have videos sometimes, haha!)? The issue I'm facing is that music videos have the artist's name inserted between videos/ and the ID, and I'm not sure how to make that work.

For example: http://www.mtv.com/videos/foster-the-people/714816/dont-stop-color-on-the-walls.jhtml#id=1518071 The ID is 714816; what do I need to put in the Match URLs field?

Also, I guess I don't understand what to put in the Embed HTML section. This is the embed code for a video on E!:
HTML:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="480" height="270" id="CEGEmbed"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.eonline.com/static/videoplayer/platform_players/swf/CEGDynamicPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="flashvars" value="width=480&height=270&ID=Embed&releasePID=8QwwK9n9CMEyPJdmEQT1gQqb5HNLbjQM&playerId=Embed&skinUrl=http://www.eonline.com/static/videoplayer/platform_players/swf/skinCEGPlayer.swf&locId=US" /><embed width="480" height="270" flashvars="width=480&height=270&ID=Embed&releasePID=8QwwK9n9CMEyPJdmEQT1gQqb5HNLbjQM&playerId=Embed&skinUrl=http://www.eonline.com/static/videoplayer/platform_players/swf/skinCEGPlayer.swf&locId=US" allowScriptAccess="always" allowfullscreen="true" wmode="transparent" quality="high" bgcolor="#000000" name="CEGEmbed" id="CEGEmbed" src="http://www.eonline.com/static/videoplayer/platform_players/swf/CEGDynamicPlayer.swf" type="application/x-shockwave-flash"/></object>

I tried this:
HTML:
<object classid="clsid:{$id}" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="480" height="270" id="CEGEmbed"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.eonline.com/static/videoplayer/platform_players/swf/CEGDynamicPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="flashvars" value="width=480&height=270&ID=Embed&releasePID=8QwwK9n9CMEyPJdmEQT1gQqb5HNLbjQM&playerId=Embed&skinUrl=http://www.eonline.com/static/videoplayer/platform_players/swf/skinCEGPlayer.swf&locId=US" /><embed width="480" height="270" flashvars="width=480&height=270&ID=Embed&releasePID=8QwwK9n9CMEyPJdmEQT1gQqb5HNLbjQM&playerId=Embed&skinUrl=http://www.eonline.com/static/videoplayer/platform_players/swf/skinCEGPlayer.swf&locId=US" allowScriptAccess="always" allowfullscreen="true" wmode="transparent" quality="high" bgcolor="#000000" name="CEGEmbed" id="CEGEmbed" src="http://www.eonline.com/static/videoplayer/platform_players/swf/CEGDynamicPlayer.swf" type="application/x-shockwave-flash"/></object>
but it's obviously incorrect since every video embedded with it shows the same video, lol (and it autoplays). Is there an easy way to determine what to put for the embed code?

Thanks for any help you can offer. :)
 
I not found ID 714816 in embedded code. There the code another. Therefore for this purpose it is necessary to write the handler. Write or ask somebody.
 
I not found ID 714816 in embedded code. There the code another. Therefore for this purpose it is necessary to write the handler. Write or ask somebody.
The embed codes posted in my last post are for a second video on E! Online. Here's the embed code for the MTV video, with the ID bolded where it appears:
Rich (BB code):
<embed src="http://media.mtvnservices.com/mgid:uma:video:mtv.com:714816/cp~id%3D1518071%26vid%3D714816%26uri%3Dmgid%3Auma%3Avideo%3Amtv.com%3A714816" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="."></embed><div style="margin:0px;padding:4px;width:500px;text-align:center;font-family:Verdana,sans-serif;font-size:12px;"><a href="http://www.mtv.com/music/artist/foster_the_people/artist.jhtml" style="color:#439CD8;" target="_blank">Foster the People</a> - <a href="http://www.mtv.com/videos/foster-the-people/714816/dont-stop-color-on-the-walls.jhtml#vid=714816" style="color:#439CD8;" target="_blank">Don't Stop (Color On The Walls)</a> - <a href="http://www.mtv.com/music/" style="color:#439CD8;" target="_blank">Music</a> - <a href="http://www.mtv.com/music/video/" style="color:#439CD8;" target="_blank">More Music Videos</a></div>
 
Could someone assist me with embedding videos from MTV (yes, they do still have videos sometimes, haha!)? The issue I'm facing is that music videos have the artist's name inserted between videos/ and the ID, and I'm not sure how to make that work.

For example: The ID is 714816;
I gave it a try and this is what I came up with....


MTV Music
If you know how to execute a mysql query you can use this.
__________
Code:
INSERT INTO xf_bb_code_media_site
(media_site_id, site_title, site_url, match_urls, match_is_regex, match_callback_class, match_callback_method, embed_html, embed_html_callback_class, embed_html_callback_method, supported, addon_id)
VALUES
('mtvmv', 'MTV Music Video', 'http://mtv.com', '#mtv\\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/[a-z-0-9-]+\\.jhtml\\\#id=[0-9]+#si', 1, '', '','<embed width="500px" height="383px" flashvars="sid=MTV_Videos&amp;autoPlay=false" swliveconnect="true" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="embeddedPlayer" id="embeddedPlayer" style="undefined" src="http://media.mtvnservices.com/mgid:uma:video:mtv.com:{$id}/" type="application/x-shockwave-flash">', '', '', 1, '')
and then randomly edit 1 character in any media site definition and save, and then edit back your change and save again. This will rebuild the media site cache. and your done.
__________


I saw what SchmitzIT posted much earlier in this thread having to do with sql and updated it to work with the current media bbcode system. So thanks SchmitzIT if you use this method.





If you want to enter it manually do this....
__________
________________________________________
___Basic Info______________________________
Media Site ID: mtvmv
________________________________________
Site Title: MTV Music Videos
________________________________________
Site URL: http://mtv.com
________________________________________
Match URLs:
#mtv\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/[a-z-0-9-]+\.jhtml\#id=[0-9]+#si
#mtv\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/[a-z0-9-_]+\.jhtml#si
________________________________________
Embed HTML:
Code:
<embed width="500px" height="383px" flashvars="sid=MTV_Videos&amp;autoPlay=false" swliveconnect="true" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="embeddedPlayer" id="embeddedPlayer" style="undefined" src="http://media.mtvnservices.com/mgid:uma:video:mtv.com:{$id}/" type="application/x-shockwave-flash">

________________________________________
__ Advanced Options_________________________
Regular Expression Matching: Checked
________________________________________
__________


I was trying very hard to concentrate on something before I attempted this but after seeing a full ep of beavis and butthead available on the site and me getting ideas for new episodes of celebrity deathmatch <sigh> I saw the need to embed videos as well...they have a slightly different embed code though.
Sooooo in the spirit of hoping that they start making new episodes of that show...I made this one as well to catch some of the videos on MTV.com


MTV Videos
If you know how to execute a mysql query you can use this.
__________
Code:
INSERT INTO xf_bb_code_media_site
(media_site_id, site_title, site_url, match_urls, match_is_regex, match_callback_class, match_callback_method, embed_html, embed_html_callback_class, embed_html_callback_method, supported, addon_id)
VALUES
('mtvtv', 'MTV Programming', 'http://mtv.com', '#mtv\\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/playlist\\.jhtml\\\#[a-z0-9=]+#si', 1, '', '','<embed src="http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:{$id}/cp~instance%3Dfullepisode%26autoPlay%3Dfalse%26id%3D{$id}%26uri%3Dmgid%3Auma%3Avideolist%3Amtv.com%3A{$id}" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="."></embed>', '', '', 1, '')
__________

If you want to enter it manually do this....
__________
________________________________________
___Basic Info______________________________
Media Site ID: mtvtv
________________________________________
Site Title: MTV Programming
________________________________________
Site URL: http://mtv.com
________________________________________
Match URLs: #mtv\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/playlist\.jhtml\#[a-z0-9=]+#si
________________________________________
Embed HTML:
Code:
<embed src="http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:{$id}/cp~instance%3Dfullepisode%26autoPlay%3Dfalse%26id%3D{$id}%26uri%3Dmgid%3Auma%3Avideolist%3Amtv.com%3A{$id}" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="."></embed>

________________________________________
__ Advanced Options_________________________
Regular Expression Matching: Checked
________________________________________
__________
 
Top Bottom