Media Management, Shares, and Social Activities - BeagleBone Media Center (2015)

BeagleBone Media Center (2015)

Chapter 2. Media Management, Shares, and Social Activities

Now that the configuration is done, let's dive into the fun part. The MediaDrop web interface is intuitive enough to quickly access any required function. This chapter will introduce the main functionality and the concept of libraries as well as explain the workflow required to publish any of your media contents. Sharing media through social groups will also be introduced.

In this chapter, we will cover the following topics:

· How to use MediaDrop through workflows

· Why approvals are required

· How to get published

· Administrator tasks

· Exploring different ways to access your media

By the end of this chapter, you will be able to obtain a result similar to the one shown in the following screenshot:

Media Management, Shares, and Social Activities

Yes, you can moderate comments as well

How to use MediaDrop through workflows

You are here stamping your feet, waiting for your new embedded server to serve your goals and let the world know how cute your cat is. However, before doing this, you have to understand the workflow that MediaDrop uses.

How to use MediaDrop through workflows

The way a user submits the media contents

When you need to publish content (files, URL, YouTube videos, and so on), you will need to go through some processes. Detailed here is an overall description we are going to see in detail:

· The user opens a connection to the server

· Then this user can create a personalized page with some text and pictures

· After submission, the administrator is notified that a new page has been created and is waiting for approbation

· The administrator then connects to a dashboard to apply different actions: review, publish, or delete this new page

· As soon as the page has been published, it is available on the server. This page can be viewed, commented, liked, shared, and so on.

Why approvals are required

Using a media server is not similar to using a simple media reader, where you just copy/paste video or audio in it and read them later. Sharing contents implies that you can manage who will access them.

After submitting a video, it needs to be validated before it is made available online.

As such, consider these scenarios:

· You just came back from holidays and want to show your photos and videos to friends on your TV set and also let them add comments. How about unrelated or inappropriate comments?

· Your daughter would want to have her own space to publish her media and share it through Facebook from her laptop. Don't you think this should be supervised a bit?

· Meanwhile, your kid wants the last Disney movie from the VOD provider on his tablet, right now! What about account credentials?

Note

Standard media readers are DVDs, CDs, hard drives, network attached storage (NAS), game consoles, or any software/device that lets you listen to music or watch movies. The server we are going to set up replaces all of them with many additional capabilities.

These examples, taken from everyday life, are easy to implement with MediaDrop as long as you consider the BeagleBone Black server as the center of it all, instead of just being a media player.

Publishing your media

When you first connect to the interface, simply click on Upload, as shown in the following screenshot. You will be redirected to the principal interface where you need to fill in the media details, as in the following screenshot.

Publishing your media

· The title of the post: This will appear beside the thumbnail.

· The author's name: This will have implications related to user's rights.

· An email address.

· A description: To let your readers know what is it all about. Keep in mind that it will also be used when you share the post, so it's better to write explicitly.

· Optionally, you can also do the following:

· Pick up some categories to define your upload group membership

· Add or use an existing tag for textual researches

Publishing your media

The post submitted for publication

Just pick the video from this location; in this case, this is a YouTube video, but it can come from your local PC, NAS, or even the BeagleBone Black itself through its USB access.

Note

Storing directly to the BeagleBone Black SD is not recommended because it doesn't have enough disk space for media files.

Now, click on the Submit button and a message will inform you that the post is submitted and is awaiting the administrator's approval.

Note

If your media is a local file, the process will obviously be a little bit longer. A progress counter will appear, showing you the upload status (in percent) on the right-hand side of the screen. BeagleBone Black, being somewhat less reactive than a PC, ensures that you have reached 100 percent before going to the next step. Then, the type of file you intend to upload will be self detected.

Auto administrated contents

Here, we have focused on how users will submit content. Nevertheless, if you are the sole user on your server, you might not want to bother with the whole workflow, so you can skip the user's steps. The modified workflow, as shown in the following figure, lets you publish your media content directly. Anyway, the same functionalities are accessible as for a standard user.

