Class VoDRestService

java.lang.Object
io.antmedia.rest.RestServiceBase
io.antmedia.rest.VoDRestService

@Component @Path("/v2/vods") public class VoDRestService extends RestServiceBase
  • Constructor Details

    • VoDRestService

      public VoDRestService()
  • Method Details

    • getVoD

      @GET @Path("/{id}") @Produces("application/json") public VoD getVoD(@PathParam("id") String id)
      Overrides:
      getVoD in class RestServiceBase
    • importVoDsToStalker

      @POST @Path("/import-to-stalker") @Produces("application/json") public Result importVoDsToStalker()
      Overrides:
      importVoDsToStalker in class RestServiceBase
    • getVodList

      @GET @Path("/list/{offset}/{size}") @Produces("application/json") public List<VoD> getVodList(@PathParam("offset") int offset, @PathParam("size") int size, @QueryParam("sort_by") String sortBy, @QueryParam("order_by") String orderBy, @QueryParam("streamId") String streamId, @QueryParam("search") String search)
    • getTotalVodNumber

      @GET @Path("/count") @Produces("application/json") public BroadcastRestService.SimpleStat getTotalVodNumber()
    • getTotalVodNumber

      @GET @Path("/count/{search}") @Produces("application/json") public BroadcastRestService.SimpleStat getTotalVodNumber(@PathParam("search") String search)
    • deleteVoD

      @DELETE @Path("/{id}") @Produces("application/json") public Result deleteVoD(@PathParam("id") String id)
      Overrides:
      deleteVoD in class RestServiceBase
    • deleteVoDs

      @Deprecated @DELETE @Path("/bulk") @Consumes("application/json") @Produces("application/json") public Result deleteVoDs(String[] vodIds)
      Deprecated.
      Overrides:
      deleteVoDs in class RestServiceBase
    • deleteVoDsBulk

      @DELETE @Path("/") @Consumes("application/json") @Produces("application/json") public Result deleteVoDsBulk(@QueryParam("ids") String vodIds)
    • uploadVoDFile

      @POST @Path("/create") @Consumes("multipart/form-data") @Produces("application/json") public Result uploadVoDFile(@QueryParam("name") String fileName, InputStream inputStream)
      Overrides:
      uploadVoDFile in class RestServiceBase
    • importVoDs

      @POST @Path("/directory") @Produces("application/json") public Result importVoDs(@QueryParam("directory") String directory)
      Overrides:
      importVoDs in class RestServiceBase
    • unlinksVoD

      @DELETE @Path("/directory") @Produces("application/json") public Result unlinksVoD(@QueryParam("directory") String directory)
      Overrides:
      unlinksVoD in class RestServiceBase
    • synchUserVodList

      @POST @Path("/synch-user-vod-list") @Produces("application/json") public Result synchUserVodList()
      Overrides:
      synchUserVodList in class RestServiceBase