Ticket #526 (closed defect: fixed)

Opened 21 months ago

Last modified 20 months ago

ega_view_url is missing from /asset response

Reported by: Michiel.Schok Owned by: Michiel.Schok
Priority: major Milestone: MediaMosa 3.0
Component: Core Version:
Keywords: Cc:
MoSCoW: none Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 0

Description

In MM 3.0.5 there is no <ega_view_url> in the /asset response.
SURFmedia uses this URL to populate the target for hyperlinks.

Change History

Changed 21 months ago by Michiel.Schok

Example:

MM 3.0.5 (VP-Core acceptance):

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>1</item_count>
    <item_count_total>1</item_count_total>
    <item_offset>0</item_offset>
    <request_class>mediamosa_rest_call_asset_get</request_class>
    <request_matched_method>GET</request_matched_method>
    <request_matched_uri>/asset/$asset_id</request_matched_uri>
    <request_result>success</request_result>
    <request_result_description/>
    <request_result_id>601</request_result_id>
    <request_uri>[GET] asset/V2JFBcOECxONVBjFRRaXlUGs/</request_uri>
    <version>3.0.5.1775</version>
    <request_process_time>0.4111</request_process_time>
  </header>
  <items>
    <item>
      <asset_id>V2JFBcOECxONVBjFRRaXlUGs</asset_id>
      <app_id>5</app_id>
      <provider_id/>
      <owner_id>urn:collab:person:surfguest.nl:smibuildings</owner_id>
      <group_id/>
      <videotimestamp>2011-09-14 11:01:49</videotimestamp>
      <videotimestampmodified>2011-09-14 11:02:56</videotimestampmodified>
      <play_restriction_start/>
      <play_restriction_end/>
      <reference_id/>
      <isprivate>FALSE</isprivate>
      <mediafile_duration>00:00:20.96</mediafile_duration>
      <mediafile_container_type>mov;mp4;m4a;3gp;3g2;mj2</mediafile_container_type>
      <is_unappropriate>FALSE</is_unappropriate>
      <is_external>FALSE</is_external>
      <is_empty_asset>FALSE</is_empty_asset>
      <viewed>116</viewed>
      <played>17</played>
      <is_protected>FALSE</is_protected>
      <asset_property_is_hidden>FALSE</asset_property_is_hidden>
      <is_unappropiate>FALSE</is_unappropiate>
      <app_5>
... removed metadata app_5, czp, dc, qdc ...
      </qualified_dublin_core>
      <ega_play_url>http://www.integration.surfmedia.nl/app/video/V2JFBcOECxONVBjFRRaXlUGs/play?format_id=e2hXpelRaOiCMro9OYRz0PLV</ega_play_url>
      <is_favorite>FALSE</is_favorite>
      <granted>FALSE</granted>
      <ega_still_url>https://www.integration.surfmedia/dummystillcall?id=V2JFBcOECxONVBjFRRaXlUGs</ega_still_url>
      <vpx_still_url>http://app.acceptatie.vpcore.snkn.nl/still/bODipdTPgUJbWa6OYEFCRTPy</vpx_still_url>
      <mediafiles>
... removed mediafiles ...
      </mediafiles>
      <has_streamable_mediafiles>TRUE</has_streamable_mediafiles>
    </item>
  </items>
</response>

MM 2.3 (VP-Core production):

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>1</item_count>
    <item_count_total>1</item_count_total>
    <item_offset>0</item_offset>
    <request_class>mediamosa_rest_call_asset_get</request_class>
    <request_matched_method>GET</request_matched_method>
    <request_matched_uri>/asset/$asset_id</request_matched_uri>
    <request_result>success</request_result>
    <request_result_description/>
    <request_result_id>601</request_result_id>
    <request_uri>[GET] asset/y1HCNKMLoTUhKSXPaAWDcLHh/</request_uri>
    <version>2.3.13.1399</version>
    <request_process_time>0.1659</request_process_time>
  </header>
  <items>
    <item id="1">
      <asset_id>y1HCNKMLoTUhKSXPaAWDcLHh</asset_id>
      <app_id>5</app_id>
      <provider_id/>
      <owner_id>urn:collab:person:fontys.nl:225490_student.fontys.nl</owner_id>
      <group_id/>
      <videotimestamp>2011-09-14 10:33:29</videotimestamp>
      <videotimestampmodified>2011-09-14 10:33:31</videotimestampmodified>
      <play_restriction_start/>
      <play_restriction_end/>
      <reference_id/>
      <isprivate>FALSE</isprivate>
      <mediafile_duration>00:00:30.04</mediafile_duration>
      <mediafile_container_type>mpeg</mediafile_container_type>
      <is_unappropriate>FALSE</is_unappropriate>
      <is_external>FALSE</is_external>
      <is_empty_asset>FALSE</is_empty_asset>
      <viewed>51</viewed>
      <played>4</played>
      <is_protected>FALSE</is_protected>
      <asset_property_is_hidden>FALSE</asset_property_is_hidden>
      <is_unappropiate>FALSE</is_unappropiate>
      <app_5>
... removed metadata app_5, czp, dublin core and qualified dublin core ...
      </qualified_dublin_core>
      <ega_view_url>https://www.surfmedia.nl/medialibrary/item.html?id=y1HCNKMLoTUhKSXPaAWDcLHh</ega_view_url>
      <is_favorite>FALSE</is_favorite>
      <granted>TRUE</granted>
      <ega_still_url/>
      <vpx_still_url>http://download.vpcore.snkn.nl/still/f1sJjfcc5sMNUXFpaSTVJzwv</vpx_still_url>
      <mediafiles>
..removed the mediafiles
      </mediafiles>
      <has_streamable_mediafiles>TRUE</has_streamable_mediafiles>
    </item>
  </items>
</response>

Changed 21 months ago by Michiel.Schok

  • moscow changed from Should Have to none
  • milestone changed from MediaMosa X.X to MediaMosa 3.0

Changed 20 months ago by Frans

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

Peter, can you have a look at this?
SURFmedia breaks on a missing ega_view_url

Changed 20 months ago by forgacs

  • owner changed from forgacs to Michiel.Schok

We have fixed this. It was a settings issue.

In the client application edit page of app_id = 5 there is a "Transcoding" fieldset with a "Preview Transcode Profile Id" select box. The value of this was "12 - SURFmedia Preview h.264". And we changed this to "13 - SURFmedia Preview", like it is on the production.

Changed 20 months ago by forgacs

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

Changed 20 months ago by Michiel.Schok

You are correct: by performing this change, the 'ega_view_url' became visible.
But I don't know WHY this behaviour exists.

What I'm observing now is the follwing:

IF in the asset requested IS a transcode available with the appropriate id,
THEN MediaMosa fills in a 'ega_play_url' according to the template under 'URLs \ play proxy URL',
ELSE
there is a 'ega_view_url' according to another template.

Is this behaviour somewhere documented?
A quick search in this tickets learned that some time ago I had a similar discussion with Madcap: http://mediamosa.org/trac/ticket/90 . Closed as SURFmedia had implemented a workaround...

Changed 20 months ago by forgacs

Michiel,

If there is a transcoded mediafile in the asset with the transcode_profile_id (given in the admin interface), then MediaMosa responses an ega_play_url, otherwise an ega_view_url is in the response.

I'm not sure why this behavior exists. Maybe the reason is the OAI. I think the harvesters try to give a preview to the users, if it is possible, and a view url otherwise.

I have added a comment here:
http://mediamosa.org/content/getting-asset-details-1

Note: See TracTickets for help on using tickets.