none
Can CDHtmlDialog play swf file with audio component? RRS feed

  • Question

  • Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play.

    Can CDHtmlDialog play swf with audio?

    If not, any suggestion on how to implement playing swf file with audio?

    Many thanks in davance.

    Thursday, February 26, 2015 9:20 PM

Answers

  • Hi PingHu,

    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:

    Html code Play the SWF file.

    <!DOCTYPE html> <html> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100"> <param name="movie" value="filename.swf"> <param name="wmode" value="transparent"> <embed src="D:\html directory\swf filename.swf" width="400" height="500"

    type="application/x-shockwave-flash" /> </object> </body> </html>


    Then my sample is able to play a SWF file with audio. Hope this helps some.

    Best regards,

    Shu Hu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Shu 2017 Monday, March 9, 2015 3:22 AM
    • Marked as answer by Shu 2017 Monday, March 9, 2015 3:22 AM
    Monday, March 2, 2015 7:32 AM

All replies

  • If the file can be played with Internet Explorer separately, then maybe you have to write a special value to Registry: FEATURE_BROWSER_EMULATION (https://msdn.microsoft.com/en-us/library/ie/ee330730%28v=vs.85%29.aspx).

    Friday, February 27, 2015 5:41 AM
  • Hi PingHu,

    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:

    Html code Play the SWF file.

    <!DOCTYPE html> <html> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100"> <param name="movie" value="filename.swf"> <param name="wmode" value="transparent"> <embed src="D:\html directory\swf filename.swf" width="400" height="500"

    type="application/x-shockwave-flash" /> </object> </body> </html>


    Then my sample is able to play a SWF file with audio. Hope this helps some.

    Best regards,

    Shu Hu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Shu 2017 Monday, March 9, 2015 3:22 AM
    • Marked as answer by Shu 2017 Monday, March 9, 2015 3:22 AM
    Monday, March 2, 2015 7:32 AM