Auto administrated contents

The workflow for self-published content

The user's submission part can be skipped by connecting as the administrator and directly clicking on the Add New Media button, as shown in the following screenshot:

Auto administrated contents

Administrator tasks

This can be you in both the roles, or in many cases there is a dedicated person. In all the cases, administrator approval is required before the video is to be published.

The administrator who is connected to the dashboard page can see that some uploads are awaiting review.

Note

As you have seen in Chapter 1, Transforming Your BeagleBone Black Into a Media Server, this phase is related to the rights that each user has been granted.

You can also edit and publish as a user with administrator privileges.

The administrator is someone who is often busy with different tasks, and it's his responsibility to react in time to one's post. Professionals define this as Quality of Service. For example, this could be your daughter awaiting approval because she's sent a post from her iPad. No problem, even from the garden, you will be able to manage administration just from your tab.

Note

In Chapter 1, Transforming Your BeagleBone Black Into a Media Server, we saw how you can configure notifications, so you don't have to fix the dashboard all day to handle reviews.

Administrator tasks

Each item that you click on from the Awaiting Review or Awaiting Encoding list will guide you to set this post's status to Review Pending (refer to the next screenshot). This is how you can manage the contents and set categories as tags for it.

Note

MediaDrop often tries to extract pictures from the video as thumbnails; you might find appropriated choices if you pick one yourself from the Upload image button.

Your post might require some information, such as description, tags, and categories. Do keep in mind that when this post will be read, these details will help your readers to find and understand your content. So, while it is not mandatory, it's worthwhile having this completed. An example of one such description can be seen in the following screenshot:

Administrator tasks

You can click on Save—which is confirmed afterwards—and then validate with Review Complete. Finally, you can click on Publish now for the post to be published and can define it as Published for it to be available, as shown in the following screenshot:

Administrator tasks

There are more options to explore; for instance, you can define whether a file must be removed from publication (equivalent to unpublished) on a particular date, or you can even define the uploaded file's duration, resulting in an extract from the whole video.

Now, go to the MediaDrop listbox and select View site; and check whether as a user, you have obtained what you were expecting.

Exploring different ways to access your media

When your content is in the Published status, MediaDrop generates dedicated links for you in the form of the following:

· A permalink to be used be in e-mails, websites, and so on. This kind of a link is generated, so will stay unchanged indefinitely.

· A Facebook post prepared with some of the details you already provided.

· A tweet with media information, including a link to your local content.

Self-test questions

Q1. Video files can be big sometimes. Storing them on the SD card in most of the cases should be enough, but this might become a showstopper in some other cases. Where should videos files indeed be stored?

1. On the local flash.

2. On an external USB hard drive.

3. On a NAS or networked file system (NFS).

Q2. This chapter focused on video: does this mean that only videos are supported?

Q3. There are so many movie readers on the market, "I don't need to bother with the contents' administration." So what will I do:

1. I just need to share a video directory from my computer.

2. These are just video files, not banking accounts' credentials.

3. I prefer to protect my personal life and want my files to be watched by my neighbors or the rest of the world so, yes, it's worth spending a few minutes.

Summary

In this chapter, we jumped from the administrator to the user's side of MediaDrop, so we covered contents management through simple process tasks that MediaDrop proposes.

Now, you know why you should select your user's rights carefully, so you don't need to worry about upload consequences. This means that you can be sure that any of your user's submitted content will have a delimited sharing perimeter: the one you have chosen.

As such, remember what Spiderman says:

"With great power comes great responsibility."

We also saw that submissions can be done by many users or even by a single user, if necessary.

Fortunately, MediaDrop gets the security jobs done, as it is built around a user's privileges philosophy. That's why, in the next chapter, you will see how to manage your user's rights according to usages from some real-world examples.