+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Customizing the viddler provider

Customizing the viddler provider

9 posts, 0 answered
  1. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    20 May 2011
    Link to this post
    I finally got around to playing with the Viddler provider for Sitefinity, and I must say it's rather cool.  I'd like to customize it a bit, though.  When I upload the video directly into Sitefinity, it makes it to Viddler fine, but without the description and tags I have specified.  But If I specify the Description on Viddler, then the library will syncronize the description down into Sitefinity.  It won't, however, syncronize any tags I've specified on Viddler.

    Is there any provision for customizing the Viddler provider?

    Thanks,
    Mike Sharp
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 May 2011
    Link to this post
    Hello Mike,

    ViddlerProvider methods are not virtual -you cannot override them. Sorry about that, but in this case the only way is a custom provider or we have to expose proper methods that will allow you to get needed data.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    24 May 2011
    Link to this post
    Thanks Ivan,

    I guess I'll have to write the provider then.  I liked the Viddler capabilities because I didn't have to write much (if any) code, but I think syncronizing tags both ways and the description up is important for us...

    I take it there are no plans to add this to the viddler provider for 3.7?

    I've been poking around the forums and the developer manual for a definitive list of the properties and methods I'd need to override in order to implement my own library provider and library manager...but I haven't found exactly what I'm looking for.  Is there a blog post or forum thread you know of that would be a good place to start?

    Regards,
    Mike
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 May 2011
    Link to this post
    Hello Mike,

    The provider won't be extended. We stopped the features development over 3.x. Actually you post makes me think about the way that this will be implemented for 4.x edition. We are considering the scope of a file storage and this is something that should we handle.

    We do not have a sample for such a provider. If you want you can reflect Telerik.Libraries.MediaProvider or I can send you some code through the support channel.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    30 Jun 2011
    Link to this post
    Thanks again, Ivan.

    One other question has popped up...I notice that when I add a video to Viddler, it shows up right away (well, at least when the transcoding is completed) in the library module list, and I can synch it right away.

    But the newly synched video doesn't show up in the Viddler public control.  Furthermore, I noticed that when I created a new viddler library, and added and then synched a video, and then walked the video through to publish (we have workflow turned on) the IsEmpty property remains true, even though clearly there is content in the library.

    Then some time later (not sure how long), the video magically shows up, and IsEmpty is now false.  The first time I created a library, I spent at least an hour or so trying to figure it out, went home, and the next morning the video showed up in the ContentView control.  I created a new library a couple days ago, and the same thing happend again.  Now today, when I added a second video to Viddler, waiting for transcoding, and synched it with the Viddler Library in SF, the video does not show up (but I'll bet it will be there tomorrow morning. :)

    Since the IsEmpty property is simply:

    public bool get_IsEmpty()
    {
        return (base.SelectContentCount() <= 0);
    }

    I'm at a loss to explain this latency.  My client, of course, wants the video to show up right away.  It shows up in the Viddler Vidget I have on that same page right away.

    Any idea why this is happening?

    Regards,
    Mike Sharp
  6. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    30 Jun 2011
    Link to this post
    As is often the case, a few seconds after posting this, I had a thought.  I was thinking about what might happen overnight, that does't happen during the day, and I thought...application pool recycle.  So I reset the application, and sure enough, the newly added video shows up in the Viddler content view control.

    So, why does an application refresh do this?  Is it due to some sort of caching?

    or more importantly, how do I fix this so the video shows up right away, without an IISReset or app pool recyle?

    Thanks,
    Mike Sharp

  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Jul 2011
    Link to this post
    Hi Mike,

    1. Check what are the page caching options - you can disable them temporarily to test.
    2. Check the library caching options - you can disable them temporarily to test.
    3. Check whether you have synced the viddler account with the library.
    4. The Video control lists items that are from a library of type "Video"

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    09 Sep 2011
    Link to this post
    Sorry for the delay in my response, but today is the first time we've had to upload another video since my last post.

    Caching is turned off for both the page and the library, the video is published, and synchronized.  I can manually construct the virtual URL to the video from the ViddlerVideo control, and it will display (detail view), it just doesn't show up in the list.  There is no filter by tag or category that I can see in the ViddlerVideo control.

    Now today when I try an IISReset like I did before, the video does not show up, so maybe my original idea that there was something cached is wrong.  However, I think the IsEmpty is still true, which is why the video doesn't show up in the list.  Any idea what could be wrong?

    Thanks,
    Mike

     
  9. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    13 Sep 2011
    Link to this post
    When I checked back today, the video has mysteriously appeared.  Something happens overnight or in a few hours that causes a newly uploaded video to appear. 

    Any ideas why a newly uploaded, synched and published video wouldn't show up?  Caching is turned off for the page and the library.

    Anyone else experiencing this problem with the Viddler provider?

    Thanks,
    Mike

Register for webinar
9 posts, 0 answered