Native audio for audio player functions

I. Background: In order to guide the project credit, increase exposure, adds details page XX in college this module, in order to guide users to buy our individual professional courses

Two to achieve the effect: the effect of the initial implementation is expected to use audio player in our program, tentative one audio-only resources

Three status quo: The current project is the video playback component with resources and plug-in Baidu bear's numbers, and there is no audio-related resources. So the question is the need to develop new can play audio audio player.

Four Issues

    1.  currentTime can not be set, here encountered such a problem, whenever click on the progress bar to make a jump when the need to re-set the audio playback progress, here currentTime involves resetting the audio
      but every time we click, will be re-currentTime set to 0, weird is the Google browser is problematic, Firefox, ios the safari are no problem, most thought it was compatible with the problem, change the code
      finally found Google browser for streaming media
    2. Native style can not be set to cover firefox
    3. Skipping achieve
    4. Update progress bar to achieve
    5. Conversion time
    6. End time status
    7. Monitor the progress of change, the end of the monitor
    8. Problems encountered in the data source that is not accurate duration can not be compressed
    9. Drag the playback problems
    10. Schedule of the timer switch is invalid and eventually found himself wrote about using js accuracy of the calculation Math.round + Math.floor progress than the latter but found Baidu use, slow to update the progress bar, updated quickly remove
      personal guess, calculate the required accuracy some time, but the results so fast timer precision arithmetic is too slow, resulting in very slow to update the progress bar
    11. loadedmetadata a compatibility issue an executive does not perform on Firefox and chrome

    12. mp4 format can not be played in ios reason: the initial determination is caused by compression format, because for a url on it

Guess you like

Origin www.cnblogs.com/Sherlock09/p/11511752.html