"belltown" wrote:
Not quite. That's a forward slash, you need to escape the quote with a backslash: \"
Re control characters, html, etc: A lot of BrightScript code I've seen in other channels and examples contains code to strip out the html tags, etc., so that's probably why your xml feed-based BrightScript channel didn't care about such tags; it just ignored them. Obviously, Direct Publisher takes a more stringent approach. I wouldn't think it would be too hard to write some kind of script (Python?) to go through all your feed files stripping out html tags and control characters -- although, of course, it would be easier if DP provided that capability on their side (along with line numbers on error messages, etc.)
Direct Publisher seems to be designed for non-technical, non-developer people to get a Roku channel up and running quickly without having to learn programming or any of the other skills typically required of a developer (debugging, etc.) As such, it provides a simple set of features suitable to get a simple channel working with many inherent limitations. If you find yourself stretching the capabilities of what DP can handle and you need more (unlimited categories, unlimited content items, real-time feed updates from your own server, custom text formatting, ingestion of existing XML feeds, etc, etc), then that is what the Scene Graph API is for.
There is a much steeper learning curve for the Scene Graph API than with Direct Publisher. However, with your previous programming experience, experience developing other Roku channels, along with the many tutorials and examples provided by Roku, it shouldn't be insurmountable. It might be something you'd want to take a look at for the long-term after you've got your DP stuff figured out. You could get started with something like this example: https://github.com/rokudev/videoplayer-channel
Well absolutely the ideal situation would be to learn the brightscript from top to bottom and become an expert brightscript code programmer, BUT, seeing that Roku is one platform, the only one I know of using brightscript, it would not be an efficient use of time. And I already have several private channels running on the sample player from github. The thing that attracted me to the direct player is that with little effort we get a built in adserver directly from Roku. I've already spent a few hours trying to learn enough brightscript to add that to the sample player, basically, not happening and extremely frustrating. You see the nicest thing about Python, asp, asp.net, java, etc etc is that there are MILLIONS of developers worldwide, with tons of support, Brightscript has like 2 developers outside of the roku platform (ok maybe a bit of sarcasm there it really more like 5), and there is so little support for it. The instructions and nothing more then guides with poor examples. I like to jump into a language, search google for what I want it to do, find a few peoples examples of what works and doesn't work, edit it to my needs and backwards engineer it. Alot easier in reverse then forwards. For me anyway. Besides with the new direct publisher, if Roku wants to make a platform obsolete it's no skin off my back, they say in the documentation that they will update the player leaving one less thing for me to worry about. Like when they depreciate the current brightscript code in 2020 and all my private channels go down. It's easier for me to have 25 public channels that Roku does the maintanance on then 5 private ones. lol.
Actually in the private channels it recognized <br> <b> <font> and <p> and used them appropriately if I remember correctly. I almost positive thats how we changed the color of the fonts on some of the descriptions.. Anyway, I wasn't complaining that it should use them, I was informing people that it doesn't if they have a similar situation.
I sincerely doubt a non-technical non-developer type person would be able to figure out how to construct a json file, after all, all a json file is - is a standardized formatting of a text file that gives instruction to a program or in technical terms a "script". I could not see my lawyer or doctor writing a json file anymore then they would be writing a javascript file. However, they would not have to write a brightscript file so it's a few big steps less. Really though I see no reason why the videos couldn't be submitted via a form on the roku webpage or in a simpler format. As a matter of fact I showed this to my financial adviser today {"providerName":"TVByDemand Productions","lastUpdated":"2017-03-10T12:22:36+00:00","language":"en","movies":[{"id":"1","title":"24/7 Full Streaming","content":{"dateAdded":"2015-11-11T22:21:37+00:00","videos":[{"url":"http://www.tvbydemand.com/live/hls/ulive1/mixedmedia1.m3u8","quality": "SD","videoType":"HLS"}],"duration":2408},"genres":["sports","special","news"],"tags":["24/7 streaming","misc","comedy","pro wrestling","music","documentaries","DIY","live tv"],"thumbnail":"http://www.tvbydemand.com/images/streaming-tv-logo1%20copy.jpg","releaseDate":"2015-03-06","shortDescription":"Channel 1 Streaming TV MISC.","longDescription":"A little bit of everything from Documentaries, how tos/DIY, Pro Wrestling, Hockey Live Music and much much more always fresh and new"},
He said, um yeah looks like geek speak to me....... lol
The biggest problem with brightscript is, lack of developers using it, lack of opportunities to use it elsewhere. json at least has the potential to be used in other places, as does xml and languages like python etc etc.. Brightscript simply doesn't have a large enough install base to make me go out and learn it. I sought to have a roku channel because Roku was young several years ago and showed market dominance (which it still holds) and has a reputation of backwards compatibility. And then it had the sample player api. which functioned right out of the box, since I had an understanding xml already and adobephotoshop to make all the ridiculous required versions of the same image file, it took two days to get a channel running. That was 4 years ago, between all of my private channels on 3 different platforms (roku, web and kodi) we have in excess of 30,000 cumulative subscribers and over 3,000 minutes viewed a day. I am hoping to more then double those numbers with the private channels and maybe get some dollars from the advertising to upgrade/expand the content network and pay some of my content providers. If that happens and money starts coming in then yeah I'd see it worthwhile to expand my knowledge and learn brightscript to the degree of writing a custom channel that meets all the requirements to be published publically.
http://www.TVByDemand.com