Patrick Ibert
Mar 17, 2011
  4191
(2 votes)

EPiServer Youtube Gadget

Hello, my name is Patrick and I'm currently studying at Academedia in Sweden/Liljeholmen to become a developer in .Net. This will be my first ever blogpost about something I have developed.
I have developed a youtube EPiServer Gadget while doing my practice at Logica.


It's a EPiServer gadget that is connected through settings in a sites config to a youtube account. With this gadget the users of an EPi Site gets their own private youtube there the users with the chosen admin role can administer the youtube account that the gadget is connected to without ever leaving the dashboard and without ever logging in to youtube.com, AMAZING? I think so :)


So lets take a look at this beauty

1

Ok.. Not too fancy but it serves it's purpose :)

 

Lets take a look at one of the menu options, the "playlist"

2

 

As I'm here in the admin role that is allowed to administer the youtube account I can from here upload, delete and edit videos, while users that arent in that user role can only select videos from here to watch.


Let's take a look at the other menu option, called "settings".

3

 

Here the user can select the size for the videoplayer in the dashboard.

Lets take a look now at how we can get this gadget up and working at any EPi site.

 

1. Download the gadget, from here: www.paib.se/YoutubeGadget/YoutubeGadget.zip

2.
Add a reference to the dll files in the folder "bin" to your EPi site

3.
Add the xml file from the folder "lang" to your EPi sites folder lang
4.
Add the folder "VideoGadget" to the start folder of your EPi site


5. Add the following in your sites config under the tag <system.webServer>
<add name="VideoGadgetMVCRouting" type="VideoGadget.GadgetViewEngineModule, VideoGadget" />

6.
Add the following in your sites config under the tag <publicModules>
<add name="VideoGadget">
<assemblies>
<add assembly="VideoGadget"/>
</assemblies>
</add>


7. Register a youtube account + youtube developer account


8. Login to your developer account and create a "new product"


9. Add the following in your sites config under the tag </episerver.shell> with the right information
<appSettings>
<add key="youtubeUsername" value="Insert youtube username" />
<add key="youtubePassword" value="Insert youtube password" />
<add key="adminRole" value="Administrators" />
<add key="defaultYoutubeVideo" value="If you want insert an url to a youtube user or video, will be shown when theres no videos in the account, otherwise just leave this field blank" />
<add key="videoGadgetUrl" value="insert your EPi sites url here + /VideoGadget/"/>
<add key="youtubeApplicationName" value="Insert your application name from step 8" />
<add key="youtubeDeveloperKey" value="Insert your developer key from step 8" />
</appSettings>


And heres the source code: http://www.paib.se/YoutubeGadget/YoutubeGadgetSourceCode.zip

Mar 17, 2011

Comments

Mar 17, 2011 09:42 AM

Welcome to EPiServer World!

That's a really nice gadget btw :)

Patrick Ibert
Patrick Ibert Mar 17, 2011 01:16 PM

Thanks Tobias :)

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024