End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Show podcasts, audio and video (Podcasts/Media block)

Build Your App · AppPresser 文件

Show podcasts, audio and video (Podcasts/Media block)

本文尚未翻譯,因此以英文顯示。

Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.

What you'll do: Show a list of audio or video, such as podcast episodes or sermons, with the Podcasts/Media block. People open an item and tap PLAY.

Before you start

  • Set up your media posts in WordPress:
    1. In your WordPress admin, click AppPresser, then Settings.
    2. Under Media Settings, check the Media post types that hold your media, for example Posts.
    3. Click Save Settings.
    4. In each media post, paste the audio or video file address into the AppPresser Media URL box. It is below the post text.
  • Turn on the Media Player feature for your app. See Turn on app features (Features).

Add the block

  1. In the left menu, under Customization, click Custom Pages.
  2. Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type Podcasts/Media, then click the block. It is added to the bottom of the page.
  5. In List Route, type the address of your list of media posts. For example: https://yoursite.com/wp-json/wp/v2/posts
  6. Click Save Changes at the top of the editor.
  7. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.
The Podcasts/Media block in the editor with a List Route address, Display set to Card and the Show Search switch
The Podcasts/Media settings. The List Route address is blurred.

If you chose Podcast when you made your app, AppPresser already made a Podcasts page with this block on it.

The Podcasts page that AppPresser made, open in the editor with a Text or Custom Content block above the Podcasts/Media block

Settings

Swipe sideways to see the rest of this table.

SettingWhat it does
List RouteThe address the list comes from.
DisplayHow each item looks. It starts on Card.
Load more posts when you reach the bottom of the listLoads more items when people reach the bottom. Use it only if nothing else is below the list.
Show SearchAdds a search box. It starts on.
Show CommentsShows comments on the single media page.

What you see in the app

Your media posts show as cards with a picture, a title and a short summary. Open one to see the PLAY button.

In the App Preview, PLAY shows "Please try from a device." Playing only works in the app on a real phone.

A media item open in the App Preview with a message box saying Please try from a device after clicking PLAY

If the page says "Podcasts require setting up", go back to Before you start and check each step.

The Podcasts page in the App Preview saying Podcasts require setting up, please view our documentation here, and Nothing to display

Tips

Tips

  • To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
  • To copy a block, click the Duplicate icon.
  • To turn a setting on or off, click the switch itself, not the words next to it.
  • After you save, open the page in the App Preview and check your changes.

Careful: The trash icon removes a block right away. Check before you click.

You're done when the block shows on your page in the App Preview.

Next step

Show downloaded media (WordPress Downloads block)

這篇文章對您有幫助嗎?

沒有找到?

我們的支援團隊可協助解決設定、建置和應用程式商店相關問題。