Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Wallycode
Visitor

Problems playing vid from api feed on wowza, code help.

I"m having a problem trying to play a api feed from a wowza server using the example "videoplayer" from SDK. I can play mp4 and ISM content with no problem, but wondering does wowza when using hls need a different player than the "videoplayer from the SDK?

Also, I'm not sure where the "<videoprofile>" code that is below this code is supposed to go, in the my XML feed array? Does this code look wrong? Thanks


<feed>

<resultLength>4</resultLength>
<endIndex>4</endIndex>
<item sdImg="http://domain.com/img/sd.jpg" hdImg="http://domain.com/img/hd.jpg">
<title>wowza</title>
<contentId>10002</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<metafeed>
<stream>
<clip_id>001</clip_id>
<connection_url>http://wowza.domian.tv:1935/nasa</connection_url>
<video_file>
/mp4:/_definst_/takeoff/hls/moon000001_low.mp4
</video_file>
<video_link>
http://wowza.domain.tv:1935/nasa/mp4:/_ ... ylist.m3u8
</video_link>
</stream>
<server/>
</metafeed>

</media>
<synopsis>wowza</synopsis>
<genres>Test Nasa Wowza</genres>
<runtime>160</runtime>
</item>

</feed>


<video_profiles>
<profile>
<id>1</id>
<label>Big MP4</label>
</profile>
<profile>
<id>2</id>
<label>Mid MP4</label>
</profile>
<profile>
<id>3</id>
<label>Low MP4</label>
</profile>
<profile>
<id>4</id>

</streaming>
0 Kudos
3 REPLIES 3
RokuMarkn
Visitor

Re: Problems playing vid from api feed on wowza, code help.

Well, the elements under <stream> don't look anything like the ones in the videoplayer sample. You need at least streamUrl to specify the URL. Why do you have connection_url, video_file, video_link, etc? Also, you don't need the video_profiles element in there, and even if you did, it's not properly terminated. You can run your XML through an XML validator if you're having trouble with it.

--Mark
0 Kudos
Wallycode
Visitor

Re: Problems playing vid from api feed on wowza, code help.

"RokuMarkn" wrote:
Well, the elements under <stream> don't look anything like the ones in the videoplayer sample. You need at least streamUrl to specify the URL. Why do you have connection_url, video_file, video_link, etc? Also, you don't need the video_profiles element in there, and even if you did, it's not properly terminated. You can run your XML through an XML validator if you're having trouble with it.

--Mark


The was an example that was sent to me by our hosting, and I tried a lot of ways but couldn't get it to work. I'm trying to connect to a play list of 300 movies and documentaries without having to add each clip manually by hand through an API.
Thanks for the tip on the XML validator.
0 Kudos
Wallycode
Visitor

Re: Problems playing vid from api feed on wowza, code help.

I got the movie the play, after fixing the code. Thanks

Now I was wondering how do I bring in all the 300 videos from the wowza server, using their API system? I really don't want to add each movies stream url by hand. I was just hoping to connect to all of their clips and metadata, stuff like DVD cover and synopsis but I'm not sure if that is something that they give to me, or do I need to do something in roku to connect to their API feeds, to have show up on my channel?

Thanks
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.