Ticket #216 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

play request using 'tag'

Reported by: Michiel.Schok Owned by: robert
Priority: minor Milestone: MediaMosa 3.0
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: yes
Accepted: yes Estimated Hours:

Description

In MediaMosa 1.7, a tag was introduced to mediafiles, see #159. It would be nice to use such a tag in a play-request. I imagine a restcall like

/asset/{id}/play?tag=xyz

where a play-request would be issued on the (first) mediafile of asset {id} which has a tag that equals xyz.

All other play-parameters (user_id, response, etc) should of course be possible.

this behaviour was previously documented, but not implemented. More details about this can be found in issue #158

Change History

Changed 3 years ago by Frans

  • status changed from new to closed
  • tested set to yes
  • moscow set to none
  • accepted changed from no to yes
  • resolution set to worksforme

Changed 3 years ago by Michiel.Schok

Don't know what is going wrong, but in current release (2.2.5 - 956) it's not working.

When on an asset one mediafile has the tag 'smPreview', I expected /asset/{id}/play?tag=smPreview to give me a working ticket. Instead, mediafile_id is still a required parameter.

I can live without the functionality, but please remove it from the documentation at http://mediamosa.org/node/218123 .

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>0</item_count>
    <item_count_total>0</item_count_total>
    <item_offset>0</item_offset>
    <request_class>mediamosa_rest_call_asset_mediafile_play</request_class>
    <request_matched_method>GET</request_matched_method>
    <request_matched_uri>/asset/$asset_id/play</request_matched_uri>
    <request_process_time>0.0156</request_process_time>
    <request_result>error</request_result>
    <request_result_description>MediaMosa - missing required parameter: mediafile_id (MEDIAFILE_ID)</request_result_description>
    <request_result_id>1002</request_result_id>
    <request_uri>[GET] asset/RYOX6u8GHF8cw7o0rTzcr2Lj/play?response=object&amp;user_id=foo&amp;tag=smPreview</request_uri>
    <version>2.2.5.956</version>
  </header>
  <items/>
</response>

Changed 2 years ago by Frans

  • status changed from closed to reopened
  • resolution worksforme deleted

Changed 2 years ago by Frans

  • moscow changed from none to Must Have
  • type changed from enhancement to defect
  • milestone changed from MediaMosa X.X to MediaMosa 2.4

Changed 2 years ago by Frans

  • tested changed from yes to no
  • accepted changed from yes to no

Changed 2 years ago by forgacs

  • owner set to forgacs
  • status changed from reopened to assigned

Changed 2 years ago by forgacs

  • status changed from assigned to closed
  • resolution set to fixed

The development is ready:
If the response is not still and there isn't mediafile_id and there is a tag, then the application search the first mediafile in that asset with that tag.
A new error code was introduced: "No mediafile found for the given asset and tag".
A new test case was created.

Changed 2 years ago by robert

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 2 years ago by robert

  • owner changed from forgacs to robert
  • status changed from reopened to assigned

Changed 2 years ago by robert

  • status changed from assigned to closed
  • resolution set to fixed

Changed 2 years ago by Michiel.Schok

  • tested changed from no to yes
  • accepted changed from no to yes
<request_uri>[GET] asset/b29YQ3MuhClYbIFcA7eXCBEY/play?tag=smPreview&amp;user_id=TEAMS.nl:surfnet:diensten:eerste_team</request_uri>

resulteert in een geldig ticket:

  <items>
    <item>
      <output>rtmp://wowstreaming.test.snkn.nl/vod&amp;file=vpx-acc/5/yGdONmWgISXPBgDdkzj6EqtG.flv</output>
      <content_type/>
      <ticket_id>yGdONmWgISXPBgDdkzj6EqtG.flv</ticket_id>
    </item>
  </items>
Note: See TracTickets for help on using tickets.