Fandom Developers Wiki
No edit summary
Line 95: Line 95:
   
 
<span style="border:3px double orange;background-color:yellow;">[[User:Laclale|<span style="color:green;font-family:OCR A Extended">*Lac*</span>]]([[User_Talk:Laclale|<span style="color:orange">♪</span>]])</span> 11:36, November 12, 2019 (UTC)
 
<span style="border:3px double orange;background-color:yellow;">[[User:Laclale|<span style="color:green;font-family:OCR A Extended">*Lac*</span>]]([[User_Talk:Laclale|<span style="color:orange">♪</span>]])</span> 11:36, November 12, 2019 (UTC)
  +
  +
==For periscope==
  +
Just trick. ID is user name.
  +
<syntaxhighlight lang="JavaScript">
  +
case 'periscope':
  +
$this.html(
  +
$('<iframe>',{
  +
src:'https://www.periscope.tv/' + id,
  +
css:css
  +
})
  +
);
  +
break;
  +
</syntaxhighlight>--<span style="border:3px double orange;background-color:yellow;">[[User:Laclale|<span style="color:green;font-family:OCR A Extended">*Lac*</span>]]([[User_Talk:Laclale|<span style="color:orange">♪</span>]])</span> 11:44, November 12, 2019 (UTC)

Revision as of 11:44, 12 November 2019

VK

Hey Wave_emoticon.gif , can I ask you "a little" to expand the functionality of this script, adding the ability to integrate video from the Russian (very popular) social network "VK". This will make the script more popular among Russian-speaking users and the like would not be very difficult.
This should help you:

'vk':   function (s,t) {
                 if (t.charAt(0) !== '/') {
                     try {
                         t = t.split(' ');
                         s = s.replace('[vk ' + t[1] + ' ' + t[2] + ' ' + t[3] + ']', '<iframe src="//vk.com/video_ext.php?oid=' + mw.html.escape(t[1]) + '&id=' + mw.html.escape(t[2]) + '&hash=' + mw.html.escape(t[3]) + '" width="455.25" height="270" frameborder="0"></iframe>');
                     } catch(e) { console.log(e) }
                 }
                 return s;
             }

code is taken away], an extended version of ChatTags.
I would hope that you at least consider ^-^ --40px-Kos.png365(Nachrichtenseite|Beiträge) 22:24, May 28, 2016 (UTC)

I'll take a look at adding support for VK. Code Lyoko Wiki: User: Deadcoder 06:45, May 29, 2016 (UTC)

Twitch

I'm trying to use this to embed a Twitch stream, but it doesn't seem to work (it should appear at the top)

https://easyallies.wikia.com/wiki/Template:RailModule

Not sure what I'm doing wrong, I'd appreciate some help. Thanks!

- Darío 05:17, June 13, 2018 (UTC)

You're importing the wrong page. The correct import is dev:VideoIntegrator/VideoIntegrator.js, but you're using dev:VideoIntegrator/code.js. --Sophie 06:12, June 13, 2018 (UTC)
I was just following the instructions stated here though, but it's working now, thank you! - Darío 07:12, June 13, 2018 (UTC)
Fixed the instructions now. -- Cube-shaped garbage can 11:18, June 13, 2018 (UTC)


Requesting Site Supports

Hello, would it be possible to add periscope and niconicodouga, a lot of japanese related fandoms could benefit from having them supported.

Edit: I can't seem to make it work using dev:VideoIntegrator/VideoIntegrator.js on the mediawiki:importJS of the fandom I'm in.


Neetohh (talk) 01:23, April 25, 2019 (UTC)

For niconico

I made from official share link. Player requires script tag but whatever.

            case 'niconico':
                $this.html(
                    $('<iframe>',{
                        width:312,
                        height:176,
                        src:'https://ext.nicovideo.jp/thumb/' + id,
                        frameborder:0,
                        scrolling:"no",
                        css:{
                            border:'solid 1px #ccc'
                        }
                    })
                );
                break;

Sorry for late sign--*Lac*()

Could you provide an example of how it looks like when embedded for you? For me an example link from your code does not seem to embed the actual video, just link to where the video can be watched. -- Cube-shaped garbage can 23:35, November 8, 2019 (UTC)

Wanna actual player version? I put actual code.

<iframe width="312" height="176" src="https://ext.nicovideo.jp/thumb/sm35121249" scrolling="no" style="border:solid 1px #ccc;" frameborder="0"><a href="https://www.nicovideo.jp/watch/sm35121249">か い め つ.dll</a></iframe>
<script type="application/javascript" src="https://embed.nicovideo.jp/watch/sm34281412/script?w=640&h=360"></script><noscript><a href="https://www.nicovideo.jp/watch/sm34281412">「走る〇〇GB」雑作成ガイド</a></noscript>
            case 'niconico':
                $this.html(
                    $('<iframe>',{
                        width:640,
                        height:360,
                        src:'https://embed.nicovideo.jp/watch/' + id
                        frameborder:0,
                        scrolling:"no",
                        css:{
                            border:'solid 1px #ccc'
                        }
                    })
                );
                break;

--*Lac*() 07:32, November 11, 2019 (UTC)

And sample of player.

<iframe width="312" height="176" src="https://embed.nicovideo.jp/watch/sm35121249" scrolling="no" style="border:solid 1px #ccc;" frameborder="0"><a href="https://www.nicovideo.jp/watch/sm35121249">か い め つ.dll</a></iframe>

*Lac*() 11:36, November 12, 2019 (UTC)

For periscope

Just trick. ID is user name.

            case 'periscope':
                $this.html(
                    $('<iframe>',{
                        src:'https://www.periscope.tv/' + id,
                        css:css
                    })
                );
                break;

--*Lac*() 11:44, November 12, 2019 (UTC)