Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue Playing a Video in IE APEX 5.1.1

Joe RJun 30 2017 — edited Jul 5 2017

Version: 5.1.1.00.08

Theme: Universal

DB: Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production

Hello,

I having an issue with a video (MP4) playing in IE 11 and of course it works perfectly in Firefox 54.0.1 (64-bit) and Chrome 59.0.3071.115 (Official Build) (64-bit).

I found this post, https://community.oracle.com/message/10830743, and in the second reply by Ramesh P. he provides code to play a video.

So I created an Application Process called Get_Video:

BEGIN

get\_video (:P8\_FILE\_INDEX);

END;

I created a procedure called GET_VIDEO:

CREATE OR REPLACE PROCEDURE get_video (pfileid IN NUMBER)

IS

v\_blob        BLOB;

v\_length      NUMBER;

v\_mime\_type   VARCHAR2 (300);

v\_file\_name   VARCHAR2 (200);

BEGIN

-- get pdf\_data and its mime type from the database

SELECT blob\_content

      ,file\_mimetype

      ,file\_name

INTO   v\_blob

      ,v\_mime\_type

      ,v\_file\_name

FROM   ib\_assets

WHERE  file\_index = pfileid;

v\_length := DBMS\_LOB.getlength (v\_blob);

OWA\_UTIL.mime\_header

(

    v\_mime\_type

   ,FALSE

);

HTP.p ('Content-length: ' || v\_length);

HTP.p ('Content-Disposition: filename="' || v\_file\_name || '"');

OWA\_UTIL.http\_header\_close;

WPG\_DOCLOAD.download\_file (v\_blob);

EXCEPTION

WHEN OTHERS THEN

    raise\_application\_error

    (

        -20001

       ,'Error: ' || SQLERRM

    );

END get_video;

The calling page is a Classic report with an icon of the blob column from the table that contains the blob and calls a Modal Window to play the video. From Firefox and Chrome the Modal Window opens and a player is displayed with the video.

Within the query for the report I have:

SELECT

...

,CASE

WHEN NVL (DBMS\_LOB.getlength (blob\_content), 0) = 0 THEN NULL

ELSE CASE WHEN file\_mimetype LIKE '%mp4' THEN DECODE

          (

              NVL (DBMS\_LOB.getlength (blob\_content), 0)

             ,0, NULL

             ,'\<a href=" '

              || APEX\_UTIL.prepare\_url ('f?p=' || :APP\_ID || ':8:' || :APP\_SESSION || ':APPLICATION\_PROCESS=GET\_VIDEO:' || :DEBUG || '::P8\_FILE\_INDEX:' || file\_index)

              || ' ">\<img alt=" '

              || file\_name

              || '" title="'

              || file\_name

              || '" src="&APP\_IMAGES.mp4-icon.png" '

              || '" height="75" width="75" /> '

          )

...

FROM ...

From IE I get two windows that open. 1 is the Modal Window that opens a player that displays in Firefox and Chome the other is Windows Media Player.

The error message I get from IE is:

6-30-2017 1-25-17 PM.jpg

Can someone help me with getting this video to play in IE too?

What else can I provide?

Thanks,

Joe

This post has been answered by LA County APEX on Jul 4 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2017
Added on Jun 30 2017
7 comments
716 views