Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to play video from URL? (MASM)

Featured Replies

Replying to this comment: https://forum.tuts4you.com/topic/45087-mediaplayer/?do=findComment&comment=222146, here as it is better to use this topic for discussions relating to the MFPlayer library and coding relating to it than the MediaPlayer topic itself.

Once a media item has been created, you can then set it in the queue with the MFPMediaPlayer_SetMediaItem function: https://mfplayer-library.readthedocs.io/en/latest/MFPlayer Functions/MFPMediaPlayer Functions/MFPMediaPlayer_SetMediaItem.html#mfpmediaplayer-setmediaitem

Once its in the queue you can use the MFMediaPlayer_Play function to start playback.

Ideally you would not create the media item, queue it and play all from one "play" button, as each time you hit play you are going to be creating a new pMediaItem object, without releasing the previous one. I would recommend to load the media file with the CreateMediaItemA/W function, then set it in the queue. When user clicks play button, it just uses the MFMediaPlayer_Play function.

In my event handler, when the media item is queued/set (using MFPMediaPlayer_SetMediaItem), then I call play (think of it as autoplay when loading a new file into the media player example)

If you don't want to use the event notification callback then just pass NULL instead of the address of an event handler.

 

 

 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.