brightscript

Find Date Difference in BrightScript

£可爱£侵袭症+ 提交于 2021-02-07 20:37:25
问题 I have an issue with datetime. I have two strings. e.g 24-9-15 and 2-10-15 . Both are two strings. I want to find out the difference (in days) between them. Can you please help me out? 回答1: 1) Parse the 2 strings to roDateTime objects. Reference - http://sdkdocs.roku.com/display/sdkdoc/roDateTime 2) get the time in seconds for both dates by doing date1.AsSeconds() and date2.AsSeconds() 3) Subtract the 2 times, so you have the time difference in seconds. 4) Divide this seconds by 3600 to

With HTTPS URL image not load with Poster Grid

放肆的年华 提交于 2020-07-09 12:13:24
问题 I created one RSG Component and stored content using content-meta-data like below. Inside a content-meta-data field is hdgridposterurl here, I put Both URL HTTP and HTTPS and Checked Roku side, It's working or not. Http is Working. But, Https is not Working. I also checked both URLs on a different platform. Both URLs Working well for other platforms like Android, IOS, Google Chrome, Amazon Fire Stick. I also add SetCertificatesFile("common:/root/www_mysite_com.csr"). It's not working. This is

With HTTPS URL image not load with Poster Grid

拜拜、爱过 提交于 2020-07-09 12:13:07
问题 I created one RSG Component and stored content using content-meta-data like below. Inside a content-meta-data field is hdgridposterurl here, I put Both URL HTTP and HTTPS and Checked Roku side, It's working or not. Http is Working. But, Https is not Working. I also checked both URLs on a different platform. Both URLs Working well for other platforms like Android, IOS, Google Chrome, Amazon Fire Stick. I also add SetCertificatesFile("common:/root/www_mysite_com.csr"). It's not working. This is

Adding internal Search function to Screnegraph Brightscript Channell

扶醉桌前 提交于 2020-04-30 11:22:49
问题 I need to add search functionality to my Brightscript scenegraph script for a Roku Channel. Does anyone have a simple Search sample, or a script I can use to add to a "sliding panel" Roku channel script? RoSearch has been depreciated. The current page is very similar to the Sliding Panel example. Need working Search feature on my Roku Channel. <component name = "minikeyboardexample" extends = "Group" initialFocus = "exampleMiniKeyboard" > <script type="text/brightscript" > <![CDATA[ sub init(

Adding internal Search function to Screnegraph Brightscript Channell

孤人 提交于 2020-04-30 11:21:07
问题 I need to add search functionality to my Brightscript scenegraph script for a Roku Channel. Does anyone have a simple Search sample, or a script I can use to add to a "sliding panel" Roku channel script? RoSearch has been depreciated. The current page is very similar to the Sliding Panel example. Need working Search feature on my Roku Channel. <component name = "minikeyboardexample" extends = "Group" initialFocus = "exampleMiniKeyboard" > <script type="text/brightscript" > <![CDATA[ sub init(

Play MultipleAudioTrack in Roku

陌路散爱 提交于 2020-03-04 04:47:27
问题 I tried to Play MultipleAudioTrack in Roku. I refer to this Example to play an audio track. I same code use in my stream Here ?"m.video.availableAudioTracks :"m.video.availableAudioTracks but here not available any track. my stream check in VLC MediaPlayer. Here two-track available But I not found in Roku. My Audio Format is AAC. I also Set Here m.video.audioFormat = "aac" . Any other Configuration required to Playing a multiple Audio. 回答1: I'm not certain about Audio files, but I know that

Live Stream in Roku

十年热恋 提交于 2020-01-25 06:40:32
问题 I used the live stream in Roku. and used both stream dash and hls. Here someone stop live stream chunk from server-side and in Roku Side pause video and someone again starts again genrated a chunk It's not handled automatically. Here I know two field use for display a chunk streamingSegment and downloadedSegment. But I dont know how to check everytime in videoplayer found chunk or not. Is there any way to if chunk not found then paused videoplayer and again found then play. any solution for

Playing Multiple Video Nodes at the same Time - Roku SDK

家住魔仙堡 提交于 2020-01-24 17:51:11
问题 I am trying to overlay two video screens and play them simultaneously, with the audio on one muted. However, it seems like Roku only supports the playback of one Video at a time. Is there any way to play both Video nodes simultaneously? Any help is appreciated. 回答1: Looks like it may not be possible :( https://forums.roku.com/viewtopic.php?t=112791 回答2: This is not possible. I tried several things to make it work but without any success. So for now this is not an option. 来源: https:/

Navigation concept in Roku

早过忘川 提交于 2020-01-15 10:23:13
问题 I am facing some issue in screen navigation in Roku Brightscript. Please, anyone, help me how I can manage 5-6 screen in my Roku project. I want to navigate from 1 to 2 screen and also want to back from that screen. This is some major issue I have for the last 6 month. I am not able to do it. Some help from your side helps me to understand. Currently, I have tried by following below procedure 1-if I want to go to 2 screens then I will do below part m.top.AppendChild(m.secondscreen) m

Navigation concept in Roku

拟墨画扇 提交于 2020-01-15 10:22:54
问题 I am facing some issue in screen navigation in Roku Brightscript. Please, anyone, help me how I can manage 5-6 screen in my Roku project. I want to navigate from 1 to 2 screen and also want to back from that screen. This is some major issue I have for the last 6 month. I am not able to do it. Some help from your side helps me to understand. Currently, I have tried by following below procedure 1-if I want to go to 2 screens then I will do below part m.top.AppendChild(m.secondscreen) m