Thursday, April 26, 2018

Play Audio And Video in Angular 2


Play Audio And Video in Angular 2

HTML 5 Audio Player


<table class="tableStyle">
                    <tr>
                        <th colspan="2" align="center">
                            Audio
                        </th>
                    </tr>
                    <tr>
                       
                        <td>
                            <audio controls>
                                <source src={{audioAttachmentFilePath}} type="audio/ogg">
                                Your browser does not support the audio element.
                            </audio>
                        </td>
                    </tr>
                </table>

HTML 5 Video Player in Angular 2

 HTML 5 Video Player


       <table>
                    <tr>
                        <th>
                            Video
                        </th>
                    </tr>
                    <tr >
                        <td>
                            <video controls style="height:150px;" class="col-md-12">
                <source src={{videoAttachmentFilePath}} type="video/mp4" />
                                Browser not supported
                            </video>
                        </td>
                    </tr>

                </table>

No comments:

Post a Comment

Jquery Select and Change selector and event .How to Post data using jquery to mvc and web api action methods

Jquery :Change event in Jquery Method: Demo     $("#drpCountry").change(function () {             var id = $("#DrpCoun...