What video item to use

Hello, I am having some issues with adding videos to a MediaContainer

I have clip urls that are working, like this:

http://www.plexapp.com/player/player.php?clip=http://www0.c00928.cdn.qbrick.com/00928/kluster/20101225/PR-2010-1225-NATKLAPPAR.flv

and this (live url, might return some form of error)

http://www.plexapp.com/player/player.php?&url=rtmp://fl10.c90807.cdn.qbrick.com/90807&clip=enc0low_h264&live=true&width=640&height=360



But I can not get them to show in a menu after they’ve been added to the MediaContainer… I can’t get it to work no matter what I use,

VideoItem, WebVideoItem, RTMPVideoItem

or any combination with Function returning any of these.



If any of these videos are added to a MediaContainer where I have working items (which I do have for some from the site I’m working with) none will show.



I’m sure it’s quite simple, but I’m new to the plugin thing so if someone could enlighten me I would be very thankful :slight_smile:



Edit: Using Framework 2 btw…

Hi!

For the .flv link you don’t need the Flash player, you can use a VideoItem and use the direct link with it.



<br />
dir = MediaContainer(title2='Video Test')<br />
<br />
# VideoItem<br />
# (when using direct links to video files)<br />
dir.Append(VideoItem('http://www.example.com/video.flv', title='Test', thumb='http://www.example.com/thumb.jpg'))<br />
<br />
# WebVideoItem<br />
# (which needs a Site Config file, except when you're using the Flash or Silverlight player at www.plexapp.com/player/...)<br />
dir.Append(WebVideoItem('http://www.example.net/page_containing_video.html', title='Test', thumb='http://www.example.com/thumb.jpg'))<br />
<br />
return dir<br />




Sweet, thanks for the info. The issue was with me not reading the documentation properly :( had jumbled the arguments.

Thanks for the help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.