Forum Discussion
4 Replies
- RokuJoelBinge WatcherWhat is the audio format of the stream? AAC? MP3? If AAC, what kind of AAC? (HE, LC etc). Is this HLS, live streamed or is it MP4 VOD or HLS VOD? If HLS, what does the playlist file look like?
If possible, send me a stream URL via private message.
- Joel - peterjtraceyVisitorHi Joel,
We're using AAC, LC, HLS delivery, live streamed. I don't know what you mean by playlist file. The code I'm using to set up the stream is:port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
streamUrl = ""
for each e in showElem.GetChildElements()
if e.GetName() = "source" then
streamUrl = e.GetText()
exit for
else if e.GetName() = "title" then
title = e.GetText()
endif
next
bitrates = [0]
qualities = ["SD"]
urls = [streamUrl]
streamformat = "hls"
videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamUrls = urls
videoclip.StreamQualities = qualities
videoclip.StreamFormat = streamformat
videoclip.Title = title
videoclip.Live = true
screen.SetContent(videoclip)
screen.SetMessagePort(port)
screen.Show() - peterjtraceyVisitorI did notice in VLC media player "Stream 0" is type: Audio and "Stream 1" is type: Video. Whereas with the ones that work it's the other way around. Wondering whether that could be the reason audio doesn't play (but it does detect that video isn't the first stream...)?
- peterjtraceyVisitorGot it working. We had to change channels to Stereo and swap the video and audio streams and changed the bitrate from 44.1k to 48k. Not sure whether all of these were necessary, last one made it work finally but we had tried doing that without the other two changes in place and it didn't work.