philotas
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
07:42 AM
Reuse Video Node?
Is it ok tu reuse one Video node in SceneGraph for all videos being played back in a channel or should it be recreated for every video?
I am talking about mixed content here progressive mp4 and HLS videos.
Maybe this is cleaner cause it cleans some caches or whatever.
I am talking about mixed content here progressive mp4 and HLS videos.
Maybe this is cleaner cause it cleans some caches or whatever.
6 REPLIES 6
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
02:32 PM
Re: Reuse Video Node?
Yes I believe it's preferred to reuse the same video node.
aspiring
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
03:05 PM
Re: Reuse Video Node?
i'd be inclined to use different Video node every time (with the clarification that no more than 1 can go at a time). Based on my experience with other components (roNDK?) being throw-away items, it feels to me more "sanitary" with disposables...
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
03:14 PM
Re: Reuse Video Node?
I guess it's up to the individual developer. In the SDK2 work the team I'm on has done, we created only one and reused it.
aspiring
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
03:20 PM
Re: Reuse Video Node?
So far, I haven't run into problems re-using nodes, even animations. I don't know what the "official" Roku position is, just what's been working for me.
philotas
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2017
04:11 PM
Re: Reuse Video Node?
ok, will keep on using my single video node then.
EDIT: thanks for the quick feedback
EDIT: thanks for the quick feedback
norcaljohnny
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017
02:23 AM
Re: Reuse Video Node?
Do what feels right for you. Sometimes global functions/functionality work well and at other times, you simply need more than one video node..a trailer for instance at a different size from the full screen video node. I think what is really important, is write clean codes that can easily be read when adding code or passing it on. Cheers!