|
Changing URLs or Text using a MacroOccassionally it is necessary to change many parameters in your Roku channel at the same time. For example, if you move the files for your channel's posters to a different S3 bucket or to a different web server, then every URL in your Roku channel will need to be changed. Fortunately there is a very quick and easy way to do this! Before starting, you'll need to determine what the instructions for the macro will be. The instructions tell the macro what sequence of characters in the URLs to look for, and what to replace them with. For example, if your current poster URLs look something like this: http://www.posterhosting.com/mydirectory/poster1.jpg And your new poster URLs need to look like this: http://www.newposters.com/other/directory/poster1.jpg Then the macro instructions would look like this: posterhosting.com/mydirectory:newposters.com/other/directory The instruction consists of a sequence of characters to search for, followed by a colon ":", followed by a sequence of replacement characters. When your Roku channel is started on a viewer's Roku device, the example macro instruction above will find all instances of "posterhosting.com/mydirectory" and replace them with "newposters.com/other/directory". Here are the steps you would take to add the example macro instruction to a Roku channel:
Here are some other important things to know about macros:
Need help with monetizing your Roku channel using video advertisements? See Placing Advertisements in your Roku Channel for all the details! Comments, suggestions, or questions about this Roku developer guide can be sent to . |
|