-1

起動コマンドを介してビデオへのリンクが与えられる Roku アプリケーションがあります。このビデオはroVideoScreenオブジェクトに表示されます。ただし、ビデオは読み込まれません。すべてのリンクが機能すると仮定すると、誰でも何が問題なのかを知ることができます。どんな助けでも大歓迎です。

count = CreateObject("roInt")
count = info.Lookup("amount").ToInt()

bitrates = CreateObject("roArray", count, false)
qualities = CreateObject("roArray", count, false)
url = CreateObject("roArray", count, false)
StreamFormat = "mp4"
title = info.Lookup("title")

index = 0

if info.DoesExist("720") = true

    url = info.Lookup("720")
    bitrates.Push(2500)
    qualities.Push("HD")
    index = index + 1
end if

if info.DoesExist("480") = true

    url = info.Lookup("480")
    bitrates.Push(1200)
    qualities.Push("SD")
    index = index + 1
end if

if info.DoesExist("360") = true

    url = info.Lookup("360")
    bitrates.Push(700)
    qualities.Push("SD")
    index = index + 1
end if

if info.DoesExist("240") = true

    url = info.Lookup("240")
    bitrates.Push(380)
    qualities.Push("SD")
    index = index + 1
end if

videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamQualities = qualities
videoclip.StreamUrls = url
videoclip.StreamFormat = StreamFormat
videoclip.Title = title

video = CreateObject("roVideoScreen")
port = CreateObject("roMessagePort")
video.SetMessagePort(port)

video.SetContent(videoclip)

video.Show()
while true

end while
4

1 に答える 1