Rock U - Content Management - Publishing Rock Media

Transcribed Video Content

In this video, we're gonna look at different ways to post your videos to your Walk website. For the most part, we'll be doing this using the media player shortcode that comes delivered with Rock. Let's take a look. So we'll start by looking at the different options that are available to you in the media folder, which we can get to by going to admin tools, CMS configuration, media accounts. And here we have our local media accounts, that we're just using for example purposes, but you may have installed a plug in to sync accounts from, Vimeo or YouTube. But for now, we're just gonna use this local media account, and we're gonna click on our folder under that account, and we're gonna edit the folder. Below the name and description, you can choose a workflow type to launch whenever a new media element gets uploaded into this folder. So in other words, if a new video gets added, can launch a workflow. Also, when a new media element gets added, you can publish it to a content channel item. And you do that by selecting the content channel that you want, and you can choose what status the item should be in. And then you have to identify the media file attribute associated with the content channel item. So your your content channel needs to be configured so that all the items have an attribute of type media element. That's that's the type of attribute that it needs to be. And when your video gets uploaded here to this folder, that's what's gonna associate it with the content channel item is is through that media element attribute. So, this is one way to, publish your videos is to do it through a content channel item that can be automatically created for you using these, settings. And we'll take a look at an example of what that looks in just a minute. But before we get too far, let's take a look at the media player shortcode that we're gonna use to actually publish videos to the website. And we can find that under admin tools, CMS configuration, and Lava shortcodes. And if we scroll down to the media player short code, you can see there's a lot of information here, and we're gonna go over a couple examples, but just so you can have a look at some of the parameters that exist for the media player short code, and there are a lot of them. So, you have lots of options to work with with the media player. And we'll show you an example of how to use a couple of these. But for now, let's take a look at an example on the external website. So here we've built just a basic page, to display our video. It's it's just a page that's been created for this purpose alone. And you can see the video player here in the middle of the page. If we go to edit the block settings, you'll see that this is just an HTML content block. And all it is is the media player short code using the source parameter, that's s r c. And then, for that parameter, all you have to do is give it a URL. And that can be any URL to any video. So, it could be a URL to a YouTube video, or anything you want, as long as as long as there's a video there, you can use it in this source field. And that's about all you need to publish a video, is to get the URL, plug it in here, and and let it go. You do have more options that you can work with other parameters we saw in the short code, and we'll look at some examples of those next. So, is an example of a video being published through a content channel item. And if we look at the block settings, again, is the content channel item view block, you can see that we're using a Lava template to display this. And this is basically the same type of Lava template that you'll see on other content channel items, but we've made, a couple changes. Here, we're looking at the media element that comes from the content channel item, and it is an attribute that we're calling media element, and we're getting the raw value of that. So, again, that's the that's the content channel item attribute that I mentioned earlier that needs to be of type media element. And if there is a media element, in other words, if it's not blank, then here's our media element short code again. Only this case, in this case, instead of using source, we're specifying the media. And here we're using that lava that we used up above to give the, the GUID in this case, because that's the raw value of the media element. And you can pass in a GUID or an ID here to play whatever media is associated with that ID or GUID. Here we've got a couple of other, parameters that we're using. So, we're using auto resume in days, and we have that set to 14. That means that if a person starts watching this video but only makes it part of the way through, they'll the next time they watch the video, they'll pick it right back up where they left off as long as it was within fourteen days of starting the video. We're also using the combined play statistics in days, parameter, which is also set to fourteen. And that says, , if a person starts watching the video and then they stop, but then they come back later and keep watching it again, should that count as two separate watches in our media analytics, or should that be considered sort of a continuation of the original watch? And in this case, we have it set to 14, which means as long as they started it back up again within fourteen days, we're considering that the same watch. We're not considering that as two separate watches. And last but not least, we're also setting the width to 75% just to make the video a little bit smaller on the screen. So, again, this is a combination of using the media player short code and a content channel item. However, you can use this media player short code just by itself, as we saw in the example before, on an HTML block or something that. And it works the same way. So, as you've seen, there's there's a couple different ways to publish media to your Rock website. For more information on using the media player short code to publish videos, check out our designing and building websites using Rock manual posted to the community website. Thanks for watching.