Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding video into activity without plugin


  • mahdiar
    Participant

    @mahdiar

    Hi
    I can add video in normal post in wordpress just by copying the video file address .

    It generates the following code automatically:
    [video src="...." /]

    I test it in buddypress and it generates the code but it doesn’t show the video . How can I show the video ?

    I know bp supports youtube but I’d like to use any video .
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

  • danbp
    Participant

    @danbp

    hi @mahdiar,

    i short words: you can not embed any videos.
    You can only embed videos from approved providers. See the list on the WP codex.

    About the why, read here

    And for the how, here:
    https://codex.wordpress.org/Embeds

    That said, if you paste the url of a youtube(since wp 2.9) or funnyordie video (since wp 4.0) into an activity update, it will show up.
    If not, try with 2014 theme first.

    Test urls:

    http://www.funnyordie.com/videos/10619dd2fd/kitten-massage-is-the-best
    http://www.youtube.com/watch?v=dQw4w9WgXcQ

    mahdiar
    Participant

    @mahdiar

    Thanks !
    But there is small difference . When I copy the video url ( e.g. …../video.mp4 not the page url) in normal post in wordpress it shows a video player . Why it is not supported in buddypress?


    danbp
    Participant

    @danbp

    Because frontend users (usualy with subscriber role) are not allowed to use html tags in the activitiy editor. And they are not authorized to use the media library.
    All this for a simple security reason. Hope you understand it ! 😉


    r-a-y
    Keymaster

    @r-a-y

    And also WordPress uses a rich-text editor. BuddyPress does not for the activity post form.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding video into activity without plugin’ is closed to new replies.
Skip to toolbar