Live streaming notification on thumbnail

Home Forums General Live streaming notification on thumbnail

New Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #86882
    zainbinameen
    Participant

    Hi,

    I have a question, when the streaming is live, we wan’t a notification or symbol of live streaming on our thumbnail.
    How can we do it?

    #87237
    admin
    Keymaster

    Hi,

    Use a code like this
    $event_id is $post->ID

    $transient_name = ‘event_data_to_return_’.$event_id;
    $event_data_for_transient = get_transient( $transient_name );
    if( $event_data_for_transient[‘hlsPlaybackUrl’]!=”){

    .. event is live
    }

    Thank you

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.