Package 

Class VideoUtil


  • 
    public final class VideoUtil
    
                        

    An Video utility class to perform tasks with Brightcove video objects.

    • Method Detail

      • removeSidecarClosedCaptionSources

         static void removeSidecarClosedCaptionSources(@NonNull() Video video)

        Removes existing Sidecar Captions Sources because they are likely not aligned with the Ad breaksin the VMAP for SSAI videos.This method does not remove any in-manifest captions.

      • addWatermarkingToken

         static void addWatermarkingToken(Video video, String token)

        Add a watermarking token to this video's sources if a placeholder is present

        Parameters:
        video - The video that may have a token placeholder in its Source URLs
        token - The watermarking token that will replace he placeholder in the Source URLs
      • isManifestTtlValid

         static boolean isManifestTtlValid(Video video)

        Determine whether the video has the following properties:Video.Fields.MANIFEST_URL_TTLVideo.Fields.MANIFEST_TIMESTAMP

        If both properties are present and non-null, compute their summed values against the current System time todetermine whether the Video's MANIFEST_TIMESTAMP property is expired

        Parameters:
        video - The video that may have a token placeholder in its Source URLs
      • filterSourcesOnDeliveryType

         static void filterSourcesOnDeliveryType(Video video, DeliveryType deliveryTypeFilter)

        Filter this Video's SourceCollections to include only the specified DeliveryType

        Parameters:
        video - The Video whose SourceCollections are to be filtered
        deliveryTypeFilter - The DeliveryType to filter the Video's SourceCollectionsExamples:-- If the deliveryTypeFilter is DeliveryType.HLS, then all but the HLS sources in the Video are removedSpecial cases:-- If the specified DeliveryType is DeliveryType.DASH, then all but the DASH Sources will befiltered out of this Video-- If the specified DeliveryType is not found in the SourceCollection's keySet, then no Sources will befiltered out of this VideoThis includes DeliveryType.
      • checkDolbyAtmosSources

         static void checkDolbyAtmosSources(Video video)

        If device does not support Dolby Atmos features, then filter related Source,only if it is Mpeg-DASH

        Parameters:
        video - - Current video